HTML control doesn't allow browser pop-ups from within page

I've noticed that pop-ups are not allowed from inside of the
mx:HTML control. Both JavaScript popups and the targeting of a new
browser window from within both an HTML page or SWF movie doesn't
seem to work. I would hope that the user's default browser would be
utilized in this sort of instance.
For example: if I load www.cnn.com using the HTML control
into an AIR app - and then click an ad on that site - under normal
circumstances a new browser window would be launched - in AIR
nothing happens.
Is this a limitation or is there some sort of workaround?
Thanks,
David

In order to accomplish this one has to override the createWindow function of the htmlhost class
    override public function createWindow(windowCreateOptions : HTMLWindowCreateOptions) : HTMLLoader {
        //Option1:
        //var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
        //var bounds:Rectangle = new Rectangle(windowCreateOptions.x,windowCreateOptions.y,windowCreateOptions.width,windowCre ateOptions.height);
        //var htmlControl:HTMLLoader = HTMLLoader.createRootWindow(true, initOptions, windowCreateOptions.scrollBarsVisible, bounds);
        //htmlControl.htmlHost = new HTMLHost2();
        //if(windowCreateOptions.fullscreen){
        //htmlControl.stage.displayState =
        //StageDisplayState.FULL_SCREEN_INTERACTIVE;
        //return htmlControl;
        //Option2:
        //var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
        //var window:NativeWindow = new NativeWindow(initOptions);
        //window.visible = true;
        //var htmlLoader2:HTMLLoader = new HTMLLoader();
        //htmlLoader2.width = window.width;
        //htmlLoader2.height = window.height;
        //window.stage.scaleMode = StageScaleMode.NO_SCALE;
        //window.stage.addChild(htmlLoader2);
        //return htmlLoader2;

Similar Messages

  • I can allow pop-ups from certain sites in Tools/Settings, why then can I not also block pop-ups from certain sites since Firefox doesn't always manage to block them?

    Whenever I visit, for instance, merriam-webster.com an ad from groupon invariably pops up in a new window.
    OK, so Firefox does not manage to block it although I have this option checked in Tools/Settings/Content.
    But why can I not enter the URL of the groupon ad and manually block it?
    I can allow pop-ups from sites of my choice in Tools/Settings/Content, I think I should also be able to block sites?

    See - http://kb.mozillazine.org/Popups_not_blocked

  • I keep getting pop ups from spyware advertisers wanting me to purchase spyware. they won't go away or allow me to do anything else.

    I keep getting pop ups from your spyware advertisers wanting me to purchase spyware. they won't go away or allow me to do anything else. It is extremely annoying.

    Mozilla Firefox does '''not''' support/endorse/encourage spyware advertisers.
    If you think these popups are from spyware advertisers, you should try to scan and remove the spyware from your system. This article has more information on how to do that: [http://kb.mozillazine.org/Popups_not_blocked#Spyware_on_Windows Spyware on Windows].
    In future, you can install the [https://addons.mozilla.org/firefox/addon/adblock-plus Adblock Plus add-on] to block such ads.

  • I need to know how to allow pop ups from a specific site.

    I need to allow pop ups from a website for schooling purposes. I need to know what I have to do to allow these pop ups please. Thank you for your time.

    Add an exception to '''Allow''' that website. <br />
    https://support.mozilla.com/en-US/kb/Pop-up%20blocker#w_pop-up-blocker-settings

  • How to stop pop-ups from parental control

    I set parental control on but every time I try to visit a site a pop-up comes saying i can not visit a site when I am not even trying to visit the site that it is saying i can not visit, so how do i keep the parental control on but stop the pop-ups?

    If it is ads, download this program which was written by Thomas Reed, a long time poster.
    Malware Guide – AdwareMedic – 10.7 and higher
    Malware – Adware removal – Apple Support

  • Open browser pop up from an exe file

    Hi
    Can you help me with this?:
    I have to open an internet browser pop up from a movie, that
    is an exe file...
    And I don´t know how to do it... :(
    I´ve seen the manuals, but all the instruccions are for
    a movie that is into an html file, and this is not my case...
    thanks a lot!
    Sofia

    Hi, LuigiL...
    but... with getURL() I can´t restrict the dimensions of
    the window....
    I need a window of 1008x650 pixels exactly with no scrollbar.
    How can I do it?
    thanks again

  • Pop Ups from Presentations

    Why does ALBPM not allow POP-UPS from presentations.
    I tried displaying a message using the DISPLAY statement inside of a presentation when a user clicks SUBMIT, the method is invoked.
    But since this was a pop-up, ALBPM gave me a Component Execution Exception with the following reason:-
    Reason: 'Cannot invoke an interactive component method from a BPM Object presentation.

    You can use the "showError" and "showWarning" statements to display information from a BPM Object Presentation.
    For example, you might have a field with an "on change invoke" method assigned. You could then create logic like that shown below in a method in the BPM Object. This method cannot have the property "Server Side Method" set to true.
    if this.number = 0 then
    showError this
    using error = "The number must be greater than 0."
    end
    Both showError and showWarning take a string as the only parameter. What's nice about this is that it will show the warning or error inside (default is the bottom) of the presentation. This avoids the ugliness of popups.
    As a side note - beware of using "display" and "input" statements in logic. When not invoked from a screenflow, they tie up a thread as long as the end user has the display or input screen up.
    hth,
    Dan

  • I have an iPhone 4 and my lock button is jammed and I also can not touch anything on the left side of my screen well as any pop ups from the phone itself, so i can not get past the set up stage in reset process...how can i fix it/can it be fixed?

    I have an iPhone 4 and my lock button is jammed and I also can not touch anything on the left side of my screen well as any pop ups from the phone itself, so i can not get past the set up stage in reset process...how can i fix it/can it be fixed?

    Make an appointment at the genius bar and get the phone replaced.

  • How do I pull up the left control panel that allows you to move from text to moving objects on page?

    How do I pull up the left control panel that allows you to move from text to moving objects on page?

    Do you mean this one:
    If so, go to the Window menu and make sure that Tools is checked.

  • Constantly getting pop-ups from Itunes!

    Constantly getting pop-ups from Itunes!

    What do the pop-ups look like and where do you see them, could they be some other application?
    If you haven't already, update iTunes. Also, remove any old iTunes plug-ins.

  • Prevent pop ups from opening in safari

    Despite I prevented pop ups from opening in Safari in preferences; they still keep popping up. I installed two add block extensions but in-vain.

    There is no need to download anything to solve this problem. You may have installed a variant of the "VSearch" ad-injection malware.
    Triple-click the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination  command-C:
    /Library/LaunchDaemons
    In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder named "LaunchDaemons" may open. Look inside it for a file with a name of the form
              com.something.daemon.plist
    Here something is a variable word, which can be different in each case. It could be "cloud," "dot," "highway," "submarine," "trusteddownloads," or pretty much anything else.
    There may also be a file named
               com.something.helper.plist
    in the same folder.
    Leave the LaunchDaemons folder open, and open the following folder in the same way:
    /Library/LaunchAgents
    In this folder, there may be a file named
              com.something.agent.plist
    where the word something is exactly the same as before.
    If you feel confident that you've identified these three files, back up all data, then drag the three files you found to the Trash. You may be prompted for your administrator login password. Close the windows and restart the computer.
    Don't delete the "LaunchAgents" or "LaunchDaemons" folder or anything else inside either one.
    The malware is now permanently inactivated, as long as you never reinstall it. You can stop here if you like, or you can remove two remaining components for the sake of completeness.
    Open this folder:
    /Library/Application Support
    If it has a subfolder named just
               something
    (where something is the same word as before), drag that subfolder to the Trash and close the window.
    Don't delete the "Application Support" folder or anything else inside it.
    Finally, in this folder:
    /System/Library/Frameworks
    there may an item named exactly
                v.framework
    It's actually another folder, though it has a different icon. Drag it to the Trash and close the window.
    Don't delete the "Frameworks" folder or anything else inside it.
    If you didn't find the files or you're not sure about the identification, post what you found.
    If in doubt, or if you have no backups, change nothing at all.
    The trouble may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • Why do we have pop ups from google? How do you stop them entirely, it's annoying

    Why do we have pop ups from google? How do you stop them entirely, it's annoying. I use the iPad 2' with the most current version of software

    The contacts app is nothing more then looking at the contacts from the phone app.
    What's the story here?"
    The forums would be full of people complaining that you had to go through an additional step ( opening the phone app) to get to contacts.  I use the contacts app from the home screen far more often then I use it in relation to calling someone.
    I like the way it is far more than the way you propose.
    You can leave feedback for Apple at:
    http://www.apple.com/feedback

  • Is MacKeeper supported by Apple?  I keep getting pop-ups from it but I'm also getting them each time I click links within links? This is all new.

    Is MacKeeper supported by Apple?  I keep getting pop-ups from it but I'm also getting them each time I click links within links?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • I am getting pop-ups, and web pages are opening with "special offers." My yahoo mail has advertising covering the mail messages. This is new. What do I do?

    I am getting pop-ups, and web pages are opening with "special offers." My yahoo mail has advertising covering the mail messages. This is new. What do I do?

    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    SCAN WITH ALL PROGRAMS.
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • Pop ups and ad pages that jump in front of the page I click on. I have blocked How to get rid of popups in Chrome and Safari as well as system preferences

    I can't get rid of the annoying and time wasting pop ups and ad pages that jump in front of the page I click on. I have blocked popups in Chrome and Safari as well as system preferences

    You most likely installed adware along with something else you recently installed.
    You can either follow Apple's manual instructions for removing it, or the free automated tool, AdwareMedic.

Maybe you are looking for

  • My ipod touch was taken by a family member along with the box containing serial number.  Any way of tracking it ?

    My daughter's Ipod touch was taken by a family member...anyway of telling whether or not it was connected to a copmuter and re assigned under another name...Ipod was originally registered under my name.

  • My imac has sound but no picture?

    My IMac has sound but no picture? I've tried everything but a hard restart. Anyone else know a solution? Oh by the way, my eight your old son was the last to use it but swears he didn't press anything.

  • Cannot Access Itunes

    Okay. I realize that itunes is busy with the Christmas rush. But, I've done everything listed in these forums and still cannot access itunes. People are saying they are getting in, intermittantly, but I've had no luck since Christmas Day when the new

  • Unable to connect to xend

    Hello, All of a sudden I am faced with the following problem: [root@vmserver OVS]# xm list Error: Unable to connect to xend: No such file or directory. Is xend running? [root@vmserver OVS]# service xend status xend daemon running (pid 4170) [root@vms

  • How do I get rid of the EXS24 sample processing when I launch a project?

    Whenever I launch a Logic project, I get a "Process" window that loads my EXS24 samples. This can be somewhat lengthy. I am using Logic 8 now, but this happened in Logic 7 as well; although, I don't remember it always being in place. Did I switch on