[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2234
  • Last Modified:

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 ?
0
KCTeam
Asked:
KCTeam
  • 5
  • 4
3 Solutions
 
evcrCommented:
can you post some code showing the problem?
0
 
evcrCommented:
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:
oh i see what you mean, i'll get back to you
0
Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

 
evcrCommented:
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
 
evcrCommented:

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

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now