PDA

View Full Version : variable problems


Flo
01-25-2001, 11:59 PM
Im making a game in flash using simple only button. The user has to match body parts to the main image they belong to. The problem is this how do I set the variable for saw the arms, legs , and torso. On the main image I have
on (press) {
girl = = "eve";
}
so the variable is set to that image. Now they go on to the arms. What would be the script for that
on (press) {
if (girl=="eve") {
}
}
on (press) {
if (arm=="eve") {
}
}
this is what I have now but it dont work. Any help would be great thanks
tmjames1000@hotmail.com

Jesse
01-26-2001, 02:07 AM
No the script on your buttons should be:

on (press){
_root:girl = "eve"
}

then you should use the script that I provided on your other post, (with the double ==). see http://www.actionscripts.org/forums/showthread.php3?postid=916#post916

Cheers

Jesse