Can I attach a javascript to an Actionscript Movie Button?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • windows8help
    New Member
    • Sep 2013
    • 1

    Can I attach a javascript to an Actionscript Movie Button?

    I use Livezilla for chat via my website, I am updating the site with a flash based design and wondering if I can attach the Livezilla chat script to my Actionscipt button which is a movie.

    The chat code:

    Code:
    <!-- LiveZilla Chat Button Link Code (ALWAYS PLACE IN BODY ELEMENT) --><a name="livezilla_chat_button" href="javascript:void(window.open('http://mydomain.com/livezilla/chat.php?acid=c8907&amp;cmb=MQ__','','width=590,height=760,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))" class="lz_cbl"><img src="http://mydomain.com/livezilla/image.php?acid=bb87e&amp;id=1&amp;type=inlay" width="160" height="40" style="border:0px;" alt="LiveZilla Live Chat Software" /></a><!-- http://www.LiveZilla.net Chat Button Link Code --><!-- LiveZilla Tracking Code (ALWAYS PLACE IN BODY ELEMENT) --><div id="livezilla_tracking" style="display:none"></div><script type="text/javascript">
    /* <![CDATA[ */
    var script = document.createElement("script");script.async=true;script.type="text/javascript";var src = "http://mydomain.com/livezilla/server.php?acid=ef253&request=track&output=jcrpt&cmb=MQ__&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1);
    /* ]]> */
    </script><noscript><img src="http://mydomain.com/livezilla/server.php?acid=ef253&amp;request=track&amp;output=nojcrpt&amp;cmb=MQ__" width="0" height="0" style="visibility:hidden;" alt="" /></noscript><!-- http://www.LiveZilla.net Tracking Code -->
    
    
    The Actionscript 2.0 Button:
    on (rollOver) {
    	this.gotoAndPlay("s1");
    
    }
    on (rollOut, releaseOutside) {;}
    this.gotoAndPlay("s2");

    I am very novice at this so I appologize if I am asking a dumb question here.
    Last edited by Rabbit; Sep 9 '13, 04:57 PM. Reason: Please use code tags when posting code or formatted data.
Working...