FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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.
Related topics
Flash MX
PHP, MySQL and Flash
Loading Pages?
if() and else(): Help needed!
Need vb.net or Flash ActionScript Help!
Flash ActionScript
Looking for flash/ActionScript jobs...700+ frih$
Flash Actionscript One song vs multiples MovieClips?
Flash/Actionscript.
Flash ActionScript 2.0 Verical Animated Menu Problem
need help with flash actionscript and xml!
Tutorial: How to create flash drop down menus and site navig
Problems installing flash catalyst cs5
Getting Fatal Error in php mysqli
Reply to topic    Frihost Forum Index -> Scripting -> Others

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