views:

177

answers:

0

Yes, it is a strange situation but we have a SWF (with FLA source) that is embedded inside another SWF (no source) by an auto process. The first SWF has a link to a FLV video file.

When the SWF with the FLV is embedded it plays but does not show the FLV - just the blinking FLV mime type icon.

The problem is that we can embed the FLV but it is ~4mb in size so I must find a way to play it externally. When the SWF is played on its own it works great it is playing it in the auto-generated swf that the problem occurs.

Any ideas on how to make an embedded swf play its FLV file?

Source of SWF with Video:

stop();
import myGlobals;  //external actionscript file with the global variables

myGlobals.pausePlay = 1; //originally in the play mode
trace("myGlobals.pausePlay="+myGlobals.pausePlay);

function reportPlay(myevent:MouseEvent):void{
    if (myGlobals.pausePlay==1){  //movie is currently playing, so PAUSE it
        //pause
        my_FLVplybk.stop();
        myGlobals.pausePlay=0;
    }else{
        //play
        my_FLVplybk.play();
        myGlobals.pausePlay=1;
    }

}
hotClick_mc.addEventListener(MouseEvent.CLICK, reportPlay);

//HEADER
header_text.text = "Verbs";  //the text MUST be set before the format applied

var header_fmt:TextFormat = new TextFormat();
header_fmt.font = "Arial";
header_fmt.bold = true;
header_fmt.italic = true;
header_fmt.size=20;
header_text.setTextFormat(header_fmt);



import fl.video.MetadataEvent;

function readCuepointHandler(event:MetadataEvent):void{ 
        trace("Elapsed time in seconds: " + my_FLVplybk.playheadTime);
        trace("mycue: " + event.info.name);
        trace("Cue point type is: " + event.info.type);
    if (event.info.name == "cp01") {
        gotoAndStop ("cuePt01");
        trace("I'm Here 1");
        trace("-");
    } else if (event.info.name == "cp02") {
        gotoAndStop ("cuePt02");
        trace("I'm Here 2");
        trace("-");
    } else if (event.info.name == "cp03") {
        gotoAndStop ("cuePt03");
        trace("I'm Here 3");
        trace("-");
    } else if (event.info.name == "cp04") {
        gotoAndStop ("cuePt04");
        trace("I'm Here 4");
        trace("-");
    } else if (event.info.name == "cp05"  ) {
        gotoAndStop ("cuePt05");
        trace("I'm Here 5");
        trace("-");
    } else if (event.info.name == "cp06") {
        gotoAndStop ("cuePt06");
        trace("I'm Here 6");
        trace("-");
    } else if (event.info.name == "cp07") {
        gotoAndStop ("cuePt07");
        trace("I'm Here 7");
        trace("-");
    } else if (event.info.name == "cp08") {
        gotoAndStop ("cuePt08");
        trace("I'm Here 8");
        trace("-");
    } else if (event.info.name == "cp09") {
        gotoAndStop ("cuePt09");
        trace("I'm Here 9");
        trace("-");
    } else if (event.info.name == "cp10") {
        gotoAndStop ("cuePt10");
        trace("I'm Here 10");
        trace("-");
    } else if (event.info.name == "cp11") {
        gotoAndStop ("cuePt11");
        trace("I'm Here 11");
        trace("-");
    } else if (event.info.name == "cp12") {
        gotoAndStop ("cuePt12");
        trace("I'm Here 12");
        trace("-");
    } else if (event.info.name == "cp13") {
        gotoAndStop ("cuePt13");
        trace("I'm Here 13");
        trace("-");
    } else if (event.info.name == "cp14"  ) {
        gotoAndStop ("cuePt14");
        trace("I'm Here 14");
        trace("-");
    } else if (event.info.name == "cp15") {
        gotoAndStop ("cuePt15");
        trace("I'm Here 15");
        trace("-");
    } else if (event.info.name == "cp16") {
        gotoAndStop ("cuePt16");
        trace("I'm Here 16");
        trace("-");
    } else if (event.info.name == "cp17") {
        gotoAndStop ("cuePt17");
        trace("I'm Here 17");
        trace("-");
    } else if (event.info.name == "cp18") {
        gotoAndStop ("cuePt18");
        trace("I'm Here 18");
        trace("-");
    } else if (event.info.name == "cp19") {
        gotoAndStop ("cuePt19");
        trace("I'm Here 19");
        trace("-");
    } else if (event.info.name == "cp20") {
        gotoAndStop ("cuePt20");
        trace("I'm Here 20");
        trace("-");
    } else if (event.info.name == "cpend") {
        gotoAndStop ("cuePtend");
        trace("I'm Here 9");
        trace("-");
    }
}
//my_FLVplybk.addEventListener("cuePoint", listenerObject);
my_FLVplybk.addEventListener(MetadataEvent.CUE_POINT, readCuepointHandler);

The FLV video is in the same domain as the SWF.