A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: movieclip loader destroying game

Threaded View

  1. #1
    Senior Member
    Join Date
    Sep 2004
    Location
    West Mids, UK
    Posts
    101

    movieclip loader destroying game

    Hey guys, hope you can help me on this one I need to create a single flash movie that will then load up another flash file (a game)

    Now I have the flash loader working great, I pass the filename to it and it loads up the correct game, however there is one small problem (well not really small big but anyways) you cant use the keyboard to control the game anymore

    I have tried searching for a fix to this but everywhere tells me to put the keyboard functions into the flash loader itself and that isn't an option as the flash loader file will be loading up multiple different games depending on what the users wants to view.

    So my question is this... How can I get my event listeners working again.

    Thanks in advance!
    Code:
    stop();
    
    var myMCL = new MovieClipLoader();//create an instance of MovieClipLoader 
    myMCL.onLoadStart = function (targetMC)
    {
            var loadProgress = myMCL.getProgress(targetMC);
    }
    myMCL.onLoadProgress = function (targetMC, loadedBytes, totalBytes) {
    }
    myMCL.onLoadComplete = function (targetMC)
    {
            var loadProgress = myMCL.getProgress(targetMC);
    }
    myMCL.onLoadInit = function (targetMC)
    {
    }
    myMCL.onLoadError = function (targetMC, errorCode)
    {
    }
    
    myMCL.loadClip("http://www.theurl.com/swf/theswf.swf", "thegame");
    Thats the preloader, as you can see it stays on the single frame so any ideas?
    Last edited by neomaximus2k; 12-29-2007 at 05:17 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center