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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load variables for color change

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i have a movie clip, its name is test,the color of this movie should be changed if a vatiable in atext file is yes and not if the variable is no.
this varuables are loaded from a txt file, called var.txt.

the first action in my main movie is


loadVariablesNum ("var.txt", 0);

and the actions on the movie clip test are:


onClipEvent (load) {
if (test eq "yes") {
myColor = new Color(this);
myColor.setRGB(0x993366);
}
}


i have the feeling, that the variable isnt loaded into the sctions of this movie,
i know that i must write _root.....
if the variable should be loaded into that movie, but this are just the actions of the movie clip.

Is there something i must change while loading the variables?


thx for help





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top