Groups | Blog | Home
all groups > flash actionscript > march 2006 >

flash actionscript : Preloading components in Flash MX


SEPHlROTH
3/11/2006 10:38:22 PM
Today I tried to use components in my movie, the scrollbar components in Flash
MX. Before I work on components I found some site to learn about it, and I
learned that all components will be loaded in the 1st frame which make the
preloader useless. Then I learned how to disable export in 1st frame using
linkage, and also learned how to set up in "Action Script 2" to have components
class and script export after the perloader frame so the preloader will work.
Now when I start making my movie I get a problem, cus I'm using Flash MX I cant
still disable "export in the 1st frame" from linkage for scrollbar components
but there no action script setting in the publish setting so I can't set the
"export frame for classes" to 3, which is the frame after my perloader. So I
have no choice but to test the movie without publish setting, the preloader
appear right the way and works fine, but when I check the scroll bar in the
movie it doen't work! it only worked if I set its linkage to export in 1st
frame. I need help from some pro who know how to fix this in Flash MX so I can
use preloader. Please help me :confused;
Patrick Bay
3/13/2006 5:42:32 PM
Hi,

Are you by any chance the same guy who wrote SE|PY?

The issue you are dealing with is actually something built into
Flash. Because of instantiation of components and classes, they
necessarily have to be exported in the first frame. For a preloader this
will obviously mess up the load. I'm not an authority on this but I
believe that because components can be attached to the movie as early as
frame 1, the classes for them must necessarily be present at that point.

I would recommend placing all of your components into a secondary
movie and then loading that one in using your preloader. The best you
could do in the old component way of doing things would be to use the
#initclip statement to specify the order of instantiation but with
classes that can instantiate other classes this has been removed. Also,
this still wouldn't solve your problem.

Regards,
Patrick


__________/ BAY NEW MEDIA \____________________

Flash Application Development
& Technology Integration

http://www.baynewmedia.com/
email: contact at baynewmedia dot com
\______________________________________________


"SEPHlROTH" <webforumsuser@macromedia.com> wrote in
news:duvjgu$qua$1@forums.macromedia.com:

[quoted text, click to view]
AddThis Social Bookmark Button