A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: help inserting code in KM

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    12

    help inserting code in KM

    Hi there

    I am adding streaming to my website and have received a link from the streaming company for a popup media player.

    I have a text button created in KoolMoves called Dial Up

    Where do I insert this code to get the popup player to show up when clicked?

    actionscript (AS 2.0)


    on (release) {

    var jscommand:String = "window.open('http://v2.player.abacast.com/player/player.php?pid=kojmam','kojmam','height=380,width= 480,toolbar=no,scrollbars=no');"; getURL("javascript:" + jscommand + " void(0);");

    }

    thanks for your help ..Rob

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Add a button to your movie then in the properties of the button there is Actionscript Open the editor and add:

    Code:
    on (release) {
    
                jscommand = "window.open('http://v2.player.abacast.com/player/player.php?pid=kojmam','kojmam','height=380,width=480,toolbar=no,scrollbars=no');"; getURL("javascript:" + jscommand + " void(0);");
    
    }

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