Grouping all the objects?

Guys i am quite new to flash programming and i did managed to get around it with out any trouble so far but i came to a position where i needed to animate all the elements in the scene at once with out having to animate one by one using AS3 .
for example :-
in a match 3 game if there are 3 matches i want to do animation of matched elements and after i have done that i want to move all the top objects to fall at once no matter how many rows and coloumns there are  above , so how could i do that by using any Tweens ?
the way i am doing now is to check whether there is any empty space below it and move that element one step down but i want all the above elemts to fall at once .
please help me if you could guys thank you.

In a screen with a huge amount of gems this is going to kill you, even if you use something like greensock.com's TweenLite (which you should be using).
The logic loop you should do is multi-iterative, meaning you need to pre-calculate on a gem-by-gem basis, both determining if a gem needs to fall and how far. You should be saving the a reference to the gem and the distance inside an array. I doubt you'll need a Vectors performance.
To make it simple, you want a SINGLE way of moving all the gems at once. 2 approaches are an onEnterFrame loop or a Timer, it's really up to you.
onEnterFrame or Timer both would fire off a function at the desired interval. Every time the function is fired you would iterate through your array of gems that need to fall. You change all of their positions by your desired amount (speed). Once any gem hits its target you remove it from the array. As each hits its target destination and are removed the array will empty itself completely. Once you detect all objects are removed from the array you know they have all been moved down to their final locations.
This method ensures you only have a single, low cost loop operating while able to move all your gems at once. It's excessively more efficient than tweening each individual gem and mobile friendly.
You should save direct references to the gems that are falling inside this array as well. Think of each array entry like this:
fallingGemsArray[gemIndex] = [referenceToGem, distanceToFall]
getChildByName() is very expensive. Saving a reference to the gem directly in the array will speed that up drastically, especially with a lot of objects.

