# Cannot assign variable. Please help!

**URL:** <https://forum.kirupa.com/t/cannot-assign-variable-please-help/301019>\
**Category:** flash\
**Created:** [December 2, 2009, 2:53pm UTC](https://forum.kirupa.com/t/cannot-assign-variable-please-help/301019 "2009-12-02T14:53:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkthen](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@nkthen](https://forum.kirupa.com/u/nkthen)\
**Post date:** [December 2, 2009, 2:53pm UTC](https://forum.kirupa.com/t/cannot-assign-variable-please-help/301019/1 "2009-12-02T14:53:29Z")

</div>

This is frustrating. Here’s what happens…

I define my instance as msg1. It is a text box with Dynamic Text.

Then, I wrote the ActionScript as this:  
var var1:String;  
msg1.text = var1;

My code included this:  
\<param name=“movie” value=“card01.swf?var1=Testing1” /\>…  
\<embed src=“card01.swf?var1=Testing2” quality=“high” …

After compiling I still get the “Undefined” when run.

What did I do wrong?
