<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Flex Authoring for Flash (AS3 Project / SWC)</title>
	<atom:link href="http://crunchbucket.wordpress.com/2008/09/05/flex-authoring-for-flash-as3-project-swc/feed/" rel="self" type="application/rss+xml" />
	<link>http://crunchbucket.wordpress.com/2008/09/05/flex-authoring-for-flash-as3-project-swc/</link>
	<description>It takes one to know one.</description>
	<lastBuildDate>Wed, 15 Apr 2009 17:27:12 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: eRez</title>
		<link>http://crunchbucket.wordpress.com/2008/09/05/flex-authoring-for-flash-as3-project-swc/#comment-30</link>
		<dc:creator>eRez</dc:creator>
		<pubDate>Thu, 12 Feb 2009 08:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://crunchbucket.wordpress.com/?p=3#comment-30</guid>
		<description>thanks! it makes sense and it even works.
now i have in flash MC with linkage &#039;Symbol1&#039; (extending MovieClip), in it textfield &#039;_txt&#039; and background &#039;bg_mc&#039;.  i have in flex 2 classes: &#039;Symbol1Template&#039; with 2 protected vars &#039;_txt&#039; and &#039;bg_mc&#039;; and class &#039;Symbol1Enhancer&#039; which extends &#039;Symbol1Template&#039;, in which constructor i create a new &#039;Symbol1&#039; and then link its _txt &amp; bg_mc to those in the template.

