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:

, , , ,

3,260 Responses to “Smile: The Complete Add and Remove Child Method ActionScript 3.0 Video Tutorial”

  1. Money emails, make money online, cash Says:

    Generally I do not learn post on blogs, but I would like to say that this write-up very pressured me to take a look at and do it! Your writing taste has been surprised me. Thank you, quite great article.

  2. Food Pyramid Site Says:

    What sets a good writer apart from a great one is knowing how to put thoughts into understandable sentences. You have managed to do this with your article. Good job.

  3. search for friends on facebook Says:

    I like the way you wrote this article. I do hope you continue to write more articles like these and touch on more interesting points.

  4. Black Handbag Says:

    Thank you for your commitment to good writing. Your use of persuasive content impresses me. I like your views and concur many points. Please continue to put out great work.


Trackbacks/Pingbacks

  1. Tumblr article…

    I saw someone writing about this on Tumblr and it linked to…

  2. Sites we Like……

    [...] Every once in a while we choose blogs that we read. Listed below are the latest sites that we choose [...]……

  3. again. there are now a lot of…

    healthy foods and herbs that are becoming popular for their metabolism boosting benefits. this means that you don’t have to starve yourself to lose weight; you just have to choose the right foods and beverages. metabolism boosting herbs include green …

  4. Digg this…

    While checking out DIGG today I noticed this…

  5. [...]The information mentioned in the article are some of the best available [...]……

    [...]below you’ll find the link to some sites that we think you should visit[...]……

  6. 866-879-0179 says:

    Bored at work…

    I like to browse in various places on the web, regularly I will just go to Digg and follow thru…

  7. Awesome website…

    [...]the time to read or visit the content or sites we have linked to below the[...]……

  8. mlb picks says:

    [...]The information mentioned in the article are some of the best available [...]……

    [...]below you’ll find the link to some sites that we think you should visit[...]……

  9. [...]the time to read or visit the content or sites we have linked to below the[...]……

    [...]here are some links to sites that we link to because we think they are worth visiting[...]……

  10. You should check this out…

    [...] Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a look, whoa did one learn about Mid East has got more problerms as well [...]……

  11. Websites worth visiting…

    [...]here are some links to sites that we link to because we think they are worth visiting[...]……

  12. Ricky Gerdel says:

    Superb website…

    [...]always a big fan of linking to bloggers that I love but don’t get a lot of link love from[...]……

  13. Gems form the internet…

    [...]very few websites that happen to be detailed below, from our point of view are undoubtedly well worth checking out[...]……

  14. Websites you should visit…

    [...]below you’ll find the link to some sites that we think you should visit[...]……

  15. Tumblr article…

    I saw a writer writing about this on Tumblr and it linked to…

Leave a Reply

Security Code:

Free PageRank Checker

$7.49 .Com! Score Savings Cartoon Smart Tutorials

oDesk Certified Action Script Programmer oDesk Certified Adobe Flash CS3 Designer oDesk Certified Adobe Photoshop 6.0 Designer

3,036
Unique Visitors
Previous 30 Days
Powered By Google Analytics