-
Hi
I have a site where i have 18 mc, which build the background of a text field
in one area of the site you can define the bgcolor of the mc with buttons. Theses simply say:
on (release) {
bg1 = "1";
tellTarget ("_root.bg1") {
gotoAndStop(1);
}
}
2nd button says:
on (release) {
bg1 = "5";
tellTarget ("_root.bg1") {
gotoAndStop(5);
}
}
-
the bg1 variable is saved into a txt file, called horaires.txt
_root.bg1 is the mc with 8 frames and every second frame the color changes.
in another part i want to load the txt and i want the mcs to go to their frame, which was saved earlier
frame action:
loadVariablesNum("horaire.txt", 0);
tellTarget ("_root.bg1") {
gotoAndPlay(bg1);
}
-
when i debug the movie the bg1 variables shows the correct framenumber but the bg1 mc does not do anything
by the way i use gotoAndPlay which Expression
help
-
sorry for the multiples messages but i dont know why but i cant send any messages which are longer than the text input field
sorry
-
Senior Member
well your post is a bit hard to understand, but
you can create text field with "textField" name and than
loadVariables ("myText.txt", "textField");
use that variable to control MC like value from text Field you have.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|