1 person found this helpful
You can open the new window as a TitleWindow popup. You can pass info back to the main app using mx.core.Application.application.
In main app:
public var windowInfo:Object;
private var app:Object = mx.core.Application.application;
app.windowInfo.x = this.x;
app.windowInfo.y = this.y;
app.windowInfo.otherOne = this.otherProp;
Looking ahead, it is best to pass information between the main app and components using custom components. Below systemManager, popups and the main app are in different display lists, so add event listeners for custom events to systemManager. My Flex Cookbook post on custom events shows this:
If this post answers your question or helps, please mark it as such.
Thanks, I thought this was going to be it, but from what I'm seeing, you can't open like a WHOLE new window with flex? only windows INSIDE the window your working with? Not sure how to explain it, I used to use VB6 and .NET a lot and would have another window open seperate of the main window I was working with so it could be dragged to another monitor. From what I'm seeing with this, it seems like I can only popup this title window thing inside the main application window itself? I can't seem to get it into a completely seperate window outside of the main application window? Is that not possible in Flex?
Hope this helps.
This is an AIR app so what am I missing? why won't it open outside the app window? I'm trying the examples in the help files
Sorry i think i had not read the whole post.
This is an easy way to get a NativeWindow
1. Create an MXML component based on Window. (i think canvas is the default...)
2. In your main app, (<mx:WindowedApplication> for example..) import the component my case:
3. Instantiate the component and open it in a new window:
var mySender:SendSMS = new SendSMS();
mySender.height = 500;
mySender.width = 500;
That is all.... with all honesty, im not much farther away from you in AIR knowledge, but people have been friendly here and helped me, so i would like to give something back.
Hope this helps.
Oh... also for comunicating between this new window and the main app you have to do it by events, most likely to create your own custom event.
Thanks guys, hopeuflly the hard part is over LOL
I've used the drawing api stuff in Flash before... hoping I can do the same thing in Flex..