Groups | Blog | Home
all groups > flash actionscript > may 2006 >

flash actionscript : Create an image with ActionScript


kanag
5/18/2006 10:19:25 PM
How do you create an image with ActionScript? The image is located at an url
that is not guaranteed to be on the same server.

I would prefer something that is compatible with previous versions of the
Flash player.

If you could point me to some tutorial or show me how it is done.

Thanks
sampurtill
5/18/2006 11:23:19 PM
This is suuuuuuuuuuuuper basic, you just have a movieclip on the stage and the
URL of any image on the internet/local computer

function loadImage(imageUrl:String, holder_mc:MovieClip):Void{
holder_mc.loadMovie(imageUrl);
}

Fill the two parameters with the 1. image url and 2. movieclip that holds the
image

It will load the image into it. Much more in depth tutorials and stuff can be
found all over the place, just google it.

Sam
AddThis Social Bookmark Button