# Swfobject as3 issue

**URL:** <https://forum.kirupa.com/t/swfobject-as3-issue/280515>\
**Category:** Uncategorized\
**Created:** [January 28, 2009, 1:22pm UTC](https://forum.kirupa.com/t/swfobject-as3-issue/280515 "2009-01-28T13:22:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kookaburra](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@kookaburra](https://forum.kirupa.com/u/kookaburra)\
**Post date:** [January 28, 2009, 1:22pm UTC](https://forum.kirupa.com/t/swfobject-as3-issue/280515/1 "2009-01-28T13:22:38Z")

</div>

I’m writing the following code to embed an swf file into php file.

[AS] var so = new SWFObject(“test.swf”, “mymovie”, “1152”, “700”, “8”, “#FFFFFF”);  
**so.addVariable(“varurl”, “[http://www.google.com](http://www.google.com)”);**  
so.write(“flashcontent”);[/AS]

but I don’t know how to access the variable “varurl” that i’ve added in the second line above. In flash 8 with AS2, I would just use \_root.varurl. But it doesn’t seem to work in AS3.
