how i make this cod in as3???

By HHR | Jul 4, 2009

actionscript3

hi there
i have a cod whit _root.link in as2 but i wish to make this in as3.

ActionScript Code:
on (rollOver) {     if (_root.link != 1)     {         gotoAndPlay(this._target + “:s1″);             } } on (rollOut, releaseOutside) {     if (_root.link != 1)     {         gotoAndPlay(this._target + “:s2″);             } } on (release) {     if (_root.link != 1)     {         if (_root.link)         {             gotoAndPlay(_parent[“item” + _root.link] + “:s2″);                 }         _root.link = 1;     } }

I understand that _root in as3 it’s MovieClip(root). i make the change and put the function and EventListener for the button and replace _root with root….but dont work …
i need to have the last activiti of a button that when i press another button the primari button CLICKed to make a action ( roll out) and the second button CLICKed ..gotoAndPlay("label1")

i read that i need to make a array with my button menu and that to place a IF …..

here it’s the menu http://s3.envato.com/files/68395/index.html

actionscript3

Please reply at our Forum

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

© 2007 ActionScript 3.0