<?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: SWF Timeline Reconstruction with as3swf</title>
	<atom:link href="http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/feed/" rel="self" type="application/rss+xml" />
	<link>http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/</link>
	<description>Claus Wahlers on Application Development, Web Standards and what not</description>
	<lastBuildDate>Fri, 20 Jan 2012 00:48:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Claus Wahlers</title>
		<link>http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/comment-page-1/#comment-74029</link>
		<dc:creator>Claus Wahlers</dc:creator>
		<pubDate>Sat, 18 Jun 2011 15:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://wahlers.com.br/claus/blog/?p=167#comment-74029</guid>
		<description>Hi Jeroen,

to get the offsets (or, to be exact, the transformation matrix - characters can be positioned, rotated and scaled), you have to scan the SWF for PlaceObject tags, which contain this info. The DefineShape tags, which have the export functionality built in, only contain the raw shape, without any info on where that particular shape is actually placed on the display list.

If you have a very simple SWF, that only contains one frame with three shapes, it is sufficient to just scan for PlaceObject tags, check for the characterId, and grab the matrix.

This is, simplified, the structure you would find:
DefineShape id 1
DefineShape id 2
DefineShape id 3
PlaceObject characterId 1, depth 1, matrix
PlaceObject characterId 2, depth 2, matrix
PlaceObject characterId 3, depth 3, matrix

However, SWF can get very complex, shapes and other assets can be placed multiple times, and there are tweens, nested movieclips etc etc, so there&#039;s a lot more to consider.

HTH,
Claus.

