all groups > flash actionscript > march 2005 >
You're in the

flash actionscript

group:

Need help with loading images within a symbol/flash movie


Need help with loading images within a symbol/flash movie Alliancepaintball
3/4/2005 11:36:31 PM
flash actionscript:
OK. So I'm working on a flash site, and I would like images within windows I
have made (symblols) to load up the second you enter the page.

So here is what I need to know.

How to get an image to load up inside of a box/symbol

&

How to have it automatically do it without rolling over it or anything of that
sort.
Re: Need help with loading images within a symbol/flash movie kglad
3/5/2005 12:35:10 AM
attached to frame 1 of your main timeline you can use:

_root.createEmptyMovieClip("holderMC",1);
Re: Need help with loading images within a symbol/flash movie =Slayer=
3/5/2005 12:36:51 AM
If you want to load the images from an external source, here is the code you
can use:

loadMovie("YOURURLHERE", targetMC);

This will load the image specified in the URL into the symbol you specify
(targetMC)

Also, if I am not mistaken, you can only load jpg format images.

hope this helps
p3m
Re: Need help with loading images within a symbol/flash movie Alliancepaintball
3/5/2005 1:14:31 AM
Originally posted by: =Slayer=
If you want to load the images from an external source, here is the code you
can use:

loadMovie("YOURURLHERE", targetMC);

This will load the image specified in the URL into the symbol you specify
(targetMC)

Also, if I am not mistaken, you can only load jpg format images.

hope this helps
p3m

EDIT

lol the guy above beat me to it... oh well try whichever method you like



OK. I used this method, and it now removes my place holder, but doesn't load
the image.

Your way makes more sense to me, so any help you can provide would be great.
Thanks
Re: Need help with loading images within a symbol/flash movie Alliancepaintball
3/5/2005 2:18:54 AM
Originally posted by: kglad
attached to frame 1 of your main timeline you can use:

_root.createEmptyMovieClip("holderMC",1);
_root.holderMC.loadMovie("yourPIC.jpg");


I used this method, and the image appears, but it is always down and to the
right of the place holer its self. :/ What am I doing wrong?
Re: Need help with loading images within a symbol/flash movie Alliancepaintball
3/5/2005 2:24:47 AM
AddThis Social Bookmark Button