Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    14
    Member #
    7218
    I have a site that is 100% flash. On a page of the site I have a graphic window set to Alpha 0%. Inside that graphic are icons. When you click on the icon a new custom window opens using this script:
    on (release) {
    getURL ("javascript:NewWindow=window.open('http://www.broadbuiltkennels.com/stormypedigree.htm','snc','left=0,top=0,toolbar=No ,location=No,scrollbars=Yes,status=No,resizable=Ye s,fullscreen=Yes'); NewWindow.focus(); void(0);");
    }

    It works fine on my desk set that I am designing it on and on other computers that I have tested it on. But it will not work from my laptop. I don't get a popup blocker message or anything else, nothing happens at all like there is no link there or something. I tried removing the graphic window on top, and still no luck. If there is something missing on the java level, I'm worried that others that may have the same setup may have the same problem with no message.
    Any ideas what could be the problem?

  2.  

  3. #2
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    Many people will have problems viewing a javascript popup invoked from flash, because it's a serious security problem. You should invoke the popup from HTML (a hyperlink, for example), if anything.

  4. #3
    Senior Member
    Join Date
    Mar 2004
    Posts
    241
    Member #
    5465
    I'm not sure if the method I used is still a security problem, but here is what I have used in the past. On the button instance in Flash, this code;

    Code:
    on (release) {
    	getURL("JavaScript:news();");
    }
    Then, in the HTML document, in the HEADing:

    Code:
    <SCRIPT LANGUAGE="JavaScript">
    function news() {
    window.open('news.swf','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=425,height=210,left=400,top=250');
    }
    </script>
    Basically the button press calls the javascript function in the html document. It seems very similar to the method you have, but perhaps I read somewhere that this was more reliable?

    Anyways, doesn't hurt to give it a shot.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 07:30 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com