Please help me with a problem of simple flash game

I'm trying to learn how to make flash with Adobe flash 5.5 games. I do a tutorial of a book and am stuck.

The game is called the concentration and you are supposed to be 2 tiles of the same shape. There are 10 tiles of form

and 1 question mark tiles. These tiles are held in a table. 20 tiles are supposed to be displayed in a row with 4 rows 5

and the question mark is supposed to be in place on all 20. My problem is that I get a white screen when I test the movie. I have

think that the code is good, but I think I downloaded not the tiles to the right. I did download the 11 tiles to the library and have

These 11 tiles and tile_movieclip in the library. Here is the code:

package {}

importing the classes

import flash.display.Sprite;

end of importing classes

SerializableAttribute public class Main extends Sprite {}

public void Main() {}

variable and constant

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

loop design tiles

for (var i: uint = 0; i < NUMBER_OF_TILES; i ++) {}

Tiles.push(math.floor(i/2));

}

trace ("my tiles:" + tiles);

end of loop creating tiles

loop of brewing

var swap, tmp:uint;

for (i = NUMBER_OF_TILES-1; i > 0; i--) {}

swap = Math.Floor (Math.Random () * i);

tmp = tiles [i];

the tiles [i] = tiles [swap];

tiles [swap] = tmp;

}

trace ("my tiles mixed:" + tiles);

end of loop of brewing

tile by placing the 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 the tiles by placing the loop

}

}

}

Can someone tell me what I'm supposed to do to make it work? I think that the problem is that he doesn't know where are the tiles.

Thank you.

What is your instructions to do so with the 11 tiles after you put in the library?

Tags: Adobe Animate

