<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Accessing named MovieClips placed on the stage in Flash CS3 while staying true to OOP best-practices</title>
	<atom:link href="http://dispatchevent.org/mims/accessing-onstage-movieclips-in-flashcs3/feed/" rel="self" type="application/rss+xml" />
	<link>http://dispatchevent.org/mims/accessing-onstage-movieclips-in-flashcs3/</link>
	<description>Collective thoughts on Flash and Flex programming</description>
	<lastBuildDate>Mon, 22 Mar 2010 00:49:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mike</title>
		<link>http://dispatchevent.org/mims/accessing-onstage-movieclips-in-flashcs3/comment-page-1/#comment-160349</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 09 Oct 2009 16:01:53 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=345#comment-160349</guid>
		<description>Hey man,\n\nCS3 really isn&#039;t a bad tool for dev.  I use it everyday and can do a lot of code rather fast.</description>
		<content:encoded><![CDATA[<p>Hey man,\n\nCS3 really isn&#8217;t a bad tool for dev.  I use it everyday and can do a lot of code rather fast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Should I check it or not! Uncheck it, and leave a note &#171; Ramblings</title>
		<link>http://dispatchevent.org/mims/accessing-onstage-movieclips-in-flashcs3/comment-page-1/#comment-157369</link>
		<dc:creator>Should I check it or not! Uncheck it, and leave a note &#171; Ramblings</dc:creator>
		<pubDate>Wed, 02 Sep 2009 00:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=345#comment-157369</guid>
		<description>[...] Accessing named MovieClips placed on the stage in Flash CS3 while staying true to OOP best-practices... I happen to agree with Sarah that the best way to work is to uncheck the checkbox and declare all of your variables yourself. This is the only way that really enforces good practices when you are using classes behind your MovieClips in the library. [...]</description>
		<content:encoded><![CDATA[<p>[...] Accessing named MovieClips placed on the stage in Flash CS3 while staying true to OOP best-practices&#8230; I happen to agree with Sarah that the best way to work is to uncheck the checkbox and declare all of your variables yourself. This is the only way that really enforces good practices when you are using classes behind your MovieClips in the library. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://dispatchevent.org/mims/accessing-onstage-movieclips-in-flashcs3/comment-page-1/#comment-157314</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Mon, 31 Aug 2009 20:39:35 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=345#comment-157314</guid>
		<description>Have you found anyway to get this to work with classes that have optional parameters? I have a class that works perfectly in every way if i use addChild, but if i try to use this method for a stage instance i cannot override the default parameters of my class.</description>
		<content:encoded><![CDATA[<p>Have you found anyway to get this to work with classes that have optional parameters? I have a class that works perfectly in every way if i use addChild, but if i try to use this method for a stage instance i cannot override the default parameters of my class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozan</title>
		<link>http://dispatchevent.org/mims/accessing-onstage-movieclips-in-flashcs3/comment-page-1/#comment-146962</link>
		<dc:creator>Ozan</dc:creator>
		<pubDate>Mon, 04 May 2009 22:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=345#comment-146962</guid>
		<description>@Leo

what if I want to display several movie clips (taken from my library) on stage with for loop and assign each of them a unique name like mc1, mc2, mc3, etc.? How can I do that in AS3 and how can I access them for instance to change their position via for loop again?</description>
		<content:encoded><![CDATA[<p>@Leo</p>
<p>what if I want to display several movie clips (taken from my library) on stage with for loop and assign each of them a unique name like mc1, mc2, mc3, etc.? How can I do that in AS3 and how can I access them for instance to change their position via for loop again?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mims H Wright</title>
		<link>http://dispatchevent.org/mims/accessing-onstage-movieclips-in-flashcs3/comment-page-1/#comment-145709</link>
		<dc:creator>Mims H Wright</dc:creator>
		<pubDate>Wed, 22 Apr 2009 19:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=345#comment-145709</guid>
		<description>@Leo
I&#039;m not sure I understand the question exactly. If you have elements positioned on your stage manually, each one that you need to have specific access to needs an instance name. I suppose that you could work around this by walking through the children in the display list too. If you needed to execute something in a particular order, you could always just place references to all your child MCs into an array and step through them, but you&#039;d still need to give each one an instance name. e.g.
public var foo:MovieClip, bar:MovieClip, baz:MovieClip;
public var allMovieClips:Array;
// in your constructor...
allMovieClips = [foo, bar, baz];

Does that answer your question?</description>
		<content:encoded><![CDATA[<p>@Leo<br />
I&#8217;m not sure I understand the question exactly. If you have elements positioned on your stage manually, each one that you need to have specific access to needs an instance name. I suppose that you could work around this by walking through the children in the display list too. If you needed to execute something in a particular order, you could always just place references to all your child MCs into an array and step through them, but you&#8217;d still need to give each one an instance name. e.g.<br />
public var foo:MovieClip, bar:MovieClip, baz:MovieClip;<br />
public var allMovieClips:Array;<br />
// in your constructor&#8230;<br />
allMovieClips = [foo, bar, baz];</p>
<p>Does that answer your question?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://dispatchevent.org/mims/accessing-onstage-movieclips-in-flashcs3/comment-page-1/#comment-145694</link>
		<dc:creator>Leo</dc:creator>
		<pubDate>Wed, 22 Apr 2009 14:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=345#comment-145694</guid>
		<description>Great Post, Thank you, but I have a question, what if I have to have many hand-positioned mcs on stage and they all have to be populated in a specific order, do I have to declare each and every one of them individually in the class or is there a way to loop through them and populate them based on their instance names?</description>
		<content:encoded><![CDATA[<p>Great Post, Thank you, but I have a question, what if I have to have many hand-positioned mcs on stage and they all have to be populated in a specific order, do I have to declare each and every one of them individually in the class or is there a way to loop through them and populate them based on their instance names?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kofi</title>
		<link>http://dispatchevent.org/mims/accessing-onstage-movieclips-in-flashcs3/comment-page-1/#comment-140212</link>
		<dc:creator>Kofi</dc:creator>
		<pubDate>Sun, 01 Mar 2009 06:32:02 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=345#comment-140212</guid>
		<description>this was always driving me nuts(for more than 2 years)...i used to use public static vars only for name instances. good read..thanks</description>
		<content:encoded><![CDATA[<p>this was always driving me nuts(for more than 2 years)&#8230;i used to use public static vars only for name instances. good read..thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Westra</title>
		<link>http://dispatchevent.org/mims/accessing-onstage-movieclips-in-flashcs3/comment-page-1/#comment-125514</link>
		<dc:creator>Erik Westra</dc:creator>
		<pubDate>Fri, 12 Sep 2008 06:36:46 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=345#comment-125514</guid>
		<description>We currently have 2 ways of using Flash elements in our AS projects:

1. Embed the part

This only works if the part does not contain any components. When embedding the AS is removed, so simple stop actions are automatically done with frame labels.

2. Export to SWC

We give the MovieClip a specific class, set the &#039;export swc&#039; check and include the swc in the AS Project. We then can simply extend the MovieClip and add functionality.


Greetz Erik</description>
		<content:encoded><![CDATA[<p>We currently have 2 ways of using Flash elements in our AS projects:</p>
<p>1. Embed the part</p>
<p>This only works if the part does not contain any components. When embedding the AS is removed, so simple stop actions are automatically done with frame labels.</p>
<p>2. Export to SWC</p>
<p>We give the MovieClip a specific class, set the &#8216;export swc&#8217; check and include the swc in the AS Project. We then can simply extend the MovieClip and add functionality.</p>
<p>Greetz Erik</p>
]]></content:encoded>
	</item>
</channel>
</rss>
