Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing dynamic text variable to movie clip

Status
Not open for further replies.

IGTbob

Programmer
Jul 11, 2002
12
US
I just can't see what I'm doing wrong!

I am collecting variables from a dynamic text box, from an ASP script, then I want to display the variable in a root level movie and also in an included movie clip (the movie clip will eventually have various treatments added to it).

Here is my model...
Base(root) movie: "RootMovie"
Movie clip: "MovieClip"
Dynamic text box: "DynaText"
ASP script page: "variables.asp"
Variable from ASP: "varData"

"DynaText" symbol properties set to 'Dynamic' 'Single Line' and variable='varData'

"MovieClip" symbol has one layer with "DynaText" placed on it. No action script in "MovieClip"

In "RootMovie", on a script level in the timeline, I load the variables:
loadVariables ("variables.asp", "", "GET");
In a following frame I place an instance of "DynaText"
In the same frame, different level I place an instance of "MovieClip"
I select the "MovieClip" instance on stage and set Instance Name to "MC1"
While "MovieClip" instance is selected I add the Tell Target script:
onClipEvent (load) {
tellTarget ("_root.MC1") {
varData = varData;
}
}
(I added the 'varData = varData' because I think I need to explicitly pass the variables to "MC1" - ?)

Save and Publish.

When I run "RootMovie.swf" the "DynaText" on the root level appears fine, but the "DynaText" in "MC1" is not appearing. So I know I collecting the variables fine, it's just not getting to the "MovieClip"

Thoroughly confused.
-Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top