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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Qestion about Preloading Images ?

Status
Not open for further replies.

thebolt99

Programmer
Aug 28, 2001
14
US
Ok well I'm kind of new to this flash stuff (worked a bunch in director). But the question I have is this. I'm trying to load images into a movie that is going to be a EXE. Can I have the images (in a SWF file) on any web server ? or does it have to be in the same domain as the EXE ?? and second how do I do that ? I have looked at a few tutorials they just aren't helping. If you have any suggestions please let me know.

Thank you very much,

Erik
 
You can load an swf into a flash player (.exe). You can also have your 'image' .swf's in another directory so I assum you could have them anywhere so long as the path name is correct. just use the loadMovieNum action.





funkymonk B-)

rod@sameplanet.co.uk
[on it's way!]

********************
 
Sorry, didn't see you asked HOW to do it.

Heres the code for loading and un-loading movies. The fact that you will publish to .exe makes no difference.

on (release) {
loadMovieNum ("your_dir/your_movie.swf", 1);
}


And to unload:

on (release) {
unloadMovieNum (1);
}



funkymonk B-)

rod@sameplanet.co.uk
[on it's way!]

********************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top