Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Open a new window in AIR

former_member583013
Active Contributor
0 Kudos

Ok...This is a newbie question...I know -:(

Supposed that in my project I got a file named Main.mxml and another one called About.mxml...So I want to open About.mxml when I press a button on Main.mxml

I have search for answers, but so far have only found that I need to create the new window by code...Isn't any other way??? Like in VB6 where it should be...


About.show()

Greetings,

Blag.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Alvaro,

I have worked a bit on RIAs using Adobe Flex though not in integration with SAP.

Use the below code if useful,

Function

private function <function name>() : void
	{
        var u:URLRequest = new URLRequest("<url address>");
        navigateToURL(u,"_blank");
	}

Function Call

<mx:Image toolTip="<Tooltip text>" complete="smooth(event)" source="<image path>" scaleX=".5" scaleY=".5" mouseDownEffect="{blurImage}" 
			       mouseUpEffect="{unblurImage}" click="<function name>()"/>

3 REPLIES 3

Former Member
0 Kudos

Hi Alvaro,

I have worked a bit on RIAs using Adobe Flex though not in integration with SAP.

Use the below code if useful,

Function

private function <function name>() : void
	{
        var u:URLRequest = new URLRequest("<url address>");
        navigateToURL(u,"_blank");
	}

Function Call

<mx:Image toolTip="<Tooltip text>" complete="smooth(event)" source="<image path>" scaleX=".5" scaleY=".5" mouseDownEffect="{blurImage}" 
			       mouseUpEffect="{unblurImage}" click="<function name>()"/>

0 Kudos

Thanks for your answer -:) But I needed to open a new Flex AIR window, and not a Flex web window -;)

Dan McWeeney answered me on [Twitter|http://twitter.com/dan_mcweeney/statuses/934492599] -:)

Greetings,

Blag.

0 Kudos

Sorry should have tried to re post it here!

-d