flex - How to make a Flash PreLoader in AS3 Only? -
I want to add a flash pre loader to my application, but I only use Flex SDK / AS3 / Notepad Code This animal I'm using does not have access to Flash IDE.
It has many tutorials and helpfiles that do it in CS4, but not in the code itself. Can someone give me directions here?
Most examples seem to revolve around keeping a loader symbol before the rest of your frame - but I do not have access to the timeline or frame from within. I flex (or at least, I do not think That i do!).
You want to read about some of the AS3 compiler instructions - in this case related factory have class.
Basically, you will need to create a class to load your main category that extends to MovieClip. The 'preloader' class can monitor the bytesload / biotechal and then can instantize its main class. In the non-intuitive part of it (at least for me) the divert was also included: [Frame (factoryClass = "pathToYourLoaderClass")]
You want to preload at the top of your main category < / P>
Below is a great blog with more information and a good solution.
Comments
Post a Comment