A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Flash/Javascript-- Opening a popup with a Flash button???

  1. #1
    Junior Member
    Join Date
    Apr 2002
    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);");

  2. #2
    Senior Member
    Join Date
    Mar 2000
    I think you have a line break in there that shouldn't be. Be sure the code is one long uninterrupted line.

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