<?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: Library &amp; LibraryManager</title>
	<atom:link href="http://www.tink.ws/blog/library-librarymanager/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tink.ws/blog/library-librarymanager/</link>
	<description>Flash Platform development and personal rants.</description>
	<lastBuildDate>Wed, 10 Mar 2010 00:36:26 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Raff</title>
		<link>http://www.tink.ws/blog/library-librarymanager/#comment-166023</link>
		<dc:creator>Raff</dc:creator>
		<pubDate>Wed, 14 Jan 2009 19:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=324#comment-166023</guid>
		<description>nice one</description>
		<content:encoded><![CDATA[<p>nice one</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tink</title>
		<link>http://www.tink.ws/blog/library-librarymanager/#comment-166001</link>
		<dc:creator>Tink</dc:creator>
		<pubDate>Wed, 14 Jan 2009 17:57:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=324#comment-166001</guid>
		<description>Hey Ronan, try

library.loadSWFS.apply( this, yourArray );</description>
		<content:encoded><![CDATA[<p>Hey Ronan, try</p>
<p>library.loadSWFS.apply( this, yourArray );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raff</title>
		<link>http://www.tink.ws/blog/library-librarymanager/#comment-165996</link>
		<dc:creator>Raff</dc:creator>
		<pubDate>Wed, 14 Jan 2009 17:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=324#comment-165996</guid>
		<description>Hi Tink,

Just wanting to use the manger to dynamicly load in fonts that could be set via a flash var, so that I can seperate out the display from the logic. I was going to pass in a list of fonts used (to be loaded by the manager) and then use a style sheet to set the font. 

The problem I have is the use of ..args on the loadSWFS() function I&#039;d like to be able to pass an array of URLS to this. I have modified the function to test if an argument is an array and then I load that but I just thought I&#039;d suggest it as I&#039;d like to stay up to date with SVN.

Thanks

Ronan</description>
		<content:encoded><![CDATA[<p>Hi Tink,</p>
<p>Just wanting to use the manger to dynamicly load in fonts that could be set via a flash var, so that I can seperate out the display from the logic. I was going to pass in a list of fonts used (to be loaded by the manager) and then use a style sheet to set the font. </p>
<p>The problem I have is the use of ..args on the loadSWFS() function I&#8217;d like to be able to pass an array of URLS to this. I have modified the function to test if an argument is an array and then I load that but I just thought I&#8217;d suggest it as I&#8217;d like to stay up to date with SVN.</p>
<p>Thanks</p>
<p>Ronan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jo</title>
		<link>http://www.tink.ws/blog/library-librarymanager/#comment-156787</link>
		<dc:creator>jo</dc:creator>
		<pubDate>Mon, 01 Dec 2008 08:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=324#comment-156787</guid>
		<description>hello tink,

thanks for sharing your source, it&#039;s great.
but it looks like you&#039;ve missed something.

ws.tink.managers.removeLibrary
it throws an error if i try to remove a library. maybe you have to change it this way.

chears

var index:int = getLibraryIndex( name );
if( index != -1 )
{
var library:Library = Library( _libraries.splice( index, 1 )[ 0 ] );
if( destroy ) library.destroy();
}
else  // </description>
		<content:encoded><![CDATA[<p>hello tink,</p>
<p>thanks for sharing your source, it&#8217;s great.<br />
but it looks like you&#8217;ve missed something.</p>
<p>ws.tink.managers.removeLibrary<br />
it throws an error if i try to remove a library. maybe you have to change it this way.</p>
<p>chears</p>
<p>var index:int = getLibraryIndex( name );<br />
if( index != -1 )<br />
{<br />
var library:Library = Library( _libraries.splice( index, 1 )[ 0 ] );<br />
if( destroy ) library.destroy();<br />
}<br />
else  //</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tink</title>
		<link>http://www.tink.ws/blog/library-librarymanager/#comment-133422</link>
		<dc:creator>Tink</dc:creator>
		<pubDate>Thu, 25 Sep 2008 09:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=324#comment-133422</guid>
		<description>Hey Arash

You cannot cast anything to a class unless it is, or extends that class.

If you define that class, as the base class for the asset you are loading in the Flash IDE, it should cast fine, once in the Library.

That said a better approach is to write classes that require graphic assets, the use the IDE to create these assets, load them with the library and cast them as MovieClips, then pass them through to you class as the graphic asset.</description>
		<content:encoded><![CDATA[<p>Hey Arash</p>
<p>You cannot cast anything to a class unless it is, or extends that class.</p>
<p>If you define that class, as the base class for the asset you are loading in the Flash IDE, it should cast fine, once in the Library.</p>
<p>That said a better approach is to write classes that require graphic assets, the use the IDE to create these assets, load them with the library and cast them as MovieClips, then pass them through to you class as the graphic asset.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arash</title>
		<link>http://www.tink.ws/blog/library-librarymanager/#comment-133416</link>
		<dc:creator>arash</dc:creator>
		<pubDate>Thu, 25 Sep 2008 09:51:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=324#comment-133416</guid>
		<description>hi tink

I test the cast to a class when the byteArray load complete .but the as engine
set an Id for a class that uses in a swf and that class in the system that load
so it couldn&#039;t  cast the data from the files loaded to a class that exist in the system

this problem does n&#039;t exist in another language like java.

i don&#039;t know if this problem maybe solved in cs4 ?</description>
		<content:encoded><![CDATA[<p>hi tink</p>
<p>I test the cast to a class when the byteArray load complete .but the as engine<br />
set an Id for a class that uses in a swf and that class in the system that load<br />
so it couldn&#8217;t  cast the data from the files loaded to a class that exist in the system</p>
<p>this problem does n&#8217;t exist in another language like java.</p>
<p>i don&#8217;t know if this problem maybe solved in cs4 ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tink</title>
		<link>http://www.tink.ws/blog/library-librarymanager/#comment-132743</link>
		<dc:creator>Tink</dc:creator>
		<pubDate>Wed, 24 Sep 2008 13:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=324#comment-132743</guid>
		<description>Hey Seb

Sometimes the content of the SWF get corrupted. I&#039;m not actually sure how you can tell when an SWF is corrupt for this type of load process, and the SWF would play fine if loaded normally.

I have got round this in the past by re-generating the SWF. Create a new FLA, and copy over as much as the raw assets as possible to avoid copying the corrupt part over (i.e. don&#039;t just copy the clips over, instead create new clips and paste in their content.

Thanks for reminding me about this, i&#039;ll see if I can get some feedback from Adobe on it at FOTB.</description>
		<content:encoded><![CDATA[<p>Hey Seb</p>
<p>Sometimes the content of the SWF get corrupted. I&#8217;m not actually sure how you can tell when an SWF is corrupt for this type of load process, and the SWF would play fine if loaded normally.</p>
<p>I have got round this in the past by re-generating the SWF. Create a new FLA, and copy over as much as the raw assets as possible to avoid copying the corrupt part over (i.e. don&#8217;t just copy the clips over, instead create new clips and paste in their content.</p>
<p>Thanks for reminding me about this, i&#8217;ll see if I can get some feedback from Adobe on it at FOTB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seb</title>
		<link>http://www.tink.ws/blog/library-librarymanager/#comment-132732</link>
		<dc:creator>Seb</dc:creator>
		<pubDate>Wed, 24 Sep 2008 13:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=324#comment-132732</guid>
		<description>Hi,

I get the following error from the cast to ByteArray in Library&#039;s embedSWFS():

Error: Error #2136: The SWF file http://localhost:8888/myProject/mySWF.swf contains invalid data.

I am trying to embed a Flash generated SWF containing 5 icons.

Any ideas?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I get the following error from the cast to ByteArray in Library&#8217;s embedSWFS():</p>
<p>Error: Error #2136: The SWF file <a href="http://localhost:8888/myProject/mySWF.swf" rel="nofollow">http://localhost:8888/myProject/mySWF.swf</a> contains invalid data.</p>
<p>I am trying to embed a Flash generated SWF containing 5 icons.</p>
<p>Any ideas?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arash</title>
		<link>http://www.tink.ws/blog/library-librarymanager/#comment-127394</link>
		<dc:creator>arash</dc:creator>
		<pubDate>Wed, 17 Sep 2008 06:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=324#comment-127394</guid>
		<description>hi
i want to know if it&#039;s possible that we put .swf file in a sqlite db and 
load them as binary data and use their library?

thx.</description>
		<content:encoded><![CDATA[<p>hi<br />
i want to know if it&#8217;s possible that we put .swf file in a sqlite db and<br />
load them as binary data and use their library?</p>
<p>thx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tink</title>
		<link>http://www.tink.ws/blog/library-librarymanager/#comment-119900</link>
		<dc:creator>Tink</dc:creator>
		<pubDate>Tue, 02 Sep 2008 09:06:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.tink.ws/blog/?p=324#comment-119900</guid>
		<description>You need to download via SVN

http://code.google.com/p/tink/source/checkout</description>
		<content:encoded><![CDATA[<p>You need to download via SVN</p>
<p><a href="http://code.google.com/p/tink/source/checkout" rel="nofollow">http://code.google.com/p/tink/source/checkout</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
