A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: A javascript popup from Flash

  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    17
    Hi there, thanks for stopping by

    I'm trying to make a javascript popup from flash. Here is the code in my Flash button:

    on (press) {
    fscommand ("myPopup");
    }

    OK and here is the code in my html file:

    <script language= "javascript">
    <!--begin hiding javascript from older browsers
    function main_DoFSCommand(command,args){
    if (command == "myPopup") {
    window.open('digbotpopup.htm','640x480','toolbar=n o,status=no,scrollbars=no,location=no,menubar=no,d irectories=no,width=244,height=450')
    }
    }

    // end the javascript hiding -->
    </script>

    It's probly something I overlooked or just don't know. Much obliged if you can help me
    Peace
    Scion

  2. #2
    NerdInside's Avatar
    Join Date
    May 2001
    Location
    Penguin Island
    Posts
    3,439
    add this to your HTML document:
    Code:
    <script language="javascript">
    function popWin () {
    window.open('digbotpopup.htm','640x480','toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width=244,height=450')
    }
    </script>
    Add this to a button
    Code:
    on (release) {
    getURL ("javascript:popWin();")
    }
    It should work.

  3. #3
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282

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