reflex84 Posted May 13, 2009 Share Posted May 13, 2009 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 More sharing options...
Ingolme Posted May 13, 2009 Share Posted May 13, 2009 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 More sharing options...
Shade Posted May 17, 2009 Share Posted May 17, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.