I have a shell.swf thats gets the locations of the swfs to load from javascript, then when the swfs are done playing its supposed to run the externalinterface call to load the next flash file, it reads the end and refuses to run the externalinterface
heres the code i hope someone can help
FLASH:
Code:
System.security.allowDomain("http://xfxforce.s3.amazonaws.com");
import flash.external.ExternalInterface;
var listener:Object = new Object();
listener.onLoadStart = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void  {
    _root.cliploaded = false;
};
ExternalInterface.addCallback("FlashMovieCompleted");
listener.onLoadInit = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void  {
    _root.targetframe = target._currentframe;
    _root.endframe = target._totalframes;
    _root.cliploaded = true;
};
_root.cliploaded = false;
this.onEnterFrame = function() {
    if (_root.newsrecreate._currentframe eq _root.endframe && _root.cliploaded == true) {
        trace("done playing");
        delete onEnterFrame
        flash.external.ExternalInterface.call("FlashMovieCompleted");
        _root.newsrecreate._y=24
        
    }
};
var newsrecreate = _root.createEmptyMovieClip("flash", 299);
var my_mcl3:MovieClipLoader = new MovieClipLoader();
my_mcl3.addListener(listener);
var url = _root.URLswf//"xfxplushome3a.swf";
my_mcl3.loadClip(url,newsrecreate);
newscreate.enabled = false;
JAVASCRIPT
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="swfObject.js" type="text/javascript"></script>

<script type="text/javascript">
    function InitialLoad() {
        alert("Loading First Video");
        var expressInstallLocation = "";
        var flashvars = {};
        flashvars.URLswf = "http://xfxforce.s3.amazonaws.com/jackal-Hunt_100hugeb.swf";


        var params = {};
        params.wmode = "transparent";
        params.loop = "false";

        swfobject.embedSWF("./shell3.swf", "flash", "967", "238", "9.0.0", expressInstallLocation, flashvars, params);

      alert("complete");
    }

    function FlashMovieComplete() {

        alert("Calling FlashMovieComplete");
        alert("Loading New Movie");
        var expressInstallLocation = "";
        var flashvars = {};
        flashvars.URLswf = "http://xfxforce.s3.amazonaws.com/xfxjulygunsppp5copper2a.swf";


        var params = {};
        params.wmode = "transparent";
        params.loop = "false";

        swfobject.embedSWF("./shell3.swf", "flash", "967", "238", "9.0.0", expressInstallLocation, flashvars, params);


    }

    function FlashMovieCompleted() {

        alert("Calling FlashMovieCompleted - will call FlashMovieComplete()");
        FlashMovieComplete();
    }

   
</script>
</head>
<body>
<div id="flash"></div>

<script type="text/javascript">
    InitialLoad();
</script>
</body>
</html>