# Reading external variables

**URL:** https://forum.kirupa.com/t/reading-external-variables/249022
**Category:** flash
**Created:** [January 14, 2008, 6:46pm UTC](https://forum.kirupa.com/t/reading-external-variables/249022 "2008-01-14T18:46:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Corvus](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@Corvus](https://forum.kirupa.com/u/Corvus)
#### Post date: [January 14, 2008, 6:46pm UTC](https://forum.kirupa.com/t/reading-external-variables/249022/1 "2008-01-14T18:46:40Z")

</div>

[FONT=Arial][SIZE=2]I have a question:

I have a page in which the user will click on a watch video buton. This button is controlled via JavaScript (another programmer did this). He asked if it would be possible to have a swf with two buttons on it (on the same page where the JavaScrpt is): Low and high. The user should be able to choose one of the the two types of video (low or high resolution).

The problem:  
1 - The javaScript is sending the two variables with the low and high values. How my swf can access these variables.

2 - On [youtube.com](http://youtube.com), as I noticed, when you click on a link for a video, i.e: [COLOR=#003366]http://www.youtube.com/watch?v=65N\_1eSkKWg[/COLOR], it seems to me that the swf read that address and reacts acordingly.

3 - What kind o method inflash should I look into in order to start my programming?  
loadVars() or something like that?

Thanks.  
[/SIZE][/FONT]
