View Full Version : Building things in flash
cryo.burned
August 7th, 2005, 11:57 PM
Im doing a thing where you "build" a watch.. you specify how much of each part you want and then submit... i think i need something simialar to if/else so that...
textbox.iron = "3" && silver = "50"
then textbox.result = "failed"
I need something like that.. but in actionscript
Templarian
August 8th, 2005, 12:14 AM
nice vb guy.
Because your new ill explain it like your really new.
Make a box. Select the box. Hit F8. Make it a button. Double click off to the left. click on it once. Copy this into the AS box in the middle bottom above the properties pannel. lol.
on(release){
//var name on text box and 3 should be saw as a number.
if(_root.iron == 3 and _root.siver == 50){
//output screen, but only can be seen when you hit CTRL+Enter
trace("Worked");
_root.worked = "Nice watch";
}else{
trace("Failed");
_root.worked = "No it failed";
}
cryo.burned
August 8th, 2005, 08:47 AM
Thanks it worked, but I used in a frame instead of a box....
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.