ActionScript and Javascript Integration

Hi there,

I recently began work on a custom chrome(controls) for YouTube chromeless player and I realized that in order to accomplish some of the things I wanted, I had to make calls to AS3 from Javascript.

I am only beginning to explore AS and I was wondering whether this is an advisable thing to do? If so is there a standard way of doing it?

thanks

Have a look at the externalInterface class. Popular video players like longtailvideos integrate with JavaScript, so that’s another source of information worth exploring

Hey thanks very much thats very kind :wink:

Is action script almost identical to JS ? Always wondered, never asked :slight_smile:

At a basic non object-orientated level, javascript is similar to as1/2 (they are both based on the ecmascript standard), however as3 in particular is more advanced, with a far wider ranging api, typing and object orientation features from later ecmascript revisions that haven’t made their way into mainstream javascript

Thanks for the info.