# Attach Multiple MC w/values

**URL:** https://forum.kirupa.com/t/attach-multiple-mc-w-values/318818
**Category:** flash
**Created:** [January 31, 2011, 3:53pm UTC](https://forum.kirupa.com/t/attach-multiple-mc-w-values/318818 "2011-01-31T15:53:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kill\_robot\_kill](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kill_robot_kill/32/359_2.png) [@kill\_robot\_kill](https://forum.kirupa.com/u/kill_robot_kill)
#### Post date: [January 31, 2011, 3:53pm UTC](https://forum.kirupa.com/t/attach-multiple-mc-w-values/318818/1 "2011-01-31T15:53:42Z")

</div>

```auto

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:

```auto

topic.savedText:String = f_text; // doesn't work
topic.savedText = f_text; // doesn't work either

```
