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.
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.
Wouldn't it be:
onClipEvent (enterFrame) {
if (_root.helt<1){
_root.gotoAndStop(2);
}
}
?
do you have
helt=0;
on a load frame?
onClipEvent (enterFrame) {
if (_root.helt=<1){
_root.gotoandstop(2)
}
}
and try that
Yes you don't have _root.variable.helt just _root.helt
Strange isn't it?
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??
hmm.
What about this.
(_root.variable=(_root.variable2))
I don't know because I've nvever done anything liek that.
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;
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.
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.
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
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