How to create magic buttons for a classic horizontal menu.
Hi Let's say we want a bunch of solid filled rectangles be scaled, aligned and placed one after the other on the stage.
Let's say we want them scaled accordingly the lenght of words ( objectsStrings array )
Hit this "Go" button and see the script in action!
Try by yourself, open this in a web browser.
http://www.tastethetasty.com/Blog/resizebuttons.swf
If you have Adobe Flash CS5 here the .fla goes.
http://www.tastethetasty.com/Blog/resizebuttons.fla
No comments:
Post a Comment