Solved

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

Posted on 2011-02-15
4
510 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

743 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now