Jump to content

What Is The Actionscript 2 Code?


reflex84

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"); }

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...