asked on
ASKER
Adobe Flash (formerly Macromedia Flash) is a cross-platform multimedia and software platform used to embed animations, video, and interactive applications into web pages and desktop and mobile applications and games. Flash displays text, vector and raster graphics to provide animations, video games and applications. It allows streaming of audio and video, and can capture mouse, keyboard, microphone and camera input. The ActionScript programming language allows creation of interactive animations, video games, web applications, desktop applications and mobile applications.
TRUSTED BY
Below given is a sample for AS3 'z-index"
//
setChildIndex is the way to set the z-order
//
Jon
Eg:
import flash.display.Sprite;
import flash.events.MouseEvent;
var container:Sprite = new Sprite();
addChild(container);
var circle1:Sprite = new Sprite();
circle1.graphics.beginFill
circle1.graphics.drawCircl
circle1.addEventListener(M
var circle2:Sprite = new Sprite();
circle2.graphics.beginFill
circle2.graphics.drawCircl
circle2.addEventListener(M
var circle3:Sprite = new Sprite();
circle3.graphics.beginFill
circle3.graphics.drawCircl
circle3.addEventListener(M
container.addChild(circle1
container.addChild(circle2
container.addChild(circle3
addChild(container);
function clicked(event:MouseEvent):
var circle:Sprite = Sprite(event.target);
var topPosition:uint = container.numChildren - 1;
container.setChildIndex(ci
}