Search code examples
javascriptflash

Can I inject javascript code from the address bar into a flash video


With regular HTML it's possible to change the look of the page and make new cookies using javascript simply by typing it into the address bar and hitting Enter on keyboard.But what about flash videos.Is there a way to preform some action on the video on the page using javascript in the address bar?


Solution

  • Unless I have misunderstood your question, I would advise that the last thing you would want to do is allow Javascript entered into your address bar to have any control over your page content.

    Doing so allows users to abuse your pages and is also a security threat.

    If you can avoid passing Javascript via the address bar, it is entirely possible for Javascript to 'control' flash objects on the page. Check this out:

    http://livedocs.adobe.com/flex/3/langref/flash/external/ExternalInterface.html

    And also this thread too:

    Controlling a Flash Player using JavaScript