now it works.
thanks again,
eRez</description>
		<content:encoded><![CDATA[<p>thanks! it makes sense and it even works.<br />
now i have in flash MC with linkage &#8216;Symbol1&#8242; (extending MovieClip), in it textfield &#8216;_txt&#8217; and background &#8216;bg_mc&#8217;.  i have in flex 2 classes: &#8216;Symbol1Template&#8217; with 2 protected vars &#8216;_txt&#8217; and &#8216;bg_mc&#8217;; and class &#8216;Symbol1Enhancer&#8217; which extends &#8216;Symbol1Template&#8217;, in which constructor i create a new &#8216;Symbol1&#8242; and then link its _txt &amp; bg_mc to those in the template.</p>
<p>now it works.<br />
thanks again,<br />
eRez</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crunchbucket</title>
		<link>http://crunchbucket.wordpress.com/2008/09/05/flex-authoring-for-flash-as3-project-swc/#comment-27</link>
		<dc:creator>crunchbucket</dc:creator>
		<pubDate>Wed, 11 Feb 2009 17:22:11 +0000</pubDate>
		<guid isPermaLink="false">http://crunchbucket.wordpress.com/?p=3#comment-27</guid>
		<description>eRez,

How about leaving the &quot;Classes&quot; in Flash as they are, extending Movieclip. (I think you are still doing this)
Then your Flex Code classes will have properties for a clip_mc and all of the elements within that clip.
protected var clip_mc:Movieclip
protected var textfield1_txt:TextField;
protected var textfield2_txt:TextField;

It will at some point  (most likely the constructor)
assign the local references to the clip_mc&#039;s elements
clip_mc = new ClassFromFlash(); - this is the &quot;Class&quot; in the SWC
textfield1_txt = clip_mc. textfield1_txt;  
textfield2_txt = clip_mc. textfield2_txt; 
(do this for every element in the Flash MC)

Now your Flex class can act as it is the Flash class via references.

Does that make sense?

MG</description>
		<content:encoded><![CDATA[<p>eRez,</p>
<p>How about leaving the &#8220;Classes&#8221; in Flash as they are, extending Movieclip. (I think you are still doing this)<br />
Then your Flex Code classes will have properties for a clip_mc and all of the elements within that clip.<br />
protected var clip_mc:Movieclip<br />
protected var textfield1_txt:TextField;<br />
protected var textfield2_txt:TextField;</p>
<p>It will at some point  (most likely the constructor)<br />
assign the local references to the clip_mc&#8217;s elements<br />
clip_mc = new ClassFromFlash(); &#8211; this is the &#8220;Class&#8221; in the SWC<br />
textfield1_txt = clip_mc. textfield1_txt;<br />
textfield2_txt = clip_mc. textfield2_txt;<br />
(do this for every element in the Flash MC)</p>
<p>Now your Flex class can act as it is the Flash class via references.</p>
<p>Does that make sense?</p>
<p>MG</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eRez</title>
		<link>http://crunchbucket.wordpress.com/2008/09/05/flex-authoring-for-flash-as3-project-swc/#comment-26</link>
		<dc:creator>eRez</dc:creator>
		<pubDate>Wed, 11 Feb 2009 13:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://crunchbucket.wordpress.com/?p=3#comment-26</guid>
		<description>hi,
though its been a while since this post was posted, i just ran into it now while looking for a solution for a problem i have. it goes like this:
i use flex to create and compile my projects, and flash to create graphic data.  each graphic data is placed in a symbol to which i add linkage and then export it all as SWC, which i then link to my flex project so all the graphic data is available from within flex.
however, i have all those different graphic containers (created in flash), and for each of them i have a class (created in flex) which extends it.  for example - a graphic container with linkage id &#039;ProductContainer&#039;, and then &#039;class ProductContainerEnhancer extends ProductContainer&#039; (so that all the mc&#039;s/buttons/txt&#039;s within ProductContainer are available to ProductContainerEnhancer).  eventually all those graphic containers have some properties and methods in common, so i thought that instead of having them extend MovieClip (as they do by default), why not create in flex &#039;class ContainerTemplate extends MovieClip&#039; which will hold all the common properties and methods,  and have every container&#039;s base class to be that class.  once i do that, the &#039;ProductContainerEnhancer&#039; doesn&#039;t recognize anymore all the mc&#039;s/buttons/txt&#039;s inside ProductContainer.
hope i made myself clear and that i&#039;ll get any sort of help.
thanks in advance,
eRez</description>
		<content:encoded><![CDATA[<p>hi,<br />
though its been a while since this post was posted, i just ran into it now while looking for a solution for a problem i have. it goes like this:<br />
i use flex to create and compile my projects, and flash to create graphic data.  each graphic data is placed in a symbol to which i add linkage and then export it all as SWC, which i then link to my flex project so all the graphic data is available from within flex.<br />
however, i have all those different graphic containers (created in flash), and for each of them i have a class (created in flex) which extends it.  for example &#8211; a graphic container with linkage id &#8216;ProductContainer&#8217;, and then &#8216;class ProductContainerEnhancer extends ProductContainer&#8217; (so that all the mc&#8217;s/buttons/txt&#8217;s within ProductContainer are available to ProductContainerEnhancer).  eventually all those graphic containers have some properties and methods in common, so i thought that instead of having them extend MovieClip (as they do by default), why not create in flex &#8216;class ContainerTemplate extends MovieClip&#8217; which will hold all the common properties and methods,  and have every container&#8217;s base class to be that class.  once i do that, the &#8216;ProductContainerEnhancer&#8217; doesn&#8217;t recognize anymore all the mc&#8217;s/buttons/txt&#8217;s inside ProductContainer.<br />
hope i made myself clear and that i&#8217;ll get any sort of help.<br />
thanks in advance,<br />
eRez</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zack</title>
		<link>http://crunchbucket.wordpress.com/2008/09/05/flex-authoring-for-flash-as3-project-swc/#comment-18</link>
		<dc:creator>zack</dc:creator>
		<pubDate>Wed, 22 Oct 2008 18:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://crunchbucket.wordpress.com/?p=3#comment-18</guid>
		<description>great explanation, thanks a lot! 
This is exactly what I meant. This might take a bit of work trying out..  ;)</description>
		<content:encoded><![CDATA[<p>great explanation, thanks a lot!<br />
This is exactly what I meant. This might take a bit of work trying out..  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crunchbucket</title>
		<link>http://crunchbucket.wordpress.com/2008/09/05/flex-authoring-for-flash-as3-project-swc/#comment-17</link>
		<dc:creator>crunchbucket</dc:creator>
		<pubDate>Mon, 06 Oct 2008 15:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://crunchbucket.wordpress.com/?p=3#comment-17</guid>
		<description>Thanks Zack.

From what you have told me.  You might have luck getting in to Flex by the following.
1) create a new Flex project
2) copy your current project into the src folder
3) Remove the &quot;Document Class&quot; definition from the stage properties (in the props panel) of your Main.fla.  Make sure everything you want to reference programatically is set to export.
4) Publish the SWC and move it to the /libs folder. (Libs is a sibling of src at projects top level).   This makes Flex aware of those compiled elements.
5) Flex should find the code classes that you declare based on your package structures.
THIS IS WHERE THINGS MIGHT BREAK DOWN WITH YOUR CONFIGURATION OF EXTERNAL CODE CLASSES AS I AM NOT SURE WHAT YOU MEAN HERE.
6) Flex will find the SWC and hint its contents.  I like to remove all the code from my UI SWCs by making all elements in my SWCs only be UI classes that extend Movieclip.  There are many reasons for this, but the best on being that if you have code classes compiled into a SWC that are the same as the classes in your packages and you modify them, there will inevitably be some wasted time figuring out how to deal with that situation.  I am not sure which one takes precedence, the one in the SWC, or the one in the package, but they have the same &quot;path&quot; as far as Flex is concerned. 

Good Luck,

MG</description>
		<content:encoded><![CDATA[<p>Thanks Zack.</p>
<p>From what you have told me.  You might have luck getting in to Flex by the following.<br />
1) create a new Flex project<br />
2) copy your current project into the src folder<br />
3) Remove the &#8220;Document Class&#8221; definition from the stage properties (in the props panel) of your Main.fla.  Make sure everything you want to reference programatically is set to export.<br />
4) Publish the SWC and move it to the /libs folder. (Libs is a sibling of src at projects top level).   This makes Flex aware of those compiled elements.<br />
5) Flex should find the code classes that you declare based on your package structures.<br />
THIS IS WHERE THINGS MIGHT BREAK DOWN WITH YOUR CONFIGURATION OF EXTERNAL CODE CLASSES AS I AM NOT SURE WHAT YOU MEAN HERE.<br />
6) Flex will find the SWC and hint its contents.  I like to remove all the code from my UI SWCs by making all elements in my SWCs only be UI classes that extend Movieclip.  There are many reasons for this, but the best on being that if you have code classes compiled into a SWC that are the same as the classes in your packages and you modify them, there will inevitably be some wasted time figuring out how to deal with that situation.  I am not sure which one takes precedence, the one in the SWC, or the one in the package, but they have the same &#8220;path&#8221; as far as Flex is concerned. </p>
<p>Good Luck,</p>
<p>MG</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zack</title>
		<link>http://crunchbucket.wordpress.com/2008/09/05/flex-authoring-for-flash-as3-project-swc/#comment-16</link>
		<dc:creator>zack</dc:creator>
		<pubDate>Sat, 04 Oct 2008 15:05:57 +0000</pubDate>
		<guid isPermaLink="false">http://crunchbucket.wordpress.com/?p=3#comment-16</guid>
		<description>correction: compile all the stuff via an swc*</description>
		<content:encoded><![CDATA[<p>correction: compile all the stuff via an swc*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zack</title>
		<link>http://crunchbucket.wordpress.com/2008/09/05/flex-authoring-for-flash-as3-project-swc/#comment-15</link>
		<dc:creator>zack</dc:creator>
		<pubDate>Sat, 04 Oct 2008 15:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://crunchbucket.wordpress.com/?p=3#comment-15</guid>
		<description>Nice article! Very interesting. 

I have been developing my project in Flash for a while now, and would like to move it out as much as possible. Reading your article makes it sound possible, but I am not quite sure how to do it. I was wondering if you would care to give some advice. I believe my situation is very similar to others who are trying to find a good balance between Flash and Flex/Eclipse:

I have: 
- Main.fla which holds all my interface and their layout. It also contains two scenes with a preloader-logic in the first .
- Lots of .as files, linked via the &quot;Export for actionscript&quot; option. 

I would like to:
Move everything out and use flex to compile with all the stuff in an .swf. Is there a way to achieve this? Do you know where I should start looking?</description>
		<content:encoded><![CDATA[<p>Nice article! Very interesting. </p>
<p>I have been developing my project in Flash for a while now, and would like to move it out as much as possible. Reading your article makes it sound possible, but I am not quite sure how to do it. I was wondering if you would care to give some advice. I believe my situation is very similar to others who are trying to find a good balance between Flash and Flex/Eclipse:</p>
<p>I have:<br />
- Main.fla which holds all my interface and their layout. It also contains two scenes with a preloader-logic in the first .<br />
- Lots of .as files, linked via the &#8220;Export for actionscript&#8221; option. </p>
<p>I would like to:<br />
Move everything out and use flex to compile with all the stuff in an .swf. Is there a way to achieve this? Do you know where I should start looking?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex Authoring for Flash (AS3 Project / SWC) &#171; Rich Internet Applications</title>
		<link>http://crunchbucket.wordpress.com/2008/09/05/flex-authoring-for-flash-as3-project-swc/#comment-7</link>
		<dc:creator>Flex Authoring for Flash (AS3 Project / SWC) &#171; Rich Internet Applications</dc:creator>
		<pubDate>Fri, 05 Sep 2008 16:30:23 +0000</pubDate>
		<guid isPermaLink="false">http://crunchbucket.wordpress.com/?p=3#comment-7</guid>
		<description>[...] Source [...]</description>
		<content:encoded><![CDATA[<p>[...] Source [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Flash Design Guy</title>
		<link>http://crunchbucket.wordpress.com/2008/09/05/flex-authoring-for-flash-as3-project-swc/#comment-3</link>
		<dc:creator>The Flash Design Guy</dc:creator>
		<pubDate>Fri, 05 Sep 2008 02:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://crunchbucket.wordpress.com/?p=3#comment-3</guid>
		<description>Thanks for the article. I&#039;m slowly learning Flex and moving certain complex tasks from Flash to Flex and it&#039;s good to hear that i&#039;m doing the right thing on this</description>
		<content:encoded><![CDATA[<p>Thanks for the article. I&#8217;m slowly learning Flex and moving certain complex tasks from Flash to Flex and it&#8217;s good to hear that i&#8217;m doing the right thing on this</p>
]]></content:encoded>
	</item>
</channel>
</rss>
