Smile: The Complete Add and Remove Child Method ActionScript 3.0 Video Tutorial

Tue, Oct 20, 2009

ActionScript

On this tutorial as usual we start from scratch, we create a symbol, and from this movie clip a class is exported to ActionScript. We add and remove the item from stage using add and remove child ActionScript method..

HERE IS THE SOURCE CODE!

//The ActionScript 3.0 Remove Child Method Tutorial
// Avraham Saltoun: solutions at say-web dot com
// FREE to USE, COPY and DISTRIBUTE

var mySmile : Smile = new Smile();
// the variable mySmile will contain
// a smile movie clip

addChild(mySmile);
//this will place a smile
//on our empty stage

remove_btn.addEventListener(MouseEvent.CLICK, removeSmile);
// removeSmile is a function we will create
// that removes the movie clip from stage

function removeSmile (event:MouseEvent):void {

removeChild(mySmile);
// this will remove the movie clip from stage
}

// thanks for watching !

Related Articles:

, , , ,

One Response to “Smile: The Complete Add and Remove Child Method ActionScript 3.0 Video Tutorial”


Leave a Reply

You must be logged in to post a comment.

My name is Avraham Saltoun, and I live in Jerusalem, Middle East. I am currently on my mid  40's and I am a computer programming technician. Here you will find over one hundred quality video tutorials on Actionscript, and yes, I give online support for aspiring programmers, and pros as well, sharing screen on skype and delivering source code by email, click the button for live flash actionscript support now!

 
oDesk Certified Action Script Programmer
oDesk Certified Adobe Flash CS3 Designer
oDesk Certified Adobe Photoshop 6.0 Designer
Skype Me™!

$7.49 .Com! Score Savings Cartoon Smart Tutorials


1,260
Unique Visitors
Previous 30 Days
Powered By Google Analytics