Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-24-2007, 03:00 PM   #1
Registered User
Join Date: Sep 2007
Posts: 15
Default Preload many images from xml

I have scoured the net and found many tutorials and snippets for writing pre-loaders. However none of them cover what i am trying to achieve.

I am trying to load a list of images from an xml file on a webserver. Then preload all the images so that they can be called and used in an undefined order with no delay. This process would be similar to loading an entire gallery before showing a single image.

The aspect of this process i am having trouble with is holding the images before using them. I am happy loading an image and displaying it. However i wouldnt know how to store a number of images, an array etc???


benshole is offline   Reply With Quote
Old 10-26-2007, 05:27 PM   #2
Registered User
Join Date: Sep 2007
Posts: 15

Found a solution (i think!)
By referencing objects using array references i am able to create any number of dynamic movie clips to load things into using a moviecliploader.

for(i = 0; i<events.length; i++){
			trace("iconid = " + events[i][6]);
			icons[ events[i][6]].createEmptyMovieClip("img",getNextHighestDepth());
			icons[ events[i][6]].img._parent._visible = true;
			loader.loadClip(IconURL + events[i][6],icons[ events[i][6]].img);
That sorta thing
benshole is offline   Reply With Quote
Old 04-09-2008, 12:42 PM   #3
Registered User
Join Date: Apr 2008
Posts: 6

did you get a solution to this, I'm looking for something similar
daramwalsh is offline   Reply With Quote
Old 04-09-2008, 12:55 PM   #4
Banned by AS.org Staff
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,073

atomic is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preload Images Loaded Through XML joshbousel ActionScript 2.0 3 04-09-2008 12:54 PM
xml slideshow images Viriato ActionScript 2.0 5 09-10-2007 07:35 PM
preloading xml driven images FRM2999 ActionScript 2.0 1 07-18-2007 07:40 PM
Loading Random Images Via Xml soft_machine Other Flash General Questions 0 06-05-2007 01:38 PM
preload xml file alesspunk ActionScript 2.0 3 05-23-2007 09:50 PM

All times are GMT. The time now is 08:32 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.