| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jan 2001
Location: Los Angeles
Posts: 24
|
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 |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2000
Location: Australia
Posts: 8,612
|
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/...id=916#post916 Cheers Jesse
__________________
Cheers Jesse Stratford ActionScript.org Cofounder Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org Please don't email or PM me Flash questions, that's what the Forums are for! ![]() Please don't rely on me reading my PMs either. Email me about important stuff. |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calling another variable with a variable? | Sh-0 | ActionScript 2.0 | 4 | 01-17-2006 07:25 PM |
| Math and Variable problems | ptrcklgrs | Other Flash General Questions | 3 | 12-28-2005 06:24 AM |
| Variable problems | fenn | Simple Stuff (Newbies) | 3 | 04-01-2005 03:33 PM |
| idiot variable question and Penner problems | thankyou | ActionScript 2.0 | 7 | 02-03-2004 03:32 AM |
| variable problems | Disjuku | ActionScript 1.0 (and below) | 4 | 01-03-2004 07:22 AM |