Jump to content

What Is The Actionscript 2 Code?


reflex84
 Share

Recommended Posts

Hi,I've been following the tutorial some more (see my original thread: http://w3schools.invisionzone.com/index.ph...mp;#entry137753 )... and I've come across another problem but I think its got to do with the fact that now that I know the tutorial is written for ActionScript 3 - whereas if you read above, you will see that I had to turn my ActionScript settings to ActionScript 2.The ActionScript he provided was:

on(release){	photos_mc.gotoAndPlay("img1");}

What is the above ActionScript for ActionScript 2???Let me know, thanks guys!

Link to comment
Share on other sites

That is Actionscript 2. If I'm not wrong, the code you're showing should be placed in the button object rather than the main timeline.Actionscript 3 is very very object-oriented.

Link to comment
Share on other sites

you need to correctly reference the button/MovieClip.code inside:this.onRelease = function {photos_mc.gotoAndPlay("img1");}code in parent/ main timeline:this.btn1.onRelease = function() {photos_mc.gotoAndPlay("img1"); }

Edited by Shade
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...