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
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
kikisu
Flag of United Kingdom of Great Britain and Northern Ireland image

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of kikisu
kikisu
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

Thank you that was really helpful!
Adobe Flash
Adobe Flash

Adobe Flash (formerly Macromedia Flash) is a cross-platform multimedia and software platform used to embed animations, video, and interactive applications into web pages and desktop and mobile applications and games. Flash displays text, vector and raster graphics to provide animations, video games and applications. It allows streaming of audio and video, and can capture mouse, keyboard, microphone and camera input. The ActionScript programming language allows creation of interactive animations, video games, web applications, desktop applications and mobile applications.

29K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo