• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Actionscript 3.0 to 2.0

Guest
Apr 01, 2017 Apr 01, 2017

Copy link to clipboard

Copied

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

TOPICS
ActionScript

Views

1.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 13, 2017 Oct 13, 2017

Copy link to clipboard

Copied

LATEST

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)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines