# Passing variables from HTML into Flash (AS3)

**URL:** https://forum.kirupa.com/t/passing-variables-from-html-into-flash-as3/251111
**Category:** flash
**Created:** [February 5, 2008, 1:51pm UTC](https://forum.kirupa.com/t/passing-variables-from-html-into-flash-as3/251111 "2008-02-05T13:51:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Aneurin\_Mark\_II](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/aneurin_mark_ii/32/1564_2.png) [@Aneurin\_Mark\_II](https://forum.kirupa.com/u/Aneurin_Mark_II)
#### Post date: [February 5, 2008, 1:51pm UTC](https://forum.kirupa.com/t/passing-variables-from-html-into-flash-as3/251111/1 "2008-02-05T13:51:23Z")

</div>

With AS2 I would have done this like so (awful HTML but you get the idea):

```auto
<embed src="movie.swf?variable=value">

```

That would have given the variable ‘variable’ the value ‘value’ in the Flash object without any fuss. This doesn’t appear to work in AS3, possibly for the best. How can I pass variables into Flash in the same or a similar way without masses and masses of script?
