# Adding code to html link that passes variable into flash?

**URL:** https://forum.kirupa.com/t/adding-code-to-html-link-that-passes-variable-into-flash/202729
**Category:** flash
**Created:** [October 4, 2006, 10:12am UTC](https://forum.kirupa.com/t/adding-code-to-html-link-that-passes-variable-into-flash/202729 "2006-10-04T10:12:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fuggedaboutit](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@fuggedaboutit](https://forum.kirupa.com/u/fuggedaboutit)
#### Post date: [October 4, 2006, 10:12am UTC](https://forum.kirupa.com/t/adding-code-to-html-link-that-passes-variable-into-flash/202729/1 "2006-10-04T10:12:05Z")

</div>

Is it possible to add code (…html or php?) to an html link (i.e the link will be featured in an html website) that passes a variable into the flash site it links to (just something simple like '\_root.pageChoice = “home3” '? So when the site opens the swf turns to a certain page?

This will be necessary as there will be links to the site from different html sites and each will need to see a different version of a certain page

thanks in advance for any help
