-
If statement problem
Hello - I've been stuck on this for 3 days now and I am hoping someone can solve my scripting broblem. Well I believe the problem lies in the script below. The script reisdes in a mc on the root. Once all items are placed on the wheel, gotoAndPlay(2); is suppose to kick in but nothing happens. I would be happy to show the .fla to who ever can help me. I really am strugging here.
if (0 != (0 != (Number(eval("/wheelOrangeO:OrangeO")) == 1) & 0 != (Number(eval("/wheelOrangeE:OrangeE")) == 1)) & 0 != (Number(eval("/wheelYellowO:YellowO")) == 1))
if (0 != (0 != (Number(eval("/wheelPurpleO:PurpleO")) == 1) & 0 != (Number(eval("/wheelPurpleE:PurpleE")) == 1)) & 0 != (Number(eval("/wheelYellowE:YellowE")) == 1))
if (0 != (0 != (Number(eval("/wheelGreenO:GreenO")) == 1) & 0 != (Number(eval("/wheelBlueO:BlueO")) == 1)) & 0 != (Number(eval("/wheelBlueE:BlueE")) == 1))
if (0 != (0 != (Number(eval("/wheelGreenE:GreenE")) == 1)) )
{
tellTarget("/wheel")
{
gotoAndPlay(2);
}
tellTarget("/variable")
{
gotoAndStop(3);
}
}
-
Dignitary
If the code is attached to a movieclip you have you have to call it within a function.
Actionscript Code:
onClipEvent(enterFrame){ //do stuff }
-
-
does trace(tellTarget("/wheel")); actually return the object you want?
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
|