Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Converting PDF to SWF with video embedded 11 453
Consuming Web Service output 2 392
Flex SDK setup 1 339
Flex AS3 image Compression 2 703
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…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

20 Experts available now in Live!

Get 1:1 Help Now