dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: FlashMX/Javascript--Opening a popup???

  1. #1
    Junior Member
    Join Date
    Apr 2002
    Posts
    28
    Ok I used the javascript button code generator to generate pop up windows for a site I'm working on. When you click the button nothing happens... what's wrong with this code? The movie IS embedded in HTML.

    on (release) {
    getURL ("javascript:NewWindow=window.open('http://www.anotherdimensiontattoo.com/mike.html','Mike','width=800,height=600,left=0,top =0,toolbar=No,location=No,scrollbars=Yes,status=No ,resizable=No,fullscreen=No'); NewWindow.focus(); screen_height = window.screen.availHeight; screen_width = window.screen.availWidth; left_point = parseInt(screen_width/2)-(800/2); top_point = parseInt(screen_height/2)-(600/2); setTimeout('NewWindow.moveTo(left_point,top_point) ',100); void(0);");

    This is the code generator
    http://www.flash-db.com/PopUp/

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    It's usually better to have the javascript function in the html and to just call it from Flash with/without a few parameters.

    on (release) {
    getURL ("javascript:my_newWindow(parameter,parameter,para meter)");
    }


  3. #3
    Junior Member
    Join Date
    Apr 2002
    Posts
    28
    Originally posted by oldnewbie
    It's usually better to have the javascript function in the html and to just call it from Flash with/without a few parameters.

    on (release) {
    getURL ("javascript:my_newWindow(parameter,parameter,para meter)");
    }

    How do I set the function in the html for the popup window?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center