Link to home
Start Free TrialLog in
Avatar of kikisu
kikisuFlag for United Kingdom of Great Britain and Northern Ireland

asked on

change my flash image viewer movieclip to a dynamic image viewer using AS3 (actionscript 3)

Hello,

I have made an image viewer to illustrate what I want here: http://www.nugrafik.com/viewer.html

This is just a movieclip animated on the timeline and I want to make a version that uses AS3 to call the images from a file. (there will be around 100 images)

so, i would like to write some AS3 to call images from a file with a time delay and keep the look where one image blurs into another.

please could someone give me an idea of how to start writing that?

Thank you very much.
Avatar of Eaddy Barnes
Eaddy Barnes
Flag of United States of America image

what type of file do you want to import the data from?

if your using xml the following code will import xml data
into flash for you.

var xmlDisplay:XML;
var xmlDisplayList:XMLList;
var xmlDisplayLoader:URLLoader=new URLLoader;
 
xmlDisplayLoader.load(new URLRequest("data/displayitems.xml"));
xmlDisplayLoader.addEventListener(Event.COMPLETE,xmlLoaded);
 
 
function xmlLoaded(event:Event):void {
	xmlDisplay=XML(event.target.data);
	trace(xmlDisplay);
	xmlDisplayList=xmlDisplay.children();
 
	
}

Open in new window

Avatar of kikisu

ASKER

Hi Greeneel,

Thanks for your answer, I was thinking of just having a normal file on the server I think i can work out how to get the images from the file but is it possible to write something in AS3 so that one image blurs into the next one called?

and how would you do a time delay between images?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Eaddy Barnes
Eaddy Barnes
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kikisu

ASKER

Thank you that was really helpful!