I want to get the property of the previous object in the table

Hello

Here is my code

for (var i in {MovieClip (root) .arrySpt)}

var btn:MovieClip = MovieClip (box);

duplicate the movielcip (add a new scene)

var ClassDefinition: Class = Class (getDefinitionByName (getQualifiedClassName (btn)));

var myMC:MovieClip = new ClassDefinition;

myMC.inBin.text = MovieClip (root) .arrySpt [i];

trace (getChildByName("myMCC"+i_as_String).width);

myMC.x = i * myMC.width;

myMC.y = 0;

myMC.velocityY = 0;

box.addChild (myMC);

Box.Boxin.Visible = false;

}

var myMC:MovieClip = new ClassDefinition;

Movieclips here create a this line of code ND is the allocation of the post

myMC.x = i * myMC.width;


Here the width is the attribution to the X position of the object in progress, but I want to assign width X position to the object following unusual object. Average if movieclip generate it should get the previous movieclip of the table width.


Please help me solve this problem.


Thank you

use:

var prevX:int = 0;

for (var i in {MovieClip (root) .arrySpt)}

var btn:MovieClip = MovieClip (box);

duplicate the movielcip (add a new scene)

var ClassDefinition: Class = Class (getDefinitionByName (getQualifiedClassName (btn)));

var myMC:MovieClip = new ClassDefinition;

myMC.inBin.text = MovieClip (root) .arrySpt [i];

trace (getChildByName("myMCC"+i_as_String).width);

myMC.x = prevX;

prevX += myMC.width;

myMC.y = 0;

myMC.velocityY = 0;

box.addChild (myMC);

Box.Boxin.Visible = false;

}

Tags: Adobe Animate

