Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash movie... 1

Status
Not open for further replies.

GUJUm0deL

Programmer
Jan 16, 2001
3,676
US
Hi everyone, have a intersting question here...
I'm trying to learn Flash (again), and i'm using this tutorial: to do a image loader, now I go it to work, but the thing is this tutorial loads the JPG every time you click on the link, how can I make it so that the JPG are stored within the flash file??
The reason i'm asking this is I want to export the flash file as an .exe. or a .swf as itself, does that make sense??
Thanks...

Forget the Nobel Peace prize, I just want to take over the world!! [hammer]
 
if you really insist on having them stored then import them into the library and use attachMovie instead of loadMovie. dont forget that you must give them a linkage name from the library and use that name with attachMovie.
 
billwatson, thanks for the quick reply...
But can you like give me a short example??
How do I import them into the library?? And how do I make sure the linkage name is from the library??
Thanks...

Forget the Nobel Peace prize, I just want to take over the world!! [hammer]
 
File>Import to library


that loads in a file or files

drag a copy onto the stage and convert to movie clip (F8 movie clip ). delete it.

in the library right click the movie clip you created and select linkage, export for actionscript, first frame and give it a linkage name.


then where you have loadmovie("mt.jpg",clip);

change to attachmovie


note that unlike loadmovie you must use removeMovie to get rid of an image placed on stage using attachmovie


cant see why you are bothering when loadmovie is so much easier. you can still use loadmovie in an exe. just use fscommand.
 
billwatson, hmmm I may decide to leave the way it is...you do make a point, but you still get a star for the great (and prompt) help...[smile]
BTW, what is fscommand?? Is that an MAC command?? I'm trying to export as a .exe (File -> Publish Preview -> Projector) but that option is grayed out...
How can I export as a .exe file?? And if I do that, does the .exe file still reside in the same folder as the pics??
Thanks...

Forget the Nobel Peace prize, I just want to take over the world!! [hammer]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top