# \[CS3\] Load text empty mc

**URL:** https://forum.kirupa.com/t/cs3-load-text-empty-mc/267709
**Category:** flash
**Created:** [August 5, 2008, 12:47am UTC](https://forum.kirupa.com/t/cs3-load-text-empty-mc/267709 "2008-08-05T00:47:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![whytefly](https://avatars.discourse-cdn.com/v4/letter/w/bb73d2/32.png) [@whytefly](https://forum.kirupa.com/u/whytefly)
#### Post date: [August 5, 2008, 12:47am UTC](https://forum.kirupa.com/t/cs3-load-text-empty-mc/267709/1 "2008-08-05T00:47:20Z")

</div>

I am trying to have my ‘btn\_alchemist’ load a flv into a mc ‘mc\_empty’ and text with a hyperlink in a seperate empty movie clip called ‘text\_loader’. I have the flvPlayer working I am just unsure on how to load the text into a seperate mc.

```auto
//empty clip
var mc_empty:MovieClip = new MovieClip();
addChild(mc_empty);
//remove instance of the flv player on the stage and put it in the empty mc
var myPlayer:FLVPlayback = flv_player;
removeChild(myPlayer);
mc_empty.addChild(myPlayer);
// add event to project buttons
btn_alchemist.addEventListener(MouseEvent.CLICK, buttonClick);
btn_freezeFrame.addEventListener(MouseEvent.CLICK, buttonClick);
//set aspect ratio of player
myPlayer.scaleMode = "noScale";
//function of flv player
function buttonClick(evt:MouseEvent):void{
    if(evt.target==btn_alchemist){
  myPlayer.source = "alchemist.flv";
 }else if(evt.target==btn_freezeFrame){
  myPlayer.source = "freezeframe.flv";
 }
}
//stop
stop();

```
