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.
Adobe Flash

Avatar of undefined
Last Comment
kikisu

8/22/2022 - Mon
Eaddy Barnes

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

ASKER
kikisu

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
Eaddy Barnes

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
kikisu

Thank you that was really helpful!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23