# How to access variable using swfObject addVariable?

**URL:** <https://forum.kirupa.com/t/how-to-access-variable-using-swfobject-addvariable/236503>\
**Category:** flash\
**Created:** [August 21, 2007, 3:28pm UTC](https://forum.kirupa.com/t/how-to-access-variable-using-swfobject-addvariable/236503 "2007-08-21T15:28:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![helios02](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@helios02](https://forum.kirupa.com/u/helios02)\
**Post date:** [August 21, 2007, 3:28pm UTC](https://forum.kirupa.com/t/how-to-access-variable-using-swfobject-addvariable/236503/1 "2007-08-21T15:28:07Z")

</div>

I’m trying to pass in variables into a swf via FlashVars with swfObject. Does anyone know how I would access the variable in the flash once its been passed? You could easily just be like “\_root.whatever” in AS2 or below. Thanks.
