Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Calling YUI functions from Flash

  • 12-11-2010 12:32PM
    #1
    Registered Users, Registered Users 2 Posts: 79 ✭✭


    Hi all,

    feel stupid for asking this but anyway. I usually use jQuery but am trying YUI. I have a flash file in a div and when i click a button in the flash file, I want it to animate the div to zero opacity so the code I have is:
    <script type="text/javascript" charset="utf-8" src="yui-min.js"></script>
    <script type="text/javascript">
    
    YUI().use("anim", function(Y) {
        var anim = new Y.Anim({
            node: '#NT1-ad-container',
            to: { opacity: 0 }
        });
    });
    </script>
    

    How do I call from Flash?
    flash.external.ExternalInterface.call('YUI.anim.run()');
    
    ??? not working


Advertisement