<?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: addFrameScript with parameters</title>
	<atom:link href="http://www.dreaminginflash.com/2007/09/20/addframescript-with-parameters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dreaminginflash.com/2007/09/20/addframescript-with-parameters/</link>
	<description>There is no universally agreed-upon biological definition of dreaming</description>
	<lastBuildDate>Wed, 28 Jul 2010 11:46:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: prabhu</title>
		<link>http://www.dreaminginflash.com/2007/09/20/addframescript-with-parameters/comment-page-1/#comment-920</link>
		<dc:creator>prabhu</dc:creator>
		<pubDate>Mon, 11 May 2009 14:25:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=9#comment-920</guid>
		<description>Thanks a lot for your help! 
Its really good.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your help!<br />
Its really good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://www.dreaminginflash.com/2007/09/20/addframescript-with-parameters/comment-page-1/#comment-801</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Mon, 02 Feb 2009 23:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=9#comment-801</guid>
		<description>Do you know if there is a way to append the frame script to the return function in the Delegate class?
something like:
package
{

public class Delegate
{
  public static function create(handler:Function,...args):Function
  {
    return function(...innerArgs):void
    {
       handler.apply(this,innerArgs.concat(args));
       frame1()
    }
  }
 }
}

but frame1() would change depending on what frame you added the function to</description>
		<content:encoded><![CDATA[<p>Do you know if there is a way to append the frame script to the return function in the Delegate class?<br />
something like:<br />
package<br />
{</p>
<p>public class Delegate<br />
{<br />
  public static function create(handler:Function,&#8230;args):Function<br />
  {<br />
    return function(&#8230;innerArgs):void<br />
    {<br />
       handler.apply(this,innerArgs.concat(args));<br />
       frame1()<br />
    }<br />
  }<br />
 }<br />
}</p>
<p>but frame1() would change depending on what frame you added the function to</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Valadares</title>
		<link>http://www.dreaminginflash.com/2007/09/20/addframescript-with-parameters/comment-page-1/#comment-283</link>
		<dc:creator>Ivan Valadares</dc:creator>
		<pubDate>Wed, 16 Apr 2008 10:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=9#comment-283</guid>
		<description>i think what you want, is something like this :


for (var i:int=0;i &lt; mc.currentLabels.length;i++)
{				
     if (mc.currentLabels[i].name==&quot;frame_name&quot;)
     {          
       mc.addFrameScript(mc.currentLabels[i].frame-1,function);     
    }
}


Where mc is your movieclip and frame_name is your frame name, for more details check my previous post on frame labels: 
&lt;a href=&quot;http://www.dreaminginflash.com/2007/09/26/11/&quot; rel=&quot;nofollow&quot;&gt;http://www.dreaminginflash.com/2007/09/26/11/&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>i think what you want, is something like this :</p>
<p>for (var i:int=0;i &lt; mc.currentLabels.length;i++)<br />
{<br />
     if (mc.currentLabels[i].name==&#8221;frame_name&#8221;)<br />
     {<br />
       mc.addFrameScript(mc.currentLabels[i].frame-1,function);<br />
    }<br />
}</p>
<p>Where mc is your movieclip and frame_name is your frame name, for more details check my previous post on frame labels:<br />
<a href="http://www.dreaminginflash.com/2007/09/26/11/" rel="nofollow">http://www.dreaminginflash.com/2007/09/26/11/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: compelo</title>
		<link>http://www.dreaminginflash.com/2007/09/20/addframescript-with-parameters/comment-page-1/#comment-282</link>
		<dc:creator>compelo</dc:creator>
		<pubDate>Wed, 16 Apr 2008 07:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=9#comment-282</guid>
		<description>how about doing a something like
addFrameScript(&quot;frame_name&quot;,function)

can that be done?</description>
		<content:encoded><![CDATA[<p>how about doing a something like<br />
addFrameScript(&#8220;frame_name&#8221;,function)</p>
<p>can that be done?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo</title>
		<link>http://www.dreaminginflash.com/2007/09/20/addframescript-with-parameters/comment-page-1/#comment-253</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Fri, 28 Mar 2008 12:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=9#comment-253</guid>
		<description>Ah, very  nice. Didn&#039;t even think about using a Delegate since its AS3 but its so obvious now. Feels a little weird though :)</description>
		<content:encoded><![CDATA[<p>Ah, very  nice. Didn&#8217;t even think about using a Delegate since its AS3 but its so obvious now. Feels a little weird though <img src='http://www.dreaminginflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
