Need quick help! The use of tables

I just started using flash a few weeks ago, and for one of my school projects I am creating a pokedex which will display information, when the user clicks on some buttons. for example 'If you click the attack button, then 4 attacks will appear. I currently use frame skipping to my application; but my teacher suggested I use tables to make them all appear on a single image, but I don't know how to do this. Can anyone help?

Thanks in advance.

Tables are variables that contain several elements. A common use for tables is to make collections of items so that items can be related to each other by their relative position in each table. For example:

var letters: Array = new Array ("A", "B", "C", "D");

Table of figures: var = new Array (1,2,3,4).

Now, you can find an element in a table by searching for here:

var thisOne:int = letters.indexOf ('B');

trace (thisOne);

var thatOne:Number = numbers [letters.indexOf ('B')];

trace (thatOne);

The first trace shows that the letter B is in position 1 of the table letters. The trace of the second shows that the item in the table of figures in position 1 is number 2.

Who help me? You can learn more about the use of arrays in Flash here: ActionScript 3 fundamentals: paintings | Adobe Developer Connection

Tags: Adobe Animate

Similar Questions

  • Need quick help

    Hello

    I need quick help, the hp that we use at work has a background that someone else put (a new), I change back to the normal background but the picture is still on the menu so that everyone could see it or it could put it again. Someone knows what to do?

    (by the way I'm new to this forum so I could have failed by asking)

    Green as grass

    This solved so nvm but it's XP thanks for trying to help if

  • The use of tables of database for authentication in the ADF

    Hello

    I need to use my user table in the database for authentication in ADF (adf 11.1.2).

    I have 3 categories: agent admin and user is unique, each has its own page, logging, the application checks the type of user and directs its jsf task or the page of the jsf page flow.

    I have a user with the type attribute table

    HOW CAN I MAKE THIS PRAYER.

    Hello

    See links below.

    Whatever Fusion Middleware: Tables database user to implement authentication in the ADF

    Java / Oracle SOA blog: the use of tables of database as in WebLogic authentication provider

  • The use of tables with void / vi

    Hello!

    I have a question about the correct method for the use of a Subvi to update an array of integers. How to pass the array to the Subvi, without creating a second table to the output (or what is returned)?

    It is for the calculation of the histogram data. Basically, I have a set of input values are evaluated to determine which bin location (array index) to increment the counter on. I then want to use the same Subvi to update table (let's call it "BinsIn", for the sake of discussion) and return to the main VI. Think in terms of textual programming I want to pass the array of reference, so I'm not wasting resources.

    I read a few posts that deal with using Ctl Refnum, but I don't know if that's what I want to do...

    Any help would be appreciated.

    Thank you

    Shaun

    Don't think in textual languages.  There is no difference in passing by reference and by value.  If the compiler determines that the input array can be reused as the output array, and then she'll do.  You can give him some advice that he should do by writing your code to perform operations "on the spot" (search for this term on this forum) and avoiding the functions requiring a copy the table as delete table.  Best thing to do is probably to write your code to make it work, then download it here so that other contributors can comment and help to make it more effective.

  • The use of tables

    Using
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - production
    PL/SQL Release 10.1.0.4.0 - Production
    "CORE 10.1.0.4.0 Production."
    AMT for 32-bit Windows: Version 10.1.0.4.0 - Production
    NLSRTL Version 10.1.0.4.0 - Production

    I'm trying to retrieve records from a database (a single table in this case) using three tables as keys. The table is unique to these three elements. The lines I want to come among a long list of more than 1000 points. I don't have the ability to create temporary tables on this server. So, I have three long lists and the first item in each list, when used in the WHERE clause in a SELECT statement returns an element. And the second points on these three lists will retrieve the next item.
    I can't just use IN clauses to find these items because they must be combined in the same order as they are on the three lists.

    I'm looking for something like this, but I'm running into syntax errors and other errors of logic.
    DECLARE
    
         TYPE Item1_List IS TABLE OF VARCHAR(5);
         TYPE Item2_List IS TABLE OF VARCHAR(3);
         TYPE Item3_List IS TABLE OF VARCHAR(1);
         myItem1 Item1_List;
         myItem2 Item2_List;
         myItem3 Item3_List;
    
    BEGIN
    --these three lists are much longer
         myItem1 := Item1_List('11011',
         '11011',
         '86842');
    
         myItem2 := Item2_List('001',
         '002',
         '001');
    
         myItem3 := Item3_List(NULL,
         'A',
         NULL,
         NULL);
    
    DECLARE
    FOR i IN myItem1.FIRST .. myItem1.LAST
    LOOP
         CURSOR c_cur IS
         SELECT 
         Item1,
         Item2,
         Item3,
         Item4
         FROM myTable
         WHERE
         Item1=myItem1(i) AND
         Item2=myItem2(i) AND
         Item3=myItem3(i);
    END LOOP;
    END;
    /
    Here I use samples to help, but so far I was not able to make it work:
    http://download.Oracle.com/docs/CD/B10501_01/AppDev.920/a96624/05_colls.htm

    Some ideas that I have is, perhaps, I should not be using a slider, that instead, I should retrieve these data in another table? The only thing is, I don't know how to make a table to several column :( Other than that, I'm at a loss, and I really hope someone can help :)

    Skip

    set your cursor might work

    DECLARE
       TYPE Item1_List IS TABLE OF VARCHAR (5);
    
       TYPE Item2_List IS TABLE OF VARCHAR (3);
    
       TYPE Item3_List IS TABLE OF VARCHAR (1);
    
       myItem1   Item1_List;
       myItem2   Item2_List;
       myItem3   Item3_List;
    
       CURSOR c_cur (pItem1 VARCHAR, pItem2 VARCHAR, pItem3 VARCHAR)
       IS
          SELECT Item1,
                 Item2,
                 Item3,
                 Item4
            FROM myTable
           WHERE Item1 = pItem1 AND Item2 = pItem2 AND Item3 = pItem3;
    
       v_c_cur   c_cur%ROWTYPE;
    BEGIN
       --these three lists are much longer
       myItem1 := Item1_List ('11011', '11011', '86842');
    
       myItem2 := Item2_List ('001', '002', '001');
    
       myItem3 :=
          Item3_List (NULL,
                      'A',
                      NULL,
                      NULL);
    
       FOR i IN myItem1.FIRST .. myItem1.LAST
       LOOP
          OPEN c_cur (myItem1 (i), myItem2 (i), myItem3 (i));
    
          FETCH c_cur INTO v_c_cur;
    
          LOOP
             IF c_cur%FOUND
             THEN
                NULL;                                          -- your coding here
             ELSIF c_cur%NOTFOUND
             THEN
                EXIT;
             END IF;
          END LOOP;
    
          IF c_cur%ISOPEN
          THEN
             CLOSE c_cur;
          END IF;
       END LOOP;
    END;
    
  • Need quick help: LR and PS question

    In my workflow, I do all of my settings in LR, but I do not send some photos in PS to get a very good listener and then the file is usually re-imported in LR so I can organize my files and download them on different sites and services.
    The issue I am having now is that when I choose to save the photo in JPEG full size is no longer automatically imports back in LR even if I do it manually. He re - only matter the photos automatically if I save it in Tiff format.

    Someone suggested on another forum that I might need to change the names of files that worked, but is no longer bound has the photo to the original cr2 file.

    Could someone help me solve this problem?

    Thank you

    When you open in PS LR offer now only render in format Tiff or psd. It is a very sensitive difficult movement that changes a file jpg is never a good idea if it can be avoided. Jpg is a compressed format lossly even at 100%, and so much information is lost when rendered in jpg format that additional changes is very destructive. It is preferable, where possible, to treat jpgs in a finished format and use Tiff for editing. You can compress TIFF without any harm to them, unlike a jpg.

    If hard drive space is of such consequence, you can always delete the Tiff or psd after the final jpg export and just keep the original file. This of course means that you would have to re edit if you wanted to recreate the file. The reasonable solution is more hard drive space. With hard drives under $ £ 40/50 TB these days it is not so expensive.

  • Help the use of disc after you save a web page Web

    Hi, I almost forgot the little I have learned on the development of web pages, so, I'm a noob total when it comes to this and I need your help.

    I saved as a web page complete hard this web page on my drive, but when I open it in Firefox or IE, it does not display as much as I need. I am mainly interested in show logo images as they appear on the original web page. Browsers just show them briefly when refreshing, but immediately hide them. I can see the image files downloaded to my hard drive and if I open the page in Dreamweaver it displays these images in the preview pane, but I can't make them display in browsers. Dreamweaver, I saved the page as in the folder where the images are and this has also updated the code with relative image links, but browsers still don't show them.

    I would much appreciate your help with this.

    Nancy, I do this all the time. In this case however, the images are photos that show the larger version when the cursor is over. When I saved the page finished, I saw that large images downloaded too and hoped to replicate this behavior from the page saved on my hard drive. I thought that it was a simple matter and now I think it's not.

    The site you are trying to copy uses sophisticated client-side and server-side script.  Unfortunately for you, unless you have all the scripts that make this interactive page, you're spinning your wheels.  Your local copy cannot perform as the site online because you are lacking necessary support files (Javascript, jQuery, etc...).

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB

  • Why apple does not feel the need to restrict the use of the fan on a laptop?

    The macbook pro for a reason any waits until the thing is 65 degrees to get even the fan moving. Its bad that enough they insist on the use of passive cooling through the aluminum cover on PEOPLES TOWERS LOCATED. His obvious 'artists' download design final decisions because I'd love to talk to a computer engineer who think their design (which was used for many years) is convenient for any user that does nothing more, to consult by e-mail. It wouldn't be a problem if the design worked well, but as she performs poorly all laptops need thermo-accelerateur it is cpu departure from your warm thighs and your computer slower. Summer enjoying my ride burned since 2012. Thank you!

    Ask Apple, (which isn't us)

  • I have a power shot sx HS 40 & need information about the use of filters with this camera? Thank you ~.

    I have a power shot sx 40 & would like information on the use of filters with this device?

    Thank you ~.

    Hi Rainlily,

    You will need the # model Canon adapter filter f-DC67A to use filters on this camera, which costs about $25.00. Bower makes one for about $9.00 available in B & H and Bower products work well with the Canon. This adapter uses 67 mm filters. If you have not yet all filters, I would recommend Hoya or Tiffen filters as they are of high quality at reasonable prices. Do not get the expensive filters because in general they can cause color casts that may be difficult to view the process on. Have fun!

    Steve M.

  • The Customer Service of group policy does not logon, access is denied - Windows 8 need quick help

    I use windows 8, I bought already on my laptop about three months ago.

    I have two accounts and "Managing" and "Kyle", I went to enter my password for "Kyle" account which has all my saved and valuable documents which I can't account "administer".

    A message appears

    "The Group Policy Client service could not sign-in.

    "Access denied."

    Please someone help me I need urgent access to my laptop

    Thank you

    Hi Kyle,

    Thanks for posting your query in the Microsoft Community Forums.

    I understand from the description of the problem, that you have problems with registration on the user account on the computer of Windows 8.

    I understand this must be frustrating, but don't worry, we're here to help and guide you in the right direction.

    I would appreciate if you can help me with the following information.

    (1) is the computer that is connected to a domain or any form of computer network?

    (2) you are the computer administrator?

    If it's just a PC at home, connect using the administrator account and check the Group Policy client service.

    (a) press the Windows key + R, type services.msc in the Run dialog box and click on enter.

    (b) to navigate down the list until you find Group Policy Client.

    (c) make sure that it is set to Automatic and is started. You can change to double clicking on it and selecting the drop down.

    (d) try the user account login and check.

    It will be useful.

    Let us know if you encounter problems under Windows in the future. We will be happy to help you.

  • Need quick help on vmkfstools, cloning and the consolidation of the snapshot - not sure that I am doing things

    I received this a.p..:

    I modified the parentCID in "Datapark.SBS2011 - 000003.vmdk" to attach the instantaneous chain. " What I would say, it is to upload the file to the data store and then clone the virtual disk so that the current data files remain intact in case something does not work as expected.

    To clone the virtual disk, run the following command:

    vmkfstools 'Datapark.SBS2011 - 000002.vmdk'-i ' Datapark.SBS2011 - Clone.vmdk '-d thin - one Free

    The command uses Datapark.SBS2011 - 000002.vmdk - who is the last file of active snapshot of the string - as the source and creates a virtual clone drive, in which all the data from all the snapshots will be consolidated. Once the cloning is done, you can join the clone of a virtual machine. Depending on what happened while the Basic virtual disk was attached to a virtual machine, there could be corruption. However, due to the size of snapshots, you should be able to recover most of your data.

    Probably, he fell asleep, and I need to start as soon as possible the cloning.

    Is it OK to run the command, or it deletes all the files in the snapshot?

    As he says, "so that the current data files remain intact in case somethoing won't", the clone command seems to remove all the files from the snapshot.

    Anyone who can confirm?

    Best regards

    Morty

    vmkfstools 'Datapark.SBS2011 - 000002.vmdk'-i ' Datapark.SBS2011 - Clone.vmdk '-d thin - one Free


    Is it OK to run the command, or it deletes all the files in the snapshot?

    It won't do anything for your source files.

    It will simply read the string of the delta with the base of your virtual machine disk and the Clone in a consolidated file called ""Datapark.SBS2011 - Clone.vmdk " "

  • Need quick help to name the folder

    Hello

    I'm trying to create folders. But I'm not able to give the folder name begin with "~" symbol. Please help me solve this problem. Tried coding:

    var myFolder = Folder.selectDialog("Choose Main folder to created subfolders");    
    var mygetname=prompt("Enter the Event Name","");
    new Folder(myFolder + "/" + mygetname).create();  
    new Folder(myFolder + "/" + mygetname+ "~CF").create();// this folder not created  
    new Folder(myFolder + "/" + mygetname+ "/Final" ).create();  
    

    Thank you

    Kitty

    Hmmh?

    Why do you need a "~" symbol at the beginning of the folder name?

    Regardles of: I'm not a direct way. But it could be a workaround:

    var myFolder = Folder.selectDialog("Choose Main folder to created subfolders");
    var mygetname=prompt("Enter the Event Name","");
    new Folder(myFolder + "/" + mygetname).create();
    var toChange = new Folder(myFolder + "/" + mygetname+ "/"+"temp");
    toChange.create();
    toChange.rename ("\u007ECF");
    new Folder(myFolder + "/" + mygetname+ "/Final" ).create();
    

    Have fun

  • Need quick help to package and sign the application.

    Hey guys,.

    I'm trying to submit my application.

    I crossed the babou of my product management process and added the product. Now I see my registered product name, status shows the project and releases and merchandise see none.

    What should I do now to present my application? What is cargo? Do we need to do?

    Question 1: How do I package the application?

    Question2: I sign the application money for the free offer of PB?

    I know that I can follow a few threads to sign, but I can sign an application later. If it's possible, I'll try to postpone to save time and submite the app before midnight.

    Thank you

    harshvt wrote:

    Hey guys,.

    Question2: I sign the application money for the free offer of PB?

    No you don't need to sign in order to qualify. You will need to sign it later so that you can actually so people can actually buy/download your application.

  • Windows Media Player does not open and I'm not find 'Turn windows features turn on or off' when I'm looking for the beginning. I need quick help.

    Windows media player not open yet

    Regarding "I'm not find 'Turn windows features turn on or off' when I'm looking for the start." ...

    Start > Control Panel > column to the left, choose Classic view > programs and features > column to the left, you will see turn windows features turn on or off the option. For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Cannot change the information in the header. Need quick help!

    I have this problem where when I connect it ells me headers were already sent I have provided a screenshot of the error and I provided all my code in which .php files will take 2 posts.

    Thread moved to the Dreamweaver application development forum, which deals with PHP and other issues aside server.

    It is a well known PHP error message. See the following explanation: http://kb2.adobe.com/community/publishing/505/cpsid_50572.html.

Maybe you are looking for

  • How to mark a confidential email?

    I want to send an email and it's confidential. Is there a way I can do?

  • XP - error code: 643 (cannot install updates)

    When you use automatic updates, my computer is never able to install Microsoft.NET Framework 1.1 SP1 update, update for Windows XP (KB979906)

  • Windows xp sp2 - where can I find

    Hello I have re-installed windows xp on my laptop. However, I'm trying to update windows and automatic update doesn't seem to work. I'm unable to install sp3 because I have ie6.  I can't update ie6 because I need sp2 or later version.  Do I need to i

  • picture of Windows will not camera download

    Windows will not download pictures from my camera more, he says, he does not scan.

  • Forgotten password for Windows Live.

    I just got the internet connected at my new address and I wanted to start playing xbox live I noticed that my old old old email address is still linked to my account live xbox now I want to change my old to my new e-mail address e-mail address BUT I