How can I open a new window in Flex 3 under Opera without unload my app ?

Hi,

For my development, I use Flex 3.0.1.

At beginning, user type his username and password. But I have a link to retrieve forgotten password which open a URL in a new window (or tab).
In IE, FF and Safari, I haven't any problems, but under Opera, new window is opened in a new tab but my initial flex app is unload.

Did someone have a solution ?
KCTeamAsked:
Who is Participating?
 
evcrConnect With a Mentor Commented:
works here:
---- opera.mxml ----
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
	<![CDATA[
		 public function goURL():void {
	        var u:URLRequest = new URLRequest("http://localhost/eedemos/bin-debug/opera2.html");
	        navigateToURL(u,"_blank");
	     }
	]]>
</mx:Script>
	<mx:Button x="10" y="10" label="Page 1" click="goURL();"/>
</mx:Application>
 
---- opera2.mxml ----
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
	<![CDATA[
		 public function goURL():void {
	        var u:URLRequest = new URLRequest("http://localhost/eedemos/bin-debug/opera.html");
	        navigateToURL(u,"_blank");
	     }
	]]>
</mx:Script>
	<mx:Button x="10" y="10" label="Page 2" click="goURL();"/>
</mx:Application>

Open in new window

0
 
evcrCommented:
can you post some code showing the problem?
0
 
evcrCommented:
oh i see what you mean, i'll get back to you
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
evcrConnect With a Mentor Commented:
you said the first Flash is 'unloading' do you mean 'restarting' i.e. when you go back to the first tab the application has restarted?

I'd need to see some code to see what's happening

k
0
 
KCTeamAuthor Commented:
First, thanks for your answers.

My app is very huge, I cannot put code here, but I'm still working on problem identification.

What I know :
  1. I can only use navigateToURL() to open URL because other methods are blocked by Opera. I use "_blank" parameter.
  2. With a new very simple project, this is working properly.
My app is build like this :
  • MainApp.mxml which extends from MainAppClass.as
  • MainAppClass.as which
    • On creation complete : initialize new Login object
  • Login.as which
    • Build a new LoginGUI
    • popup LoginGUI with command :
      • PopUpManager.addPopUp(aLoginGUI, (Application.application as MainApp), false)
    • ==>> Here, user can click on links (==>> problems)
  • LoginGUI.mxml

I don't expect a solution, but if you (or somebody else)  have ideas...
For my part, I try to reduce code to identify problem.


Thanks a lot.
0
 
KCTeamAuthor Commented:
To help you to understand, I attach an animated screen shot of what happening. Sorry for poor quality and French language used.

At the end in flash context menu, "Animation non chargée" => "Non loaded animation".

error.gif
0
 
evcrConnect With a Mentor Commented:

maybe not much help here but what happens if you run this from it's html wrapper instead of running the swf directly i.e. KPWebDeskFullFlex.html instead of KPWebDeskFullFlex.swf





0
 
KCTeamAuthor Commented:
It's the same.

I'm going to try to reduce code to identify problem.
0
 
KCTeamAuthor Commented:
Very hard problem, very hard to explain
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.