|
-
Help needed with a loadMovie, external jpeg problem
Hello all,
I've been having problems with loadMovie using an empty movie clip to load an external jpeg located in the root directory of my files.
I have a gallery made from a movieclip called "images".
Within this movieclip I have several movieclips called Image_1, Image_2 and so forth.
In the Image_1 movieclip I have yet another movieclip called "loader_mc1" and some AS2.0 code on it :
onClipEvent (load) {
loader_mc1.loadMovie("image1.jpg");
}
For some reason I keep getting "Error opening URL : "file:url to the directory I'm using(same one as the swf file)"
The jpg is in the correct directory, I just don't get it, I've double checked all instance names, everything, just doesn't make sense...
Any ideas?? Thx in advance
-
Senior Member
You could try this.loadMovie("image1.jpg");
I think it could be scope issue. From what I read it goes as follow:
images>image_1>loader_mc1<AS code on this MC
I think your current code is looking for loader_mc1>loader_mc1 (movieclip)
Or, if the above works, then just put the code outside of loader_mc1, like so:
images>image_1<put original AS code here
Hope that makes sense and works
-
Hey Steven FN,
Thx for your quick reply.
Your post DOES make sense...
I've tried out your ideas but I get the same error message...
I'll keep trying, in the meantime if you get any ideas...
Thanx anyways,
Cheerz
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|