Solved

how to open a brower window with no menu bars from Flex 3

Posted on 2011-02-15
4
517 Views
Last Modified: 2012-05-11
I can open a new web browser window with:
var thePetPhoto:URLRequest = new URLRequest(serverPath+"/PetPhotos/sendFTPPet.php");
var variables:URLVariables = new URLVariables();

variables.petID = myPetData.pet_id;
variables.petName = myPetData.pet_Name;
                              
thePetPhoto.data = variables;
navigateToURL(thePetPhoto,"_blank");

BUT
I can not find a way to open the window without menu bars and address bar.
I can do it from a html page with javascript document.open but not from Flex 3.

Thanks Rick
0
Comment
Question by:rickydan101
  • 2
  • 2
4 Comments
 
LVL 20

Expert Comment

by:ChristoferDutz
ID: 34895220
My best tip would be to use the Flex ExternalInterface and to user JavaScript commands to open the popup:
http://www.flash-db.com/PopUp/JavaScriptPopUp.php?page=2
http://javascript.about.com/library/blpopup1a.htm
0
 

Author Comment

by:rickydan101
ID: 34901718
This is part of a large application and I would really not like to uses javascript in the main container html page.

BTW the first link using getURL only works with Flex 2 and the second page does not seem to have any real help, but thanks for trying.
0
 
LVL 20

Accepted Solution

by:
ChristoferDutz earned 500 total points
ID: 34902007
Ok .. sorry for the Flex2 link .... think this will help:
http://www.flepstudio.org/forum/tutorials/894-actionscript-calls-javascript-externalinterface-class-flash-cs3.html

But it still seems that you would have to add a small piece of code in your html-wrapper of include a small JavaScript file to it.
0
 

Author Comment

by:rickydan101
ID: 34904427
Nice job that's what I needed. Did have to uses the javascript in the container but with some modifications it is working great.

Thanks
0

Featured Post

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question