This is a discussion on "Preloading Images" within the Flash & Multimedia Forum section. This forum, and the thread "Preloading Images are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Preloading Images
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Preloading Images
I am very new to flash/actionscript. I am currently trying to work on a photo gallery that can have can have image urls passed to it as variables. That part I figured out by adding extra params in the html.
What I would like to do is this. When someon clicks on the 'next image' button, the swf looks at an array on loads the next image. Does anyone know of a way to display a looping-Movie clip while the image is loading? Here is the specific opensource gallery that I am using. So whatever I do needs to be able to integrate with this. http://www.kirupa.com/developer/mx/photogallery.htm THANK YOU! |
|
|
|
|||
|
The method you are using, passing the variables to flash in the HTML, so you I assume that you have to reload the page each time to want to display a different image?
You can use loadMovie in flash to load an external SWF movie into the current movie. You can also target movieclips within your file so that the external SWF movie loads inside that movieclip. In this way, you can display a loading screen while the image is loading. I don't see how you could do that when you're reloading the whole page each time. |
|
|||
|
no, it is no reloading each time.
i am using an array to store the names of the images. like this
|
|
|||
|
You will notice that in the functions loadPhoto and loadMeter there are references to this.onEnterFrame.
You can make a similiar reference to call a function or do whatever you want. In this case it would be a good idea to create a movieclip that starts off empty and then has your animation afterwards. Then you can use tellTarget in the functions I mentioned above to tell that movieclip to goToAndPlay() the relevant part (the loading screen) and then when it has loaded it can fade out. |
![]() |
| Tags |
| preloading, images |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Preloading images, anything i should know? | Zonglars | JavaScript Forum | 8 | Jul 23rd, 2007 12:03 |
| preloading using a swf? | nikising | Flash & Multimedia Forum | 7 | May 23rd, 2007 08:42 |
| Preloading problems in IE | gotlisch | JavaScript Forum | 0 | Jun 2nd, 2006 09:33 |
| preloading CSS in a webpage | shahid | Web Page Design | 1 | Oct 1st, 2005 02:19 |
| preloading images into browser cache | gwx03 | Flash & Multimedia Forum | 3 | May 29th, 2004 16:58 |