
{"id":382,"date":"2008-07-30T10:33:31","date_gmt":"2008-07-30T09:33:31","guid":{"rendered":"http:\/\/www.matthijskamstra.nl\/blog\/?p=382"},"modified":"2008-09-02T10:36:39","modified_gmt":"2008-09-02T09:36:39","slug":"from-as2-to-as3-where-did-it-go-attachmovie","status":"publish","type":"post","link":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/","title":{"rendered":"From AS2 to AS3 &#8211; Where did it go &#8211; attachMovie"},"content":{"rendered":"<p>Where did <code>attachMovie<\/code> go in AS3?<\/p>\n<p>Once I started using <code>attachMovie<\/code> instead <code>duplicateMovieClip<\/code> my AS2 life became a lot easier.<\/p>\n<p>What has the <a href=\"http:\/\/livedocs.adobe.com\/flex\/2\/langref\/migration.html\">ActionScript 2.0 Migration<\/a> to say about this subject:<\/p>\n<table width='95%' border=\"1\" cellpadding=\"0\" cellspacing=\"0\">\n<tr style='background-color:silver'>\n<td><strong>ActionScript&nbsp;2.0&nbsp;<\/strong><\/td>\n<td><strong>ActionScript&nbsp;3.0&nbsp;<\/strong><\/td>\n<td><strong>Comments<\/strong><\/td>\n<\/tr>\n<tr style='background-color:#F5F5F5'>\n<td>attachMovie() Method<\/td>\n<td>Removed<\/td>\n<td> In ActionScript 3.0, use addChild() to add child display objects.<\/td>\n<\/tr>\n<\/table>\n<p>Removed&#8230; wtf? and you can read the documentation till you are old and gray, but you won&#8217;t find a answer there.<\/p>\n<p>In AS2 I know 3 ways to attach a movie to the stage:<\/p>\n<p><!--more--><\/p>\n<h3>AS2<\/h3>\n<p><em>For this example you need a movieClip in the library (<em>right-click<\/em> >> Linkage&#8230; >> activate &#8216;Export for ActionScript&#8217;) with the Indentifier &#8216;<code>ImageMovie<\/code>&#8216; and this AS2 code placed in the root<\/em><\/p>\n<div class='highlight'>I used the name &#8216;<code>ImageMovie<\/code>&#8216; because it also use in an example from <a href=\"http:\/\/www.brendandawes.com\/\">Brendan Dawes<\/a> that I use in AS3 examples. And to keep the movieClip the same through all code I kept the name.<\/div>\n<p><b>example #1<\/b><br \/>\n[as]\/\/ #1<br \/>\nthis.attachMovie(&#8216;ImageMovie&#8217;, &#8216;ImageMovie2&#8217; , 10);<br \/>\n[\/as]<\/p>\n<p><b>example #2<\/b><br \/>\n[as]\/\/ #2<br \/>\nvar myImageMovie:MovieClip = this.attachMovie(&#8216;ImageMovie&#8217;, &#8216;ImageMovie2&#8217; , 10);<br \/>\nmyImageMovie._x = 20;<br \/>\nmyImageMovie._y = 20;<br \/>\n[\/as]<\/p>\n<p><b>example #3<\/b> (my personal favorite)<br \/>\n[as]\/\/ #3<br \/>\nthis.attachMovie(&#8216;ImageMovie&#8217;, &#8216;ImageMovie2&#8217; , 10 , {_x:20,_y:20});<br \/>\n[\/as]<\/p>\n<p>Oke, now in AS3:<\/p>\n<h3>AS3<\/h3>\n<p><em>For this example you need a movieClip in the library (<em>right-click<\/em> >> Linkage&#8230; >> activate &#8216;Export for ActionScript&#8217;) with the Indentifier &#8216;<code>ImageMovie<\/code>&#8216; and this AS3 code placed in the root<\/em><\/p>\n<p><b>example #1<\/b><br \/>\n[as]\/\/ #1<br \/>\nthis.addChild(new ImageMovie());<br \/>\n[\/as]<\/p>\n<p><b>example #2<\/b><br \/>\n[as]\/\/ #2<br \/>\nvar myImageMovie = this.addChild(new ImageMovie());<br \/>\nmyImageMovie.x = 20;<br \/>\nmyImageMovie.y = 20;<br \/>\n[\/as]<\/p>\n<div class=\"update\"><strong>Update #1:<\/strong> I&#8217;m using this a lot these days, so I will let you see how I use it now<\/div>\n<p><b>example #2a<\/b><br \/>\n[as]\/\/ #2a<br \/>\nvar myImageMovie:ImageMovie = new ImageMovie();<br \/>\nmyImageMovie.x = 20;<br \/>\nmyImageMovie.y = 20;<br \/>\nthis.addChild (myImageMovie);<br \/>\n[\/as]<\/p>\n<p><b>example #3<\/b><br \/>\nThis code is a copy of the code from <a href=\"http:\/\/www.brendandawes.com\">brendandawes.com<\/a> and you should visit  <a href=\"http:\/\/www.brendandawes.com\/code\/as3-for-lazy-bastards-like-me\">as3 for lazy bastards (like me)<\/a><\/p>\n<p>you need a AS file with the name &#8220;ImageMovie.as&#8221; with this code in there<br \/>\n[as]<br \/>\n\/\/ #3<br \/>\npackage {<\/p>\n<p>\timport flash.display.MovieClip;<\/p>\n<p>\tpublic class ImageMovie extends MovieClip {<\/p>\n<p>\t\tfunction ImageMovie(xPos:Number = 0,yPos:Number = 0) {<br \/>\n\t\t\tthis.x = xPos;<br \/>\n\t\t\tthis.y = yPos;<br \/>\n\t\t}<br \/>\n\t}<br \/>\n}<br \/>\n[\/as]<br \/>\nand you need this code in the timeline, because the movieClip in the Library is linked to this AS file you can talk to it directly:<br \/>\n[as]<br \/>\n\/*<br \/>\nHow to &#8220;attachMovie&#8221; in as3<br \/>\n*\/<br \/>\nvar imageMC:ImageMovie = new ImageMovie(50,50);<br \/>\nthis.addChild(imageMC);<br \/>\n[\/as]<br \/>\nand the it will work the same as option 3 in AS2<\/p>\n<p>Here you can find another explanation about this subject: by <a href=\"http:\/\/www.airtightinteractive.com\/news\/?p=78\">Airtight Interactive<\/a><\/p>\n<p>I hope this will clear up some issues you have, happy coding \ud83d\ude09 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript&nbsp;2.0&nbsp; ActionScript&nbsp;3.0&nbsp; Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed&#8230; wtf? and you can read the documentation [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,172,3],"tags":[68,39,97,408,114,168],"class_list":["post-382","post","type-post","status-publish","format-standard","hentry","category-as3","category-as3-migration","category-flash","tag-actionscript","tag-as2","tag-as2-to-as3","tag-as3","tag-from-as2-to-as3","tag-migration"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0 ActionScript 3.0 Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed... wtf? and you can read the documentation\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Matthijs Kamstra\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"[mck] | a polymath zapper\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"From AS2 to AS3 \u2013 Where did it go \u2013 attachMovie | [mck]\" \/>\n\t\t<meta property=\"og:description\" content=\"Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0 ActionScript 3.0 Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed... wtf? and you can read the documentation\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2008-07-30T09:33:31+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2008-09-02T09:36:39+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"From AS2 to AS3 \u2013 Where did it go \u2013 attachMovie | [mck]\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0 ActionScript 3.0 Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed... wtf? and you can read the documentation\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/07\\\/30\\\/from-as2-to-as3-where-did-it-go-attachmovie\\\/#article\",\"name\":\"From AS2 to AS3 \\u2013 Where did it go \\u2013 attachMovie | [mck]\",\"headline\":\"From AS2 to AS3 &#8211; Where did it go &#8211; attachMovie\",\"author\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#organization\"},\"datePublished\":\"2008-07-30T10:33:31+01:00\",\"dateModified\":\"2008-09-02T10:36:39+01:00\",\"inLanguage\":\"en-US\",\"commentCount\":6,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/07\\\/30\\\/from-as2-to-as3-where-did-it-go-attachmovie\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/07\\\/30\\\/from-as2-to-as3-where-did-it-go-attachmovie\\\/#webpage\"},\"articleSection\":\"AS3, AS3 migration, Flash, Actionscript, AS2, AS2 to AS3, AS3, from AS2 to AS3, migration\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/07\\\/30\\\/from-as2-to-as3-where-did-it-go-attachmovie\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/#listItem\",\"name\":\"Flash\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/#listItem\",\"position\":2,\"name\":\"Flash\",\"item\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/as3\\\/#listItem\",\"name\":\"AS3\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/as3\\\/#listItem\",\"position\":3,\"name\":\"AS3\",\"item\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/as3\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/07\\\/30\\\/from-as2-to-as3-where-did-it-go-attachmovie\\\/#listItem\",\"name\":\"From AS2 to AS3 &#8211; Where did it go &#8211; attachMovie\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/#listItem\",\"name\":\"Flash\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/07\\\/30\\\/from-as2-to-as3-where-did-it-go-attachmovie\\\/#listItem\",\"position\":4,\"name\":\"From AS2 to AS3 &#8211; Where did it go &#8211; attachMovie\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/category\\\/flash\\\/as3\\\/#listItem\",\"name\":\"AS3\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#organization\",\"name\":\"[mck]\",\"description\":\"a polymath zapper\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/\",\"name\":\"Matthijs Kamstra\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/07\\\/30\\\/from-as2-to-as3-where-did-it-go-attachmovie\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/06ff22a1197b6624946e5a3377184f11ddc00ac06a6f1d2311b9d2072bdf61b1?s=96&d=wavatar&r=g\",\"width\":96,\"height\":96,\"caption\":\"Matthijs Kamstra\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/07\\\/30\\\/from-as2-to-as3-where-did-it-go-attachmovie\\\/#webpage\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/07\\\/30\\\/from-as2-to-as3-where-did-it-go-attachmovie\\\/\",\"name\":\"From AS2 to AS3 \\u2013 Where did it go \\u2013 attachMovie | [mck]\",\"description\":\"Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0 ActionScript 3.0 Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed... wtf? and you can read the documentation\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/2008\\\/07\\\/30\\\/from-as2-to-as3-where-did-it-go-attachmovie\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2008-07-30T10:33:31+01:00\",\"dateModified\":\"2008-09-02T10:36:39+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/\",\"name\":\"[mck]\",\"description\":\"a polymath zapper\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.matthijskamstra.nl\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"From AS2 to AS3 \u2013 Where did it go \u2013 attachMovie | [mck]","description":"Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0 ActionScript 3.0 Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed... wtf? and you can read the documentation","canonical_url":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/#article","name":"From AS2 to AS3 \u2013 Where did it go \u2013 attachMovie | [mck]","headline":"From AS2 to AS3 &#8211; Where did it go &#8211; attachMovie","author":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/#organization"},"datePublished":"2008-07-30T10:33:31+01:00","dateModified":"2008-09-02T10:36:39+01:00","inLanguage":"en-US","commentCount":6,"mainEntityOfPage":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/#webpage"},"isPartOf":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/#webpage"},"articleSection":"AS3, AS3 migration, Flash, Actionscript, AS2, AS2 to AS3, AS3, from AS2 to AS3, migration"},{"@type":"BreadcrumbList","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.matthijskamstra.nl\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/#listItem","name":"Flash"}},{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/#listItem","position":2,"name":"Flash","item":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/as3\/#listItem","name":"AS3"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/as3\/#listItem","position":3,"name":"AS3","item":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/as3\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/#listItem","name":"From AS2 to AS3 &#8211; Where did it go &#8211; attachMovie"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/#listItem","name":"Flash"}},{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/#listItem","position":4,"name":"From AS2 to AS3 &#8211; Where did it go &#8211; attachMovie","previousItem":{"@type":"ListItem","@id":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/as3\/#listItem","name":"AS3"}}]},{"@type":"Organization","@id":"https:\/\/www.matthijskamstra.nl\/blog\/#organization","name":"[mck]","description":"a polymath zapper","url":"https:\/\/www.matthijskamstra.nl\/blog\/"},{"@type":"Person","@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author","url":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/","name":"Matthijs Kamstra","image":{"@type":"ImageObject","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/06ff22a1197b6624946e5a3377184f11ddc00ac06a6f1d2311b9d2072bdf61b1?s=96&d=wavatar&r=g","width":96,"height":96,"caption":"Matthijs Kamstra"}},{"@type":"WebPage","@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/#webpage","url":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/","name":"From AS2 to AS3 \u2013 Where did it go \u2013 attachMovie | [mck]","description":"Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0 ActionScript 3.0 Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed... wtf? and you can read the documentation","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/#breadcrumblist"},"author":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/author\/admin\/#author"},"datePublished":"2008-07-30T10:33:31+01:00","dateModified":"2008-09-02T10:36:39+01:00"},{"@type":"WebSite","@id":"https:\/\/www.matthijskamstra.nl\/blog\/#website","url":"https:\/\/www.matthijskamstra.nl\/blog\/","name":"[mck]","description":"a polymath zapper","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.matthijskamstra.nl\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"[mck] | a polymath zapper","og:type":"article","og:title":"From AS2 to AS3 \u2013 Where did it go \u2013 attachMovie | [mck]","og:description":"Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0 ActionScript 3.0 Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed... wtf? and you can read the documentation","og:url":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/","article:published_time":"2008-07-30T09:33:31+00:00","article:modified_time":"2008-09-02T09:36:39+00:00","twitter:card":"summary_large_image","twitter:title":"From AS2 to AS3 \u2013 Where did it go \u2013 attachMovie | [mck]","twitter:description":"Where did attachMovie go in AS3? Once I started using attachMovie instead duplicateMovieClip my AS2 life became a lot easier. What has the ActionScript 2.0 Migration to say about this subject: ActionScript 2.0 ActionScript 3.0 Comments attachMovie() Method Removed In ActionScript 3.0, use addChild() to add child display objects. Removed... wtf? and you can read the documentation"},"aioseo_meta_data":{"post_id":"382","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2024-12-11 09:02:54","updated":"2025-06-04 09:04:48","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.matthijskamstra.nl\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/\" title=\"Flash\">Flash<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/as3\/\" title=\"AS3\">AS3<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tFrom AS2 to AS3 \u2013 Where did it go \u2013 attachMovie\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.matthijskamstra.nl\/blog"},{"label":"Flash","link":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/"},{"label":"AS3","link":"https:\/\/www.matthijskamstra.nl\/blog\/category\/flash\/as3\/"},{"label":"From AS2 to AS3 &#8211; Where did it go &#8211; attachMovie","link":"https:\/\/www.matthijskamstra.nl\/blog\/2008\/07\/30\/from-as2-to-as3-where-did-it-go-attachmovie\/"}],"_links":{"self":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/comments?post=382"}],"version-history":[{"count":3,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/382\/revisions"}],"predecessor-version":[{"id":474,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/382\/revisions\/474"}],"wp:attachment":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media?parent=382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/categories?post=382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/tags?post=382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}