I have a flash form application tutorial file developed in
Flash MX Pro 2004 that has over 200 static screens and I see no end
in sight of its continued expansion. I need a way to simplify my
screen navigation scripts if I'm going to continue with this tool.
What I have are literall dozens of nested screens that look
// button to navigate back to application root
var x:String="navigate: App Root";
It was an early concept fla for the app, the real app is
about 30x bigger and growing.
An example of the code I'm trying to reduce can be found on
ATHENA.WebRoot on the onRelease of btn_w_AthenRootMenu
You can see there that there are only about 20 lines of code
needed in the example file. My real app has almost 500 lines right
there. And every time I have a cross-screen-tree navigation event I
have 200-400 lines.
as an aside, you can see where I've inserted some additional
code at the suggestion of some forum posters.
on _root.ATHENA there are a couple of lines trying to declare
a pair of public functions, on _root.ATHENA.Home.RootMenu I'm
setting the value to the myHold function, and on
_root.ATHENA.WebRoot I'm trying to call the hideAll function.
Unfortunatly it is not working, and I think it is because even
though I've decalred and set the myHold function there are other
screens visible other than the one set to that function, so
therefore the hideAll fails?