Know what I can't seem to find online? A tut for loading external images. No fancy fades, just loading an external jpg to an swf file. Does anyone know the actionscripting for that?
ex. I am creating a site with a gallery in it. The gallery will have thumbs that will have small pics that when clicked, go to a pop up html window with the big picture.
If I load each thumbnail as a separate swf, what would be the actionscript on the thumb swf to call the exteral jpg?
For the life of me,I cannot seem to find the answer for this. Am I am not a big enough actionscript guru (there, I said it) to figure it out.
Anyone?
P 
shortest tute evah..
loadMovie("my.jpg",_root);
OK there mister guru,
Now that it is working, I cannot get it to load into a container movie on the main page... And can I get to to work in a button?
So far we have:
images in a folder on a website.
a swf file that calls one of the images via actionscript.
Now how about:
loading the image swf into a container movie (or button preferrable) in a main movie)
Whenever I try it, I always get an error.
whats the error you are getting?
heres something simple you can use
button.onPress = function() { _root.pic.loadmovie(picname) }
I seem to be getting an even handler error.
Would the actionscript above be for the button? I'm not understanding it, or maybe we are misunderstanding each other.
I would like the thumbnail image to be a button on the main movie so that when clicked, it can open a new html window with the full picture in it. I want the thumbnail to load externally so my client can change the pictures himself without having to know Flash at all, and so the site will load quicker.
If anyone else can think of an easier way to do this, I am all ears!
So basically, I am thinking (tell me if there is an easier way please) I have a main movie, then a gallery that is loaded when called upon, and then the images that are loaded when the gallery movie is loaded. I suppose I could just have all the images load in the gallery huh?
But they need to be external, and they need to be buttons.
Anyone?
P 
Javascript for page..
var ImgArray = ("image1.jpg","image2.jpg");
function popupwindow (imgIdx) { cImage=imgArray(imgIdx); window.open (cImage,"newwindow","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=100,height=100"); } function writeSwf () { document.write(''); document.write(''); writeSwf ();
You use 'writeSwf' to embed your Flash movie with the names of the images appended to the querystring
You then parse the QS in flash and create a like array of image names. It is this array that we use internally to build the thumbs and set the value to the link..
getURL ("javascript:popupwindow (imgIdx)");
well that is sort of it in a rotten nutshell. Can't keep my eyes open any longer.. sleepy time.
ok, in your main movie you will have a mc , say container, then you will load say gallery.swf into container. In your gallery.swf on a seperate layer create actions. Have your buttons in a mc. then you do what the script ontop does. loadMovie("my.jpg",button_mc.containerinbutton);
Hope this helps