Various noob questions, tables

Hey all,.

This isn't really an issue, but as I am just learning AS3 as best as I can, I thought I'd use understand you smart people to help me better things.

I'm in book of Gary Rosenzweig (good info, but very difficult for me to grasp the logic and keep track of all the variables) and has recently created the "Deduction". It works, but I don't feel that everything has been explained as well as it could have been.

1. could someone maybe break what happens at the hearing "because" for tables are created?



private var currentRow:Array;

//

currentRow = new Array();

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

var newPeg:Peg_mc = new Peg_mc();

newPeg.x = i * pegSpacing + horizOffset;

newPeg.y = turnNum * rowSpacing + vertOffset;

newPeg.gotoAndStop (1);

newPeg.buttonMode = true;

newPeg.pegNum = i;

newPeg.addEventListener (MouseEvent.CLICK, clickPeg);

newPeg.setChildIndex (newPeg, 5); ASK QUESTIONS ABOUT AS3 FORUM

addChild (newPeg);

allDisplayObjects.push (newPeg);

records pegs as an array of objects

currentRow.push ({peg: newPeg, color: 0});

}

Is something like this: you want a new table, and 'for' is used to help determine the number of objects or "slots" need to be created for this table? ( I use the variable 'creation' because it's just practice?) Below, I start at 0, is assumed to be 1 less than the number and needs 1 added to the amount (a constant) numPegs i (++), until it is equal to i < numPegs...

something like that?

2 I vaguely remember the book mentioning that tables can create content ' on the go ' or 'dynamic' - for example, currentRow.push ({peg: newPeg, color: 0}); creates the 'peg' and 'color' attributes without needing a definition for them earlier in the script.

Any help would be appreciated. Just realize that I'll probably ask a LOT more questions in the coming weeks. (I am creating a game of my own).

The 'i' used in the loop is commonly used as a variable name for a loop counter.  In another life/language "n" used to be the most popular choice.  It may be named any unreserved name you like.  With the help of 'i' is short and sweet.

Tables begin at an index of 0, which is why the 'I' start at 0.  numPegs dictates ankles how you want to create.  As I starts at 0, as soon as I is 1 less than numPegs, the work is done.

Tables cannot create content dynamically.  They can store references to the dynamically created content, but cannot create this content.  The content had to be created elsewhere.

Tags: Adobe Animate

Similar Questions

  • Noob question: Playbooks all have the same performance?

    I know... noob question. I am to complete my first game PlayBook and before I submit the app store I wanted to make sure that hardware performance will be the same on all the playbook or will it be something because of the performance issues on a per-device basis? I hope that this will be similar to a console where you can expect stable performance. THX.

    All devices (currently) work the same in the same conditions.

    That does not mean, however, that you can treat it as a console.  A console runs only a game and nothing else (in general).

    The PlayBook can run multiple applications, and among other things, a user can 'Behavior of the Application' setting configuration Mode Showcase, default, or standby, what determines if your application runs or stops when it is idle.  If they are in window mode, they may have other things at the same time.

    To a first approximation, however, "even in the world" is probably correct, for now.  Don't forget there will be different tablets in the future, with specification different but compatible with your app... not quite like a console there where many games is basically orphaned (or requires a port) when a new generation comes out.

  • Noob question: autonomous AIR .bar files?

    Sorry for the noob question, yet to learn these things from the air. When we create a .bar file, it is the only file position, does it include the runtime air, flash, etc, etc, or is it always require an accumulation of air / flash runtimes on the device? THX.

    The .bar file does not include the time of execution because the runtime is already preinstalled on the Playbook.

    Air is really integrated into the PlayBook so you don see the difference between a native app or an Air application.

  • How to design the table from the answer to the question table.

    Hi all

    I am creating an application for student review online.

    There are two types of questions, the only choice of response and multi choice answers.

    My question is less than
    create table question_master
    (
    exam_id number references exam_master(exam_id),
    marks_of_each_question number,
    type_of_question char(1),-- single choice answer/multiple choices answer
    q1 varchar2(2000),
    q2 varchar2(2000),
    q3 varchar2(2000),
    q4 varchar2(2000))
    my table to answer (I'm not satisfied with who is below
    create table answers_of_questions
    (
    answer_id number primary key,
    question_ID number referenes question_master(question_id),
    answer varchar2(4000) not null,
    is_answer_correct char(1),--y/n,
    student_selection char(1),--y/n   student select it or not
    ....
    ...
    now, I'm perfectly how to create the RESPONSE table to contain the answers.
    the only choice is good, but several checkboxes choices, what to do?
    How to design the table from the answer?

    do I have to create 2 tables to contain the answers?
    Note: the QUESTIONS and ANSWERS, all will be entered by the teacher. students will make a choice and I will store this choice in another table
    may be called STUDENT_SELECTED_ANSWERS or something like that.
    If anyone has some reference to the script retail scheme review online, kindly share with me.

    Kind regards.

    Kind regards.

    If you need to have answers in another table:

    Student (student_id, name, etc...)
    Review (exam_id, exam_name, etc...)
    Question (question_id, exam_id, question_text)

    Response (question_id, a_text, b_text, c_text, d_text, a, b, c, d).<-- one-to-one="" with="" question="" table,="" a-d="" flags="" used="" to="" indicate="">
    OR
    Response (question_id, answer_id, answer_text, OK)<-- many-to-one="" with="" question="" table,="" correct="" flag="" used="" to="" indicate="" correctness="" for="" this="" single="">

    Student_Answer (student_id, question_id, a, b, c and d)
    OR
    Student_Answer (question_id, student_id, answer_id)<-- creation="" of="" a="" question_id+answer_id="" in="" this="" table="" implies="" the="" student="" checked/selected="" it="" as="" an="">

    To what extent you want to standardize, it is up to you.

  • NooB question: Cup titles and a schedule of transfer

    Let's say I have tons of tracks.  In the Middle, I find I want to firm up a few seconds of footage.  I can cut, or delete the clip, but I still have to select all the following clips and make sure they move upward.  There must be a smarter way of removing a few seconds of footage and moving upward?

    Sorry for the noob question, I searched on google and didn't know what to look for.  I am open for more information that can help me to tighten my research thus.  See you soon.

    The answer will probably depend on more factors:

    Are there in your Timeline, Clips above the area of the Clip you want to Trim?

    What you want to happen to those?

    Are you only concerned to "strengthen" the Clips on the same video track where you cut, or Clips on other tracks video too?

    It is likely that the tool Edit Ripple, or Rt-click and Ripple delete, will do what you want, but who can count on the other Clips on other tracks, and video that you need.

    Good luck and please let us know a little more.

    Hunt

  • D.I. box noob question

    Hi all

    Sorry for the noob question, but I need something clear up if possible. I was about to buy a box for injection and then had a query on them, and if I actually could benefit in this scenario...


    Fig 1. is how I currently record.

    Fig 2. is how I would do it with di direct box

    diag.jpg

    My question is... in this configuration, the d.i. box would make a difference to the signal? or he would only make a difference if I was going to live guitar to box, the sound card?

    Thank you for all your help.

    In my opinion you have basically three alternatives for the recording of the guitar:

    1. get an amp excellent sound, recording with a microphone, or more, in a room of good survey.

    Challenges: you'll probably need a studio proper, or at least no neighbours, because it could become LOUD. It takes time and experience of mike a good amp and even microphones expensive (several). Result depends on the acoustics of the room more than you think.

    Another way here, is to get/build an isolation area around your amp, which will be a kind of micro studio for it, allowing you to play hard and with a good tone, but in a more controlled environment. Many advantages for this make. Unfortunately, the expense can also be 'pro' - but I don't know there are DIY solutions.

    2. record of the amp 'dry' via either its line (send FX will also) or use a ' soaking power allowing you to put the amp (some sounds so much better AMPS), but with a low volume in the room. You can connect the device of soaking directly, or give the speaker the "tame" signal and mike the amp without disturbing the neighbors that it now. Good power soaks don't come cheap (?). Dry recording, for example by not using mike, often sounds like this: dry. It depends on your style of music, but an electric guitar should probably be considered an acoustic instrument. Instead of a diaphragm in wood, it has a speaker. The sound, often, we want to achieve is an amp of good sounding in a good room, which is an acoustic sound. You simply cannot get to an exit row or direct to a soaking of output power (not president). He needs treatment.

    3 use a program like GuitarRig, Amplitube etc. No installation required, regardless of the size of the room and acoustic sound (except that the acoustics of the room always will affect listening!) or mike. The software simulates the amps, effects and even mic configurations; added the "airplane" that you will not get a direct connection. Once again, according to your style. If I were Bill Frisell or Jim Hall, i.e. anyone with an as most of their music very "naked" guitar sound, I probably does (but these guys have access to the great engineers too...), but in a pop idom / mixed rock with other instruments and certainly to do demos, that's actually what I would recommend. Especially for us space challenged who have neighbors and an infinite time either. No, you will not look like 'all the world'; It's garbage in French - garbage out as always (many are disappointed by the present, but some are happy, it is always the case)

    All you need is a sound card with an instrument of entry. If you have a * good * sound card already who is not entered instrument, you can consider a DI box. Otherwise I'd say it's redundant.

  • Noob question to try to replicate the rows in a table

    Simplification of the problem is that I have a table with user_id, name, year where useridentifier is pk. I would like to take advantage of all the lines that correspond to year = 2008 and insert them into the same table, but start the user_id a number and year = 2009.

    I know that this does not work, but that's what I want to do in noob-code:

    INSERT in the TABLE)
    user_id, name, year
    ) (VALUES
    SELECT User_id_seq.nextval after starting at 3500, name, 2009 of the same table to insert in the place where year = 2008
    );

    I considered using a temporary table, I've also seen mention of sliders, but do not understand what they are. I'm really, really new to Oracle and SQL in general, but am familiar with programming and shell scripts. I know more in-depth research could land me what I want, but I think my search syntax would be just as weak as my knowledge of the subject. I just think that it's something so basic and easy that my research are not using the right conditions to catch a shot.

    Hello

    is a fixed number practice

    INSERT INTO TEST_1
       (SELECT t.user_id + ,
               t.NAME,
               (t.YEAR + 1)
          FROM TEST_1 T
         WHERE t.YEAR = 2008);
    
    COMMIT;
    

    Kind regards

  • Noob question, youtube

    Hi im a noob to photoshop etc, and has recently started a YouTube channel for downloading music.

    Ive seen several channels that resemble the type of this http:/// www.youtube.com/watch?v=Apc4XT8xUvghttps://www.youtube.com/watch?v=Apc4XT8xUvg

    Does anyone how to make a video like this with snowflakes etc. and what program to use?

    Sorry if this is the wrong forum to ask this question in.

    I'm guessing that Adobe After Effects (perhaps with a plug-in):

    Video effects, Visual effects software | Download the free trial version Adobe after effects CC

    Can pick up a quick getaway in the After Effects forum and see what they say here as well.

  • Noob question - selectedLayers

    Hi guys,.

    I wrote a simple script using selectedLayers to get the properties I wanted. I just realized that, so that selectedLayers to work, he seemed to think I first select layers, then run the script.

    It is abit problematic, given the use of script later. Is there a better way to point to the selection of the layer or some kind of a constant update on the selectedLayers?

    Thank you very much

    Desforges

    I see. Read the original question gives the impression that you think this selectedLayers is not updated in real time.

    It is actually updated in real time, and this is what might cause you a problem:

    Because adding a new layer to a model disables all in this model and selects the new layer.

    ===> If you ask comp.selectedLayers even once it does not contain the original selection but only the extra layer.

    If you need to store the array of selected layers before doing anything (var a = myComp.selectedLayers). Then make your changes (add NULL values, rename, set expressions) referring to the table 'a', not myComp.selectedLayers.

    Not 100% sure that it resolves your problem, give it a try.

    Xavier.

  • sys.dba_constraints question, table or view does not exist error

    Hi all

    I am a 'rahul' on a user database "MR12DEV" with a lot of privileges, one of which is 'SELECT ANY TABLE' and I'm trying to return a table IE 'sys.dba_constraints', the question is when I am trying to compile my code, oracle is back throwing an error indicating that the table or view exists However, I'm using Toad and when I select "sys.dba_constraints" and do a F4 on it, I'm able to get a pop up that contains the column names and the pop-up displays sys.dba_constraints and when I click on the data tab, I am able to see its data, could any1 further suggests what could be the reason why I'm not able to see the table of sys.dba_constraints Please help.

    Thank you
    Rahul

    Hello Rahul,

    When you refer to a table or view in a procedure, function or a package, you must have a direct grant to the user and not by a role.

    In your case:

    GRANT SELECT ON sys.dba_constraints TO rahul;
    

    should work.

    Kind regards.
    Al

    Published by: Alberto Faenza November 14, 2012 10:16

  • Trigger Oracle (INSERT ONLY) question (Table of historical data)

    What I have to do is follow the changes that are taking place on a table. The requirement is that it must be a trigger. The question I have is that a MERGE statement is moving data to another table that I monitor, which creates tons of changes (which are really just duplicates).

    The underside of work... with the exception of INSERTING it. When a change or remove met him, archives... but not INSERT it. I noticed that when I put where when to '=' instead of '<>', INSERTS will be saved (but obviously when new old =, which I don't want). The problem seems to be the "WHEN".

    Any suggestions...?

    CREATE OR REPLACE TRIGGER SCHEME. TRIGGERTEST22
    After you INSERT or DELETE or update T_RESOURCE_ENTITY
    THE ONTARIO SCHEME. TABLE
    FOR EACH LINE
    WHEN (nvl (new. T_RESOURCE_ENTITY, 'YYY') <>NVL (former. T_RESOURCE_ENTITY, "XXX"))
    BEGIN
    IF (VALUES) THEN
    INSERT IN THE SCHEMA. TABLE_HISTORY2 (ARCHIVED_BY, ARCHIVED_DATE, ARCHIVED_TYPE, COLUMN_NAME, COLUMN_VALUE_NEW, COLUMN_VALUE_OLD)
    VALUES ('USERNAME', SYSDATE, 'IN',: new.) T_RESOURCE_TYPE,: new. T_RESOURCE_ENTITY,: old. T_RESOURCE_ENTITY);
    ELSIF (UPDATE) THEN
    INSERT IN THE SCHEMA. TABLE_HISTORY2 (ARCHIVED_BY, ARCHIVED_DATE, ARCHIVED_TYPE, COLUMN_NAME, COLUMN_VALUE_NEW, COLUMN_VALUE_OLD)
    VALUES ('USERNAME', SYSDATE, 'UP',: new.) T_RESOURCE_TYPE,: new. T_RESOURCE_ENTITY,: old. T_RESOURCE_ENTITY);
    ELSIF (DELETING) THEN
    INSERT IN THE SCHEMA. TABLE_HISTORY2 (ARCHIVED_BY, ARCHIVED_DATE, ARCHIVED_TYPE, COLUMN_NAME, COLUMN_VALUE_NEW, COLUMN_VALUE_OLD)
    VALUES ('USERNAME', SYSDATE, 'DEL',: new.) T_RESOURCE_TYPE,: new. T_RESOURCE_ENTITY,: old. T_RESOURCE_ENTITY);
    END IF;
    END;

    : old is NOT available to INSERT.

    This means a trigger will not be enough.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

  • Totally new with noob questions

    OK so im totally new to developing with Flex. My company uses flex to create RIA that work to read and write with SalesForce CRM. I use the salesforce toolkit and have an understanding of how everything works great base. what im trying to do is take the data which are entered in a text box and who present for salesforce. Currently, the first name, name and phone number are in the code. have created text boxes, I don't know how to take the value that is entered in one and make that equal to the value of its corresponding field.

    like I said... total noob

    If you are in ActionScript. FirstName = firstName.text should be fine, but in MXML and sometimes in ActionScript, you may need this:

    VAC. FirstName = "{firstName.text}.

    If this post has answered your question or helped, please mark it as such.

  • Various Newby Questions on get Podcasts on iTunes

    I want to download podcasts (.mp3 files) to iTunes 2 Web sites that I administer - one is a WordPress ( http://www.hopeandpassion.org/?page_id=232 ) site and one is a non-WordPress ( http://www.norwinalliance.org/audio-links.php ) site. There are about 50 podcasts on the WordPress site and about 600 podcasts on non-WordPress site.  50 podcasts on the WordPress site are provided as links on a static page.

    I am new to the FEED RSS and iTunes.

    To the WordPress site, I figured out what to do for one of the 50 podcasts: I took the link for the podcast and published in a new blog, so I used the mechanical press to set up my RSS feeds ( http://www.cobwebinc.com/wordpress/feed/podcast/ ), I created a graph for the power and gave the link for it to power press I went to iTunes and downloaded the link RSS feed for assessment, iTunes has approved the upload and this unique podcast is now on iTunes. I have a few questions:

    Publication of 49 new blog posts for others 49 podcasts downloaded on iTunes?

    Do I need to go to iTunes 49 times and him give the link of the RSS feed appears each time I publish another blog article? If so, the RSS link is always the same. How iTunes knows that there is a new podcast?

    As I understand it, the RSS file is an .xml file. It was created by mechanical press. Where is this file which is located? I want to watch it. I've looked everywhere in my server space and cannot find the .xml files.

    Display on iTunes isn't quite right. How can I tweak it? I want to change the graphics and some other entries on the posting of iTunes.

    Now for the site non-Wordpress how I produce the RSS feed file? I won't be able to use PowerPress.

    Thanks for your help. I'm a beginner at this, as you can tell.

    OK: it's important to get the right terminology, or we will go along in circles. Your links feed a podcast called "Cobweb computer Services Inc. The podcast is all 'wrapper' for the episodes; you have so far only an episode. Shortly, you will add more (as you say there is a lot on the site) and these should be called episodes, no podcasts. In order to add more episodes, all you have to do is add to food. No action is necessary. Subscribers will see the new episodes fast enough; Usually, it takes 1 to 2 days for new episodes to appear in the store. The store will recognize that there are new episodes without having to tell him.

    I guess you don't really want your podcast to be called "Cobweb computer Services Inc." since the site is called "Hope and Passion" so you can change the title in the "title" tag in the feed.

    Your stream is in your server, cobwebinc.com, in a folder (directory) called "podcast" in a folder called 'feed' in a folder at the root level called "wordpress". To make changes in the diet, you just need to change the details everywhere where you originally entered them and re-post the flow. I can't advise on the specifics of the use of Wordpress or PowerPress. Blubrry have a help to the http://forum.blubrry.com forum

    The other site seems to be exactly that, a site with no RSS service. You will probably need to use Wordpress or one of the other services or programs of creation of podcast and annotates them manually.

    You can find my page 'start' on the useful podcasting: http://wilmut.uk/pc

  • Satellite U400: Various uncomfortable questions - rundll, programs etc. of closing.

    I have a laptop Toshiba U400 brand new which started to play up.

    When I try to open a document using a program for which
    I navigate on the computer - and not one assigned to the document, if I click on 'Browse' the white on the box and I get the message "Windows host (rundll32.exe) process has stopped working. A problem with the program
    stop working properly. Please close the program. »

    Another question which is, I am sure, related, is that I can't save documents in Open Office - when I click on 'save', the program just close and will not reopen without a reboot. There are other small picturesque glitches such as when I click on the paperclip to attach a document to a Windows Mail email the winodw and WM closes agains and just requires a reboot.

    In fact, most of the problems seem to imply by clicking a function make the close program.

    I've read pretty much everything about the online rundll error - it seems especially Nero, which I did not - and I uninstalled everything I put on the machine to see if it was a difficulty, which was unfortunately not. And I, of course, run my catcher program viruses and spyware, which found nothing untoward.

    Here's hoping a kind soul can help. All the best,

    Ian

    Hey Buddy

    For me, it looks like all the problems described in your messages are associated with any 3rd party applications that are running on your laptop with pre-installed Vista OS.

    It seems that the programs are causing these annoying problems. Perhaps because of the non compatibility with Vista? ?:| It's not impossible!

    You can reinstall the OS using the recovery CD. Then update the operating system for the last State install SP1 and Ms patches
    Don t install applications 3rd before you didn t, how the system works and if it s running stable.

    If Yes, then your 3rd party installed programs cause these problems.

  • Delete the Simple question table

    OK, so I promise you, I'm not a fool, but I could be lying at the monment.  I have a table, an orgenized good demisional, I need the unique elements.  I wrote an admitted that it is a little messy method to do such a thing, but it works logically for me for the most part.  The table currently has 69 items, and at the present time, there are only two unique values.  I could just listed them but that would mean I have to roll updates whenever a new brand comes out.  So now, when I run my program it will remove about half of the table and decides that he doesn't have to obey logic more and keep the rest.   I compied the segment of code that is the problem and registered as a VI for your pursoual and I wired in a copy the avictive table so that you can see what I mean. The code works wonders for 35 early iterations of the loop, and then something goes wrong terriably.

    Someone at - he a clue

    Mark R

    I would suggest just a much simpler way to do what you're trying to do.  Use of conditional indexation Tunnels.

Maybe you are looking for

  • Locked off-screen Iphone5 is broken and does not work

    Hi, I have an Iphone5 and I recently dropped it and now I can't get past my lock screen. The phone its self will not register my finger swipe, or anything else. I see again the screen, I was able to receive messages and calls, just could not answer (

  • Factory Reset/restore Slimline s3910t of windows 7 to vista

    Product name: Slimline s3910t Operating system: Windows 7 Home Premium Service Pack 1 I bought this computer several years ago, just before Windows 7 came out. I then had the ability to free upgrade to Windows vista (originally installed) to windows

  • This SSD is working on my HP Pavilion a6355.uk?

    My OS is Windows 7 x 64. I have a disc of windows 7 with me. I made many changes to my system, which none, I deserve to be meantioning, so I should not. I have not changed disk controllers hard etc, I always use the controllers of the Board of Direct

  • Unable to launch the App with DONKEY

    I was unable to launch an application that uses a native extension. Everything compiles without error, but when I go to launch the application that closes before either one has started. That left me unable to even to debug the application. I have rem

  • 5.7 LR and update

    Is there a more recent LR that I need to update also? When I go to help and look for the updates, there are no updates.  But recently have trouble importing pictures so I thought maybe that I need to upgrade or something.  Thank you