00:00
00:00
Newgrounds Background Image Theme

nuggetior just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Variable help 2006-08-11 23:31:14


There is a variable named helt.
onClipEvent (enterFrame) {
if (_root.variable.helt<1){
_root.gotoandstop(2)
}
}
It wont work. When the number gets below 1 it just keeps droping and does nothing.

Response to Variable help 2006-08-11 23:32:52


Wouldn't it be:

onClipEvent (enterFrame) {
if (_root.helt<1){
_root.gotoAndStop(2);
}
}

?

Response to Variable help 2006-08-11 23:33:29


do you have

helt=0;

on a load frame?

onClipEvent (enterFrame) {
if (_root.helt=<1){
_root.gotoandstop(2)
}
}

and try that


BBS Signature

Response to Variable help 2006-08-11 23:33:57


Yes you don't have _root.variable.helt just _root.helt
Strange isn't it?

Response to Variable help 2006-08-11 23:34:29


WTF? I tried that already but now it works! thx man

Response to Variable help 2006-08-11 23:37:24


one more thing, how do i get an existing number and put it in another text box?
like i.e Sip has 50 in it. How do I make that number come into rem??

Response to Variable help 2006-08-11 23:38:24


what is rem?


Games|1|2|3| Movies|1|2|

BBS Signature

Response to Variable help 2006-08-11 23:39:26


hmm.

What about this.

(_root.variable=(_root.variable2))

I don't know because I've nvever done anything liek that.

Response to Variable help 2006-08-11 23:39:44


At 8/11/06 11:37 PM, reaperman66610 wrote: one more thing, how do i get an existing number and put it in another text box?
like i.e Sip has 50 in it. How do I make that number come into rem??

if you name the textbox "rem"

rem.text = Sip;

Response to Variable help 2006-08-11 23:40:53


thx. Reaper out

Response to Variable help 2006-08-11 23:43:03


At 8/11/06 11:39 PM, Hornby wrote: hmm.

What about this.

(_root.variable=(_root.variable2))

I don't know because I've nvever done anything liek that.

Hey the script I made up actually works. I just tried it.

Response to Variable help 2006-08-11 23:44:35


At 8/11/06 11:43 PM, Hornby wrote: Hey the script I made up actually works. I just tried it.

_root.variable= _root.variable2; would work just fine.

Response to Variable help 2006-08-11 23:54:22


I just messed around with flash and this is what I found out.

on(release){
_root.variable=(_root.variable2)
}
//Var2 equals var1

on(release){
_root.var1=(_root.var2)+(_root.var3)
}
//var1=the sum of var2 and var3

on(release){
_root.var1=(_root.var2)*2
}
//var1=double the amount of var2. the * stands for x and just change the number to anything you want

Response to Variable help 2006-08-12 00:10:11


I'll show you what I mean. Click

Top left block is the started. One next to it shows the same number as the one next to it. The one at the bottom adds up both those numbers above and the one on the far right X2 the number at the bottom