is there anything like preloader

4 views
Skip to first unread message

elffikk

unread,
Jun 30, 2010, 12:06:18 AM6/30/10
to Reflex Platform
hi,

is there anything like flex preloader?

I am using reflex now and my code with assets is about 300 kb,
and it will be great if I could add a preloader like the flex one

Tyler Wright

unread,
Jun 30, 2010, 9:09:10 AM6/30/10
to reflex-...@googlegroups.com
Paul Taylor has explored the preloading functionality available to Reflex and has contributed work in the Reflex project. I'm not sure how far along it is or easy to use out of the box. Reflex has yet to be tied up in a pretty package, documented and easy to use, so for now you're welcome to explore and find what you can that fits your needs.

hope this helps
Tyler

Paul Taylor

unread,
Jun 30, 2010, 10:55:46 AM6/30/10
to Reflex Platform
It really depends on if you're using Flash Pro or FlashBuilder. Here's
the FlashBuilder workflow:

Check out my Application class here:
http://github.com/guyinthechair/reflex/blob/master/src/reflex/components/Application.as

At the top there's a declaration:
[Frame(factoryClass="reflex.tools.flashbuilder.ReflexApplicationLoader")]

This tells the mxmlc compiler to add the ReflexApplicationLoader on a
frame, then put the Application instance on the frame just after that.
The ReflexApplicationLoader does what you need. It shows a preloader,
it loads in RSLs and CDRSLs, and initializes mixins. Be sure to get
the latest version from my repo here:
http://github.com/guyinthechair/reflex/blob/master/src/reflex/tools/flashbuilder/ReflexApplicationLoader.as

FYI, my fork is pretty different from the other branches, so there are
classes in the latest version of RAL that you don't have. It's fine,
you can comment it out no problems.

For the Flash Pro workflow:

Call ReflexFlashLoader.init() from on frame 1 of your SWF.
ReflexFlashLoader is here:
http://github.com/guyinthechair/reflex/blob/master/src/reflex/tools/flash/ReflexFlashLoader.as
It's the parent class of ReflexApplicationLoader and throws up a
loading bar while your Flash app loads too. Stick everything else on
frame 2.

Hope this helps!

Paul

elffikk

unread,
Jul 1, 2010, 1:26:32 PM7/1/10
to Reflex Platform
I can't user your version of reflex since I use Ben's version and
yours is missing a few components which I use like list and stepper
Reply all
Reply to author
Forward
0 new messages