all groups > flash (macromedia) > november 2004 >
You're in the

flash (macromedia)

group:

loading external jpegs


Re: loading external jpegs David Stiller
11/19/2004 7:00:38 PM
flash (macromedia):
If you know how to import external SWFs, you're fine, because it's
exactly the same thing. If you don't, you're still fine, because it's not
too hard at its most basic.

Create an empty movie clip, drag it to the Stage. Give it an instance
name via the Properties panel (let's say "loader").

From a frame in the main timeline, invoke the MovieClip.loadMovie()
method on that empty clip. That is to say ...

loader.loadMovie("myExternalImage.jpg");

Done.

There are more sophisticated routes (see the MovieClipLoader class in
the ActionScript dictionary), but in a heartbeat, that's all there is to it.


David
stiller (at) quip (dot) net

loading external jpegs macron
11/19/2004 11:38:36 PM
aargh! i'm using flash mx and i'm trying to make a flash movie where the user
can click on thumbnail buttons to load external jpegs into a movie clip on the
screen. i've tried a couple of tutorials but they weren't so great. can
anyone recommend a really good online tutorial on the subject or break it down
for me? stumped as usual, macron.
AddThis Social Bookmark Button