FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

[Flash] ActionScript - Logical Error or Something else?

 


NewGuyinTown
I decided to play around with Flash and ended spending ALOT of time trying to figure why this code doesn't work.

Code:

stop();
this.right_btn.onRelease = function() {
   gotoAndStop("Network");
}


I kept clicking it and goes nowhere... -_-
Qweertyy
Did you type it by hand or did you press the 'buttons' to the left?
Stubru Freak
NewGuyinTown wrote:
I decided to play around with Flash and ended spending ALOT of time trying to figure why this code doesn't work.

Code:

stop();
this.right_btn.onRelease = function() {
   gotoAndStop("Network");
}


I kept clicking it and goes nowhere... -_-


I don't really know ActionScript, but isn't right_btn the right mouse button? So you should right-click. (I think I'm saying something really stupid now)
NewGuyinTown
Qweertyy wrote:
Did you type it by hand or did you press the 'buttons' to the left?


I typed it by hand. I even used the target button (the button on the top part of the ActionScript Panel) to point the object which I wanted to add a function to.

Stubru Freak wrote:

I don't really know ActionScript, but isn't right_btn the right mouse button? So you should right-click. (I think I'm saying something really stupid now)


right_btn is a name I gave to my image file, which I converted to a button.

Well I got it to work now by adding ActionScripts to the button, but don't know why that the code above doesn't work. I am assigning a function to the right_btn's onRelease function. The syntax is right, but nothing is happening during the run-time.
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.