# Loading variable from src of swf

**URL:** <https://forum.kirupa.com/t/loading-variable-from-src-of-swf/220932>\
**Category:** Uncategorized\
**Created:** [March 30, 2007, 3:08pm UTC](https://forum.kirupa.com/t/loading-variable-from-src-of-swf/220932 "2007-03-30T15:08:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yamthief](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yamthief/32/3470_2.png) [@Yamthief](https://forum.kirupa.com/u/Yamthief)\
**Post date:** [March 30, 2007, 3:08pm UTC](https://forum.kirupa.com/t/loading-variable-from-src-of-swf/220932/1 "2007-03-30T15:08:58Z")

</div>

hi guys. i’m making a flash banner that will end up saying “you are logged in as: \*\*\*\*\*” loading the name from an SQL database using php.  
everything is in place to make the animation display the text, but i don’t know how to call the variable i want to display.

in the source, i have:

```auto
<embed src="/loggedin.swf?$name1=<? echo $session->get("fullname");?>&$company=<? echo $companyName;?>"

```

i’ve tried to put the action:

```auto
_root.dyntxt.text = "$name1
$company";

```

but this prints the text $name1 and $company, but doesn’t actually parse the variables.

what is the command i need to make these string act as they should instead of being treated like normal text?  
i’m sure its something to do with getVar, but what’s the command?[SIZE=-1]

[SIZE=2]thanks in advance.  
.//Yamthief  
[/SIZE][/SIZE]
