function createTopicMC(f_id:uint, f_text:String):void{
var topic:SavedTopic = new SavedTopic();
topic.savedTitle.text = f_id // <-here
topic.savedText.text = f_text; // <-here
addChild(topic);
savedTopicArr.push(topic);
}
I am adding a mc to the stage (linkage name: SavedTopic) via mouse click calling this function. There will be a random number of these clips, based on user decisions. How can I set the ‘savedTitle’ and ‘savedText’ as variables unique to this specific MC, that can be accessed later via textbox inside the ‘topic’ movie clip.
I’ve tried:
topic.savedText:String = f_text; // doesn't work
topic.savedText = f_text; // doesn't work either