Imager
06-26-2005, 04:37 PM
Hi,
Not sure if this is simple stuff or not but I am new to Flash anyhow....
I am trying to dynamically load images into a movie, as in...
var file1 = "c:\\elmcroft\\web\\web projects\\elm gallery 2\\gallery\\landscape\\wiggly road2.jpg";
var file2 = "c:\\elmcroft\\web\\web projects\\elm gallery 2\\gallery\\architecture\\TheEye2.jpg";
var file3 = "c:\\elmcroft\\web\\web projects\\elm gallery 2\\gallery\\people\\emma2.jpg";
imageMC = this.createEmptyMovieClip("Image", 1);
imageMC.loadMovie(file1);
this is obviously test code and when run it displays the first image on the stage fine, BUT when I run it with either file2 or file3 in the loadMovie call I get nothing just the background.
All filepaths are correct and I have tried putting the files in the same dir - with the same result.
All images open OK in Photoshop and all were edited in Photoshop before saving to their current dirs.
All files are of similar size ~40k.
I think that there must be something wrong with format of files 2 & 3 but what?
I'm using Flash MX - which I believe is AS1.
So can anyone tell me what else I can check or what is wrong?
Thanks for any help
MT
Not sure if this is simple stuff or not but I am new to Flash anyhow....
I am trying to dynamically load images into a movie, as in...
var file1 = "c:\\elmcroft\\web\\web projects\\elm gallery 2\\gallery\\landscape\\wiggly road2.jpg";
var file2 = "c:\\elmcroft\\web\\web projects\\elm gallery 2\\gallery\\architecture\\TheEye2.jpg";
var file3 = "c:\\elmcroft\\web\\web projects\\elm gallery 2\\gallery\\people\\emma2.jpg";
imageMC = this.createEmptyMovieClip("Image", 1);
imageMC.loadMovie(file1);
this is obviously test code and when run it displays the first image on the stage fine, BUT when I run it with either file2 or file3 in the loadMovie call I get nothing just the background.
All filepaths are correct and I have tried putting the files in the same dir - with the same result.
All images open OK in Photoshop and all were edited in Photoshop before saving to their current dirs.
All files are of similar size ~40k.
I think that there must be something wrong with format of files 2 & 3 but what?
I'm using Flash MX - which I believe is AS1.
So can anyone tell me what else I can check or what is wrong?
Thanks for any help
MT