<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Is the MovieClip.onLoad Event Broken?</title>
	<link>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken</link>
	<description>Luck is the residue of good design.</description>
	<pubDate>Tue, 06 Jan 2009 12:39:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-68270</link>
		<pubDate>Tue, 31 Jul 2007 00:22:52 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-68270</guid>
					<description>&lt;strong&gt;To Laurie ...&lt;/strong&gt;

Wow, I think this might be the longest I've taken to reply to a comment.  Sorry about that!  And thanks for the happy comment.  :-D  Glad to help.

&lt;strong&gt;To davies ...&lt;/strong&gt;

Thanks to you too!  :)</description>
		<content:encoded><![CDATA[<p><strong>To Laurie &#8230;</strong></p>
<p>Wow, I think this might be the longest I&#8217;ve taken to reply to a comment.  Sorry about that!  And thanks for the happy comment.  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' />   Glad to help.</p>
<p><strong>To davies &#8230;</strong></p>
<p>Thanks to you too!  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: davies</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-67419</link>
		<pubDate>Fri, 27 Jul 2007 08:21:20 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-67419</guid>
					<description>this site is very resource full!</description>
		<content:encoded><![CDATA[<p>this site is very resource full!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Laurie</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-6809</link>
		<pubDate>Wed, 29 Nov 2006 21:10:41 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-6809</guid>
					<description>I just can't say how grateful I am for seeing this.  I have been struggling to see how MovieClip.onLoad might work from the timeline (and thus find a way to avoid onClipEven(Load)) for 18 months or more.  A big thank you.</description>
		<content:encoded><![CDATA[<p>I just can&#8217;t say how grateful I am for seeing this.  I have been struggling to see how MovieClip.onLoad might work from the timeline (and thus find a way to avoid onClipEven(Load)) for 18 months or more.  A big thank you.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: NSurveyor</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-5502</link>
		<pubDate>Sun, 12 Nov 2006 06:37:17 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-5502</guid>
					<description>This turned out to be rather useful. On the KEYFRAMER forum, it was inquired if you can put code (like an event handler assignment) before actually instantiating a clip. Using the space hack, I managed to get it to work.

http://www.keyframer.com/forum/viewtopic.php?t=392</description>
		<content:encoded><![CDATA[<p>This turned out to be rather useful. On the KEYFRAMER forum, it was inquired if you can put code (like an event handler assignment) before actually instantiating a clip. Using the space hack, I managed to get it to work.</p>
<p><a href='http://www.keyframer.com/forum/viewtopic.php?t=392' rel='nofollow'>http://www.keyframer.com/forum/viewtopic.php?t=392</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-5069</link>
		<pubDate>Tue, 07 Nov 2006 15:41:55 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-5069</guid>
					<description>myIP,

Interesting question.  Honestly, I'm not sure how to answer it.  The &lt;code&gt;MovieClip.onLoad&lt;/code&gt; event is dispatched when the movie clip in question first appears on the timeline (even virtually, if the clip is attached at runtime).  So it's not really a matter of ensuring that child clips have loaded &amp;#8212; they &quot;ship with the SWF,&quot; so to speak; you can count on it they'll load &amp;#8212; it's really more about initializing a movie clip when it first appears.  If you wanted to ensure that child clips were &lt;em&gt;initialized&lt;/em&gt; ... that might be something.  But even there, depending on the complexity of your app, you might just dispatch your own event &lt;code&gt;onInit&lt;/code&gt;, say, if it came to that.</description>
		<content:encoded><![CDATA[<p>myIP,</p>
<p>Interesting question.  Honestly, I&#8217;m not sure how to answer it.  The <code>MovieClip.onLoad</code> event is dispatched when the movie clip in question first appears on the timeline (even virtually, if the clip is attached at runtime).  So it&#8217;s not really a matter of ensuring that child clips have loaded &mdash; they &#8220;ship with the SWF,&#8221; so to speak; you can count on it they&#8217;ll load &mdash; it&#8217;s really more about initializing a movie clip when it first appears.  If you wanted to ensure that child clips were <em>initialized</em> &#8230; that might be something.  But even there, depending on the complexity of your app, you might just dispatch your own event <code>onInit</code>, say, if it came to that.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: myIP</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-4969</link>
		<pubDate>Mon, 06 Nov 2006 18:01:34 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-4969</guid>
					<description>I understand that you need to associate the symbol with a class, but is it possible to associate the parent’s symbol instead of the child’s symbol? For an example, if I had a symbol named “Engine” that had 4 instances of “Piston” symbols inside of it and wanted to make sure that all 4 pistons are loaded before assigning them with code, would it be safe to just associate the Engine symbol with a class?  I think this question is starting to head out of scope with the article of yours and is heading into the scope of how Flash loads symbols, which would be a nice subject for an article :D</description>
		<content:encoded><![CDATA[<p>I understand that you need to associate the symbol with a class, but is it possible to associate the parent’s symbol instead of the child’s symbol? For an example, if I had a symbol named “Engine” that had 4 instances of “Piston” symbols inside of it and wanted to make sure that all 4 pistons are loaded before assigning them with code, would it be safe to just associate the Engine symbol with a class?  I think this question is starting to head out of scope with the article of yours and is heading into the scope of how Flash loads symbols, which would be a nice subject for an article <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-4235</link>
		<pubDate>Wed, 25 Oct 2006 14:52:21 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-4235</guid>
					<description>Woo hoo!  This is funny, considering my &quot;devil in the blah blah blahs&quot; remark.  It's those darned details, I tell ya!  I don't know how I messed up those spaces.</description>
		<content:encoded><![CDATA[<p>Woo hoo!  This is funny, considering my &#8220;devil in the blah blah blahs&#8221; remark.  It&#8217;s those darned details, I tell ya!  I don&#8217;t know how I messed up those spaces.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: eRez</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-4234</link>
		<pubDate>Wed, 25 Oct 2006 14:41:35 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-4234</guid>
					<description>now it works 4 me!! :-)
thanks,
eRez</description>
		<content:encoded><![CDATA[<p>now it works 4 me!! <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
thanks,<br />
eRez
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: David Stiller</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-4226</link>
		<pubDate>Wed, 25 Oct 2006 13:07:01 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-4226</guid>
					<description>eErez,

&lt;blockquote&gt;doesn’t work for me :-(&lt;/blockquote&gt;

Two issues, here.  First, a mistake on my part.  For some reason, a number of words got mashed together in this article (spaces arbitrarily missing), which NSurveyor discovered.  I thought I'd caught them all, but there was still one in the code that goes inside the class.  The word &quot;functiononLoad&quot; should have been &quot;function onLoad&quot; (I've since corrected the article).

Second, you changed the location of the file.  ;)  You correctly linked to &lt;code&gt;mx.utils.FixOnLoad&lt;/code&gt; in your &lt;kbd&gt;Linkage...&lt;kbg&gt; setting, but that package would also need to go into the class, then.  This existing code ...

&lt;pre&gt;&lt;code&gt;class FixOnLoad extends MovieClip {&lt;/code&gt;&lt;/pre&gt;

... would become ...

&lt;pre&gt;&lt;code&gt;class mx.utils.FixOnLoad extends MovieClip {&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>eErez,</p>
<blockquote><p>doesn’t work for me <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p></blockquote>
<p>Two issues, here.  First, a mistake on my part.  For some reason, a number of words got mashed together in this article (spaces arbitrarily missing), which NSurveyor discovered.  I thought I&#8217;d caught them all, but there was still one in the code that goes inside the class.  The word &#8220;functiononLoad&#8221; should have been &#8220;function onLoad&#8221; (I&#8217;ve since corrected the article).</p>
<p>Second, you changed the location of the file.  <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   You correctly linked to <code>mx.utils.FixOnLoad</code> in your <kbd>Linkage&#8230;<kbg> setting, but that package would also need to go into the class, then.  This existing code &#8230;</p>
<pre><code>class FixOnLoad extends MovieClip {</code></pre>
<p>&#8230; would become &#8230;</p>
<pre><code>class mx.utils.FixOnLoad extends MovieClip {</code></pre>
]]></content:encoded>
				</item>
	<item>
		<title>by: eRez</title>
		<link>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-4216</link>
		<pubDate>Wed, 25 Oct 2006 07:43:52 +0000</pubDate>
		<guid>http://www.quip.net/blog/2006/flash/actionscript-20/is-movieclip-onload-broken#comment-4216</guid>
					<description>doesn't work for me :-(
first - as this class might be handy in many cases, i thought why have it available only for my current project instead of having it available for all my future projects as well?  so i saved the as file (after i copy-pasted your code into it as is) in &quot;C:\Documents and Settings\user\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx\utils&quot; and named it 'FixOnLoad.as', then linked my movie clip in the library to 'mx.utils.FixOnLoad'.  when i tested my movie i got the following errors:

**Error** C:\Documents and Settings\user\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx\utils\FixOnLoad.as: Line 1: The class being compiled, 'FixOnLoad', does not match the class that was imported, 'mx.utils.FixOnLoad'.
     class FixOnLoad extends MovieClip {

**Error** C:\Documents and Settings\user\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx\utils\FixOnLoad.as: Line 2: A member attribute was used incorrectly.
       public functiononLoad():Void {}

**Error** C:\Documents and Settings\user\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx\utils\FixOnLoad.as: Line 3: A member attribute was used incorrectly.
     }

so just to make sure, i saved my as file in the same folder as my fla file (changed the linkage only to 'FixOnLoad'), and now got only the 2nd and 3rd errors i had before.
where did i go wrong?

ps - just for the record, your 'Low down dirty trick' did the work :-)</description>
		<content:encoded><![CDATA[<p>doesn&#8217;t work for me <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /><br />
first - as this class might be handy in many cases, i thought why have it available only for my current project instead of having it available for all my future projects as well?  so i saved the as file (after i copy-pasted your code into it as is) in &#8220;C:\Documents and Settings\user\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx\utils&#8221; and named it &#8216;FixOnLoad.as&#8217;, then linked my movie clip in the library to &#8216;mx.utils.FixOnLoad&#8217;.  when i tested my movie i got the following errors:</p>
<p>**Error** C:\Documents and Settings\user\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx\utils\FixOnLoad.as: Line 1: The class being compiled, &#8216;FixOnLoad&#8217;, does not match the class that was imported, &#8216;mx.utils.FixOnLoad&#8217;.<br />
     class FixOnLoad extends MovieClip {</p>
<p>**Error** C:\Documents and Settings\user\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx\utils\FixOnLoad.as: Line 2: A member attribute was used incorrectly.<br />
       public functiononLoad():Void {}</p>
<p>**Error** C:\Documents and Settings\user\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx\utils\FixOnLoad.as: Line 3: A member attribute was used incorrectly.<br />
     }</p>
<p>so just to make sure, i saved my as file in the same folder as my fla file (changed the linkage only to &#8216;FixOnLoad&#8217;), and now got only the 2nd and 3rd errors i had before.<br />
where did i go wrong?</p>
<p>ps - just for the record, your &#8216;Low down dirty trick&#8217; did the work <img src='http://www.quip.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
