PDA

View Full Version : actionscripted UI's


ryandsims
07-04-2002, 02:48 AM
hello:


i am an intermediate flash designer who is tired of using a bunch of frame labels and GoTo commands for a user interface... it's too time-consuming (i know that there's got to be an easier way to do it with actionscripting.)

i'm going for something in the vain of DHTMLcentral.com's CoolMenu's.


so if anyone knows of a good tutorial or has some open source they wouldn't mind sharing with me- i'm just not skilled enough to figure out the steps and code it from scratch... i need a kick-start.


thanks in advance!!! you guys are always so helpful to poor struggling inferiors like myself.


ryan

lafatak
07-04-2002, 07:47 AM
Ryan...I did a tutorial on this type of scripted menu, but don't really feel it to be something I can post here as it was from the book 'Flash 5 ActionScript Studio' published by 'friendsof ed'. They have a nifty little menu there too..http://www.friendsofed.com

It certainly goes beyond what I would consider to be Simple Stuff (Newbies). You might have done better posting it under 'ActionScript'....But seeing as how crossposting is a no-no...Maybe I can get the thread rolling if nothing else.

To make a long story short, this is all about functions, arrays and using the for loop...You create your main menu using an array which is subsequently populated with other sub arrays ...The sub arrays are your sub menus.

Functions are used to draw the menu and the offset positioning for the various menu entries. (Hmmm...I think that's how it works..!)

You use a 'for' loop to cycle through the arrays(menu labels) ...An 'on release' event triggers the function which draws the menu.

There was nothing 'simple' about it (for me anyway), a lot of code...iterations and iterations of the 'for' loop....but once you learn it, the result is a nice reusable 'component'.

I toss the torch to someone with more knowledge and help to offer....or a directions to a tute.

Laf