Similar Messages

  • Get all the object at runtime

    Hi all,
    I have the form that show all the .fmx file within specific directory (e.g : c:\forms).
    Is there anyway to list all the objects in selected .fmx ?
    Say, test.fmx have :
    * Block A :
    - Item A1
    - Item A2
    * Block B :
    - Item B1
    - Item B2
    Regards,
    Fendy

    use API.

  • How can i access all the objects of one schema from another schema

    Dear All,
    How can i access all the objects(Tables,Views,Triggers,Procedures,Functions,Packages etc..) and do the modifications of one schema from another schema (Without using synonyms concept).
    Thanks in advance,
    Mahi

    First of all, synonyms only help you easy reference the object. It doesn't have any implication of object privilege.
    As long as you have proper privilege on target object. You can access it with or without synonyms.
    Assuming you have proper privilege of objects, you can use following command to assume schema owner.
    ALTER SESSION SET CURRENT_SCHEMA = Schema_owner

  • How do I find out all the objects I use in my application.

    As I am creating my documentation, I realized it would be helpful to know all the objects that my application uses ( tables, views, packages etc). Is there a way to find that out i.e. any script or simple alternative etc ?
    Thanks, folks!

    I am on version 3.0.1.00.08 and am trying to figure this out for this version.The navigation path is different but the report is available somewhere.
    Also, is there a way to get the sql from all the pages out ?What do you mean?
    Scott

  • How to get all the objects in a  stack frame

    Hi, what I'm trying to do is get all the objects on the top of the stack and time stamp them.
    What I have is this:
    static void mearthScanStack(jvmtiEnv *env, jmethodID method, jthread thread){
           jobject obj;
           int i;
           jlong tag;
           jvmtiError err;
           jvmtiLocalVariableEntry *localVarTable;
           jint entryCount;
              err = (*env)->GetLocalVariableTable(env, method, &entryCount, &localVarTable);
              if(err == JVMTI_ERROR_ABSENT_INFORMATION || err == JVMTI_ERROR_NATIVE_METHOD){
                   return;
              check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get local variable table");
              for(i = 0; i < entryCount; i++){
                   if( (localVarTable.signature)[0] == 'L'){
                        err = (*env)->GetLocalObject(env,     thread, 0, localVarTable[i].slot, &obj);
         check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get local object");
                        err = (*env)->GetTag(env, obj, &tag);
                        check_jvmti_error(gdata->jvmti, err, "mearthScanStack: Could not get tag for local object");
                        timeStampObject(env, obj);
              (*env)->Deallocate(env, localVarTable);
    }To walk through, first I get the local object variable table, then I loop through each entry in the table. I check each entries signature to see if it is an object (starts with "L"), and if it is, I try get its tag, and time stamp it.
    This doesn't seem to work, however, because I get JVMTI_ERROR_INVALID_SLOT errors on the call to GetLocalObject. How can it be an invalid slot if I am getting the slot out of the local variable table?  Am I going about this the right way
    Additionally, when I get the the table, I'm ignoring the JVMTI_ERROR_ABSENT_INFORMATION error. I'm not exactly sure under what circustances this information is absent. Is there a way I could scan the stack frame even if it is not available (just probe through the slots maybe?)
    Any help is greatly appreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I would think if you intanciate the XMLReference and use IIDXMLElement GetChildCount / GetNthChild would do what you are looking for.
    Ian

  • From one of my yahoo groups all the messages come thru appearing from the same person. Why is this?

    I belong to several yahoo groups and use the filters to send them to their respective folders. Lately with one group, all the messages appear to be from the same person, which I know is not true from looking internally. I've looked on my providers site at my email, at at the groups site, they are that way so it's happening when it comes into Thunderbird. Running version 24.6.0.
    Thanks Dwight from WI

    They aren't in the address book. Anyway I went into the config editor and set something to false and it took care of the problem. Don't remember what it was. Something with "Show" in it.
    Thanks for your time!

  • How to Download the Custom Package Created with all the objects

    Hi All,
    Could any body let me know how to download a custom package created in sap with all the objects including webdynpros and modulepool programs.
    Thanks.

    Hi,
    U can use open source programs available in net like Mass Download, ZAPLINK, SAPLINK.
    Mass Download --> Download the objects
    SAPLINK, ZAPLINK --> Used for downloading and also for importing the downloaded objects to other system.
    Regards,
    Arun

  • I want to copy all the objects from one user to another... Please help

    Hii Experts.... I have a problem here. Please give me solution for this...
    I am using Oracle 11g on my windows XP system.
    I created a new user named "some"
    I want to copy all the objects from scott user to some user... Please help me
    Please Explain me in detailed way
    Thank you

    SowmyRaj wrote:
    Hii Experts.... I have a problem here. Please give me solution for this...
    I am using Oracle 11g on my windows XP system.
    I created a new user named "some"
    I want to copy all the objects from scott user to some user... Please help me
    If all what you are interested is Scott schema than no need to use the datapump or CTAS. Run demobld.sql in your schema and it would have all the objects of Scott.
    http://www.oracle.com/technology/sample_code/tech/sql_plus/htdocs/demobld.html
    HTH
    Aman....

  • To capture all the objects from an tablespace and restore.

    Hi All,
    I have a situation in the  Schema  refresh process where i may have  to delete a tablespace  and its datafiles.
    Then I have to recreate it as it was before and restore all it objects .
    Is there any way that i can capture all the objects of that tablespace before it is deleted  and then later restore it back as it was .
    Any Expert sugggestion is highly apprciated .
    The Platform is as below ..
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Thanks In Advance .

    There are 2 methods you could use with Data Pump.
    1. tablespace mode export.  expdp user/password tablespaces=<your list here> ...
    2. transportable tablespace mode.  expdp user/password transport_tablespaces=<your tablespace list here> ...
      NOTE:  for #2, you need to have your tablespaces in read only mode, then you need to copy the data files, and the
                    tablespaces need to be self contained.
    Hope this helps.
    Dean

  • CMS - Transport to Production has all the objects of ID

    Hi All,
    I am trying to transport objects of Integration Directory from Dev to QA to Production using CMS. It is not a new setup. It is successful all the way, upto Production. But it brings all the objects of all the scenarios from QA to Production, instead of just selected scenario. The transport from Dev to QA is perfect, with objects related to only selected scenario. In 'Assembly' step, there are two options in 'Select component' drop down. 'All components' and 'sap.com.SAP-INTDIR. I selected the later but still it brings all the objects while I select 'lsadmin' and select 'Transfer' in Production Integration Directory.
    Any help will be appreciated.
    Thanks.
    - Atul

    try this option....once you send the objects to QA from Dev, neglect that transport and then  perform the transport from QA. This will enable the sub-set assembly option in the track. You can then select the required one. This will ensure that only the required transports go through. This happens generally in a four env landscape. We are having the same sort of setup in our project.
    Reward if helpful.
    Sarath.

  • How to copy a database with all the objects and relationship but with no data

    Hello Experts
    I am here for your advise as usual, I  want to create a copy of my current database from an existing one on SQL Server 2008r2 Standard Edition, here is what I need, I want all the objects including any relationship between the objects and I do
    not need any data. I have some idea for using the general script in SSMS, but I still need you expertise advise please, thank you kindly for your help.
    Regards

    One option is to run BACKUP/RESTORE, once you have restored you run:
    SELECT 'ALTER TABLE ' + quotename(s.name) + '.' + quotename(o.name) +
           ' DISABLE TRIGGER ALL '
    FROM   sys.schemas s
    JOIN   sys.objects o ON o.schema_id = s.schema_id
    WHERE  o.type = 'U'
      AND  EXISTS (SELECT *
                   FROM   sys.triggers tr
                   WHERE  tr.parent_id = o.object_id)
    Copy result and paste into a query window do to run. Next:
    SELECT 'DELETE ' + quotename(s.name) + '.' + quotename(o.name)
    FROM   sys.schemas s
    JOIN   sys.objects o ON o.schema_id = s.schema_id
    WHERE  o.type = 'U'
    Run this result until you don't get any more errors.
    Run the first query again, but change DISABLE to ENABLE.
    This is more long-winding than scripting, particularly if you have lots of data. But you know that you will not make any changes whatsoever to the schema.
    The scripting in SSMS generally does it right, I believe, but some items are not scripted by default. If you run BACKUP/RESTORE, you know that you get a faithful copy.
    Of course, the best way is to keep your code under version control and take the version control system as your ultimate truth.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Delete all the objects in a package

    Hi Guys,
    My requirement is that i need to write a program to delete all the objects in a package. In the selection screen i enter the package name and then i get all the objects in the package from TADIR table and display them in an ALV.
    There when i select a object and press the delete button ,the object (program ,table, domain,data element etc..) should be deleted .
    For this i tried to DEBUG in SE80 and tried to know how SAP is trying to delete the object. But i couldnot unterstand which Function Module or which Class and Method it uses to delete an object.
    Guys please let me know how it can be done.
    Regards,
    Chaithanya.

    hi
    check this ...
    REPORT  zxxxxxx.
    TYPE-POOLS: slis.
    DATA: x_fieldcat  TYPE lvc_s_fcat,
          it_fieldcat TYPE lvc_t_fcat,
          g_grid    TYPE REF TO cl_gui_alv_grid,
          x_layout TYPE lvc_s_layo,
           g_custom_container type ref to cl_gui_custom_container,
            g_container type scrfname value 'I_CONTAINER'.
    types: BEGIN OF ty_itab ,
            check(1) TYPE c,
           PGMID LIKE TADIR-PGMID,
                 END OF ty_itab,
    data:itab type standard table of ty_itab,
           itab1 type TADIR.
      call screen 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    module STATUS_0100 output.
      SET PF-STATUS 'ZSTATUS100'.
      if g_custom_container is initial.
        create object g_custom_container
               exporting container_name = g_container.
        create object g_grid
               exporting i_parent = g_custom_container.
    SELECT PGMID
      FROM TADIR
       INTO CORRESPONDING FIELDS OF TABLE itab where DEVCLASS = selection screen package
    x_fieldcat-fieldname = 'CHECK'.
    x_fieldcat-seltext = 'CHECK'.
    x_fieldcat-checkbox = 'X'.
    x_fieldcat-edit = 'X'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 1.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'PGMIDt'.
    x_fieldcat-seltext = 'PGMIDt'.
    *x_fieldcat-edit = 'X'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 2.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    CALL METHOD g_grid->set_table_for_first_display
      EXPORTING
        IS_LAYOUT                     = x_layout
      CHANGING
        it_outtab                     = itab
        IT_FIELDCATALOG               = it_fieldcat.
    endif.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    module USER_COMMAND_0100 input.
    DATA: ls_outtab LIKE LINE OF itab.
    DATA: l_valid TYPE c,
          ok_code like sy-ucomm,
           r_ucomm LIKE sy-ucomm,
           ls_celltab TYPE lvc_s_styl,
          lt_celltab TYPE lvc_t_styl,
          l_index TYPE i.
    CALL METHOD g_grid->check_changed_data
      IMPORTING
        e_valid = l_valid.
    IF l_valid EQ 'X'.
    case sy-ucomm.
    when 'DELETE'.
    LOOP AT itab INTO ls_outtab where check = 'X'.
       move ls_outtab-object to itab1.
      delete TADIR from itab1.
    ENDLOOP.
    endcase.

  • Copy all the objects from the one system that start with (ZANK)

    hi to all,
    I have installed the name space /ank/ in the US system, we need to copy all the objects from the India system that start with (Zank) and re-create them as /ank/. problem is how can i copy objects and re-create.
    thanks

    Hi Ankal,
    I guess this is your second thread on the same question. Ok provide these information
    >>I have installed the name space /ank/ in the US system,
    Are you saying that you have a machine (US System) and i has a namespace /ank/ ? What all objects are there in this namespace?
    >>we need to copy all the objects from the India system that start with (Zank) and re-create them as /ank/.
    Is the India system on the same US system?
    Also tell me whether you have opened the home page of SAP XI/PI?  If yes , are you able to open Integration Repository? If yes then how these US and India systems are referred in Integration Repository? Are they referred as separate software components?
    Regards
    Suraj

  • What are all the objects can be imported  and exported...

    Hi all,
    what are all the objects can be imported ..
    and what are all objects exported....in XI..
    and what is context objects and logical routing..
    Cheers,
    Raghavesh

    Hi,
    Your question 1 is not very clear. Are you taking about Export and Import under TOOLS --> EXPORT / IMPORT? If yes, all objects created in the IR and ID can be exported and improted. They are used for moving your objects from one environement to another .TPZ files.
    Individual Objects that can be improted in the IR  are those that come under
    1. External Definitions --> XSD, WSDL, DTD which acts
    as the message types.
    2. Idocs and RFC's.
    3. Imported Archives -->External Mapping progrars ( Java and XSLT ) , external .jar files etc.
    Context objects is nothing but to put in simple words an XPATH. At times XPATH can become too long and complex and to avoid typing them at different places, you create CONTEXT Objects for these path and then use them.
    Logical Routing refers to Conditional Receievr / Interface Determination where on the basis on some conditoon your target Recievr / Interface is determined.
    Regards,
    Bhavesh

  • Requisition import has grouped all the requisition lines in one requisition

    HI
    I need a help.
    Requisition import has grouped all the requisition lines (having sourcing supplier and inventory)in one requisition
    for whcih the type lookup code is 'Purchase'. the source of requisition was MRP. How the system can group the items having different sourcing(few are from supplier and few are from inventory) into one requisition.
    Is this the oracle standard functionality
    Thanks
    Payal

    See req import group by parameter is playing a role here..
    I think maybe it is considering ALL and clubbing together to one..not sure though
    See if these threads can help the cause
    Unable to avoid Autocreate PO grouping by different Supplier
    Autocreate PO - default requisition grouping
    Mahendra

Maybe you are looking for

  • CRS 와 10G REAL APPLICATION CLUSTERS

    제품 : ORACLE SERVER 작성날짜 : 2004-11-30 CRS 와 10G REAL APPLICATION CLUSTERS =================================== PURPOSE 이 문서는, 10g Real Application Cluster의 CRS (Cluster Ready Services)에 대한 추가적인 정보를 제공하는 것을 목적으로 한다. Explanation 1. CRS 와 10g REAL APPLICA

  • Error when starting a converted VM (from vmware server edition)

    Hi, i am trying to start a converted VM from VMWARE SERVER. I think i have followed steps to import an VMWARE machine (using resources >> virtual machines images) and it does not return errors when converting VM but then, when trying to start it, it

  • Control file creation failed while installing ---------R12 release 3

    While installing R12 release 3 I am getting following error at the time of Step 2 0f 5 RC-50004: Fatal: Error occurred in ApplyDatabase: Control file creation failed Cannot execute configure of database using RapidClone following is summery of my ser

  • Error in MDDataSetBW.GetCellData

    Hi Expert -  I got this error message while running any webi report. "A database error occurred.  The database error text is:  Error in MDDataSetBW.GetCellData.  See RFC trace file or SAP system log for more details. (WIS 10901)" How can i see - RFC

  • Do I need to use an app killer on my new iPhone4s?

    Hi there I have just moved f rom an android phone where you had to use an app killer to stop apps constantly running and draining your battery and your web usage, do I need it on the iPhone?