# HELP! with AS3 Variables

**URL:** <https://forum.kirupa.com/t/help-with-as3-variables/288445>\
**Category:** Uncategorized\
**Created:** [May 15, 2009, 6:24pm UTC](https://forum.kirupa.com/t/help-with-as3-variables/288445 "2009-05-15T18:24:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![susred](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@susred](https://forum.kirupa.com/u/susred)\
**Post date:** [May 15, 2009, 6:24pm UTC](https://forum.kirupa.com/t/help-with-as3-variables/288445/1 "2009-05-15T18:24:37Z")

</div>

Hello,

I have a button in flash, which in as2 i defined as:  
\_root.btnStats = btnStats;

Then when clicked the as2 was:  
getURL(\_root.btnStats)

and the URL was simply passed in Via Ajax/Flash Variables.

Unfortunately this is no longer working in AS3 and I have been searching for a solution for hours now.

Can anyone help me out? How to do the same thing but written for AS3??

Thanks!
