2006
08.14
08.14
A little trick I’ve picked up along the way is to enter Javascript directly into the address bar in order to peek at variables inside a running flash movie.
Well I got bored of always having to specify the name/id of the flash movie and having to re-type variable paths in, so i wrote a bookmarklet that identifies the first flash movie on the page, prompts you to enter the variable name you want to see and also retains your last entry in a cookie.
Just open the link below, copy the Javascript (making sure to remove any linebreaks) and create a link in your browser’s links toolbar. Paste the javascript as the URL (ignoring any warnings) and then click it when viewing a page that contains a flash movie.
Hi,
this is a great concept – i can’t get it to work though.
I get a ‘null’ returned in Firefox and Safari.
Wondering if it works in Flash Player 9, or only in certain browsers.
I’d find this very useful indeed for web dev as I use flash alot. Are there any thoughts on why it doesn’t work correctly?
Thanks
Aha! It works in I.E!
cant get it to read any other variable than version though… is there a way to do this please?
Updated it today as I needed to use it for debugging a project. Think there was some buggy bits in there before.
You should be able to access all your vars now.
-k