Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Mar 2005
    Posts
    735
    Thanks
    4
    Thanked 1 Time in 1 Post

    How to call javascript from actionscript

    I want to call (I don't know if this is done correctly):
    Code:
    stop();
    ExternalInterface.call("divNone");
    The external js file has:
    Code:
    //for flash intro
    function divNone(){
    	document.getElementById("flashDiv").style.display = "none";
    }
    Compare bible texts (and other tools):
    TheWheelofGod

  • #2
    Regular Coder
    Join Date
    Nov 2008
    Posts
    165
    Thanks
    0
    Thanked 0 Times in 0 Posts
    correct...


    but dont forget to add

    Code:
    import flash.external.ExternalInterface;
    before your call

  • #3
    Regular Coder
    Join Date
    Mar 2005
    Posts
    735
    Thanks
    4
    Thanked 1 Time in 1 Post
    Quote Originally Posted by gani View Post
    correct...


    but dont forget to add

    Code:
    import flash.external.ExternalInterface;
    before your call;)
    In the actionscript or in the javascript function?
    Compare bible texts (and other tools):
    TheWheelofGod

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    The actionscript.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •