Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Other Flash General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-25-2001, 11:59 PM   #1
Flo
Registered User
 
Join Date: Jan 2001
Location: Los Angeles
Posts: 24
Default

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
Flo is offline   Reply With Quote
Old 01-26-2001, 02:07 AM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

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.
Jesse is online now   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 07:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.