all groups > flash actionscript > august 2005 >
You're in the

flash actionscript

group:

preloader component xml help


preloader component xml help mantra|
8/21/2005 12:00:00 AM
flash actionscript: This may have already been answered elsewhere but i have looked to no avail.

what i am trying to do is add a preloader component that will show the
progress of images being loaded into the loader component. The images are
loaded into the loader component dynamically ( based off what a user picks the
relevant image is displayed ) and the image names, and location of the image
itself are kept in a xml file .. the loader etc are obviously connected to this.

How do i set the preloader to display load progress of each dynamic image
whenever a user picks one ?

Hope this is clear.
Thanks in advance
Re: preloader component xml help mantra|
8/21/2005 12:00:00 AM
in reply to the above: i have figured out how to do what i was asking above ...
by binding the content path of the progress bar to the loader via the bindings
in the component inspector.

i still do have a question though in relation the progress bar. how do i make
it dissapear after it's 100% loaded the image ?

Thanks again
Re: preloader component xml help myname70
10/1/2005 1:25:43 PM
Originally posted by: |mantra|
in reply to the above: i have figured out how to do what i was asking above
.... by binding the content path of the progress bar to the loader via the
bindings in the component inspector.

i still do have a question though in relation the progress bar. how do i make
it dissapear after it's 100% loaded the image ?

Thanks again

Hi, I have the same problem! Please advise how did you solve it!


Re: preloader component xml help mantra|
10/2/2005 12:00:00 AM
Hi,

see if this helps you .... i'm guessing you've already got the progress bar
working with the loader component .. and are just wanting to know how to make
it vanish when done then reappear and load for the next one ( if not let me
know )

on your loader component place the following actionscript ( replace pbar with
whatever your progress bar is called )

on (complete) {
this._parent.pbar.setVisible(false);
}

on (progress) {
this._parent.pbar.setVisible(true);
}

Let me know how you go with it :)
AddThis Social Bookmark Button