Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: Adobe Flash ForumAdobe Flash TutorialsAdobe Flash Video TutorialsWeb Streaming ForumAdobe Flash

Flash Application

Cow Forums : Adobe Flash
Flash Application
by Jeremey Shelton on Jul 31, 2008 at 5:52:46 pm

Is it possible to add a loader/progress bar to a Flash Application? If anyone could point me in the right direction I would appreciate it!

--
Jeremey @ DI

Respond to this post   •   Return to posts index

Re: Flash Application
by Sam Mattern on Jul 31, 2008 at 7:18:20 pm

http://www.kirupa.com/developer/mx/preloader.htm

This is written for mx. Kirupa should also have one for 8, and has one for AS3 also. Don't forget to check great resources like FlashKit, Actionscript.org, and Adobe's Flash forum.

Sam



Respond to this post   •   Return to posts index

Re: Flash Application
by jeremey shelton on Jul 31, 2008 at 8:26:39 pm

Thanks for the link. That tutorial was great. Problem is, I am trying to add a loader to a Flash Application. So this doesn't appear to be working properly. The Flash Application has 5 screens total. I would really like to show a loader/progress bar because as it is right now when you visit the site it sits there for several seconds before the page loads and fades in. Thanks again!

--
Jeremey @ DI

Respond to this post   •   Return to posts index


Re: Flash Application
by Sam Mattern on Jul 31, 2008 at 9:07:04 pm

I've run into the same problem. The loader bar doesn't show up right away. By the time it does it's mostly loaded. One thing that I've heard and subsequently tried is:
1. Put nothing but the loader on the first frame.
2. Start everything else on the second frame.
3. If you have any movie clips "linked" with the "export on first frame" checked, you have to make another change. In Publish Settings, under the Flash tab, Actionscript settings, set "Export frame for classes" to 2 instead of 1.

That method didn't seem to make a single difference for me. So, I temporarily gave up (didn't have a real need for it as of yet). However, now thinking about it, the way you should do it is have an essentially empty loader movie that uses the MovieClipLoader class to load your main movie. Then you can use the built in functionality to figure out percent loaded and display it. Try that.

Hope that helps.

Sam



Respond to this post   •   Return to posts index

Re: Flash Application
by Pieter Helsen on Jul 31, 2008 at 11:49:42 pm

What do you mean with application? Online or offline... What type of actionscript are you using? AS2 or AS3? If your new to flash but have some experience with programming languages like Java, AS3 is the way to go. Otherwise, AS2 is probably easier, though, you'll need to start learning AS3 at one point or other if you plan on using flash regularly in the future, so why not get it over with huh... :)

In each of these cases though, google is your friend. :)

AS2 Preloader

AS3 Preloader

Kind regards,
Pieter

General notice: from now on, I would like to ask everyone to put [AS2] or [AS3] (corresponding to the version of actionscript you are using on your project) in front of their post titles when the question is actionscript related! Please help us help you faster. Thank you.

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]