PDA

View Full Version : Adding MenuBar component to library using Actionscript?


shassouneh
11-24-2005, 01:51 PM
Hi All,
I ran a search and was unable to find anything close to what i need here, so I figured I'd ask.

Ok, I have a preloader SWF file that eventually loads an SWF that has a Menubar component in it. For this to work, flash forces me to add the Menubar component into the preloader's library, which as you can imagine, adds a whopping 60+ KB to the pre-loader SWF thid making it inusable!! :(
My question is, can I instead load the MenuBar component into the library as needed at a later point, perhaps by using acitonscript? The only thing I can think of is attachMovie or sticking the menubar itself into an SWF file all by itself and loading it all on its own.

If someone can help me figure this out it would be of great help since I don't have to worry about the user downloading somehting like 67 KB before seeing anything on their screen.

Thanx ahead of time for any help or insight you offer.

shassouneh
11-27-2005, 01:45 PM
I even thought of putting a menu bar component in a movie clip of its own, and pre-loading that movie clip (by publishing it first as an SWF), but I just don't like that idea of putting a component all by itself in an SWF. Can someone please help?