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.
//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();