Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorcyberjo50
    • CommentTimeNov 28th 2006
     permalink
    Im having a problem linking my flash button into a javascript.
    Here is my actionscript in flash8:

    this.feb_btn.onRollOver = function() {
    feb_btn.gotoAndPlay("over");
    }

    this.feb_btn.onRelease = function() {
    feb_btn.getURL("javascript:window.open('pop.html?miss=02', 'playboy mobile', 'height=436, width=558,toolbar=0,directories=0,menubar=0,scrollbars=0,resizable=0,top=350,left=350')");
    }

    this.feb_btn.onRollOut = function() {
    feb_btn.gotoAndPlay("out");
    }
    -------------------------------------------------------------------------------------------------------
    -just wonderin' if i linked the javascript right.
    -my actionscript is in separate layer and buttons are in separate layer too.
    -------------------------------------------------------------------------------------------------------

    OR any1 knows a better way to link those kind of pop ups javascript code in flash8?

    thank you all
    •  
      CommentAuthorJohnRiv
    • CommentTimeNov 29th 2006
     permalink
    Add this code to your HTML page in the HEAD of the document:

    <script type="text/javascript">
    function openWindow() {
    window.open("pop.html?miss=02", "playboy_mobile", "height=436, width=558,toolbar=0,directories=0,menubar=0,scrollbars=0,resizable=0,top=350,left=350");
    }
    </script>


    and change your this.feb_btn.onRelease actionscript function call to this:

    this.feb_btn.onRelease = function() {
    getURL("javascript:openWindow()");
    }
    •  
      CommentAuthorcyberjo50
    • CommentTimeNov 29th 2006
     permalink
    thank you jhonriv! this should do.
Add your comments
    Username Password
  • Format comments as (Help)