Associate
- Joined
- 21 Sep 2007
- Posts
- 453
I am having some trouble with dynamic text boxes and HTML FlashVars.
To be more precise, my problems arise when I embed a dynamic text box into a movie clip.
The movieclip has the instance name "textbox"
Withing the clip, the dynamic box has the instance name "myDynamicTxt" and also a variable name "mytext" (was using the variable name before, when the text box was on the main timeline, without problems)
On the single frame in the MC, I have this code:
Now, in the HTML, I have tried various combinations such as:
Sadly, nothing seems to work. I can change the mytext variable and it shows in Flash, I just cannot see how to use the HTML FlashVars to change the variable.
All thoughts and idea are welcome!
Thanks in advance
To be more precise, my problems arise when I embed a dynamic text box into a movie clip.
The movieclip has the instance name "textbox"
Withing the clip, the dynamic box has the instance name "myDynamicTxt" and also a variable name "mytext" (was using the variable name before, when the text box was on the main timeline, without problems)
On the single frame in the MC, I have this code:
Code:
var mytext = "Hello!";
myDynamicTxt.text = mytext;
Now, in the HTML, I have tried various combinations such as:
Code:
FlashVars="textbox.myDynamicTxt.text=qwerty"
Code:
FlashVars="textbox.mytext.text=qwerty"
Code:
FlashVars="mytext=qwerty"
Sadly, nothing seems to work. I can change the mytext variable and it shows in Flash, I just cannot see how to use the HTML FlashVars to change the variable.
All thoughts and idea are welcome!
Thanks in advance
Last edited: