I understand the code, but I feel lost in AS3

OK guys so first sorry for the display of this message which is not really RELEVANT in coding or something but I need your help.

I'm learning AS 3 with Adobe flash CS6 and I was home for a week, but I tried before FlashDevellop.

My problem is that I'm COMPLETELY lost. I understand some code (variables, table, conditionnals, logical operators, event handling in some measure etc...) and I literally (yes I did) followed EACH tutorial that was the later page of google for searches like "How to code in AS3 for flash CS6" or things like that. But I feel lost.

Tutorials you will say to use images and don't even speak of classes, like everything that could be done with only images on the timeline and the code in frames. Others don't even talk about classes and tell you what can be done with the code in an image

What I'm trying to say is that: making games seems really fun and coding doesn't seem THAT hard (I just search for name of functions or events on the web when I'm not sure because I just started)

But sometimes I don't understand what I got wrong, or what I would do indeed at any given time. What should I use, and well yes I have no idea.

I'm doing a bit of flash game as Elona Shooter (http://www.kongregate.com/fr/games/noanoa/elona-shooter), but more simple than this ofc. Just a basic for my first.

I would say a little bit more like this: http://armorgames.com/play/4964/

But Idk, at first I thought that I could do with the little knowledge that I have and the internet, but I messed up with my classes, there are some things that I have no idea how do.

Like adding noise, I really know how to do with images, but I don't know how using classes, and I started to make the game with only the classes so should I switch to the framework? Or I can use both?

If you have a GOOD tutorial, as one who not only explains the code but how it ALL works, it would be SO great love.

Once again sorry to post this text disorganized. It's just that I don't know if it's just me having a lot of trouble with such a simple coding language, or if there is really a lot of things to consider.

Thank you very much for reading if you did haha, and you have an answer, please share .

There are many things to take into account.  I don't think it's a matter of AS3 being a simple coding language... the simplicity of coding/languages are compared to the experience of the user... for some, it might come easy, now, but it didn't come without a lot of the suffering that you seem to be enduring.  You seem to actually like you are coming along very well.

I doubt that it is a tutorial all encompassing fact to satisfy your request.  Most of the tutorial topics will focus on specific aspects.  If you want to learn how to work with sound in form of code, then look in the tutorials for the Sound class... search Google using 'His tutorial AS3' and I bet that there will be a lot of short and sweet lessons available for you to work through and draw lessons.

Tags: Adobe Animate

Similar Questions

  • Unable to understand the code output

    Hi all

    I was reading one of the codes and unable to understand its outcome, I'm really grateful if someone guide me to understand. Thanks in advance.

    Code example

    create or replace package Mp_pkg

    IS

    P_nn TYPE TABLE IS NUMBER

    INDEX BY VARCHAR2 (10);

    END;

    ----------------

    DECLARE

    l_numbers Mp_pkg.p_nn;

    Start

    FOR indx IN 1... 50

    loop

    (indx) l_numbers: = indx;

    END loop;

    dbms_output.put_line (l_numbers. (Last);

    END;

    ----------

    Result

    9

    -----------

    According to my understanding, result should be 50 because the last value of l_number is 50...

    Please guide...


    Hello

    As John said, the VARCHAR2 '9 ' (or any string '9') is longer than the string of 50', for the same reason that the string 'Z' is longer than the string "THE".

    What do we mean when we say this string x is greater than string y?  We mean that

    1. The 1 x chraracter comes after the 1st character of y (in sort order), or, if these characters are equal
    2. x has a 2nd character, but is not, or, if both are more than 1 character
    3. The substring SUBSTR (x, 2) > SUBSTR (y, 2)

    What (if any) strings mean is not serious, so

    • '9' is greater than '50',
    • 'zero' is greater than 'a '.
    • 'small' is greater than 'big '.
    • 'MIN' is greater than 'MAX '.
    • 'yesterday' is greater than 'tomorrow', and
    • "1 January 1900' is superior to" December 31, 2015 ".

    According to rule 1 Correction: rule 3 is the reason why 'MIN' is greater than 'MAX '; the others are all due to rule 1

  • I signed on the sync, I have the code, but do not seem to be able to enter on my other devices

    Running W7 on PC and laptop and have Android signed all managed to synchronize. the PC has generated 12digit code, but I can't find how to pair the devices I tried using Mozilla, but my computer doesn't seem to have the same screen and can not get the possibility of devices pair

    29,0 Firefox and later use the new synchronization version that uses a Firefox account and use just the name and the password and no longer use a sync (recovery) separated key (the key of synchronization is derived automatically the password).

    This version is completely different from the version previously, and you need to install Firefox 29,0 or later versions on all connected devices.

    You can enter the name and password of the account Mozilla on other devices with a Firefox 29,0 or later to add additional devices.

    The new version of synchronization used in Firefox 29 and later again use a recovery key to encrypt the data locally before you download, but this recovery key is generated internally from the password of the account in Firefox, so you no longer need to worry about this.

  • Try to get the code, but it says device saved

    Try to get the code in order to register and get additional codes to pay for services and it says that my drive is already registered. How to fix this? I have not had this code yet. Œuvres of Netflix, but it shows an instant queue of course someone else or gratis. I do not know. Someone help here?

    This a good site thank you never one for all the beautiful work fixed that I'm just getting started

  • Reinstalling XP. Have the drive and the codes, but...

    After many problems with XP, I deleted everything on my hard drive.  I reinstalled XP with the original disc (and I don't have the code for this) but...

    (1) he never asked the code (1)

    (2) it does not load the decent drivers for (no internet) ethernet controller, network controller, PCI Simple Communications Controller or video controller.

    (3) I have the original drivers for the foregoing on drive manufacturer Moose, but it does not all drivers.

    Any ideas?  Thank you!!!

    A few possibilities:

    • Contact the manufacturer of the computer for help.
    • Using another computer, go to the computer manufacturer web site and download the drivers for your computer model.  Transfer them to your computer using a USB, external drive, CD, DVD, etc.

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • WebService response is null in the code, but when I check in the customer REMAINS at this moment where I get the response ok

    Hi all

    Today, I try to call post webservice at this point, I get an answer anywhere via the webservice code I mentioned below, but when I try via the customer REMAINS this time that I get the right answer, so let me know what the problem?

    WebService code: -.

    QString ApplicationUI::postByWebUrl(QString qStrUrl, NetworkMethod method, QVariant data)
    {
        QNetworkRequest request = QNetworkRequest();
    
        QNetworkAccessManager *networkAccessManager = new QNetworkAccessManager(this);
        QNetworkReply* reply;
        QString qStrReply;
        request.setUrl(QUrl(qStrUrl));
        request.setRawHeader("Content-Type", "application/x-www-form-urlencoded");
        request.setRawHeader("Accept", "application/json");
        QByteArray *byteArray = new QByteArray();
    
        JsonDataAccess jda;
        jda.saveToBuffer(data, byteArray);
        QBuffer buffer(byteArray);
        buffer.open(QIODevice::ReadOnly);
        QEventLoop loop;
        reply = networkAccessManager->post(request, QString(buffer.readAll()).toAscii());
        connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
        loop.exit();
        if (!loop.isRunning()) {
            loop.exec();
        }
    
        qStrReply = reply->readAll();
        delete (byteArray);
        buffer.deleteLater();
    
        reply->deleteLater();
        networkAccessManager->deleteLater();
        return qStrReply;
    }
    

    I'm waiting for your positive response.

    There are a number of problems with the code you have posted.  Take a look at this class, which accesses a REST web service and issues the response as a signal.  ForumRequest.cpp

  • Need help to understand the code


    Hi all

    I was reading an article related to fill the list item, but I don't get some codes (see the code in red), I really appreciate if someone explain it to me.

    Thanks in advance

    link real =Oracle application development: how to dynamically populate a Pop list?

    Code

    DECLARE

    group_id RecordGroup;

    GroupName varchar2 (10): = 'abc ';

    status NUMBER;

    BEGIN

    group_id: = find_group (group_name);

    If not id_null (group_id) then

    delete_group (group_id);

    end if;

    group_id: = Create_Group_From_Query (groupname, 'select DNAME, TO_CHAR (DEPTNO) Department');

    / * Select statement must have two column * /.

    status: = Populate_Group (group_id);

    Populate_List('DUMMY.) TXT_LIST', group_id);

    END;

    Concerning

    Line

    POPULATE_GROUP is a function (not a procedure) and must be called in this way.

    State could be verified - see forms help:

    "After a successful query, POPULATE_GROUP returns a 0 (zero)."

    Kind regards

    Zlatko

  • help understand the code

    Hi all

    I appreciate if someone guide me to understand the following code in red...

    Code

    CREATE OR REPLACE

    PROCEDURE plch_show_one_col)

    id_in IN pl_ch_employees.employee_id%TYPE,

    col_in IN VARCHAR2)

    IS

    l_value VARCHAR2 (100);

    BEGIN

    EXECUTE IMMEDIATE 'select ' | col_in | "of pl_ch_employees where employee_id =: id' INTO l_value USING id_in;

    dbms_output.put_line (l_value);

    END;

    -------------------------

    Maybe

    create or replace function emp_show_one_col (id_in emp.empno%type,col_in varchar2) return varchar2 is

    the_sql varchar2 (500);

    ret_val varchar2 (100);

    Start

    Select "select" |

    data_type case when 'VARCHAR2' then col_in

    When "NUMBER" then ' to_char (' | col_in |) ')'

    When 'DATE' then ' to_char (' | col_in |) 'fmMonth ddth, yyyy")'

    another "unexpected data type".

    end | ' ' ||

    col_in |

    ' from emp where empno =: id '.

    in the_sql

    of user_tab_cols

    where table_name = 'EMP '.

    and column_name = dbms_assert.simple_sql_name (upper (col_in));

    execute immediate the_sql in ret_val using id_in;

    return ret_val;

    end;

    Select emp_show_one_col(7900,'ename') double column_val

    COLUMN_VAL
    JAMES

    Select emp_show_one_col(7900,'sal') double column_val

    COLUMN_VAL
    950

    Select emp_show_one_col(7900,'hiredate') double column_val

    COLUMN_VAL
    December 3, 1981

    Select emp_show_one_col(7900,'abracadabra') double column_val

    COLUMN_VAL
    -

    Select emp_show_one_col (7900,' salvation 'or 1 = 1-') double column_val

    ORA-44003: invalid SQL name

    Concerning

    Etbin

  • XMLquery - contours do not used throughout the code, but only in the xml request selected

    Hello

    We use-> database Oracle 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit
    We have a part of our system of s/w works as:
    Drop table xml_tbl
    
    create table xml_tbl (
    xml_msg_id integer,
    xml_msg_text xmltype
    );
    
    insert into xml_tbl values(1, '<main xmlns:ns1="Abc:SET"><ns1:id>1</ns1:id></main>');
    insert into xml_tbl values(1, '<main xmlns:ns1="Abc:SET"><ns1:id>1</ns1:id></main>');
    insert into xml_tbl values(1, '<main xmlns:ns1="Abc:SET"><ns1:id>2</ns1:id></main>');
    commit;
    
    --Code
    
    DECLARE
       v_output   CLOB;
    
       FUNCTION fn_xmlquery (p_date IN DATE)
          RETURN XMLTYPE
       AS
          v_xmlout   XMLTYPE;
          v_query    CLOB
             := TO_CLOB (
                   'declare namespace ns1 = "Abc:SET"; fn:count($File_Data/main/ns1:id)');
       BEGIN
          SELECT XMLQUERY (v_query
                           PASSING t_tbl.xml AS "File_Data" RETURNING CONTENT)
            INTO v_xmlout
            FROM (SELECT XMLAGG (xml_msg_text) AS xml
                    FROM xml_tbl t
                   WHERE XMLEXISTS (
                            'declare namespace ns1 = "Abc:SET";  /main/ns1:id = ("1") '
                            PASSING xml_msg_text)) t_tbl;
    
          RETURN (v_xmlout);
       END fn_xmlquery;
    BEGIN
       v_output :=
          XMLType.getClobVal (fn_xmlquery (TO_DATE ('20121231', 'YYYYMMDD')));
       DBMS_OUTPUT.put_line (v_output);
    END;
    
    --Now if I try the outline on xml_tbl query as:
    
    drop outline o_name;
    
    CREATE OUTLINE o_name ON
    SELECT XMLAGG (xml_msg_text) AS xml
                    FROM xml_tbl t
                   WHERE XMLEXISTS (
                            'declare namespace ns1 = "Abc:SET";  /main/ns1:id = ("1") '
                            PASSING xml_msg_text);
    
    
    select * from dba_outlines;
    If we execute just this request again, contour O_Name is used as can be seen in:
    Select * from dba_outlines;
    It is used in the two schemas in DB, as we wish.

    But if we execute all the code above, it takes, to make all the xquery deals.
    O_Name OUTLINE is not used. Not even in the same pattern.
    You can try the above, in your machine to replicate.

    Please suggest how to do the work described in this case. As things do not work in our system at all because the query plan wrong by the above query on which we create the contour.
    Thank you...

    Published by: user8941550 on January 9, 2013 23:16

    Maybe the XQuery Modules will build in a future version of the database.

    So please can you suggest a better way we can use so that we can avoid the dynamic xquery thing.

    Make the dynamic SQL set instead, not only the request XQuery and run it via EXECUTE IMMEDIATE or DBMS_SQL.
    This way, the CBO know XQ expression to analyze the time and be able to optimize it.

    I'm not a big fan of this approach, but the lack of something better.

  • Dreamweaver 5.5CS adding 5 tags &lt; BR &gt; in LIVEVIEW, not in the code, but it appears on the published page.

    Website http://csfradio.com

    Page in question: http://csfradio.com/index.html

    Looking at the gap between the two, "CSF Radio programming lineup" and the beginning of the next section... I can't remove it!

    If you look at the source code, everything looks normal. But when I open the page in Dreamweaver and use 'Live View', 5 < br > tags appear before the beginning of the table. As soon as I take off Live View, they disappear and I can't get rid of them. This gap has to go! Anyone has any ideas on how to remove the tags < br > mysterious? Help!

    "For poops and smile."

    In Live View mode, have you tried to copy ALL of the code (including 5
    (s) and paste it into a NEW HTML document to see if they are really there or just a quirk in the way live view?

  • Loop fails to execute the Code but the list orders - baffled works

    Hi all

    I've got 13 movieclips which all perform a function (setNames) contained in a child object (namer) it contains. The function displays the text in a dynamic text box.

    I set them up with the instance names mark0 > mark12 so I can target with a rating of loop and the table which is something that I use often. But the loop sometimes does not, however, a list of 13 distinct lines of code works very well. Am I a Flash overhead with orders too code at the same time, and is there a way to get around this?

    It does not work...

    for (i = 0; i < 13; i ++) {}

    sets the names

    This ["Mark" + i]. Namer.setNames ();

    }

    .. .but do manually works fine:

    mark0. Namer.setNames ();

    MARK1. Namer.setNames ();

    Mark2.Namer.setNames ();

    Mark3.Namer.setNames ();

    mark4. Namer.setNames ();

    Mark5.Namer.setNames ();

    mark6. Namer.setNames ();

    Mark7.Namer.setNames ();

    mark8. Namer.setNames ();

    mark9. Namer.setNames ();

    mark10. Namer.setNames ();

    Mark11.Namer.setNames ();

    mark12. Namer.setNames ();

    Strangely, the following code works:

    for (i = 0; i < 13; i ++) {}

    //clears names

    this ["mark" + i].namer.phs = 1;

    }

    I checked the code carefully and tested the code with trace actions but can not see the problem. Any ideas?

    Try: eval("mark"+i).namer.setNames ();

  • I bought a vista enterprise a few years ago that I installed on my laptop, now I need to re install the windows but unfortunetly I lost the original CD & also the key.

    Because I lost my original Vista Business CD & key, are there opportunities to get the key from your please side?

    Thank you

    Hello

    If I understand you correctly, Vista Business has been bought and installed by yourself and not preinstalled on your laptop when you bought it.

    If the above is correct and the laptop is still running you can use Key Finder programs to get the product key:

    Here are two of these programs:

    http://www.magicaljellybean.com/KeyFinder/

    http://www.Belarc.com/free_download.html

    This should help you:

    "How to replace Microsoft software or hardware, order service packs and replace product manuals.

    http://support.Microsoft.com/kb/326246

    You can also borrow a DVD of Microsoft Vista, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed.

    The product key determines which Edition is installed.

    Other manufacturers recovery DVDs are should not be used for this purpose.

    And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs

    Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:

    "How to do a clean install and configure with a full Version of Vista '

    http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html

    And phone Activation may be necessary when you use the above installation method.

    "How to activate Vista normally and by Activation of the phone '

    http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html

    See you soon.

    p.s. "is it possible to get the key from your please side?

    It is not Microsoft.

    We are mainly Windows users who help each other here.

  • JavaLoader 5.0.0 able to load the cod but debugmode connects then disconnects instantly

    I am able to complete the following:

    U C:\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin>JavaLoader-p0x23515341-D1-charge - w5150 C:
    \Users\toddj\Documents\BBProj\Coffeehouse-BlackBerry\deliverables\Standard\5.0.0\Coffeehouse.cod
    Charger Pocket RIM Wireless Java
    Copyright 2001 - 2009 Research In Motion Limited
    Connected
    Coffee done loading
    262188 bytes sent to ~ 1048752 bps
    Disconnected

    C:\Eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin>JavaLoader-p0x23515341-D1-w5150 u debugmode
    Charger Pocket RIM Wireless Java
    Copyright 2001 - 2009 Research In Motion Limited
    Connected
    Disconnected

    My question, why connect debugmode then immediately disconnects?

    Finally, I would like for debugging on the device of Eclipse, but when I select "Debug As BlackBerry Device", nothing happens - the debug perspective does not open and I do not see any notification process.

    Geez, why is it so * beep * ing difficult at the same time.

    Finally!

    Hallelujah!

    I can't believe that the fix was to use BlackBerry Java plug-in for Eclipse Version: 1.3.0. I'll have to take the good and the bad on this one. 1.3.0 is far from ideal, but I have to be able to debug on the device.

  • How to add a plugin, that is, I need one for a statement of the Fund or at another location. I tried to understand the caps, but I don't know.

    I tried to find some plugin but I do not have them. I need a plug-in for instruction at the cash register, for example. Where can I find or bring?

    Hello. A plug-in is an additional bit of software that requires a service so that you use a site or view certain content.

    When it is necessary that have not already installed you, you should be presented with the option to download the plug-in from the software company, which can take you to the site you were using. Once installed, restart Firefox and return to the page or service you were watching. You should now be able to use the use of the site and see the content that was previously blocked.

    Be sure to keep plugins up to date. Check occasionally to make sure you use the good versions by visiting this site.

  • Firefox displays blank spaces where text should be (for example, by displaying the code), but other browsers

    Firefox does not completely display the text in a Web site, but other browsers. It displays blank spaces in some sections.

    Thanks to all who have replied but I actually quit using firefox after this frustration. I finally found a solution of this page: http://askubuntu.com/questions/118346/firefox-doesn ' t-display-site Web-text

    I had run the script to reset the cache of police on machines and change the permissions. Now, everything seems to work correctly. I look with suspicion, but I think I can use firefox!

    Thank you!

Maybe you are looking for