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
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
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!
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 :)
Don't see what you're looking for? Try a search.
|