<?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: AIR Windows</title>
	<atom:link href="http://blog.everythingflex.com/2007/07/17/air-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.everythingflex.com/2007/07/17/air-windows/</link>
	<description>News and Information about Adobe Flex &#38; Adobe AIR by Rich Tretola</description>
	<pubDate>Fri, 21 Nov 2008 13:15:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>By: Murtaza</title>
		<link>http://blog.everythingflex.com/2007/07/17/air-windows/#comment-402</link>
		<dc:creator>Murtaza</dc:creator>
		<pubDate>Wed, 28 May 2008 02:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2007/07/17/air-windows/#comment-402</guid>
		<description>So is there a way to pass variables from one nativeWindow to another? Say for example I have this :
var wOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
wOptions.systemChrome = NativeWindowSystemChrome.NONE;
var newWindow:NativeWindow = new NativeWindow(wOptions);
newWindow.bounds = new Rectangle(0, 0, 1024, 768);
var loaderMC:Loader=new Loader();
loaderMC.load(new URLRequest("testing.swf"));
newWindow.stage.addChild(loaderMC);
newWindow.activate();

----
so i have a new window opened up and now i want the testing.swf to receive a variable from that "original opener"
is that possible?</description>
		<content:encoded><![CDATA[<p>So is there a way to pass variables from one nativeWindow to another? Say for example I have this :<br />
var wOptions:NativeWindowInitOptions = new NativeWindowInitOptions();<br />
wOptions.systemChrome = NativeWindowSystemChrome.NONE;<br />
var newWindow:NativeWindow = new NativeWindow(wOptions);<br />
newWindow.bounds = new Rectangle(0, 0, 1024, 768);<br />
var loaderMC:Loader=new Loader();<br />
loaderMC.load(new URLRequest(&#8221;testing.swf&#8221;));<br />
newWindow.stage.addChild(loaderMC);<br />
newWindow.activate();</p>
<p>&#8212;-<br />
so i have a new window opened up and now i want the testing.swf to receive a variable from that &#8220;original opener&#8221;<br />
is that possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robin</title>
		<link>http://blog.everythingflex.com/2007/07/17/air-windows/#comment-403</link>
		<dc:creator>robin</dc:creator>
		<pubDate>Wed, 28 May 2008 02:30:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2007/07/17/air-windows/#comment-403</guid>
		<description>var newWindow:Window = new Window();
	    newWindow.title = "A title";
	    newWindow.width = 480;
	    newWindow.height = 320;

	    var sw:Number=Capabilities.screenResolutionX;
		var sh:Number=Capabilities.screenResolutionY;
		newWindow.x=(sw-newWindow.width)/2;
		newWindow.y=(sh-newWindow.height)/2;
		var ft:HTML=new HTML();
		//var ft:TextField=new TextField();
		ft.htmlText=data.content;
		newWindow.addChild(ft)
		newWindow.open();
------------------------------------------------------
i use window class ,but the window show nothing</description>
		<content:encoded><![CDATA[<p>var newWindow:Window = new Window();<br />
	    newWindow.title = &#8220;A title&#8221;;<br />
	    newWindow.width = 480;<br />
	    newWindow.height = 320;</p>
<p>	    var sw:Number=Capabilities.screenResolutionX;<br />
		var sh:Number=Capabilities.screenResolutionY;<br />
		newWindow.x=(sw-newWindow.width)/2;<br />
		newWindow.y=(sh-newWindow.height)/2;<br />
		var ft:HTML=new HTML();<br />
		//var ft:TextField=new TextField();<br />
		ft.htmlText=data.content;<br />
		newWindow.addChild(ft)<br />
		newWindow.open();<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
i use window class ,but the window show nothing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://blog.everythingflex.com/2007/07/17/air-windows/#comment-401</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Fri, 23 May 2008 01:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2007/07/17/air-windows/#comment-401</guid>
		<description>As a follow up to my last comment in case people might be wondering, this works...

this.nativeWindow.addEventListener(NativeWindowBoundsEvent.MOVING, movingWindow);
public function movingWindow(event:NativeWindowBoundsEvent):void{
	 trace("moving");
}

this refers to the main window of the WindowedApplication, within each window mx object (including the 'this' WindowedApplication) is a nativeWindow which is what is needed for the event watching.

PS. Instead of MOVING , you can replace this with MOVE (after event has moved), or RESIZE, etc.  Check the docs for  NativeWindowBoundsEvent events.</description>
		<content:encoded><![CDATA[<p>As a follow up to my last comment in case people might be wondering, this works&#8230;</p>
<p>this.nativeWindow.addEventListener(NativeWindowBoundsEvent.MOVING, movingWindow);<br />
public function movingWindow(event:NativeWindowBoundsEvent):void{<br />
	 trace(&#8221;moving&#8221;);<br />
}</p>
<p>this refers to the main window of the WindowedApplication, within each window mx object (including the &#8216;this&#8217; WindowedApplication) is a nativeWindow which is what is needed for the event watching.</p>
<p>PS. Instead of MOVING , you can replace this with MOVE (after event has moved), or RESIZE, etc.  Check the docs for  NativeWindowBoundsEvent events.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://blog.everythingflex.com/2007/07/17/air-windows/#comment-399</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Thu, 22 May 2008 18:20:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2007/07/17/air-windows/#comment-399</guid>
		<description>This works great... A few questions that someone may be able to answer
1) Is there an easier way to send a referenced of WindowedApplication to the new Window instance other than sending the reference of (this) from the WindowedApplication.
2) How do you handle a moving event for a Window class (which includes WindowedApplication). A moving event only works for a NativeWindow which is at the heart of every Window object. So if I'm in the parent, can I reference it as : this.NativeWindow.addEventListener(NativeWindowBoundsEvent.MOVING, mainAppWinMoving)

That's just rough code from the top of my head, but it threw me an error as I started to move it (if I remember correctly, don't have it right in front of me). The error was a casting one I think.</description>
		<content:encoded><![CDATA[<p>This works great&#8230; A few questions that someone may be able to answer<br />
1) Is there an easier way to send a referenced of WindowedApplication to the new Window instance other than sending the reference of (this) from the WindowedApplication.<br />
2) How do you handle a moving event for a Window class (which includes WindowedApplication). A moving event only works for a NativeWindow which is at the heart of every Window object. So if I&#8217;m in the parent, can I reference it as : this.NativeWindow.addEventListener(NativeWindowBoundsEvent.MOVING, mainAppWinMoving)</p>
<p>That&#8217;s just rough code from the top of my head, but it threw me an error as I started to move it (if I remember correctly, don&#8217;t have it right in front of me). The error was a casting one I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: everythingflex</title>
		<link>http://blog.everythingflex.com/2007/07/17/air-windows/#comment-405</link>
		<dc:creator>everythingflex</dc:creator>
		<pubDate>Wed, 30 Apr 2008 08:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2007/07/17/air-windows/#comment-405</guid>
		<description>You could pass a reference of the parent into the new window or create an event listener on the parent to listen for events being broadcast from the new window.</description>
		<content:encoded><![CDATA[<p>You could pass a reference of the parent into the new window or create an event listener on the parent to listen for events being broadcast from the new window.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

