Skip to main content
April 1, 2017
Question

Actionscript 3.0 to 2.0

  • April 1, 2017
  • 1 reply
  • 1841 views

Hi all, I am currently finishing up my ICT coursework, however I can't seem to get past this one issue. The issue occurs with the code I followed of a YouTube video, whereby the individual was using (ActionScript 3.0), however I need it in ActionScript 2.0. The objective is to make a photo gallery, where any image clicked, goes to the back of the pile. For example:

The YouTube Video encase anyone wishes to view it: Ultra Simple Flash Click-Through Photo Gallery with AS3! - YouTube

This is the ActionScript the individual Provided me with, any help with converting it to ActionScript 2.0 would be much appreciated:

master_mc.addEventListener(MouseEvent.MOUSE_DOWN, clickedF);
master_mc.buttonMode = true;

function clickedF(event:MouseEvent):void{
      master_mc.setChildIndex(event.target as MovieClip, numChildren-1);
}

Thanks

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
October 13, 2017

AS2 used a thing called swapDepths to get the effect you want. See this page for an example of how to use it:

Adobe Flash Platform * swapDepths (MovieClip.swapDepths method)