{"id":3,"date":"2007-09-16T17:40:13","date_gmt":"2007-09-17T00:40:13","guid":{"rendered":"http:\/\/www.nayansavla.com\/blog\/?p=3"},"modified":"2007-09-25T22:10:05","modified_gmt":"2007-09-26T05:10:05","slug":"why-isnt-removemovieclip-isnt-working","status":"publish","type":"post","link":"https:\/\/www.nayansavla.com\/blog\/?p=3","title":{"rendered":"Why isn&#8217;t removeMovieclip isn&#8217;t working"},"content":{"rendered":"<p style=\"text-align: justify\">This is one of the most annoying problems i faced, its very easy to attach movies on stage using following,\u00a0<\/p>\n<pre lineno=\"1\" style=\"text-align: justify\" lang=\"actionscript\">myMovie.attachMovie(\"movName\",\"newName\",myMovie.getNextHighestDepth());\u00a0<\/pre>\n<pre lineno=\"1\" style=\"text-align: justify\" lang=\"actionscript\">\u00a0<\/pre>\n<p style=\"text-align: justify\">all is fine with this and no matter how many movies i add they will be on stage but when i want to remove the movies from stage i just do this<\/p>\n<pre lineno=\"1\" style=\"text-align: justify\" lang=\"actionscript\">myMovie.newName.removeMovieClip();<\/pre>\n<pre lineno=\"1\" style=\"text-align: justify\" lang=\"actionscript\">\u00a0<\/pre>\n<p style=\"text-align: justify\">however this line of code won&#8217;t remove the movie if the depth is greater than 1048575, usually this could happen while using version 2 components.It is really well documented by Adobe but hey who reads documentation unless necessary. I avoided this problem by just using fixed numbers for depths and it has worked beautifully. It might look simple but when this problem hits you it can be really frustrating.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is one of the most annoying problems i faced, its very easy to attach movies on stage using following,\u00a0 myMovie.attachMovie(&#8220;movName&#8221;,&#8221;newName&#8221;,myMovie.getNextHighestDepth());\u00a0 \u00a0 all is fine with this and no matter how many movies i add they will be on stage but when i want to remove the movies from stage i just do this myMovie.newName.removeMovieClip(); [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"class_list":["post-3","post","type-post","status-publish","format-standard","hentry","category-as-20","category-actionscript"],"_links":{"self":[{"href":"https:\/\/www.nayansavla.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nayansavla.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nayansavla.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nayansavla.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nayansavla.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3"}],"version-history":[{"count":0,"href":"https:\/\/www.nayansavla.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nayansavla.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nayansavla.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nayansavla.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}