Assistance with AS2 in Flash Games to Load Multiple Levels

We have a Flash game that we are creating in CS3 with AS2 with 3 levels that should load the next one dynamically when you win the previous level. Can someone please provide a tutorial or sample code to accomplish this as simply as possible?

Your design will be too specific to expect to find a tutorial.  If you (or whoever coded what you have now) use the Help files or Google to look up the functions I mentioned, there will be sample code to help you/them to learn how to implement it. 4n

Similar Messages

  • Please help me with a simple flash game problem

    I am trying to learn how to make flash games with Adobe flash 5.5. I am doing a tutorial from a book and am stuck.
    The game is called concentration and you are suppose to match 2 tiles of the same shape. there are 10 shape tiles
    and 1 question mark tile. These tiles are held in an array. 20 tiles are suppose to be displayed 5 to a row with 4 rows
    and the question mark is suppose to be up on all 20. My problem is I get a blank screen when I test the movie. I
    think the code is good but I beleive I have not uploaded the tiles right. I did upload the 11 tiles to the library and have
    those 11 tiles and tile_movieclip in the library. Here is the code:
    package {
    // importing classes
    import flash.display.Sprite;
    // end of importing classes
    public class Main extends Sprite {
    public function Main() {
    // variables and constants
    const NUMBER_OF_TILES:uint=20;
    const TILES_PER_ROW:uint=5;
    var tiles:Array=new Array();
    var tile:tile_movieclip;
    // end of variables and constants
    // tiles creation loop
    for (var i:uint=0; i<NUMBER_OF_TILES; i++) {
    tiles.push(Math.floor(i/2));
    trace("My tiles: "+tiles);
    // end of tiles creation loop
    // shuffling loop
    var swap,tmp:uint;
    for (i=NUMBER_OF_TILES-1; i>0; i--) {
    swap=Math.floor(Math.random()*i);
    tmp=tiles[i];
    tiles[i]=tiles[swap];
    tiles[swap]=tmp;
    trace("My shuffled tiles: "+tiles);
    // end of shuffling loop
    // tile placing loop
    for (i=0; i<NUMBER_OF_TILES; i++) {
    tile=new tile_movieclip();
    addChild(tile);
    tile.cardType=tiles[i];
    tile.x=5+(tile.width+5)*(i%TILES_PER_ROW);
    tile.y=5+(tile.height+5)*(Math.floor(i/TILES_PER_ROW));
    tile.gotoAndStop(NUMBER_OF_TILES/2+1);
    // end of tile placing loop
    Can someone please explain to me what I am suppose to do to make the this work? I beleive the problem is it doesnt know where the tiles are.
    Thanks.

    To create the tiles, draw 10 distinct shapes in the first 10 frames of your symbol, and
    the back of the tile in the 11th frame. You are free to draw them as you want, but I suggest you make them as 90 pixels squares with registration point (starting x and y position) at 0, because these are the properties of the tiles used in this chapter's
    examples. At least, they should all be the same size.
    It didnt say put in a library. It is saying to draw them in frames of symbol but it didnt walk me through that. Can you guide me through this? I also was looking at how to add the link identifier but it said I need a popup window but I cant see one. I thought that was done
    when I went to insert new symbol. It said something about actionscript linkage. I am familliar with perl, java and c++ so I can follow the code so far but I dont have much understanding of the flash interface. I made the 10 shape tiles and the 1 question mark tile
    in paint. They are .jpeg images.

  • We are looking for Flash-Games for our A-level exam

    Hello
    Our Project-Team creates a Game-Hompage for our A-level exam.
    We are looking for Flash-Games and Games in other Languages
    (for example: Java or VBnet), wich we will publish on our Webpage.
    The quality, category etc. doesn't matter.
    Furthermore we would be pleased if you could send us
    suggestions and ideas (for example: Projectname etc.)
    Just send us a mail:
    [email protected]
    greetz
    project-team

    http://www.gotoandplay.it

  • My firefox keeps crashing for no reason when I am playing FrontierVille. It has no problems with any other flash games. Why is this?

    I try to play this facebook/Zynga game every day, and I have no problem at first. After a little while though, it ends up crashing every time. I do not under stand why and would like to see if someone could help me, I am getting a bit angry. No other Zynga/facebook game has this problem, and they all use Adobe Flash.

    Creative Cloud Help / Creative Cloud applications ask for serial number
    http://helpx.adobe.com/creative-cloud/kb/ccm-prompt-serial-number.html

  • Assistance with method in guessing game

    Hey guys I developed a method called processGuess which gets an array of ints passed to its parameter, adds the guess and its results to the guessHistory string and then returns a boolean depending if the guess is a winner or not. heres my algorithm:
    public boolean processGuess(int[] guess)
            for(int i=0;i<boardSize;i++)
                guessHistory+=guess[i]+"  ";
            guessHistory+="\t"+getGuessResults(guess)+"\n";
            String mysteryNums=getMysteryNumbers();
            String theResults=getGuessResults(guess);
            boolean haveWinner=false;
            if(mysteryNums.length()==theResults.length())
                haveWinner=true;
                for(int i=0;i<theResults.length();i++)
                    if(theResults.charAt(i)!='X')
                       haveWinner=false;
            return haveWinner;
        } // end method processGuessthe logic is if the guess results is the same length as the mystery numbers haveWinner is true and provided that all characters in the results are 'X" (a correct number in the correct position) then haveWinner remains true but the first character that is a # haveWinner is set to false. This seems logical but it isn't declaring a winner when the correct numbers are guessed.

    ok i opened it but i cant figure how to run it in BlueJ without a right click button on the mouse..hmmm.
    I have no idea how to execute main.
    Heres the other two methods:
    public String getMysteryNumbers()
            String numsStr="";
            for(int i=0;i<boardSize;i++)
                numsStr+=mysteryNumbers[i]+" ";
            return numsStr;
    private String getGuessResults(int[] guess)
            int[]mysteryNumCopy=new int[boardSize];
            for(int i=0;i<boardSize;i++)
                mysteryNumCopy=mysteryNumbers[i];
    int positionCorrect=0;
    int numCorrect=0;
    String results ="";
    //for loop to compare if the guess is the same number and in the
    //correct position
    for(int i=0;i<boardSize;i++)
    if(guess[i]==mysteryNumCopy[i])
    positionCorrect++;
    guess[i]=0;
    mysteryNumCopy[i]=-1;
    //for loop with nested for loop to compare if guess is any one of
    //the mystery numbers
    for(int i=0; i<boardSize; i++)
    for(int j=0; j<boardSize; j++)
    if(guess[i]==mysteryNumCopy[j])
    numCorrect++;
    guess[i]=0;
    mysteryNumCopy[j]=-1;
    //for loops to add the results to the string returned
    for(int i=0;i<positionCorrect;i++)
    results+="X";
    for(int i=0;i<numCorrect;i++)
    results+="#";
    return results;
    }Appreciate all the help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Flash 8 listener loading multiple actions

    Hi,
    I'm back!
    I have a question. I want my preloader to be on the stage
    until a movie finishes loading. I have that working via a listener.
    However, I would like several things to happen once a movie has
    loaded. How do I write this in action script?
    I will attach the non-working code...
    Thank you!!!

    Hey janst, a couple of things here. You shouldn't have the
    'addEventListener' call within the event handler, that won't work.
    I think you should use the MovieClipLoader class and the loadClip
    method which has a variety of built-in handlers for just this kind
    of thing. More like:

  • Passing keystrokes from air browser to flash game

    Here's my situation - I am accessing some games that my company built  using a AIR browser (allowing us to sell an installable product on a CD,  but keeping the content online for ease of maintenance).  I can get the  games to load, but i cant get them to accept keystrokes, ie: we have a  tetris-like game that isnt getting any of the arrow key inputs.  I'm  fairly certain this has something to do with a focus issue, but I have  no idea how to fix it.  Any suggestions would be welcome.

    Thanks for the input.  I considered this, and did some testing.  I failed to mention in my original post that the browser loads a "virtual town" built in javascript, and the flash games are loaded from within this "town".  when i point the browser to the game directly, it works fine, but when i try to load it within the "town" contruct, then i don't get the keyboard input.  ive fooled around with javascript's focus(), but that doesnt seem to be helping anything.  i realize that a flash based browser loading a java based environment that launches flash games is FAR from ideal, but its what i have to work with (business decisions outside of my control) and rewriting the town in flash isn't an option (even though i would love too).  thanks again for your input, any other thoughts will be greatly appreciated.

  • Flash player 10.3.181.14 broke my site, loading multiple swfs into an array

    I load multiple swfs into an array, I add and remove the objects on the stage, this is for a rotating carousel.
    All the items locations are established in xml. If I only have one item loaded into the array it works fine, if I have more then one it will not a) play the swf, or b) show the swf.
    The swfs themselves contain code that fire events in the main container. Which cause other items to play or load.
    Is anyone else having this issue?

    Hi howet,
    EDIT:
    I've opened a flash bug in their bug system as I found I could reproduce the issue: https://bugs.adobe.com/jira/browse/FP-7071
    There are some workarounds I found on there.
    ORIGINAL MESSAGE:
    I was having a similar issue using a loading component which i've been using for several years with no issues. As with you the issue arose when loading multiple swfs (or even one swf and then a jpg) on 10.3 and above. It works fine on 10.2 and below still.
    I found a workaround whilst I look for a proper answer and that is to delay subsequent loads using a hacky setTimeout.
    For example:
    protected function manageLoaded (p_event : Event) : void {
    setTimeout(loadNext, 1);
    // following line breaks the gotoAndStop of loaded swfs.
    // loadNext();
    I hope this helps you too, let me know.
    Cheers,
    Dan.
    Message was edited by: Dan Wilkinson, 01/06/2011 11:37am BST (GMT + 1)

  • Pogo games never loading

    Im having problems with my pogo.com games not loading, I know it has something to do with Java but dont have a clue as to what i can do. I am absolutely lost when it comes to java. Can anyone help me? My games never load.

    Can you explain your problem more precisely... What type of problem your exactly getting?

  • I was having problems with my Adobe Flash plugin crashing occasionally during my game playing on Facebook. After researching it on the Firefox Help site, I upgraded. It now takes forever to load, if at all, and loses the connection. What gives?

    The game eventually loads but now takes forever. If I switch to a different section of the game, it also is slow. It wasn't before I upgraded to the "new, improved" version. I was better off with the old Adobe plugin and putting up with the occasional crashing.

    The game eventually loads but now takes forever. If I switch to a different section of the game, it also is slow. It wasn't before I upgraded to the "new, improved" version. I was better off with the old Adobe plugin and putting up with the occasional crashing.

  • Adobe Flash Games Will Not Load

    I have updated Firefox to latest version 26.0...also updated Adobe flash to  Version 12.0.7.148...also updated video drivers for Pc..also cleared cache...also updated windows xp to windows 7..also made sure all add on were enabled that are suppose to be...also have disabled hardware acceleration both in Firefox and shockwave settings..have uninstalled and reinstalled everything..also have ran malware bytes several times and runnning microsoft security essencials ..Also have tried running Firefox in safe mode.HOWEVER I still can not get adobe games to load. WHAT am i missing?
    Operating System
        Windows 7 Ultimate 32-bit SP1
    CPU
        Intel Pentium 4 630
        Prescott 90nm Technology
    RAM
        4.00GB Dual-Channel DDR2 @ 266MHz (4-4-4-12)
    Motherboard
        Dell Inc. 0KF623 (Microprocessor)
    Graphics
        HP w1907 (1440x900@60Hz)
        Intel 82945G Express Chipset Family (Dell)
        Intel 82945G Express Chipset Family (Dell)
    Storage
        465GB Seagate ST500DM002-1BC142 ATA Device (SATA)    33 °C
    Optical Drives
        TSSTcorp CDRWDVD TS-H492C ATA Device
    Audio
        High Definition Audio Device

    Mike,
    Thanks for the reply.  I just worded that wrong i do have adobe flash player latest version installed as well clicked your link to double check. I have been going at this for 5 hours a day for a week now still no improvement. Also let me add i cant even watch youtube videos via FF or IE or opera..however I can with chrome....also with chrome i can play flash games however there real slow and choppy even with all updates and hardware acceleration clicked off. this is why im trying to switch from chrome..any more suggestions? thanks
    P.s. ive even tried last resort and unistalled flash and tried some archived version still no imporvement... now back with latest version

  • Help needed with creating Flash game

    Hello,
    I need to create Flash educational/quiz game for one of my clients. It would be based on concept like these ones for example:
    Example 1
    http://go.ucsusa.org/game/
    Example 2
    http://www.zdravlje.hr/igre/stop-aids/
    Note: when you open this link you will see two text boxs which you first must fill. On the left side text box "Upišite ime" means "Type your name" and right one "Upišite godinu svog rođenja" means "Year of birth"
    What is interesting about this type of games is that they are classic games (for example game Labirint where you have to find way out), but during play pop-up questions starts to appear to test end user knowledge abot certain topic (in example 2 topic is about AIDS/HIV). In case of my client, topic is about Eco environment.
    Here is where my trouble starts;) : I found many useful free tutorials how to create simple flash game (most interesting example I found is this one http://www.strille.net/tutorials/snake/index.php)  BUT I dont know how make that system of popup questions appear during game similar to Example 1 and Example 2?
    Any help is appreciated and thanks in advance for promt reply.
    Greetings,
    Adnan

    Update: I have just read all instructions in Snake tutorial which helped be better realize how Snake game works.
    a) This is what I plan to realize for my client:
    1. Snake game which end users will play and during play pop-up/quiz quesions will appear on topic Eco environment;
    2. For example when end user earns 50 points he must answer some of the random questions like "Q:How many ton of waste are produced by US livestock each year" with three answers A1: "1 milion" A2: "1 bilion" A3: "2 bilion" and after user scores 100 points then another question pops up and so on. This is all true if all answers are correct but in case he answer some question wrong than game can start from begining or another solution could be he looses -50 or -100 points.
    3. At the end, user which gains most points wins.
    b) This is what I have done till now:
    I have this file http://www.strille.net/tutorials/snake/snakeGameWithHighscore.zip which I partly understand how it works with my Flash knowladge.
    All functions and main game engine is in layer code:
    "// Snake Game by Strille, 2004, www.strille.net
    blockSize = 8;   // the block width/height in number of pixels
    gameHeight = 30; // the game height in number of blocks
    gameWidth  = 45; // the game width in number of blocks
    replaySpeed = 1;
    SNAKE_BLOCK = 1; // holds the number used to mark snake blocks in the map
    xVelocity = [-1, 0, 1, 0]; // x velocity when moving left, up, right, down
    yVelocity = [0, -1, 0, 1]; // y velocity when moving left, up, right, down
    keyListener = new Object(); // key listener
    keyListener.onKeyDown = function() {
        var keyCode = Key.getCode(); // get key code
        if (keyCode > 36 && keyCode < 41) { // arrow keys pressed (37 = left, 38 = up, 39 = right, 40 = down)...
            if (playRec) {
                if (keyCode == 37 && replaySpeed > 1) {
                    replaySpeed--;
                } else if (keyCode == 39 && replaySpeed < 10) {
                    replaySpeed++;
            } else if (game.onEnterFrame != undefined) { // only allow moves if the game is running, and is not paused
                if (keyCode-37 != turnQueue[0]) { // ...and it's different from the last key pressed
                    turnQueue.unshift(keyCode-37); // save the key (or rather direction) in the turnQueue
        } else if (keyCode == 32) { // start the game if it's not started (32 = SPACE)
            if (!gameRunning || playRec) {
                startGame(false);
        } else if (keyCode == 80) { // pause/unpause (80 = 'P')
            if (gameRunning && !playRec) {
                if (game.onEnterFrame) { // pause
                    delete game.onEnterFrame; // remove main loop
                    textMC.gotoAndStop("paused");
                } else { // exit pause mode
                    game.onEnterFrame = main; // start main loop
                    textMC.gotoAndStop("hide");
    Key.addListener(keyListener);
    function startGame(pRec) {
        x = int(gameWidth/2); // x start position in the middle
        y = gameHeight-2;     // y start position near the bottom
        map = new Array(); // create an array to store food and snake
        for (var n=0;n<gameWidth;n++) { // make map a 2 dimensional array
            map[n] = new Array();
        turnQueue = new Array(); // a queue to store key presses (so that x number of key presses during one frame are spread over x number of frames)
        game.createEmptyMovieClip("food", 1); // create MC to store the food
        game.createEmptyMovieClip("s", 2); // create MC to store the snake
        scoreTextField.text = "Score: 0"; // type out score info
        foodCounter = 0; // keeps track of the number of food movie clips
        snakeBlockCounter = 0; // keeps track of the snake blocks, increased on every frame
        currentDirection = 1; // holds the direction of movement (0 = left, 1 = up, 2 = right, 3 = down)
        snakeEraseCounter = -1; // increased on every frame, erases the snake tail (setting this to -3 will result in a 3 block long snake at the beginning)
        score = 0; // keeps track of the score
        ticks = lastRec = 0;
        recPos = recFoodPos = 0;
        playRec = pRec;
        if (!playRec) {
            textMC.gotoAndStop("hide"); // make sure no text is visible (like "game over ")
            highscores.enterHighscoreMC._visible = false;
            statusTextField.text = "";
            recTurn = "";
            recFrame = "";
            recFood = "";
            game.onEnterFrame = main; // start the main loop
        } else {
            if (loadedRecordingNumber != -1) {
                var n = getLoadedRecordingNumberHighscorePos(loadedRecordingNumber);
                statusTextField.text = "Viewing " + highscores[n].name.text + "'s game (score " + highscores[n].score.text + ")";
            } else {
                statusTextField.text = "Viewing your game";
            game.onEnterFrame = replayMain; // start the main loop
        placeFood("new"); // place a new food block
        gameRunning = true; // flag telling if the game is running. If true it does not necessarily mean that main is called (the game could be paused)
    function main() { // called on every frame if the game is running and it's not paused
        if (playRec) {
            if (ticks == lastRec+parseInt(recFrame.charAt(recPos*2)+recFrame.charAt(recPos*2+1), 36)) {
                currentDirection = parseInt(recTurn.charAt(recPos));
                lastRec = ticks;
                recPos++;
        } else if (turnQueue.length) { // if we have a turn to perform...
            var dir = turnQueue.pop(); // ...pick the next turn in the queue...
            if (dir % 2 != currentDirection % 2) { // not a 180 degree turn (annoying to be able to turn into the snake with one key press)
                currentDirection = dir; // change current direction to the new value
                recTurn += dir;
                var fn = ticks-lastRec;
                if (fn < 36) {
                    recFrame += " "+new Number(fn).toString(36);
                } else {
                    recFrame += new Number(fn).toString(36);
                lastRec = ticks;
        x += xVelocity[currentDirection]; // move the snake position in x
        y += yVelocity[currentDirection]; // move the snake position in y
        if (map[x][y] != SNAKE_BLOCK && x > -1 && x < gameWidth && y > -1 && y < gameHeight) { // make sure we are not hitting the snake or leaving the game area
            game.s.attachMovie("snakeMC", snakeBlockCounter, snakeBlockCounter, {_x: x*blockSize, _y: y*blockSize}); // attach a snake block movie clip
            snakeBlockCounter++; // increase the snake counter
            if (map[x][y]) { // if it's a not a vacant block then there is a food block on the position
                score += 10; // add points to score
                scoreTextField.text = "Score: " + score; // type out score info
                snakeEraseCounter -= 5; // make the snake not remove the tail for five loops
                placeFood(map[x][y]); // place the food movie clip which is referenced in the map map[x][y]
            map[x][y] = SNAKE_BLOCK; // set current position to occupied
            var tailMC = game.s[snakeEraseCounter]; // get "last" MC according to snakeEraseCounter (may not exist)
            if (tailMC) { // if the snake block exists
                delete map[tailMC._x/blockSize][tailMC._y/blockSize]; // delete the value in the array m
                tailMC.removeMovieClip(); // delete the MC
            snakeEraseCounter++; // increase erase snake counter   
        } else { // GAME OVER if it is on a snake block or outside of the map
            if (playRec) {
                startGame(true);
            } else {
                gameOver();
            return;
        ticks++;
    function replayMain() {
        for (var n=0;n<replaySpeed;n++) {
            main();
    function gameOver() {
        textMC.gotoAndStop("gameOver"); // show "game over" text
        delete game.onEnterFrame; // quit looping main function
        gameRunning = false; // the game is no longer running
        enterHighscore();
    function placeFood(foodMC) {
        if (playRec) {
            var xFood = parseInt(recFood.charAt(recFoodPos*3)+recFood.charAt(recFoodPos*3+1), 36);
            var yFood = parseInt(recFood.charAt(recFoodPos*3+2), 36);
            recFoodPos++;
        } else {
            do {
                var xFood = random(gameWidth);
                var yFood = random(gameHeight);
            } while (map[xFood][yFood]); // keep picking a spot until it's a vacant spot (we don't want to place the food on a position occupied by the snake)
            if (xFood < 36) {
                recFood += " "+new Number(xFood).toString(36);
            } else {
                recFood += new Number(xFood).toString(36);
            recFood += new Number(yFood).toString(36);
        if (foodMC == "new") { // create a new food movie clip
            foodMC = game.food.attachMovie("foodMC", foodCounter, foodCounter);
            foodCounter++;
        foodMC._x = xFood*blockSize; // place the food
        foodMC._y = yFood*blockSize; // place the food
        map[xFood][yFood] = foodMC; // save a reference to this food movie clip in the map
    //- Highscore functions
    loadHighscores();
    enterHighscoreKeyListener = new Object();
    enterHighscoreKeyListener.onKeyDown = function() {
        if (Key.getCode() == Key.ENTER) {
            playerName = highscores.enterHighscoreMC.nameTextField.text;
            if (playerName == undefined || playerName == "") {
                playerName = "no name";
            saveHighscore();
            Key.removeListener(enterHighscoreKeyListener);
            Key.addListener(keyListener);
            highscores.enterHighscoreMC._visible = false;
            loadedRecordingNumber = -1;
            startGame(true);
    function enterHighscore() {
        if (score >= lowestHighscore) {
            highscores.enterHighscoreMC._visible = true;
            highscores.enterHighscoreMC.focus();
            Key.removeListener(keyListener);
            Key.addListener(enterHighscoreKeyListener);
        } else {
            loadedRecordingNumber = -1;
            startGame(true);
    function getLoadedRecordingNumberHighscorePos(num) {
        for (var n=0;n<10;n++) {
            if (num == highscores[n].recFile) {
                return n;
    function loadHighscores() {
        vars = new LoadVars();
        vars.onLoad = function(success) {
            for (var n=0;n<10;n++) {
                var mc = highscores.attachMovie("highscoreLine", n, n);
                mc._x = 5;
                mc._y = 5+n*12;
                mc.place.text = (n+1) + ".";
                mc.name.text = this["name"+n];
                mc.score.text = this["score"+n];
                mc.recFile = parseInt(this["recFile"+n]);
            lowestHighscore = parseInt(this.score9);
            if (!gameRunning) {
                loadRecording(random(10));
            delete this;
        if (this._url.indexOf("http") != -1) {
            vars.load("highscores.txt?" + new Date().getTime());
        } else {
            vars.load("highscores.txt");
    function loadRecording(num) {
        vars = new LoadVars();
        vars.onLoad = function(success) {
            if (success && this.recTurn.length) {
                recTurn = this.recTurn;
                recFrame = this.recFrame;
                recFood = this.recFood;
                startGame(true);
            } else {
                loadRecording((num+1)%10);
                return;
            delete this;
        loadedRecordingNumber = num;
        if (this._url.indexOf("http") != -1) {
            vars.load("rec"+loadedRecordingNumber+".txt?" + new Date().getTime());
        } else {
            vars.load("rec"+loadedRecordingNumber+".txt");
    function saveHighscore() {
        sendVars = new LoadVars();
        for (var n in _root) {
            if (_root[n] != sendVars) {
                sendVars[n] = _root[n];
        returnVars = new LoadVars();
        returnVars.onLoad = function() {
            if (this.status == "ok") {
                loadHighscoresInterval = setInterval(function() {
                    loadHighscores();
                    clearInterval(loadHighscoresInterval);
                }, 1000);
            delete sendVars;
            delete this;
        sendVars.sendAndLoad("enterHighscore.php", returnVars, "POST");
    function startClicked() {
        if (!gameRunning || playRec) {
            if (highscores.enterHighscoreMC._visible) {
                Key.removeListener(enterHighscoreKeyListener);
                Key.addListener(keyListener);
                highscores.enterHighscoreMC._visible = false;
            startGame(false);
    function viewGame(lineMC) {
        loadRecording(lineMC.recFile);
        statusTextField.text = "Loading " + lineMC.name.text + "'s game...";
    Now what is left to do is somehow to iclude educational quiz in this game/code. First idea that came to me is same thing Ned suggested: to create some unique movie clip which would contain all data/questions lined up but main problem for me is how to "trigger" that movie clip to play only AFTER end user clicks on "Start game" or SPACE to restart? Not sure how to solve this issue?

  • Does anyone know what is wrong with flash games?

    Whenever I try to load a flash game on any website, it comes up fine. However, when I simply click on a button, it freezes both Firefox and the flash script. I just downloaded FF v3.6.10 and updated Adobe Flash player. It was fine before the 3.6.10 update.
    Everything else seems to be fine though...

    Safe mode did not help. In fact, it made Firefox freeze for longer than in normal mode.. I am also using the default theme..
    When I run the Firefox safe mode, it does not come up with the safe mode dialog box like it says in the FAQ.
    Edit: Actually, Java was the problem. To fix, go to start> All Programs> Accessories> System Tools> System Restore, and pick the date that you installed Java. That might help anyone who has this problem.

  • Can't load facebook flash games completely, can load and play games anywhere else

    I have adobe flash player 10.2 for firefox installed. I've got 3.5.18 Firefox. Up until about February I was able to play flash games just fine, even with an apparently outdated Firefox and flash player 10.
    Then I suddenly couldn't completely load games like Frontierville or Treasure Isle. No matter what I would do; including clearing the cache, clearing temporary internet files, reloading the page repeatedly, restarting my computer and uninstalling/reinstalling my flash plugin and my browser, the loading screen would hang at about 98% completion. This is now a common issue across the site for me. No games at all will load.
    I can go to any other site however, and play any flash movie or flash game I wish. It will load properly, and play as normal.
    Any and all addictinggames.com games and any and all miniclip.com games work just fine, as an example.

    I have played the facebook games on firefox, they run perfectly fine on firefox. no problem with the games. All the games are working fine. Facebook games, chrome games or be it online games, they work absolutely fine on my firefox. There might be some problem with your computer. Try to fix it yourself. My firefox runs absolutely fine. The favicon on my site is a movable one which keeps sliding. Even the favicon works on my firefox which does not work on Google chrome. Internet explorer completely messes up my website but firefox is absolutely working good. I play games on [[Racing Games|http://www.racinggames9.com/]] and i haven't had any problem with any of the games here. Miniclip is also working fine on my firefox.

  • Does anybody have problems with the Macbook Pro Retina 15' fans being really loud even when playing flash games like candy crush or tetris?

    Hey guys,
    So after a few months of using the MBP 15' Retina, I've discovered that the fans are incredibly loud even when playing flash games like candy crush or tetris.. are any of you guys having the same problem? Like all of a sudden from be quiet to unbelievably loud just as the games load. So yeah, hopefully someone has the same problem as I am having.
    What I was thinking was that the MBP Retina 15' is such a beefed up laptop, it shouldn't require that much CPU to run flash games that are not even THAT graphically intensive to which making the fans that loud..
    Thanks!

    Believe it or not, Flash REALLY isn't the issue.
    It's hardware makers making devices with less processor performance and requiring software makers to fit into a certain requirements of such. Namely iPhone, iPods and iPads.
    Flash is designed to give a lot of features and work across many operating systems, browsers and platforms as a write once solution.
    Flash has a certain level of processor performance requirement, which hardware makers like Apple want to build less powerful machines using less expensive processors.
    Apple has removed Coverflow 3D effects from iTunes and discontinued the 17" MacBook Pro, leaving only the 15" as having a more powerful 3D capable graphics capability.
    So Apple is obviously on a anti-heat/performance quest as they further thin up their hardware, trying to kill Flash by punishing Mac users who want to run it.
    Flash runs without a fan sound on my older Mac with dedicated GPU and older OS X verison, no sweat.
    Head to your System Preferences > Energy Saver and if you have it, uncheck Automatic Graphics switching, this will use the dedicated GPU and shorted battery life, but if your on power should reduce the heat and fan noise.
    Another option is to use SMC fan control and set the fan default speed slightly faster, this will keep the machine slightly cooler and not trigger the higher fan speed as often.
    If your running 10.8, you will need to System Preferences > Security > downloads to "Anywhere"
    SMC FanControl is over at MacUpdate.com.

Maybe you are looking for