|
-
Problem checking if a image exist before loading another image
Hi guys , I'm new in flash and i'm having a problem using conditional statments in AS2. I'm trying to load a new image
depending on the image that is allready inside the movieclip. What seems to happen is that flash isn't verifying the
statments that I have in my code and so the images don't load correctly acorrding to the conditions. I have a movieclip within a movieclip, the first one has an instance name "photo" and the second one is named "empty".
I'm using this code in one button:
on (release) {
if (empty == "Assets/Scroll.png", _root.photo.empty){
loadMovie("Assets/Photo1.jpg", _root.photo.empty);
} else if (empty == "Assets/images.jpg", _root.photo.empty){
loadMovie("Assets/design.jpg", _root.photo.empty);
gotoAndPlay(6);
}
}
Would someone please help me, I'm loosing my mind 
Thanks!!
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
|