# Adding Variables to A HREF?

**URL:** <https://forum.kirupa.com/t/adding-variables-to-a-href/300501>\
**Category:** Uncategorized\
**Created:** [November 22, 2009, 4:56pm UTC](https://forum.kirupa.com/t/adding-variables-to-a-href/300501 "2009-11-22T16:56:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snivvle](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@Snivvle](https://forum.kirupa.com/u/Snivvle)\
**Post date:** [November 22, 2009, 4:56pm UTC](https://forum.kirupa.com/t/adding-variables-to-a-href/300501/1 "2009-11-22T16:56:45Z")

</div>

Hi,

Is there an easy way to add a variable into A HREF tag within as3?

Example:

var myVariable = “hello”;

\<a href = ‘event:myVariable’ \</a\>

Of course, that doesn’t work, but how would I go about making it work? This is for a dynamic project, so I need to call upon variables within the A HREF in order for this to work.

Thanks for the help!
