Ever used the PSD import with “all case” text field that ended up lower case in Flash? Salvation is here with this command! Just select your textfields and run this command to uppercase them back.
Download the file here or check out the tiny code:
// ToUpperCase by Pål @ Apt 2011var dc = fl.getDocumentDOM();
var sel_array = dc.selection; //Get selected itemsfor(var i=0;i<sel_array.length;i++){
s = sel_array[i];
if(s.elementType == "text"){//Check if it is a textfield
s.setTextString(s.getTextString().toUpperCase());
}}
One of my first experiments with HTML5 canvas. Particles with gravity, moving against each other depending on the mass / size of each circle. Added some controls, so you can mess around with it. I did not have time to make controls for number of particles on screen, but maybe i’ll fix it later. No framework used, except from jQuery for the controls. The experiment is optimized for webkit, and there are some known bugs
I had some time in June to experiment with iPhone web-apps and its proprietary Safari html. As a flash developer it was a fun to get my hands dirty and work with a little in the non-strict world of Javscript.
The idea of the web-app was to demonstrate multi-touch in a web-app and also for it to be a little playful drawing tool. The user can draw series of ribbons by swiping two or more fingers across the screen, creating a trail after the movements. Have a go at it on your iPhone or iPad, but remember to use two or more fingers.
Adding it to the home screen will also create a nice icon and it will run in fullscreen.
In this demo I’ve been using:
CSS3 (webkit-*) for 3D perspective
Canvas for drawing
Safari multi-touch events for user input
Icon for the home screen (apple-touch-icon)
Picture for the splash screen (apple-touch-startup-image)
For docs I mostly used developer.apple.com and the odd Google search. You are welcome to take a peek at the (single file) code if you are interested in how it works. Feedback is also welcome, ie. I dont think it works optimally on the Ipad. I havent got one yet
PS. I have already got reports that this doesn’t work on Android (surprise!). But I dunno if that was a multi-touch enabled one.
So your client wants her data in Excel format? Not to worry. After reading this, you will be able to deliver data to her in a matter of minutes. Having said that, please bear in mind that it is not a generic solution for delivering dynamic Excel spreadsheets, merely a quick-fix solution.
But, you knew that already, didn’t you? Please read on for the good stuff…
While doing a recent project I wanted to create a fade effect that worked well with the 8bit style design of the application. I wanted to use the dissolve effect, and lo and behold, flash has that function built in to the BitmapData class ( pixelDissolve ). Only problem was that the dissolve is on a pixel to pixel basis, so it did not look really authentic to a 8bit based graphics. All that was needed to do was to mimic the pixelDissolve function but apply them to squares of pixels.