|
| Opening a new browser window |
 |
Mon, 29 May 2006 07:36:38 +000 |
Is it possible to open a new browser window, on click of a button in Flex?
|
| Post Reply
|
| Re: Opening a new browser window |
 |
Wed, 31 May 2006 00:19:32 +000 |
Take a look at <a target=_blank class=ftalternatingbarlinklarge
href="http://livedocs.macromedia.com/labs/1/flex20beta3/langref/flash/net/p
ackag
e.html#navigateToURL()">this link</a>
Is it what you need?
Regards
|
| Post Reply
|
| Re: Opening a new browser window |
 |
Mon, 5 Jun 2006 19:05:11 +0000 |
|
| Post Reply
|
| Re: Opening a new browser window |
 |
Tue, 6 Jun 2006 19:45:42 +0000 |
No, you don't have to make a function at all. Something as simple as this will
work:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="<a target=_blank
class=ftalternatingbarlinklarge
href="http://www.adobe.com/2006/mxml"">http://www.adobe.com/20
06/mxml"</a>
layout="absolute">
<mx:Button
label="Open New Window"
click="navigateToURL( new URLRequest( '<a target=_blank
class=ftalternatingbarlinklarge
href="http://www.google.com'">http://www.google.com'</a> )
);" />
</mx:Application>
|
| Post Reply
|
| Re: Opening a new browser window |
 |
Sun, 11 Jun 2006 00:27:02 +000 |
On a similar topic, I wrote a few days ago on
http://www.mossyblog.com/archives/567.cfm the following:
[Q]A little late here on the party but I want to stress that Flex 2 must
*absolutely* support the Firefox (and IE 7) ? Open in new tab ? feature when a
link is right-clicked.
I played with the
http://flexapps.macromedia.com/flex2beta3/styleexplorer/Flex2StyleExplorer.html
and links do not appear to have that feature enabled. But I could be wrong.
Any heavy or serious beta 3 testers out there who verified that?[/Q]
Not knowing beforehand, I right-click a link to open it in a new tab (common
in Firefox but will be so in IE7) only to discover the typical [i]Adobe Flash
menu[/i] without the required functionality. While moaning :frown;, I therefore
left-click while loosing the context.
You know, it's such details that create Flash rants!
Seamless experience in a browser requires such native behavior from Flex.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|