April 27, 2009
Flash’s secret Javascript API

Yahoo! invasion
Is that a Yahoo! ad in a Youtube player? No. It's a Yahoo! logo in a Youtube player. How did it get there? Via Flash's secret javascript api!
Ok, so it's not really secret. More like old, surely deprecated, and forgotten. I've been working with flash for a good while now, and I had no idea this existed until my friend Robert Ames stumbled upon it.
What's cool (or not cool) about this api, is that it's part of the Flash plugin itself and has nothing to do with Actionscript. All you have to do to enable this api is... well... embed a swf. Try going to a youtube video page like this one, and then entering this in the address bar:
-
javascript: document.getElementById( "movie_player" ).LoadMovie( 98, "http://l.yimg.com/a/i/ww/beta/y3.gif" );
I want to play around with this a bit more... I wouldn't be surprised if some of these API methods bypassed some of the Flash Player's security restrictions.
Comments
Leave a replyNo comments