<?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"
	>
<channel>
	<title>Comments on: Embedded Asset Paths in ActionScript 3</title>
	<atom:link href="http://www.brooksandrus.com/blog/2007/07/23/embedded-asset-paths-in-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brooksandrus.com/blog/2007/07/23/embedded-asset-paths-in-actionscript-3/</link>
	<description>This is the blog of Brooks Andrus. Here, at irregular intervals, you may find digital noise centered around the activities of an early 21st century technologist. I work for TechSmith Corporation, but this web space and the views found on it are entirely my own.</description>
	<pubDate>Thu, 20 Nov 2008 10:59:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Mike J</title>
		<link>http://www.brooksandrus.com/blog/2007/07/23/embedded-asset-paths-in-actionscript-3/#comment-13925</link>
		<dc:creator>Mike J</dc:creator>
		<pubDate>Tue, 24 Jul 2007 14:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/2007/07/23/embedded-asset-paths-in-actionscript-3/#comment-13925</guid>
		<description>I simplify my resource usages by having an AssetManager class that takes care of all my embeds.

package {
  public final class AssetManager {
    [Embed (source="/assets/myicon.png" )]
    public static const ICON_MYICON:Class;
  }
}

Then just use it the same as normal, but with the asset manager class in front of it : 

var icon:Bitmap = new AssetManager.ICON_MYICON();
addChild( icon );</description>
		<content:encoded><![CDATA[<p>I simplify my resource usages by having an AssetManager class that takes care of all my embeds.</p>
<p>package {<br />
  public final class AssetManager {<br />
    [Embed (source="/assets/myicon.png" )]<br />
    public static const ICON_MYICON:Class;<br />
  }<br />
}</p>
<p>Then just use it the same as normal, but with the asset manager class in front of it : </p>
<p>var icon:Bitmap = new AssetManager.ICON_MYICON();<br />
addChild( icon );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Cave</title>
		<link>http://www.brooksandrus.com/blog/2007/07/23/embedded-asset-paths-in-actionscript-3/#comment-13882</link>
		<dc:creator>Simon Cave</dc:creator>
		<pubDate>Mon, 23 Jul 2007 11:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.brooksandrus.com/blog/2007/07/23/embedded-asset-paths-in-actionscript-3/#comment-13882</guid>
		<description>You can use an absolute path (which is actually relative to the project directory) by starting your reference with a forward slash, like this:

/assets/MediaIcons.swf</description>
		<content:encoded><![CDATA[<p>You can use an absolute path (which is actually relative to the project directory) by starting your reference with a forward slash, like this:</p>
<p>/assets/MediaIcons.swf</p>
]]></content:encoded>
	</item>
</channel>
</rss>
