| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jul 2005
Posts: 9
|
Hey Guys!
I have a flash file loading several external files. I'm facing two problems: 1. **and the more important 1* Although I am loading several images, I want the preloader to be for all of them together - using a listener. 2. I want to load the images for use in the next scene, not the preloading scene, therefore I need to store them in a way that I can call them through ActionScript later on, something like Linkage, except I'm adding the Linkage in runtime. I know how to create a preloader for one image at a time using a Movie Clip listener, but I want the preloader to show progress of the total amount of bytes loaded from all external images, not just one. Plus - if I use a MovieClip loader, the images will be loaded to a movie clip on the stage, but I want to call them using Action Script from a different scene in the movie. Thank you very much, Yuval Karmi ![]() |
|
|
|
|
|
#2 |
|
it's all about patience
Join Date: Jun 2005
Location: istanbul
Posts: 5,859
|
First of all, whatever you load into a swf file remains in the cache so the next time you're loading them you won't be waiting for more than some milliseconds.
Secondly, what I would do would be to: (X = the number of jpg's) 1. create X empty movie clips 2. create X listeners & MovieClipLoader's 3. set the alpha of each to zero 4. create a (number) variable like: var loadedFiles:Number = 0; 5. within "onProgress" event handler of each, write a function like: ActionScript Code:
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jul 2005
Posts: 9
|
First of all Thank you for posting. I really appreciate it.
In this case, the preloader will finish loading one picture, then restart again from 0 - 100, loading the next picture. I don't want that, I want something like this: Say I have 10 images, then if 1/10 images was loaded, the preloader will show 10 percent done. Thank you again! Yuval ![]() |
|
|
|
|
|
#4 |
|
it's all about patience
Join Date: Jun 2005
Location: istanbul
Posts: 5,859
|
That's why I wrote "bar._xscale += percent/X" and all that.
|
|
|
|
|
|
#5 |
|
it's all about patience
Join Date: Jun 2005
Location: istanbul
Posts: 5,859
|
I'm trying to do what I suggested. I'll write back when I succeed
![]() |
|
|
|
|
|
#6 |
|
it's all about patience
Join Date: Jun 2005
Location: istanbul
Posts: 5,859
|
Okay here is the file.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| External Preloader that opens main-movie in html-frame | dabuel | ActionScript 2.0 | 0 | 08-15-2006 04:08 PM |
| Preloader for external jpg only works 90% of time | funfunfun | ActionScript 1.0 (and below) | 6 | 09-09-2005 02:04 PM |
| Again a question on preloader for external swf. Help please. | mx-guest2004 | ActionScript 1.0 (and below) | 4 | 10-17-2004 09:49 PM |
| Flash 5 - preloader and animation for external swf's | the chad | ActionScript 1.0 (and below) | 2 | 03-27-2004 09:39 PM |
| Preloader problem with external movies | ian27 | Simple Stuff (Newbies) | 16 | 04-17-2003 01:06 AM |