Why I can't change the index of movieclips on stage? (createjs)

What I want to achieve is relative, simply and works in Flash but not animate a reason any.


On the stage, I have a movieclip called 'Subscript', with a field of dynamic text inside this type 'text '. I want to create a dyamically of box shape and place it inside the movieclip 'index' behind the 'text '. Here is my script:


var hint = this.hint;
var padding = 10;
var text = hint.text;
var limit = hint.getBounds ();

Create forms
var box = createjs new. MovieClip ('independent', 0, false, null);
var rect = new createjs. Shape();
var stroke = new createjs. Shape();

Colors
accident var stroke = "#000000";
var bgcolor = "#FFFFCD";
shadow of var = 'rgba (0, 0.3, 0.0);

Draw shapes
outline.graphics.beginStroke (AVC) .drawRect (bounds.x - padding, bounds.y - padding, bounds.width + (padding * 2), bounds.height + (padding * 2));
rect.graphics.beginFill (bgcolor) .drawRect (bounds.x - padding, bounds.y - padding, bounds.width + (padding * 2), bounds.height + (padding * 2));
Box.Shadow is new createjs. Shadow (shadow, 3, 3, 0);

Add forms to hint
box.addChild (rect);
hint.addChild (outline);
hint.addChild (box);

Text to switch on the front
hint.setChildIndex (text, hint.getNumChildren () - 1);

Unfortunately, no matter what I do, the last line does nothing. The shape is always on the top text! Yet, this same exact file works perfectly well in Flash.

After doing some additional testing, it seems to me the the ' plan ' and 'rect' is drawn on the text at each tick. So, although the index of 'text' is changed, the forms are are then immediately pull out the top of it.

I don't know why this has changed from Flash, it looks like a bug to me.

UM...

// text must already have been on stage for at least one frame

Tags: Adobe Animate

