Johnvh.com - home of Dallas, Texas based Flash Developer and web enthusiast John Van Horn

Online home of John Van Horn

Flash’s secret Javascript API

Yahoo! invasion

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:
  1. 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 reply

No comments

Leave a reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>