<?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: Flex Feature Request: Creating Packaged Classes with [Embed]</title>
	<atom:link href="http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/feed/" rel="self" type="application/rss+xml" />
	<link>http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/</link>
	<description>Josh Tynjala explores Flash, Flex, and ActionScript.</description>
	<lastBuildDate>Sat, 31 Jul 2010 02:55:11 -0400</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/comment-page-1/#comment-36337</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Mon, 14 Jan 2008 20:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/#comment-36337</guid>
		<description>Ah yes, Flash SWCs are a pretty good option too. If I don&#039;t want to use Flex, but I still need UI components, I just throw all the Flash CS3 components in a big SWC and add it to my build settings in an AS Project. I don&#039;t think I had extended that thought to specifically targeting skin assets rather than whole components, but it makes sense. Easier than writing out all the [Embed] lines too.</description>
		<content:encoded><![CDATA[<p>Ah yes, Flash SWCs are a pretty good option too. If I don&#8217;t want to use Flex, but I still need UI components, I just throw all the Flash CS3 components in a big SWC and add it to my build settings in an AS Project. I don&#8217;t think I had extended that thought to specifically targeting skin assets rather than whole components, but it makes sense. Easier than writing out all the [Embed] lines too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy Troppmann</title>
		<link>http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/comment-page-1/#comment-36331</link>
		<dc:creator>Randy Troppmann</dc:creator>
		<pubDate>Mon, 14 Jan 2008 17:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/#comment-36331</guid>
		<description>I know it&#039;s a little ugly but I have been using swc assets from flash in FB by addling them to the build path in the properties of a flex project. I get code introspection at develop time (nice!) and I can then import the package and instantiate it like any other display object. 

I will vote for your feature request.</description>
		<content:encoded><![CDATA[<p>I know it&#8217;s a little ugly but I have been using swc assets from flash in FB by addling them to the build path in the properties of a flex project. I get code introspection at develop time (nice!) and I can then import the package and instantiate it like any other display object. </p>
<p>I will vote for your feature request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Deitte</title>
		<link>http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/comment-page-1/#comment-36330</link>
		<dc:creator>Brian Deitte</dc:creator>
		<pubDate>Mon, 14 Jan 2008 17:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/#comment-36330</guid>
		<description>Compile-time checks of the Embed class that Erik showed does happen.  Note that if you use the parameter &quot;-keep&quot; to see the generated classes, you&#039;ll see that an Embed class is generated for each Embed variable.  In other words, the Embed-on-a-variable is just syntactic sugar for Embed-on-a-class.</description>
		<content:encoded><![CDATA[<p>Compile-time checks of the Embed class that Erik showed does happen.  Note that if you use the parameter &#8220;-keep&#8221; to see the generated classes, you&#8217;ll see that an Embed class is generated for each Embed variable.  In other words, the Embed-on-a-variable is just syntactic sugar for Embed-on-a-class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug McCune</title>
		<link>http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/comment-page-1/#comment-36327</link>
		<dc:creator>Doug McCune</dc:creator>
		<pubDate>Mon, 14 Jan 2008 17:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/#comment-36327</guid>
		<description>better anyway. It keeps things in the same structure as the rest of your code. Yeah, it creates these mini classes that are essentially empty except for the embed statement, but I think I&#039;m OK with that. 

I assume that compile-time checking of these Embeds doesn&#039;t happen, but seems like with that structure it wouldn&#039;t too hard to do (hell, I dunno, maybe it does it now).Ha, I didn&#039;t know you could do that either. I might argue that that&#039;s 

Erik, thanks for showing us stuff we didn&#039;t know.</description>
		<content:encoded><![CDATA[<p>better anyway. It keeps things in the same structure as the rest of your code. Yeah, it creates these mini classes that are essentially empty except for the embed statement, but I think I&#8217;m OK with that. </p>
<p>I assume that compile-time checking of these Embeds doesn&#8217;t happen, but seems like with that structure it wouldn&#8217;t too hard to do (hell, I dunno, maybe it does it now).Ha, I didn&#8217;t know you could do that either. I might argue that that&#8217;s </p>
<p>Erik, thanks for showing us stuff we didn&#8217;t know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/comment-page-1/#comment-36325</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Mon, 14 Jan 2008 16:46:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/#comment-36325</guid>
		<description>That&#039;s interesting, Erik. I didn&#039;t know that was possible. Personally, though, I&#039;d prefer to be able to define many different asset classes in one file.</description>
		<content:encoded><![CDATA[<p>That&#8217;s interesting, Erik. I didn&#8217;t know that was possible. Personally, though, I&#8217;d prefer to be able to define many different asset classes in one file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EECOLOR</title>
		<link>http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/comment-page-1/#comment-36316</link>
		<dc:creator>EECOLOR</dc:creator>
		<pubDate>Mon, 14 Jan 2008 12:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/#comment-36316</guid>
		<description>I might be missing something, but this feature is already present:

&lt;pre style=&quot;overflow:auto;&quot;&gt;package x.y
{
   [Embed(source=&quot;myLibrary.swf&quot;, symbol=&quot;myAsset&quot;)]
   public class Asset extends MovieClip
   {
   };
};&lt;/pre&gt;

To create a new Instance you can just do &#039;new x.y.Asset();&#039;.

Greetz Erik</description>
		<content:encoded><![CDATA[<p>I might be missing something, but this feature is already present:</p>
<pre style="overflow:auto;">package x.y
{
   [Embed(source="myLibrary.swf", symbol="myAsset")]
   public class Asset extends MovieClip
   {
   };
};</pre>
<p>To create a new Instance you can just do &#8216;new x.y.Asset();&#8217;.</p>
<p>Greetz Erik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tink</title>
		<link>http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/comment-page-1/#comment-36308</link>
		<dc:creator>Tink</dc:creator>
		<pubDate>Mon, 14 Jan 2008 10:14:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/#comment-36308</guid>
		<description>&quot;Sure, I can already do something similar by creating a class with a lot of public static constants, but it feels kind of like a hack.&quot;

 I actually don&#039;t mind this method too much. I know all my assets will be in the one place, a little like them all being inside a Library in Flash. That said being able to specify a package would open up more options.

I definitely for the compiler only embedding assets that are used.</description>
		<content:encoded><![CDATA[<p>&#8220;Sure, I can already do something similar by creating a class with a lot of public static constants, but it feels kind of like a hack.&#8221;</p>
<p> I actually don&#8217;t mind this method too much. I know all my assets will be in the one place, a little like them all being inside a Library in Flash. That said being able to specify a package would open up more options.</p>
<p>I definitely for the compiler only embedding assets that are used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug McCune</title>
		<link>http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/comment-page-1/#comment-36306</link>
		<dc:creator>Doug McCune</dc:creator>
		<pubDate>Mon, 14 Jan 2008 09:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/#comment-36306</guid>
		<description>Yeah, OK, you&#039;re definitely right about the bloat issue already if you use a static assets class. I change my previous comment and instead of citing that as a danger, that&#039;s an additional feature request. I would love to be able to be that lazy and just define a whole slew of embedded assets, knowing that only the ones I explicitly instantiate somewhere in my code by calling new MyEmbeddedAsset(); will actually get embedded in the SWF. This would be a great feature with the current state of embedded assets too.

As to where they would go, not sure, maybe in an additional metadata tag in the main Application? Or how about in a CSS file, which sounds kinda weird at first, but I think might make some kind of sense.</description>
		<content:encoded><![CDATA[<p>Yeah, OK, you&#8217;re definitely right about the bloat issue already if you use a static assets class. I change my previous comment and instead of citing that as a danger, that&#8217;s an additional feature request. I would love to be able to be that lazy and just define a whole slew of embedded assets, knowing that only the ones I explicitly instantiate somewhere in my code by calling new MyEmbeddedAsset(); will actually get embedded in the SWF. This would be a great feature with the current state of embedded assets too.</p>
<p>As to where they would go, not sure, maybe in an additional metadata tag in the main Application? Or how about in a CSS file, which sounds kinda weird at first, but I think might make some kind of sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Campbell</title>
		<link>http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/comment-page-1/#comment-36304</link>
		<dc:creator>Campbell</dc:creator>
		<pubDate>Mon, 14 Jan 2008 09:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/#comment-36304</guid>
		<description>That would be a great feature. and save having more code bloat at the top of Classes. 

Yeah have to agree with Doug on the Compile time checking for embedding the bytes. I could see util.IconLibrary classes getting crazy bloated, ala Java styles.

I also us the BitmapAsset for Types of imported graphics instead of DisplayObject, in my code as its a bit more descriptive. (Most images get typed to a subclass of this at compile time), but thats merely personal preference. Potato, potato stuff really.

Will be voting once I get my account confirmation email :)</description>
		<content:encoded><![CDATA[<p>That would be a great feature. and save having more code bloat at the top of Classes. </p>
<p>Yeah have to agree with Doug on the Compile time checking for embedding the bytes. I could see util.IconLibrary classes getting crazy bloated, ala Java styles.</p>
<p>I also us the BitmapAsset for Types of imported graphics instead of DisplayObject, in my code as its a bit more descriptive. (Most images get typed to a subclass of this at compile time), but thats merely personal preference. Potato, potato stuff really.</p>
<p>Will be voting once I get my account confirmation email <img src='http://joshblog.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/comment-page-1/#comment-36301</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Mon, 14 Jan 2008 08:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.zeuslabs.us/2008/01/13/flex-feature-request-embed-metadata-with-qualified-class-name/#comment-36301</guid>
		<description>A ton of embeds in an assets class could easily be forgotten too. I rarely embed things in a local class if there&#039;s more than one or two things embedded in the entire app, so the risk is about the same for me. Good point, though.

One thing I didn&#039;t mention, but is worth questioning, is where are we supposed to place these sorts of Embeds? With a centralized assets class, you specifically reference it in your code so there&#039;s nothing special about it. For embeds like this, there needs to be a specific way to make sure that the compiler knows about them, beyond adding them all to the metadata section in the main application file or something. That could get messy.</description>
		<content:encoded><![CDATA[<p>A ton of embeds in an assets class could easily be forgotten too. I rarely embed things in a local class if there&#8217;s more than one or two things embedded in the entire app, so the risk is about the same for me. Good point, though.</p>
<p>One thing I didn&#8217;t mention, but is worth questioning, is where are we supposed to place these sorts of Embeds? With a centralized assets class, you specifically reference it in your code so there&#8217;s nothing special about it. For embeds like this, there needs to be a specific way to make sure that the compiler knows about them, beyond adding them all to the metadata section in the main application file or something. That could get messy.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