Similar Questions

  • why I can not change the method of payment and my billing information?

    why I can not change the method of payment and my billing information? By clicking on the buttons right just does not work

    Manage your membership and your payment. Creative cloud

    https://helpx.Adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting-creative-cloud.html

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone (do not support the weekend)...
    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • I have my photos in the F drive an external drive. LR5 records my photos in the partitioned hard drive, D drive in my computer. Why I can't change the dafault in LR5 player?

    I have my photos in the F drive an external drive. LR5 records my photos in the partitioned hard drive, D drive in my computer. Why I can't change the dafault in LR5 player?

    When I 'import' a RAW/DNG file, the file gets automatically saved the item COPIED in my D drive under "My pictures" folder This info is available on the left panel. Instead, I want the file to go in my F drive which is my external hard drive.

    Lightroom help: explains how to import photos to a specific location. Scroll down to section 5, «Say Lightroom where to put your photos» Lightroom help | Import photos from a camera or card reader

  • Why I can't change the color in this photo?

    This is a Jpeg file...

    Why can't I change the color on the image?  I followed the same steps on the other images, and I had no problem...

    If you are referring to the creation from a Duotone:

    1. choose Image > Mode > grayscale

    2. choose Image > Mode > Duotone (don't forget the click on the Preview)

    3. in the Duotone Options click on the sample of ink color 2 menu and choose a color

    4. If you want more or less of this color in Duotone, click its curve and bend the curve.

    ***

    or at the top of the Menu, click on the Preset and you will be presented with many predefined Duotone images which, for each color, presents different amounts of a given color.

    When you are satisfied with a result and click OK, change the RGB Mode and save the file.

  • Why I can't change the dates of reminder in the calendar

    I was trying to extend a stay to add one day more to a reminder I had set up on my calendar, but couldn't stay.

    After changing the date it to show the dates of trip corrected for about 2 seconds and then return to the original date of travel.

    Any ideas as to why it is not working properly.

    Thank you

    Maybe this will help.

    Calendar may not enter the new event.

    Calendar may not enter the new event (2)

  • Why I can't change the status played audiobooks in Itunes 12.4

    In all earlier versions of iTunes, I was able to manage what I listen to on my devices of whether or not they were played, listened or watched. I have a number of smart playlists that I use when synchronizing my apple devices, which automatically updated when new media added to my library or read.

    HOWEVER, there is a problem with audiobooks in Itunes - I don't seem to be able to change the flag played/unplayed more since I updated itunes to 12.4.0.119.

    What's important --since I have tunes split AudioBooks out 'Music' on the Iphone and now they have to play through iBooks it everytime I open a book (audio or not) in iBooks, it is marked as having been played - regardless if whether I actually all of it OR not registered.

    My challenge is that I have more 2 350 distributed books on 35 400 titles - it became almost impossible to manage my listening without some form of automation and me had found the "done" status that the best answer - believe me I have tried almost every other option over 14 years and my decision to use ITunes to store, catalogue and synchronize my media.

    I have a lot of my audio books from audible from and I used the Audible for Iphone/Ipad App but this app has its own challenges and will not sync with iTunes.

    I have already mentioned these "BUGS" to Apple (and audible) through their relevant feedback mechanisms - but nothing has been scheduled yet.

    -What do someone KNOW A WAY to DIFFICULTY or where Apple hid the brand ' as option played/unplayed audio books?

    I find that a lot of other functional changes in iTunes 12.4.0.119 incredibly harassing.  Please let me have seen list of 'song', as it was before television and movies on the route of the media - so I can set, modify, and delete media as I would like. The restriction to a vision "album cover" is not at all welcome.


    The correct category for this question is 'Use Itunes to manage your library' or 'media playing and syncing in iTunes' but who was not an option.

    I found what may be a similar problem in iTunes 12.4.0.119.  On devices (iPod a couple in my case) which synchronize with this version of iTunes smart playlists is no longer automatically updated.  In order to get the update, I have to re - sync to iTunes.  It seems that iTunes is to convert the smart playlists to regular playlists on synchronized devices.

    Your problem right on the devices to sync with iTunes 12.4.0.119?  If so, it is perhaps a more general problem.

  • I glide click a URL link in the links toolbar and it shows just the icon of ablank page - why I can't change the icon allocated in the link properties dialog box? Can we change it elsewhere so he's better?

    I dragged a URL in the URL box - in this case a 2nd Yahoo! email login address so I could quickly switch between accounts - in the toolbar links (the one with the "Most visited" link.

    Noting that the new URL link didn't have a Yahoo! icon I right click on the link and found that there is no option to change the URL link icon to, well, anything (!) as we can do for most of the files in Windows Explorer.

    I could change the text label of the link without problem.

    Is he buried somewhere else in Firefox the ability to do so and if so where?

    If not can this option included in the dialog box properties of links in the future, please?

    I would be really grateful one answer I know that my question has not fallen into the "bit bucket".

    See you soon,.
    Leanne Martin
    Australia
    [email protected]

    There are addons that will allow you to change the icon. For example, you can try 'Signet Favicon change':
    https://addons.Mozilla.org/en-us/Firefox/addon/bookmark-favicon-changer/

  • Why I can't change the default program from the command prompt?

    Accidentally, I changed the default program to open the .py (Python script) files at the command prompt, now I can't change it back even in the Control Panel, the check box is gray. Also I tried the registry editor, I do not have the NoFileAssociate file.
    If someone could help that would be great!

    Hello

    This problem occurs when Windows thinks that the application already exists in the list. Change the name of the application may fix this problem. Please try the following if you do not want to rename python.exe


    Method [1]: Use the registry to change the application Associations
    ATTENTION: It is recommended that you create a restore point before you proceed
    • On the start menu, insert the following text and press ENTER: regedit.exe
    • Delete the following key
      Python.exe HKEY_CLASSES_ROOT\Applications\

    Thank you
    Have a nice day :)
  • Why no Support information about the browser.display.focus_ring_style entry in the config file? Why I can't change the color of the ring update via the config file?

    Currently, using Ver38.
    Used to change the color of focus ring & screws of css styling to help see what link has focus.
    Methods via ' subject: config' to change any focus ring settings are too restrictive.
    Impossible to find info on the entrance of config file of ' browser.display.focus_ring_style.

    This code must be inside the userContent.css file.

  • Why I can not change the resolution of the screen on the comments?

    Greetings,

    I used VMware Player to create a RHEL 5.5 on Windows 7 host. The resulting virtual machine has a screen 1440 x 900, but when I run the screen is 800 x 600. With the help of the utility comments to change the resolution of the screen only gives the choice of 800 x 600 and 640 x 400. Note that the installation of comments has been made using 'I'll install the operating system later'. If this option is not used and that the guest is installed either using the 'easy' option or the 'Advanced', this problem does not exist. Anyway, there is a big difference between a genberated of comments using the 'easy' or 'Advanced' option and the generated with the option "I will install later. Any suggestions would be much appreciated.

    Many thanks in advance,

    Nicolas

    VMware tools are installed in the comments? Next to important things, they contain the video driver that allows to change the resolution.

    AWo

    VCP 3 & 4

    \[:o]===\[o:]

    = You want to have this ad as a ringtone on your mobile phone? =

    = Send 'Assignment' to 911 for only $999999,99! =

  • Why I can't change the font size?

    According to the choice of the "format" will allow the change of font size.  I don't have 'format' in my menu.  I did something wrong?

    Re-install the program?  Help, please.

    Bob

    I'm not sure what they meant, but you can choose one or more fields with the tool select object (small black pointing left arrow cursor), open the field properties and set the font and size on the appearance tab.

  • why I can't change the guest account back to the standard?

    my guest account is in administration mode and does not have a password. How to return to the standard mode?

    I tried to move but it does not. Help, please.
    Thank you
    Patrick Readence

    Hello paulynot,

    Below, I've added two links on how to fix a corrupted user profile.  It shows how to move data in a new user account.  Since I don't know what Windows operating system you are using, I have included one for XP and the other is for Vista/Windows 7.

    How to copy data from a corrupted to a new profile in Windows XP user profile

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

    Corrupted profile: to copy files to the new user profile

    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

    Thank you

  • Why I can't change the size or orientation of a figure that I did with the rectangle tool?

    Hello, today I updated my CC and when I use the rectangle tool, it does not give me the nodes to scale or rotate, but if I create a character with the pen tool nodes appear, I am on a MAC, I already try on PC and it has no problem, someone knows what's going on?

    Hi Karla Leo,

    The problem has been reported to engineering, and they are working on it.

    However, the problem seems with an earlier version of MAC OS x. It works great in 10.9.x leave.

    I hope this helps.

    Kind regards

    Sumit Singh

  • Why an amplification of the RAM does not change the index performnance of windows vista?

    Why an amplification of the RAM does not change the index performnance of windows Vista?

    Hello

    I m not very well, but maybe you have more than 3 GB of RAM and Vista 32 bit.
    Usually the 32 bit OS is capable to manage and send only 3.2 GB.
    The more than 3.2 GB RAM will not operating system used and therefore would not increase the index
    In addition the laptop will be not really faster after upgrading RAM. You will notice better performance using applications at the same time, but this does not affect the index of Vista.
    But this is only my personal hypothesis.

    Welcome them

  • Windows Photo Gallery. How can I change the settings in the Windows Photo Gallery to automatically open the image without going to the index first?

    Windows Photo Gallery.  How can I change the settings in the Windows Photo Gallery to automatically open the image without going to the index first?

    Additional information: there are 2 computers that I use on the first Gallery Photo of Windows will open the image and allow me to use the left and right buttons to scroll through the rest of the photos in the folder, that's what I want.

    On the 2nd computer when I open an image it will open the Windows Photo Gallery in an index with thumbnails of the displayed record.  How can I change so that it opens the same thing as the first computer?

    I did the following on both computers; Right-click on the image and select open with...--> choose the default program--> go--> Program Files, Windows Photo Gallery, but it will be open always differently on computer 2.

    Both computers use Windows Vista 32-bit.

    Thanks in advance.

    Australian salvation,

    This would happen if the file associations are corrupted on the computer, try method to set Photo Gallery Windows as the default program for opening files jpeg or png below image types.

    (a) open default programs by clicking the Start button, click default programs.

    (b) click on associate a type of file or Protocol with a program

    (c) in the following list of file protocol search jpeg and make sure that you have associated with the program that uses it and then check if it works.

    Change the programs that Windows uses by default

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-which-programs-Windows-uses-by-default

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for