Similar Questions

  • I want to get the current music, I have on my iPod out of it and start again. How can I do this?

    I want to get the current music, I have on my iPod out of it and start again. How can I do this?

    Open iTunes, plug in the iPod, select what you want to be on your iPod, sync.

  • [Labview] I want to get the average value in each new 100 samples.

    Hello. I'm Sophie.

    I'm studying Labview for my research.

    For me, the sampling frequency is 125KHz.

    I want to get the average value in each new 100 samples.

    Therefore, I want to get an average value of 1 ~ 100th samples and store this average value. Call assets(1).

    Then, I want to get an average of 101 ~ 200th samples and store this means value, call moyen2.

    .

    .

    .

    .

    I don't know how me I want.

    Thank you

    Sophie.

  • I really want to get the IMAQ Image IMAQ Arry case to Image.vi files

    Hello!

    Although already, I installed LabVIEW8.2 and NOR-IMAQ, I don't have IMAQ Image cases and IMAQ Arry Image.vi files.

    To use the infrared camera, I need them.

    I really want to get the case Image IMAQ Arry Image.vi files IMAQ.

    How can I get these files?

    Please, let me know the methods.

    Sincerely!

    Thank you very much for your explanation.

    Solve the problem.

    Have a nice day ^ ^

  • I want to get the update on cd

    I want to get the update on cd

    You may be able to order service packs on CD, but nothing else.

    Service Packs Office-
    http://Office.Microsoft.com/en-us/downloads/FX010383631033.aspx

    Vista: http://www.microsoft.com/windows/windows-vista/quick-start/service-packs.aspx
    See: https://om.one.microsoft.com/opa/Validation.aspx?StoreID=57d2f336-6a91-4936-a0ac-bf64ae6547c9&LocaleCode=en-us&JavaScriptOn=yes

    Order Windows XP Service Pack 3 on a command of CD for Windows XP SP3 on a CD, visit one of the following Microsoft Web sites, depending on your region:

    Asia

    https://OM2.one.Microsoft.com/OPA/start.OM?StoreID=D7A098F4-4034-4CCB-A785-9E890E6B4F5B&LocaleCode=en-us&NewTrans=1 (https://om2.one.microsoft.com/opa/start.om?StoreID=D7A098F4-4034-4CCB-A785-9E890E6B4F5B&LocaleCode=en-us&NewTrans=1)

    Europe and Africa

    https://OM2.one.Microsoft.com/OPA/start.OM?StoreID=7B7AA929-BD0A-487A-BC7E-DF7631FEE660&LocaleCode=en-us&NewTrans=1 (https://om2.one.microsoft.com/opa/start.om?StoreID=7B7AA929-BD0A-487A-BC7E-DF7631FEE660&LocaleCode=en-us&NewTrans=1)

    North America

    https://OM2.one.Microsoft.com/OPA/start.OM?StoreID=CE6E3AFC-6B25-4F99-8913-3E3453AD966D&LocaleCode=en-us&NewTrans=1 (https://om2.one.microsoft.com/opa/start.om?StoreID=CE6E3AFC-6B25-4F99-8913-3E3453AD966D&LocaleCode=en-us&NewTrans=1)

    South America

    https://OM2.one.Microsoft.com/OPA/start.OM?StoreID=2CE39C54-6B20-417F-B9C0-9F513FA18153&LocaleCode=en-us&NewTrans=1 (https://om2.one.microsoft.com/opa/start.om?StoreID=2CE39C54-6B20-417F-B9C0-9F513FA18153&LocaleCode=en-us&NewTrans=1)

    You can search the rest as you have not yet advised what operating system you have etc.

    TaurArian [MVP] 2005-2010 - Update Services

  • I just want to get the load down, so I can move to windows 7 Pro that I just paid for. I can't believe that it should be this difficult.

    I have a key for download. I just want to get the load down, so I can move to windows 7 Basic windows Pro 7 I just paid for. I can't believe that it should be this difficult.

    Why couldn't there was a link on the confirmation e-mail to download the program.

    You can use the product key and the Basic Express in Windows 7 Home Edition upgrade upgrade to Windows 7 Professional.

    If the license for Windows 7 Professional, you have access to is a retail version update or complete, you can use the product key and the Express upgrade from Windows 7 Home Basic to Windows 7 Professional. First of all, check that the edition of Windows 7, you are upgrading is already enabled (if it isn't, you will encounter complications and that you might start all by performing a clean installation). Click Start, type Anytime Upgrade, click on the option enter a key, enter the key of Windows 7 Professional on demand, click Next, wait while checking the key, accept the license agreement, click on upgrade, wait while the software upgrades, (it may take 10 minutes or more depending on the if updates are required) your computer restarts automatically, after the reboot, Windows 7 will notify you updating the computer, the computer will restart once more automatically and will be completed the upgrade, a window will appear notifying the upgrade was successful and your computer is ready to use, click Close, you should be upgraded to Windows 7 Professional your files, programs and settings retained.

  • I want to get the icon facebook for magical canvas of Hp?

    I want to get the icon facebook for magical canvas of Hp?

    Please contact the Facebook Support for help with this issue:

    http://www.Facebook.com/help/?page=220217228006012

    http://www.Facebook.com/help/

    http://www.thefacebookforum.com/

  • Copy of the device. I want to get the pistures of him out of it to share with friends... and fam is there a way I can do this?

    I got a slideshow of my preschool son and I want to get the pistures of him out of it to share with friends... and fam is there a way I can do this?

    You can use copy and paste.  Help Windows 7 & support:

    Copy and paste a file

    When you copy and paste a file, you make a copy of the original file that you can then modify independently of the original file. If you copy and paste a file to a different location on your computer, it's a good idea to give it a different name, so that you'll remember which file is new and which file is the original.

    To copy and paste a file:

    1. Open the location that contains the file you want to copy.

    2. Right click on the file and then click on copy.

    3. Open the location where you want to store the copy.

    4. Right-click on an empty space within the location and then click on paste. The copy of the original file is now stored in the new location.

    For more information about copying multiple files, see select multiple files or folders.

    Tips

    • Another way to copy and paste files is to use the keyboard shortcuts Ctrl + C (copy) and Ctrl + V (paste).

    • You can also press on and hold the right mouse button and drag the file to the new location. When you release the mouse button, click on copy here.

    • You can copy and paste a folder in the same way as you would a file. When you do this, all the files in the folder are also copied.

    -

    Good luck.

  • How can I update my version of Adobe Captivate, I have version 8 and I want to get the version 9

    How can I update my version of Adobe Captivate, I have version 8 and I want to get the version 9

    Go to the sales and purchase the new version

  • When I save an illustrator SVG format file, I want to get the SVG code but open Illustrator Adobe Flash Builder, I just want to open a browser, NO FLASH BUILDER, how do I do that?

    When I save an illustrator SVG format file, I want to get the SVG code but open Illustrator Adobe Flash Builder, I just want to open a browser, NO FLASH BUILDER, how do I do that?

    You say 'illustrator opens Flash Builder'. So what is she doing?

    * When you save

    * When you try to open it from the inside of Illustrator (open in the file Menu)

    * When you try to open it with double click

    * Something else?

  • Hi, well, I want to get the creative cloud cuz I need for my career as urgent, but I will change my phone soon, so my question is... can I install in my pc, and then move them to another without paying again or something?

    Hi, well, I want to get the creative cloud cuz I need for my career as urgent, but I will change my phone soon, so my question is... can I install in my pc, and then move them to another without paying again or something?

    Yes.

    You can install an unlimited number of computers.  You can connect to up to two computers at any time (and you must be connected to use your cc programs).

    It's quick and easy to sign in and out, so there is no downside on the use of the cc on different computers.  legally, only the licensee is authorized to use the subscription of the cc if you can't share your programs with another person, but this is the only restriction.

    you have just installed you are the application of cc desktop on any computer you use, Download Adobe Creative Cloud apps | CC free trial Adobe

    Connect, connect and disconnect activate Cloud Creative applications

    Use the desktop application to install your programs of cc.

  • I have cs4 master and I want to get the creative cloud which according to it, you can get lower prices if you have cs3 or higher, but he says that I can not why?

    I have cs4 master and I want to get the creative cloud which according to it, you can get lower prices if you have cs3 or higher, but he says that I can not why?

    Hi Quinn7,

    Was that you upgrading from an educational version? If so, that could be related. I would recommend reaching out to our support for assistance. I think that there is a link to the chat or by phone at the bottom of the page of the plans: plans pricing and membership creative cloud | Adobe Creative Cloud

    -Dave

  • I want to get the multiple tilesetters name.

    I want to get the multiple tilesetters name.

    The command "activeDocument.activeLayer" returns only a layer name. Even if several layers have been selected.

    I can solve the problem?

    Please try this example...

    #target Photoshop
    app.bringToFront();
    main();
    function main(){
    if(!documents.length) return;
    var selectedLayers = getSelectedLayersIdx();
    var selectedLayersNames =[];
    for(var a in selectedLayers){
        selectedLayersNames.push(getLayerNameByIndex( Number(selectedLayers[a]) ));
        }
    alert("Number of Layers selected = " + selectedLayers.length + "\rLayer Names = " + selectedLayersNames.toString());
    }
    
    function getLayerNameByIndex( idx ) {
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "Nm  " ));
        ref.putIndex( charIDToTypeID( "Lyr " ), idx );
        return executeActionGet(ref).getString(charIDToTypeID( "Nm  " ));;
    };
    function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
             desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i		   
  • How do I get the table cells?

    It's my get code that any object in propagation.

    Int32 childCount = parent-> GetChildCount();

    for (int32 /IndexEnfant = 0; childIndex < childCount; /IndexEnfant ++)

    {

    InterfacePtr < IHierarchy > child (parent-> QueryChild (childIndex));

    ChildUIDRef = UIDRef: GetUIDRef (child);

    TextFrame table

    }

    How do I get the table cells?

    You can access the table using ITableModel and GridAddresscell.

    But to get to the ITableModel since ITextModel implies some complexity.

    Few things to understand:

    -L'interface that corresponds to the written document is ITextModel

    -The recommended method to iterate tables in a story done by ITextStoryThreadDictHier

    -Get the ITextStoryThreadDictHier on the history and the main thread as ITextStoryThreadDictHier::NextUID()

    -Now get ITextStoryThreadDict for UID and query for ITableModel. If you get ITableModel, then you have found the table.

    Once you have ITableModel you can get ITableCell as follows:

    ITableModel:QueryCellContentBoss(GridAddress); Give ITableCell

    You can refer to SnipperRunner (SnpManipulateTextModel).

    Download text template table model:

    InterfacePtr textModel (storyUIDRef, UseDefaultIID());

    InterfacePtr textStoryDictHier (textModel, UseDefaultIID());

    NextUID UID = sourceStory.GetUID (); / / Download the main thread dictionary

    Now loop the dicthier to iterate through all the threads dicts.

    InterfacePtr textStoryThreadDict (sourceStory.GetDataBase (), nextUID, UseDefaultIID());

    InterfacePtr tableModel (textStoryThreadDict, UseDefaultIID());

    If (tableModel) / / the storythreaddict represents a table

    {

    You are now in a table

    }

  • want to remove the table in 10g

    Hi all;

    I was 1 million inserting dummy records in the table.

    Unfortunately, closed session without commit or rollback.

    > > now, I want to delete the table

    SQL > drop table petra.ycx;

    drop table petra.ycx

    *

    ERROR on line 1:

    ORA-00054: resource busy and acquire with NOWAIT specified

    SQL > select count (*) in the petra.ycx;

    COUNT (*)

    ----------

    2

    SQL > select a.sid, a.serial # session $ v a, v$ locked_object b, c dba_objects

    2 where b.object_id = c.object_id

    3 and a.sid = b.session_id and OBJECT_NAME = 'YCX. "

    SID, SERIAL #.

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

    11 159

    SQL > alter system kill session 11 159;

    alter system kill session 11 159

    *

    ERROR on line 1:

    ORA-00026: missing or not valid session ID

    The command is

    alter system kill session '159,11';
    

    Justin

Maybe you are looking for

  • No Facetime App

    I have an iphone 6 more bought in Pennsylvania, the United States and running iOS 9.2.1.  For some reason, there is no facetime on my phone app.  When I fo to the settings, there isn't even an entry of facetime.  How could I get that fixed?  Thank yo

  • Vista - Error Code: 800 b 0100 (cannot install updates)

    I HAVE A VISTA UPDATE TO DOWNLOAD... BUT IT WILL NOT - I GET THE CODE 800B0100 - HOW TO COMPLETE THE DOWNLOAD?

  • Sansa e280: multiple paths to the devices during the synchronization and no MUSIC file

    Feature: Sandisk Sansa e280 8G version: 01.02.24A I had a problem with my e280. A month ago, I started getting an error message during playback of my music files. The error says "Syncronize to continue music subscription" I have synced to my computer

  • Photosmart B8350 will not install

    Help! Bought a new laptop, tried to install the Photosmart B8350 printer, and it fails. I had email HP support and followed their instructions, used the link to download the driver, tried to install it in the selective startup, etc etc, I tried to ma

  • start with popup list

    Hello I am very new to BB app development. I need help to do the following, At startup, display screen in the background and start collecting a list (per treatment) and once the list is ready, popup list on the start screen. The user must then choose