<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Interaction between ActionScript 2.0 and ActionScript 3.0 within the same project</title>
	<link>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/</link>
	<description>Flash and ActionScript discussed by Jumpeye Flash team</description>
	<pubDate>Thu, 20 Nov 2008 20:54:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>

	<item>
		<title>By: 194c01583a17</title>
		<link>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-791</link>
		<dc:creator>194c01583a17</dc:creator>
		<pubDate>Sun, 11 May 2008 02:12:46 +0000</pubDate>
		<guid>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-791</guid>
		<description>&lt;strong&gt;194c01583a17...&lt;/strong&gt;

194c01583a17bdac4959...</description>
		<content:encoded><![CDATA[<p><strong>194c01583a17&#8230;</strong></p>
<p>194c01583a17bdac4959&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-708</link>
		<dc:creator>Rajesh</dc:creator>
		<pubDate>Fri, 08 Feb 2008 19:08:41 +0000</pubDate>
		<guid>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-708</guid>
		<description>btw I am using Flex 2.0.1 and Flash 8 professional version.</description>
		<content:encoded><![CDATA[<p>btw I am using Flex 2.0.1 and Flash 8 professional version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-707</link>
		<dc:creator>Rajesh</dc:creator>
		<pubDate>Fri, 08 Feb 2008 19:07:04 +0000</pubDate>
		<guid>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-707</guid>
		<description>I think it is something with the scoping issue in Flash. I am not sure what is wrong.I have properly included swc inside Flex by putting an instance of ASBContainer onto stage and publishing it as  a  swc. Also I have included ASBTerminal inside AS 2 code. I m not sure what is wrong but I have to solve this asap.Thanks</description>
		<content:encoded><![CDATA[<p>I think it is something with the scoping issue in Flash. I am not sure what is wrong.I have properly included swc inside Flex by putting an instance of ASBContainer onto stage and publishing it as  a  swc. Also I have included ASBTerminal inside AS 2 code. I m not sure what is wrong but I have to solve this asap.Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-706</link>
		<dc:creator>Rajesh</dc:creator>
		<pubDate>Fri, 08 Feb 2008 19:04:58 +0000</pubDate>
		<guid>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-706</guid>
		<description>Hi,

Its a very nice component. I am using this into our project.But there are few issues I am still facing it.

1) Focus issues between as2 swf and as 3 swf.
2) I have made connection between swf created using Flex and 
Flash 8. Communication happens only one way i.e. from AS 3 to AS 2
but it is not happening the other way. How can i work around that.

mxml code(hostAS3.mxml)
-----------------------

public var uiComponent:UIComponent;
public var conn:ASBContainer;

private function initApp():void
{
 uiComponent = new UIComponent();
 conn = new ASBContainer();
 conn.x = 100;
 conn.y = 100;
 conn.source = "myAS2.swf";
 conn.boudingBox_mc.visible = true;

 conn.addEventListener(ASBEvent.INIT,initHandler);
 conn.addEventListener(ASBEvent.STATUS,statusHandler);
 conn.addEventListener(ASBEvent.CONNECT,connectHandler);
 conn.addEventListener(ASBEvent.ASB_RETURN,returnHandler);
 conn.addEventListener(SecurityErrorEvent.SECURITY_ERROR,asyncErrorHandler);

 uiComponent.addChild(conn);
 this.addChild(uiComponent);
}
			
public function asyncErrorHandler(aSyncEvt:AsyncErrorEvent):void
{
 trace("asyncErrorHandler"+aSyncEvt.text);
}

private function initHandler(event:ASBEvent):void
{}

private function statusHandler(event:ASBEvent):void
{
 try
 {
   switch(event.level)
   {
    case "error":
     trace("Error in connecting");
     break;

    case "status":
     //conn.visible = false;
     trace("Succeeded in connecting");
     break;
   }
  }
 catch(err:Error)
 {
  trace(" error message "+err.message);
  trace(" "+ err.getStackTrace());
  }
 }

private function connectHandler(event:ASBEvent):void
{
 trace("AS 3 -&#62; in connectHandler");
 conn.run("test()");
}

private function returnHandler(event:ASBEvent):void
{
 Alert.show("AS 3 -&#62; returnHandler");
}

public function callAS3():void
{
 Alert.show("Called from AS 2");
}



//AS 2 code(myAS2.fla)
------------
var as2As3BridgeComp:MovieClip = null;
var ASBTerminal_comp:MovieClip = null;
ASBTerminal_comp = as2As3BridgeComp.attachMovie("ASBTerminal","ASBTerminal_comp",this.getNextHighestDepth());

ASBTerminal_comp.addEventListener("status",statusHandler);
ASBTerminal_comp.addEventListener("asb_return",asbReturnHandler);

function test():Void
{
 trace("Calling from Flex");
}

this.createClassObject(mx.controls.Button, "btnCallAS3", this.getNextHighestDepth(),{label:"btnCallAS3"});
btnCallAS3.addEventListener("click",btnCallAS3Click);

function btnCallAS3Click()
{
 trace("btnCallAS3Click");
 ASBTerminal_comp.run("callAS3()");
}

when i run this code it throws me error:
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.LocalConnection was unable to invoke callback getAndPass. error=ReferenceError: Error #1069: Property hostAS3_0 not found on _hostAS3_mx_managers_SystemManager and there is no default value.


Please help me out...How I can solve this</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Its a very nice component. I am using this into our project.But there are few issues I am still facing it.</p>
<p>1) Focus issues between as2 swf and as 3 swf.<br />
2) I have made connection between swf created using Flex and<br />
Flash 8. Communication happens only one way i.e. from AS 3 to AS 2<br />
but it is not happening the other way. How can i work around that.</p>
<p>mxml code(hostAS3.mxml)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>public var uiComponent:UIComponent;<br />
public var conn:ASBContainer;</p>
<p>private function initApp():void<br />
{<br />
 uiComponent = new UIComponent();<br />
 conn = new ASBContainer();<br />
 conn.x = 100;<br />
 conn.y = 100;<br />
 conn.source = &#8220;myAS2.swf&#8221;;<br />
 conn.boudingBox_mc.visible = true;</p>
<p> conn.addEventListener(ASBEvent.INIT,initHandler);<br />
 conn.addEventListener(ASBEvent.STATUS,statusHandler);<br />
 conn.addEventListener(ASBEvent.CONNECT,connectHandler);<br />
 conn.addEventListener(ASBEvent.ASB_RETURN,returnHandler);<br />
 conn.addEventListener(SecurityErrorEvent.SECURITY_ERROR,asyncErrorHandler);</p>
<p> uiComponent.addChild(conn);<br />
 this.addChild(uiComponent);<br />
}</p>
<p>public function asyncErrorHandler(aSyncEvt:AsyncErrorEvent):void<br />
{<br />
 trace(&#8221;asyncErrorHandler&#8221;+aSyncEvt.text);<br />
}</p>
<p>private function initHandler(event:ASBEvent):void<br />
{}</p>
<p>private function statusHandler(event:ASBEvent):void<br />
{<br />
 try<br />
 {<br />
   switch(event.level)<br />
   {<br />
    case &#8220;error&#8221;:<br />
     trace(&#8221;Error in connecting&#8221;);<br />
     break;</p>
<p>    case &#8220;status&#8221;:<br />
     //conn.visible = false;<br />
     trace(&#8221;Succeeded in connecting&#8221;);<br />
     break;<br />
   }<br />
  }<br />
 catch(err:Error)<br />
 {<br />
  trace(&#8221; error message &#8220;+err.message);<br />
  trace(&#8221; &#8220;+ err.getStackTrace());<br />
  }<br />
 }</p>
<p>private function connectHandler(event:ASBEvent):void<br />
{<br />
 trace(&#8221;AS 3 -&gt; in connectHandler&#8221;);<br />
 conn.run(&#8221;test()&#8221;);<br />
}</p>
<p>private function returnHandler(event:ASBEvent):void<br />
{<br />
 Alert.show(&#8221;AS 3 -&gt; returnHandler&#8221;);<br />
}</p>
<p>public function callAS3():void<br />
{<br />
 Alert.show(&#8221;Called from AS 2&#8243;);<br />
}</p>
<p>//AS 2 code(myAS2.fla)<br />
&#8212;&#8212;&#8212;&#8212;<br />
var as2As3BridgeComp:MovieClip = null;<br />
var ASBTerminal_comp:MovieClip = null;<br />
ASBTerminal_comp = as2As3BridgeComp.attachMovie(&#8221;ASBTerminal&#8221;,&#8221;ASBTerminal_comp&#8221;,this.getNextHighestDepth());</p>
<p>ASBTerminal_comp.addEventListener(&#8221;status&#8221;,statusHandler);<br />
ASBTerminal_comp.addEventListener(&#8221;asb_return&#8221;,asbReturnHandler);</p>
<p>function test():Void<br />
{<br />
 trace(&#8221;Calling from Flex&#8221;);<br />
}</p>
<p>this.createClassObject(mx.controls.Button, &#8220;btnCallAS3&#8243;, this.getNextHighestDepth(),{label:&#8221;btnCallAS3&#8243;});<br />
btnCallAS3.addEventListener(&#8221;click&#8221;,btnCallAS3Click);</p>
<p>function btnCallAS3Click()<br />
{<br />
 trace(&#8221;btnCallAS3Click&#8221;);<br />
 ASBTerminal_comp.run(&#8221;callAS3()&#8221;);<br />
}</p>
<p>when i run this code it throws me error:<br />
Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.LocalConnection was unable to invoke callback getAndPass. error=ReferenceError: Error #1069: Property hostAS3_0 not found on _hostAS3_mx_managers_SystemManager and there is no default value.</p>
<p>Please help me out&#8230;How I can solve this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shane</title>
		<link>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-427</link>
		<dc:creator>shane</dc:creator>
		<pubDate>Wed, 19 Dec 2007 13:27:26 +0000</pubDate>
		<guid>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-427</guid>
		<description>Hi,

i m updating my e-learning course player project with Flash cs3 and AS3.0. the old version of course player was in As2.0. which load cousre swf files .
it was working fine Flash8 As2.0.
the player load course swf. the loaded course swf on a specifec frame call a method like this
_level0.setButton(2) method from course player;
The setButton(parameter) method defination is in new courser player. the loaded movie which is in Actionscritp2.0 not finding this method
in new course player which in Actionscript3.0. its working well with the old course player.
can any one give me solution to solve the issue.

i can't make changes in course swf files b/c there are thousand of course files.
i have used your nice component and also local connection classes
but both are two way communication, so i have make changes in thousand of swf files of my cousrer  ???

regards</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i m updating my e-learning course player project with Flash cs3 and AS3.0. the old version of course player was in As2.0. which load cousre swf files .<br />
it was working fine Flash8 As2.0.<br />
the player load course swf. the loaded course swf on a specifec frame call a method like this<br />
_level0.setButton(2) method from course player;<br />
The setButton(parameter) method defination is in new courser player. the loaded movie which is in Actionscritp2.0 not finding this method<br />
in new course player which in Actionscript3.0. its working well with the old course player.<br />
can any one give me solution to solve the issue.</p>
<p>i can&#8217;t make changes in course swf files b/c there are thousand of course files.<br />
i have used your nice component and also local connection classes<br />
but both are two way communication, so i have make changes in thousand of swf files of my cousrer  ???</p>
<p>regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wigz</title>
		<link>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-102</link>
		<dc:creator>Wigz</dc:creator>
		<pubDate>Thu, 20 Sep 2007 18:44:08 +0000</pubDate>
		<guid>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-102</guid>
		<description>Just set GMap.enabled = false; and it should work fine. This will disable focus manager for GMap, but nothing else will be effected.</description>
		<content:encoded><![CDATA[<p>Just set GMap.enabled = false; and it should work fine. This will disable focus manager for GMap, but nothing else will be effected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raulpopa</title>
		<link>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-97</link>
		<dc:creator>raulpopa</dc:creator>
		<pubDate>Wed, 05 Sep 2007 05:36:01 +0000</pubDate>
		<guid>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-97</guid>
		<description>I'm sure this is a common issue, it is a Flash Virtual Machine issue, somehow, it acts a bit of this. VM2 focuses and loses focus for VM1, but the VM1 does not even know that it is loaded inside a VM2 movie, and it is not able to lose focus unless you step out of the the entire flash movie or if you reload the as2 content.

There should be some fscommand that you could use to get the focus on the AS3 movie again... from the as2 movie.

You should write to Adobe about this issue, since it is their issue.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sure this is a common issue, it is a Flash Virtual Machine issue, somehow, it acts a bit of this. VM2 focuses and loses focus for VM1, but the VM1 does not even know that it is loaded inside a VM2 movie, and it is not able to lose focus unless you step out of the the entire flash movie or if you reload the as2 content.</p>
<p>There should be some fscommand that you could use to get the focus on the AS3 movie again&#8230; from the as2 movie.</p>
<p>You should write to Adobe about this issue, since it is their issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: freddy</title>
		<link>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-95</link>
		<dc:creator>freddy</dc:creator>
		<pubDate>Mon, 27 Aug 2007 12:58:50 +0000</pubDate>
		<guid>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-95</guid>
		<description>ok... the problem is when the as2 movie get the focus and then  you try to get the focus in the as3 movie... the as2 movie don't less the focus</description>
		<content:encoded><![CDATA[<p>ok&#8230; the problem is when the as2 movie get the focus and then  you try to get the focus in the as3 movie&#8230; the as2 movie don&#8217;t less the focus</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: freddy</title>
		<link>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-94</link>
		<dc:creator>freddy</dc:creator>
		<pubDate>Mon, 27 Aug 2007 12:47:19 +0000</pubDate>
		<guid>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-94</guid>
		<description>I'm gettin the same trouble with the gskinner class... maybe a localconnection bug?</description>
		<content:encoded><![CDATA[<p>I&#8217;m gettin the same trouble with the gskinner class&#8230; maybe a localconnection bug?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: freddy</title>
		<link>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-93</link>
		<dc:creator>freddy</dc:creator>
		<pubDate>Mon, 27 Aug 2007 12:43:19 +0000</pubDate>
		<guid>http://jumpeyecomponents.com/blog/2007/07/31/interaction-between-actionscript-20-and-actionscript-30-within-the-same-project/#comment-93</guid>
		<description>well... I'm working with Gmap AS2 component (http://www.afcomponents.com/components/g_map/) into a as3 movie with dropdown and textfileds iu components... when the as2 movie get the focus it's imposible write in the textfiled(as3) for example because the foucs jump to the as2 movie</description>
		<content:encoded><![CDATA[<p>well&#8230; I&#8217;m working with Gmap AS2 component (http://www.afcomponents.com/components/g_map/) into a as3 movie with dropdown and textfileds iu components&#8230; when the as2 movie get the focus it&#8217;s imposible write in the textfiled(as3) for example because the foucs jump to the as2 movie</p>
]]></content:encoded>
	</item>
</channel>
</rss>
