Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading images dynamically into .SWF file

Status
Not open for further replies.

ShonGill

Programmer
May 20, 2008
44
US
I have about 26 images (400kb each, 433X330 px) that I'm loading into my flash movie one at a time with the click of a thumbnail. The thumbs are linked using actionscript, not buttons and they have transitions that run at the thumbnail movie clip. You can see the movie demo here:
The movie works fine, and the images are loading into the movie using a very simple actionscript.

Code:
stop();
imageLOADER.loadMovie("photos/alphaGRAPHIC1.jpg");

The problem is that the images load very slowly into the movie. By the time the images pop up the first time the transition has already passed. The image blinks a few time and the whole movie is blinking more now because of the image loading. Is there any way to speed up this loading?

Is loading the images using an external XML file better? Because, I am planning to use an XML file to attach to an interface for uploading photos using an ASP.NET page. Can someone tell me if the loading time will improve using XML?

Also, I am wondering if there is a way to start loading the images into individual empty movieclips within the main timeline, before entering the frame. Then the intial load time is still short and the images get loaded into the movieclip container and are just waiting for some to click the thumb calling up the large picture.

I tried this several times last night and couldn't get it to work. Please help this may help someone that is running into a similar problem or is plainning to setup an ASP.NET to XML interface for updating FLASH content.
 
I would really appreciate if someone could make some suggestion. I have scowered the web and the changes sands of search engine results & forums. I would appreciate it if you could even point me int he right directions.


 
I haven't used flash in a while, but maybe add a pause till load function.
 
How would I go about adding a pause?


Yes, it is a modified template. I'm new to flash. I like actionscripting so far, and my roots are in ASP and ASP.NET. Templates seem to be the best way to get quality designs (not my strong suite) from talented developers. Why you ask?
 
Does adding this function mean that I will have to use the loadMovieClip command and something like the onInit() method?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top