<?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: Using JSFL to create auto-buttons in Flash</title>
	<atom:link href="http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/</link>
	<description>Adobe, Flash, Flex, AIR, Technology</description>
	<lastBuildDate>Wed, 28 Jul 2010 13:21:51 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: michael</title>
		<link>http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/comment-page-1/#comment-7764</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Fri, 30 Jan 2009 01:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/#comment-7764</guid>
		<description>Or,

you could make a movie clip, and then on its parent stage click, choose button and track as button.

It will be a movieclip where frame 1 is up, 2 is over, 3 is down and 4 is your hit. I last did this today.</description>
		<content:encoded><![CDATA[<p>Or,</p>
<p>you could make a movie clip, and then on its parent stage click, choose button and track as button.</p>
<p>It will be a movieclip where frame 1 is up, 2 is over, 3 is down and 4 is your hit. I last did this today.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin_P</title>
		<link>http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/comment-page-1/#comment-5071</link>
		<dc:creator>Justin_P</dc:creator>
		<pubDate>Mon, 20 Oct 2008 20:30:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/#comment-5071</guid>
		<description>Nice work, Steven!
I added some space to the frames, locked the actions &amp; labels layers, and set button mode to TRUE to trigger the button behaviors.
&lt;code&gt;
if (fl.getDocumentDOM().selection.length &gt; 0)
{
        var mcName = prompt(&quot;BUTTON Name&quot;, &quot;&quot;);
        if (mcName != null)
        {
                var newMc = fl.getDocumentDOM().convertToSymbol(&quot;movie clip&quot;, mcName, &quot;top left&quot;);
                fl.getDocumentDOM().selection[0].name = mcName;
                fl.getDocumentDOM().enterEditMode(&quot;inPlace&quot;);
                var tl = fl.getDocumentDOM().getTimeline();
                tl.insertFrames(29);
                tl.addNewLayer(&quot;labels&quot;);
                tl.layers[tl.currentLayer].frames[0].name = &quot;_up&quot;;
				tl.insertKeyframe(9);
                tl.layers[tl.currentLayer].frames[9].name = &quot;_over&quot;;
				tl.insertKeyframe(19);
                tl.layers[tl.currentLayer].frames[19].name = &quot;_down&quot;;
				tl.layers[tl.currentLayer].locked = true;
                tl.addNewLayer(&quot;actions&quot;);
                tl.layers[tl.currentLayer].frames[0].actionScript = &quot;stop(); \r this.buttonMode = true;&quot;;
				tl.layers[tl.currentLayer].locked = true;
                fl.getDocumentDOM().exitEditMode();
        }
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Nice work, Steven!<br />
I added some space to the frames, locked the actions &amp; labels layers, and set button mode to TRUE to trigger the button behaviors.<br />
<code><br />
if (fl.getDocumentDOM().selection.length &gt; 0)<br />
{<br />
        var mcName = prompt("BUTTON Name", "");<br />
        if (mcName != null)<br />
        {<br />
                var newMc = fl.getDocumentDOM().convertToSymbol("movie clip", mcName, "top left");<br />
                fl.getDocumentDOM().selection[0].name = mcName;<br />
                fl.getDocumentDOM().enterEditMode("inPlace");<br />
                var tl = fl.getDocumentDOM().getTimeline();<br />
                tl.insertFrames(29);<br />
                tl.addNewLayer("labels");<br />
                tl.layers[tl.currentLayer].frames[0].name = "_up";<br />
				tl.insertKeyframe(9);<br />
                tl.layers[tl.currentLayer].frames[9].name = "_over";<br />
				tl.insertKeyframe(19);<br />
                tl.layers[tl.currentLayer].frames[19].name = "_down";<br />
				tl.layers[tl.currentLayer].locked = true;<br />
                tl.addNewLayer("actions");<br />
                tl.layers[tl.currentLayer].frames[0].actionScript = "stop(); \r this.buttonMode = true;";<br />
				tl.layers[tl.currentLayer].locked = true;<br />
                fl.getDocumentDOM().exitEditMode();<br />
        }<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: { aut0poietic } &#187; AutoButton JSFL</title>
		<link>http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/comment-page-1/#comment-1724</link>
		<dc:creator>{ aut0poietic } &#187; AutoButton JSFL</dc:creator>
		<pubDate>Thu, 12 Jun 2008 16:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/#comment-1724</guid>
		<description>[...] behave like buttons by adding the 3 frames, and labeling them &quot;_up&quot;, &quot;_over&quot; and &quot;_down&quot; and made this cool JSFL script to do that for him automatically. I finally got around to trying out his script, and I needed a few things done differently. Here&#039;s [...]</description>
		<content:encoded><![CDATA[<p>[...] behave like buttons by adding the 3 frames, and labeling them &#034;_up&#034;, &#034;_over&#034; and &#034;_down&#034; and made this cool JSFL script to do that for him automatically. I finally got around to trying out his script, and I needed a few things done differently. Here&#039;s [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cor</title>
		<link>http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/comment-page-1/#comment-1293</link>
		<dc:creator>Cor</dc:creator>
		<pubDate>Sun, 30 Mar 2008 09:34:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/#comment-1293</guid>
		<description>Hi Steven,

I am VERY new at this but trying to learn.
I am trying your code but I guess I have to do some additional things to make it work. but what? Or can you give me an direction where I can find some basics about using JSFL? Thanks!
Cor</description>
		<content:encoded><![CDATA[<p>Hi Steven,</p>
<p>I am VERY new at this but trying to learn.<br />
I am trying your code but I guess I have to do some additional things to make it work. but what? Or can you give me an direction where I can find some basics about using JSFL? Thanks!<br />
Cor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Sacks</title>
		<link>http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/comment-page-1/#comment-1116</link>
		<dc:creator>Steven Sacks</dc:creator>
		<pubDate>Wed, 05 Mar 2008 18:56:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/#comment-1116</guid>
		<description>If you want to learn what the JSFL commands for actions in Flash are, open the History window and look at the source JSFL of any action you take, like changing the FPS of the movie.</description>
		<content:encoded><![CDATA[<p>If you want to learn what the JSFL commands for actions in Flash are, open the History window and look at the source JSFL of any action you take, like changing the FPS of the movie.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Rego</title>
		<link>http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/comment-page-1/#comment-1115</link>
		<dc:creator>Jorge Rego</dc:creator>
		<pubDate>Wed, 05 Mar 2008 10:55:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/2008/02/01/using-jsfl-to-create-auto-buttons-in-flash/#comment-1115</guid>
		<description>Hi Steven,

Great job! I&#039;m a flash newbie, but im getting to enjoy it, A LOT... and these .jsfl stuff really rocks.

In your code above i switched the line  tl.convertToKeyframes(0, 2); to  tl.convertToKeyframes(0, 3); because it wasn&#039;t creating the &quot;_over&quot; keyframe.

By now i know that we can access and edit the timeline, the frames, keyframes, etc... do you think it&#039;s possible to create one command that &quot;converts&quot; a previously 12 fps animation movie, to 24 fps?

Jorge</description>
		<content:encoded><![CDATA[<p>Hi Steven,</p>
<p>Great job! I&#039;m a flash newbie, but im getting to enjoy it, A LOT&#8230; and these .jsfl stuff really rocks.</p>
<p>In your code above i switched the line  tl.convertToKeyframes(0, 2); to  tl.convertToKeyframes(0, 3); because it wasn&#039;t creating the &#034;_over&#034; keyframe.</p>
<p>By now i know that we can access and edit the timeline, the frames, keyframes, etc&#8230; do you think it&#039;s possible to create one command that &#034;converts&#034; a previously 12 fps animation movie, to 24 fps?</p>
<p>Jorge</p>
]]></content:encoded>
	</item>
</channel>
</rss>
