Hello,
I searched the last hours for a solution and nothing worked. Its a UnrealScript problem but ScaleForm related.
I have a movie-clip on the main stage. In this movie-clip "mctablet" on a specific frame a dynamic text-field with the instance name of "locaton_txt" appears.
Now I want to change the text with UnrealScript:
but nothing happens. The strange thing is, when I put the textfield in to root and address the texfield directly over :
The textfield changes.
Has anyone a idea? Would be amazing
I searched the last hours for a solution and nothing worked. Its a UnrealScript problem but ScaleForm related.
I have a movie-clip on the main stage. In this movie-clip "mctablet" on a specific frame a dynamic text-field with the instance name of "locaton_txt" appears.
Now I want to change the text with UnrealScript:
Code:
class GCRTabletMenu extends GFxMoviePlayer; var GFxObject PositionTitle; // variable for current position var GFxObject McTablet; function bool Start(optional bool StartPaused = false) { super.Start(); // call start function of parrent class GFxMoviePlayer Advance(0); // play the .swf from frame 0 McTablet = GetVariableObject("_root.mctablet"); PositionTitle = GetVariableObject("_root.mctablet.locaton_txt"); // Assign Textfield to variable PositionTitle.SetText("LOCATION"); // set value to Textfield return true; }
Code:
PositionTitle = GetVariableObject("_root.locaton_txt");
Has anyone a idea? Would be amazing
Comment