PS: Thanks for the Wiki edit!</description>
		<content:encoded><![CDATA[<p>Hi Jeroen,</p>
<p>to get the offsets (or, to be exact, the transformation matrix &#8211; characters can be positioned, rotated and scaled), you have to scan the SWF for PlaceObject tags, which contain this info. The DefineShape tags, which have the export functionality built in, only contain the raw shape, without any info on where that particular shape is actually placed on the display list.</p>
<p>If you have a very simple SWF, that only contains one frame with three shapes, it is sufficient to just scan for PlaceObject tags, check for the characterId, and grab the matrix.</p>
<p>This is, simplified, the structure you would find:<br />
DefineShape id 1<br />
DefineShape id 2<br />
DefineShape id 3<br />
PlaceObject characterId 1, depth 1, matrix<br />
PlaceObject characterId 2, depth 2, matrix<br />
PlaceObject characterId 3, depth 3, matrix</p>
<p>However, SWF can get very complex, shapes and other assets can be placed multiple times, and there are tweens, nested movieclips etc etc, so there&#8217;s a lot more to consider.</p>
<p>HTH,<br />
Claus.</p>
<p>PS: Thanks for the Wiki edit!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeroen Keppens</title>
		<link>http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/comment-page-1/#comment-73723</link>
		<dc:creator>Jeroen Keppens</dc:creator>
		<pubDate>Wed, 15 Jun 2011 19:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://wahlers.com.br/claus/blog/?p=167#comment-73723</guid>
		<description>PS: I modified the script in the Objective-C page with fixes I did to make it work.</description>
		<content:encoded><![CDATA[<p>PS: I modified the script in the Objective-C page with fixes I did to make it work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeroen Keppens</title>
		<link>http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/comment-page-1/#comment-73721</link>
		<dc:creator>Jeroen Keppens</dc:creator>
		<pubDate>Wed, 15 Jun 2011 18:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://wahlers.com.br/claus/blog/?p=167#comment-73721</guid>
		<description>Hi,

I&#039;m not a flash/flex developer, so I might be missing a few things. I managed to download and install flash builder and create a small program to export an SWF file to obj-c files. So far so good.

The SWF file was an export from a Adobe Illustrator image. It contained 3 symbols: a square, a circle and a star. The SWF looked exactly like the AI. I got 3 UIView classes. I used these inside a test ios app and got to display the shapes. First a single shape, then the 3 shapes. Still: so far so good...

But there was a small issue: the 3 different shapes are all in the corner instead of the position they were originally placed. In some way it makes sense, but it&#039;s a bit annoying. 

I wonder if there is a way to get the original &quot;offsets&quot; from the swf using your library. 

Or am I doing something wrong in the export that I end up with 3 different symbols anyway.

Thanks for the advice and for the great tool!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;m not a flash/flex developer, so I might be missing a few things. I managed to download and install flash builder and create a small program to export an SWF file to obj-c files. So far so good.</p>
<p>The SWF file was an export from a Adobe Illustrator image. It contained 3 symbols: a square, a circle and a star. The SWF looked exactly like the AI. I got 3 UIView classes. I used these inside a test ios app and got to display the shapes. First a single shape, then the 3 shapes. Still: so far so good&#8230;</p>
<p>But there was a small issue: the 3 different shapes are all in the corner instead of the position they were originally placed. In some way it makes sense, but it&#8217;s a bit annoying. </p>
<p>I wonder if there is a way to get the original &#8220;offsets&#8221; from the swf using your library. </p>
<p>Or am I doing something wrong in the export that I end up with 3 different symbols anyway.</p>
<p>Thanks for the advice and for the great tool!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nid</title>
		<link>http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/comment-page-1/#comment-56076</link>
		<dc:creator>Nid</dc:creator>
		<pubDate>Mon, 11 Oct 2010 11:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://wahlers.com.br/claus/blog/?p=167#comment-56076</guid>
		<description>Hi Master,
Could you please add a example how to create a swf file with some timeline animation from scratch using as3swf API , this will be so great to start a web based Flash IDE</description>
		<content:encoded><![CDATA[<p>Hi Master,<br />
Could you please add a example how to create a swf file with some timeline animation from scratch using as3swf API , this will be so great to start a web based Flash IDE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Probert</title>
		<link>http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/comment-page-1/#comment-52300</link>
		<dc:creator>Lee Probert</dc:creator>
		<pubDate>Wed, 21 Jul 2010 15:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://wahlers.com.br/claus/blog/?p=167#comment-52300</guid>
		<description>I&#039;m so glad you&#039;re still looking into this Claus.</description>
		<content:encoded><![CDATA[<p>I&#8217;m so glad you&#8217;re still looking into this Claus.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fotios</title>
		<link>http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/comment-page-1/#comment-51754</link>
		<dc:creator>Fotios</dc:creator>
		<pubDate>Wed, 23 Jun 2010 05:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://wahlers.com.br/claus/blog/?p=167#comment-51754</guid>
		<description>Claus, not a problem. Like I said, I&#039;m working on translating some flash files into Objective C graphics-code for the iphone and your library has been extremely useful. 
Also, I found out that some swf&#039;s I&#039;m converting don&#039;t include the &quot;TagDefineShape&quot; tag, so the code breaks. Please let me know if I can help in any way to improve the library. It looks like I have to adapt the Objective-C conversion code for my needs. THANKS so much for your quick reply!</description>
		<content:encoded><![CDATA[<p>Claus, not a problem. Like I said, I&#8217;m working on translating some flash files into Objective C graphics-code for the iphone and your library has been extremely useful.<br />
Also, I found out that some swf&#8217;s I&#8217;m converting don&#8217;t include the &#8220;TagDefineShape&#8221; tag, so the code breaks. Please let me know if I can help in any way to improve the library. It looks like I have to adapt the Objective-C conversion code for my needs. THANKS so much for your quick reply!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claus Wahlers</title>
		<link>http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/comment-page-1/#comment-51747</link>
		<dc:creator>Claus Wahlers</dc:creator>
		<pubDate>Wed, 23 Jun 2010 01:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://wahlers.com.br/claus/blog/?p=167#comment-51747</guid>
		<description>Fotios, thanks for pointing that out. Apparently i made some changes to the API after writing that article and didn&#039;t find the time yet to get back to testing and updating the Obj-C exporter stuff, sorry about that. I&#039;m gonna fix it the coming weekend, latest.</description>
		<content:encoded><![CDATA[<p>Fotios, thanks for pointing that out. Apparently i made some changes to the API after writing that article and didn&#8217;t find the time yet to get back to testing and updating the Obj-C exporter stuff, sorry about that. I&#8217;m gonna fix it the coming weekend, latest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fotios</title>
		<link>http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/comment-page-1/#comment-51746</link>
		<dc:creator>Fotios</dc:creator>
		<pubDate>Wed, 23 Jun 2010 00:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://wahlers.com.br/claus/blog/?p=167#comment-51746</guid>
		<description>I just started using your library for the iphone and I&#039;d like to contribute to it. I use Flash CS4 (exporting for adobe air 1.5), and iphone simulator 3.0. It looks like the Objective-C example has some typos/bugs (http://wiki.github.com/claus/as3swf/shape-export-to-objective-c):

line 37: Instead of defineShape.shapeId should be :defineShape.characterId
line 48: docHandler is not a global variable.

I fixed the above compiler issues, and wrote a test Objective C program for the iphone, but the colors of the swf I have are not shown. Do you know what is going wrong?

Thanks!</description>
		<content:encoded><![CDATA[<p>I just started using your library for the iphone and I&#8217;d like to contribute to it. I use Flash CS4 (exporting for adobe air 1.5), and iphone simulator 3.0. It looks like the Objective-C example has some typos/bugs (<a href="http://wiki.github.com/claus/as3swf/shape-export-to-objective-c" rel="nofollow">http://wiki.github.com/claus/as3swf/shape-export-to-objective-c</a>):</p>
<p>line 37: Instead of defineShape.shapeId should be :defineShape.characterId<br />
line 48: docHandler is not a global variable.</p>
<p>I fixed the above compiler issues, and wrote a test Objective C program for the iphone, but the colors of the swf I have are not shown. Do you know what is going wrong?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jpauclair</title>
		<link>http://wahlers.com.br/claus/blog/timeline-reconstruction-with-as3swf/comment-page-1/#comment-50870</link>
		<dc:creator>jpauclair</dc:creator>
		<pubDate>Sun, 09 May 2010 02:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://wahlers.com.br/claus/blog/?p=167#comment-50870</guid>
		<description>This is so great!
In the past few weeks I analysed a lot how flash IDE is managing timeline animation.
This will help me a lot continue thoses research.

With this information you can predict memory usage and do datamining in batch process of a list of assets. This is huge.

Thanks Claus!</description>
		<content:encoded><![CDATA[<p>This is so great!<br />
In the past few weeks I analysed a lot how flash IDE is managing timeline animation.<br />
This will help me a lot continue thoses research.</p>
<p>With this information you can predict memory usage and do datamining in batch process of a list of assets. This is huge.</p>
<p>Thanks Claus!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

