There is no such a thing as a item on stage without an instance name. If you did not create a name, ActionScript 3.0 will create a name for you. Find out how to trace this name and how to access the item, using it.
CLICK HERE FOR A COMPLETE ACTIONSCRIPT 3.0 CARTOON SMART TUTORIAL
HERE IS THE SOURCE CODE!
// Avraham Saltoun solutions at say-web dot com
// FREE to USE, COPY and DISTRIBUTE
var mySmile : Smile;
// the variable mySmile will contain
// a smile movie clip
//This will add 3 smiles
//next one another
for (var i: int =0; i <3; i++) {
mySmile = new Smile();
//this class was automatically created
// on previous tutorial
addChild (mySmile);
//this adds a smile to stage
mySmile.x = i*mySmile.width;
//this will position the smile next to previous
//This will give us the instance name
trace (mySmile.name);
}
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(getChildByName ("instance13"));
// this will remove the child with the name instance 13 from stage.
}






186 Responses to “Discovering and Referencing Instance Names”
Trackbacks/Pingbacks
Wikia…
Wika linked to this website…
ab346368@gmail.com…
I know there’s more to writing informational articles like this than typing some words. I get that you did a lot of work on this content. I think it’s impressive….
ab346368@gmail.com…
Your article has inspired me. It’s interesting, thoughtful, compelling and well-written. You are a very talented writer with great skills and original thoughts. Your viewpoints match mine in many ways….
ab346368@gmail.com…
I found this article one of the most thought-provoking I’ve ever read. The points you have made are excellent and I feel I’ve learned a little something by reading this….
ab346368@gmail.com…
I think this is a really good article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing….
ab346368@gmail.com…
You must have perfect timing. I was looking for an article on this same subject. Your post is such an exquisite article. The extensive detail and information fit the bill….
Online offshore bank account…
I intended to draft you the bit of remark to thank you very much once again for those offshore bank account marvelous methods you’ve shown in this article….
Apologize…
I would like to show my thanks to the writer just for bailing me out of this particular scenario %NAME% . Just after browsing through the search engines and seeing ideas that were not beneficial, I figured my life was gone %NAME% . Existing minus the s…
ab346368@gmail.com…
It’s good to see writing that is so good that you know the writer has done the homework on the subject. I am impressed with your insight and viewpoints on this topic. Thank a bunch….
Apologize…
I want to express my appreciation to you just for bailing me out of such a setting %NAME% . After exploring throughout the the net and obtaining methods which are not helpful, I figured my life was well over %NAME% . Being alive without the solutions t…
Nice job…
I’m writing to make you understand what a brilliant encounter our princess developed reading through your web page %NAME% . She figured out plenty of pieces, not to mention how it is like to possess a wonderful helping nature to let the mediocre ones …
ab346368@gmail.com…
We’re a group of volunteers and opening a new scheme in our community. Your site provided us with valuable info to paintings on. You have done an impressive job and our whole community shall be grateful to you….
ab346368@gmail.com…
Good scan, good points, a number of which I have learned along the manner additionally (humility, grace, layoff the controversial stuff). Can share with my colleagues at work as we begin blogging from a company perspective….
ab346368@gmail.com…
This article is fantastic! I really relate to the viewpoints you make. I plan to revisit your article so I can further process this information….
ab346368@gmail.com…
Your writer has presented the views about this subject in a very thoughtful and detailed manner. Thank you for publishing the article and giving me something to think about on this topic. This is primo….
ab346368@gmail.com…
This is an excellent article . I enjoyed reading it and am likely to reread it again soon so I can revisit some of the points that I want to consider….
ab346368@gmail.com…
This is the kind of article I love to find. I am extremely impressed with how well you researched this material. I think this is solid information and I agree….
Get The Best Prices For Your College Books…
[...]Here is a great Blog You may Find Interesting that we Encourage You[...]…
ab346368@gmail.com…
I read through your article and some of your readers’ comments. I agree with a lot of your content and concur with many of these comments on how well your material is written. Thank you….
ab346368@gmail.com…
I recently read some articles that were so dull and off center that I couldn’t abide finishing them. Your article is not one of those articles. I like your content….
ab346368@gmail.com…
Thank you for the entertaining article. It was both interesting and descriptive at the same time which is difficult to accomplish by one writer. Keep up the good quality work….
ab346368@gmail.com…
lol a couple of the reviews bloggers write are silly and unrelated, there are times i wonder whether they at all read the post before writing or whether they just look at the subject of the blog post and compose the very first thought that drifts to th…
ab346368@gmail.com…
I know there’s more to writing informational articles like this than typing some words. I get that you did a lot of work on this content. I think it’s impressive….
ab346368@gmail.com…
I believe writing is a true art form. When a writer can write awesome content like this for today’s readers I am amazed and pleased….
Yeahh!…
Thanks so much for giving everyone a very memorable opportunity to read articles and blog posts from here %NAME% . It’s always very pleasing plus stuffed with amusement for me and my office colleagues to visit your site a minimum of three times per we…
Dreary Day…
It was a dreary day here today, so I just took to piddeling around online and found…
Nice work…
I not to mention my guys have already been digesting the nice procedures located on your web page and then the sudden developed a horrible feeling I never thanked the site owner for them %NAME% . My young boys had been so happy to study them and have n…
Fine article…
What i do not realize is if truth be told how you are now not actually a lot more neatly-appreciated than you may be now. You’re so intelligent. You know thus considerably in terms of this subject, made me individually believe it from a lot of varied …
ab346368@gmail.com…
This is a great article! I like your ideas and your style. You have an uncanny ability to make the written word come to life….
ab346368@gmail.com…
This is simply outstanding reading. I love your original viewpoints. They have made me rethink some of the aspects of this subject matter and for that I thank you. Keep writing this kind of material….
ab346368@gmail.com…
Really nice style and wonderful subject matter, absolutely nothing else we need : D….
ab346368@gmail.com…
I have only one thing to say about your article. It’s fascinating content with fresh and sound ideas that fit many of my own views….
ab346368@gmail.com…
This is an excellent sample of good quality writing. You have made sound points with interesting content. This is really great work obviously written by a true talent! Thank you….
ab346368@gmail.com…
I don’t make it a habit to make comments on many articles, but this one deserves attention. I agree with the data you have written so eloquently here. Thank you….
ab346368@gmail.com…
This is likely the most informative article on this topic I’ve read lately. I agree and you’re on point. Congratulations for a job well done….
…[Trackback]…
[...]you make blogging glance http://relogios-relogios.net.br [...]…