# Passing variable from javascript to flash help pls

**URL:** <https://forum.kirupa.com/t/passing-variable-from-javascript-to-flash-help-pls/249974>\
**Category:** Uncategorized\
**Created:** [January 24, 2008, 2:49am UTC](https://forum.kirupa.com/t/passing-variable-from-javascript-to-flash-help-pls/249974 "2008-01-24T02:49:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matrix8369\_yaho](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@matrix8369\_yaho](https://forum.kirupa.com/u/matrix8369_yaho)\
**Post date:** [January 24, 2008, 2:49am UTC](https://forum.kirupa.com/t/passing-variable-from-javascript-to-flash-help-pls/249974/1 "2008-01-24T02:49:28Z")

</div>

Hello, I have been looking for a way to do this for a while now but havent really found an easy way of doing this. I want to pass a URL from javascript to my swf file so I can tell it to play a video when a button is clicked on the html page. Can some one show me an example of how to do this because I have to add this to the code flash spits out when you publish it. Any help would be awsome.
