PDA

View Full Version : is this possible...?


Respy
08-05-2003, 09:27 AM
ok i want to update a variable after a certain even ie : click of a button.

eg: cash = 100 then after my click cash is now 150 but still the same variable , is this possible? if so how would i go about it. Thanks in advance , and help is greatly appreciated - Respy

Sualdam
08-05-2003, 09:38 AM
I'm confused :confused:

If it is as simple as it looks, then on the root timeline:cash = 100;then on the buttonon(release){
cash = 150;
// or cash +=50
}If the button is inside a movie clip:on(release){
_root.cash = 150;
// or _root.cash +=50
}You mustmean something else, though...

Respy
08-05-2003, 10:32 AM
i think thats it , im an extreme n00b up until this last week ive only used flash for movie style things...but thanks anyways :)