Similar Questions

  • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    Ideas:

    • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    I tried to download the RegCure as advised, but the problem still exists...

    Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Hello, I have version Adobe Acrobat 11. I have complete documents and send them to customers. However, when customers open the documents on their side, they are empty. The filled information are missing. Can you please help me with this problem?

    Hello, I have version Adobe Acrobat 11. I have complete documents and send them to customers. However, when customers open the documents on their side, they are empty. The filled information are missing. Can you please help me with this problem?

    Why are publish you again? You must first answer the question I ask in your original thread.

  • Could someone please help me with a problem I'm having with my update s/ie window?

    I was trying to find a way to get help with my concern about internet/window update of. 99% of the time when I'm in train to get updated window or check the mails on yahoo and a few other sites, my page is immediately closed. I tried to delete the cookies and files and restarted and system restore and reset my IE as well. Nothing works, and I know that I need some updates (would be nice to be able to check my email yahoo also).

    This is what happens in detail:

    I type in the Web site window update and as soon as he gets it closes immediately. When I type in the website of yahoo and then click check mail it closes immediately. There were a few other sites, but these are the 2 most important for me. I have no error code and no warning, just boom that it is gone and everytime I try to bring everything back up, it closes. I did everything I could and I am at a loss.

    Could someone please help me if I can get things and finally be happy and not so stressed. This happened for some time now. I tried to contact technical support, but I can't ever get a straight when clicking we answer contact as normal websites don't. So I try here.

    Please help me solve this problem... also I "think" I have IE 8? could be 7, but I think that 8. I can't because it messes up my computer.

    Thanks, I look forward to talk to someone soon then.

    Catt

    You probably have a nasty malware infection.

    In case you are unable to solve this problem with the suggestions of others, I think you should choose interactive free aid to this page:
  • Please HELP me with the problem I encountered with ' Microsoft did-It ' ~ it has stopped working and displated this (?) ;-2147023080 error code

    I am a simple user of PC with Windows XPI downloaded ' Microsoft did-It ' and have used it successfully several times until today.

    Earlier today, it simply stopped working in the middle of his analysis or whatever and posted the following to the value of the figures & numbers    ;-2147023080

    Is it a CODE of ERROR or something?  How can I solve this please?

    ALSO:  I also got another code (or whatever you call) showing following error (0 x 0) unk

    Can someone help me understand this?

    When I went through the trouble of looking up for the first time for a "fix", good old MVP "STEVE" led me to a sales PITCH for some DRIVERS REPAIR download I had to ENROLL in the first, while THEY WANTED ME to PAY THEIR MONEY BEFORE HELP me

    Sincerely grateful for your help.

    Sherry

    Hi Sherry,

    Can I know what question faced you that prompted, allowing you to run the Fixit?

    The question you posted would be better suited in the Forums of Microsoft Fixit. I would recommend posting your query in the link below.

    http://social.Microsoft.com/forums/en-us/fixitcenter/threads

    Good day!

    Answer please if you have any questions.

  • Please help me with a problem of visibility symbol

    Hello

    I created a horizontal navigation bar that includes an animation when you hover over the different links.  This animation is a bubble that appears behind the navigation bar which has a brief description of the link.  I composed the bar of navigation as a symbol and the bubbles as a distinct symbol, step to the Nav_Bubbles takes the horizontal space bubbles taking place throughout the navigation bar.  When you click on a link in the Nav_Bar, not only the Nav_Bubble anime since benchmark apprpiate (because the mouse is clearly positioned on the link), but the main stage and then animates the build up of the content for that link.  This main content hides behind the Nav_Bubbles (so you can continue to see small bubbles must you hover nav links)

    The problem with that is:

    The content of the main scrolling aura or clickble scene content according to the clicked link, however all content which is located below the scene Nav_Bubbles is unclickable.

    edge-animate-symbol-layer-example.jpg

    To keep the bubbles of functioning and correctly positioned, I seem to have keep the bar and bubbles in separate symbols.  So I can't for the life of me see how I can the keyframe of the visibility of the Nav_Bubbles to only when a bubble is displayed.  Is there an alternative to the visibility option to allow the Page_Content be clickable through the scenic space bubbles (attached image dotted box)?

    I hope that all the senses?

    Thank you very much

    OK, fixed!

    For those interested by what should be here, a simple line of code:

    sym.getComposition () .getStage ().$("Nav_Bubbles").hide ();

    The show and the skin were placed either side of the bubbles that drove inside the symbol of Nav_Bubbles.  We tried this as you can see above in the timeline panel, but because the animations of hover needed to happen at any time, not only the time that we put in the calendar of the rocker of the screen, we needed to achieve this programmatically.

  • Can someone please help me with a problem of printer :(

    Hello. We have a Windows 7 PC and a HP Deskjet 3520 printer. Just bought the printer 2 weeks and it was working fine but now it will not print jobs off the computer! Everything seems to be connected very well and I ran a test print to the printer and it looked good. Only thing I can think of that might have caused the problem is that we had 2 power cuts in half an hour / an hour yesterday so am wondering now is just a coincidence, or it caused the problem. I would be grateful to anyone who helps. Very frustrating.

    Most often when a device does not work, it is because the driver has been corrupted.  Re-install a new copy should help

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly? SignedIn = 1

  • Please help me with a problem.

    I have a footstool of VM on ESXI 4.1 wich I want to save all the VM that is that in the case where the disaster I will be possible for this virtual machine in an another ESXI 3.5 that is on the rise. How can I do?

    Thanks in advance.

    I assume you mean the free version of ESXi. In this case you can take a look at for example ghettoVCB as a backup solution. However, a virtual machine created in ESXi 4.1 may not work in ESXi 3.5 without manual changes. It depends on the version of virtual hardware that you selected when you created the virtual machine. ESXi 3.5 is able to run virtual machines with version HW 4, ESXi 4.x uses HW version 7 by default.

    André

  • BlackBerry Smartphones please help me with my BB Storm 2

    Hi fellow messengers,.

    I'm having a problem with my BB browser. My unit is BB Storm2 9550.  My browser does not work everytime I visit a particular site. He tells me that I am currently on a service plan that requires a WiFi connection. However, I am connected to Wifi. Wifi works really well. My friends are able to browse using the connection with their own phones. He also tells me that I am connected to Wifi, but my browser tells me that am not.  I only feel it now and its bothers me for two days. Ive tried another wifi spot, but then I always get the same problem.

    The strange thing is that whenever I'm

    in my FB app (via my social BB connection), and then I decided to press the option that says go to FB Mobile, there is no problem. I know what his FB mobile, it works only if you are connected to WIFI. And Yes, it worked for me. But, when I go to the browser and type the domain, www.google.com, it never worked...

    Please help me solve this problem.

    Thank you!

    Just checkin, OK?

    My dear sweet companions experts have been berating me for a long time wandering on several of my links... (Hellllooo... BIFOCALS?  )

    I have a 9550 Storm so please open your browser, press the menu key > options > cache operations and everything clear.

    Back to Homepage > main menu options > list your options of confutation of browser, even for General properties.

    If we cannot see an anomaly in software we can make (Advanced) WIFI diagnostics and diagnostic of Mobile phone network services,

    Thank you

    Bifocals

    KB13299 Use the tool of diagnosis Wi - Fi (advanced only)

    BlackBerry Storm2 Series - 5.0 - user - 292 Guide

    Your mobile network diagnostic

    Now your answer is here at the end, but you should really keep

    cleaning of ordinary memory, service books, etc.

    Have a great day!

    KB14394 When you try to access a web site on the BlackBerry smartphone, the following error message appears: "this is a Wi - Fi service. Please make sure that your device is equipped with an active WiFi connection and try again. »

  • Please help me with my dv6t 1200 cto

    I want to install win xp on my 1200cto dv6t.

    I read the post (general Guide for XP Downgrade for HP/Compaq Notebook consumer)

    It's really very very useful...

    But the links for the sata drivers for intel does not work with me.

    ((For laptop with Intel processors installed, use in ICH9 sata driver,

    The pilot is located in iaAHCI.inf and is called ICH9M-E/M SATA AHCI Controller here))

    When I press the last link for intel, it transfers me to the site intel with error message saying that (( download is not available

    This download is no longer available))

    Please help me solve this problem.

    Thanks in advance

    So sorry for the link, Cheryl may have some difficuties updated the link.

    Intel has updated their drivers, old link has been removed.

    ICH9M-E/M SATA AHCI Controller, here

    Good luck

  • I forgot my restriction password, let it please help me solve my problem

    I forgot my restriction password, let it please help me solve my problem

    I forgot the password restriction

  • The address bar where I can type in the Web addresses does not appear on my Mozilla, please help me with this... How to activate it?

    The address bar where I can type in the Web addresses does not appear on my Mozilla, please help me with this... How to activate it?

    Hi kdwis,

    Going to try view > toolbars and activation of the Bar of Navigation and in the bookmarks toolbar.

    Hope this helps!

  • Sir please help me with my home page. When I put my Home Page about: welcome it gives an error saying invalid Url... Please tell Me how to fix it!

    Question
    Sir please help me with my home page. When I put my Home Page about: welcome it gives an error saying invalid Url... Please tell Me how to fix it!

    Subject: House = without capital letters

  • I can't shoot at a site in the usual browser... in navigation private. I can pull up in other browsers and could pull up 2 weeks ago... now I can't. Please help me solve this problem?

    Question
    I can't shoot at a site in the usual browser... in navigation private. I can pull up in other browsers and could pull up 2 weeks ago... now I can't. Please help me solve this problem? Also, I can' signed in 'members only' in private browsing mode.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • I bought the iphone 6 s more time face in Saudi Arabia. I need to check if the original phone to apple or duplicated. So please help me find this problem.

    I bought the iphone 6 s more time face in Saudi Arabia. I need to check if the original phone to apple or duplicate. So please help me find this problem.

    Hey there, I guess your question is "how to determine if my iphone is true or false. If Yes, then if you go here https://selfsolve.apple.com/agreementWarrantyDynamic.do just enter your serial number and code and if his 'real', then it will show you the model of the Iphone and guaranteed dates. If this isn't the case, then you know the rest. If this is not the case then try to download apps from the app store and run or can it connect to itunes. Tell me what best worked: D - Jon

Maybe you are looking for

  • reformatting laptop computer ("could not unmount disk')

    Hi all I gave my mom my 2009 MBP and reformatted the drive. She didn't use it and I tried to reformat then I had my name and ID on it and ended up having to bring the genius bar because I couldn't get out to 'one-grey' PARTITION tab turns out I had t

  • Need advice on backup files

    Could you please tell me how I can easily (I'm not technically proficient) back up the following:-Microsoft security updates-Updates to Norton Security-other downloaded software program updates-e-mail-List of 'Favorites' Internet-Desktop display sett

  • Fan turning endless on Satellite P300-20w

    Hello I have a very big problem with my Thosiba. The fan is running and running... Sometimes when I do anything!CPU is less than 40 °; GPU is 44 ° (Everest).It's not hot, then why is this laptop so hard, why is the fan always running (is there more o

  • Media Center to try to save or save the settings when playing tv

    I have a Media Center older that I custom built a few years back. It worked great, but recently, I needed to replace the hard drive and start over. I am running XP MCE 2005 with all service pack upgrades. Its an AMD Athlon 939 3.2 processor dual core

  • Windows file install a malware on it

    Hello My windows installation file C:\Windows\Installer\42d75.msp has a Win32:Malware - gen infected on it and I can't fix it. What I do, except a reinstallation of all the operating system as a last resort?