|
-
Prid - Outing
If you want to load an image into Flash from an URL, and if you're using Actionscript 2, you should use loadMovie:
loadMovie("http://www.example.org/images/image2.jpg", _root.my_image_mc);
This will load image2.jpg, into the movieclip named my_image_mc. However, the Top-Left corner of the Image, will be positioned on the Registration Point of the movieclip (The cross in the middle of the movieclip, once you enter inside it)!
So, an example. Open a new Flash Actionscript 2 Document, make a rectangle, select it, hit F8 and convert it to Movieclip. Click on the movieclip, open up Properties Panel (CTRL+F3), give its Instance Name, a name of my_image. Double-click the Movieclip to enter inside it, select the rectangle inside it, and remove it, so that we have a blank movieclip. Now, double-click anywhere to get out of Movieclip, and paste this code on your Frame:
loadMovie("http://www.videogamesblogger.com/wp-content/uploads/2010/05/super-mario-galaxy-2-walkthrough-artwork.jpg", _root.my_image);
It may take a few seconds before the image appears, but that's just because it's loading. Place that blank movieclip, near your Top-Left corner - 'cause you'll see what I mean if you place it in center 
Btw, I made this Application if you're interested in moving loaded images, or even masking them: http://pridspeed.com/Crop%20Image%20v5.swf
Hope this helps you
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|