Load the object MovieClip in the library in the container

Hello

I have a MovieClip in the library with the CloseButtonbinding name. Now, I want to load this MovieClip in a createjs container object:

var popupObj = new createjs. Container();

var closeBtn is new lib. CloseButton();

closeBtn.x = 20;

closeBtn.y = 20;

popupObj.addChild (closeBtn);

It does not work. When I add it to the stage instead, it works fine:

var that = this;

var closeBtn is new lib. CloseButton();

closeBtn.x = 20;

closeBtn.y = 20;

that.addChild (closeBtn);

Any ideas?

It was only a snippet, I add the container to the scene. I use a container, because it has more elements such as shapes and text in:

var that = this;

that.createPopup = function() {}

var popupObj = new createjs. Container();

popupObj.name = "popup".

var popupWidth = 260;

var popupHeight = 140;

var popupMargin = 14;

var popupShape = new createjs. Form (new createjs. Graphics ().beginFill("#FFFFFF").drawRoundRect (0,0, popupWidth, popupHeight, 8) .endF ill());

popupShape.alpha =. 96;

{popupShape.on ("click", function ()}

Do nothing, to prevent clicking on parent elements

});

var pt1 is new createjs. Text ("Title", "16px Arial", "#333333");

Pt1.name = "pt1";

Pt1.x = popupMargin;

Pt1.y = popupMargin;

var Pt2 is new createjs. Text ('Content', "" BOLD "14px Arial", "#333333");

Pt2. Name = "pt2"

Pt2.x = popupMargin;

Pt2.y = Math.floor (popupMargin + 30);

var closeBtn is new lib. CloseButton();

closeBtn.x = 20;

closeBtn.y = 20;

popupObj.addChild (popupShape);

popupObj.addChild (pt1);

popupObj.addChild (pt2);

popupObj.addChild (popupButton);

popupObj.addChild (closeBtn);

popupObj.x = 40;

popupObj.y = 20;

that.addChild (popupObj);

}

But I found the error. I had to call the function addChild (closeBtn) after that I added the popupShape.

Tags: Adobe Animate

Similar Questions

  • [EaselJS] How to dynamically add objects/movieclips/bitmaps from library with their stored/generated names as strings?

    I'm starting to develop into a canvas with EaselJS.

    I found myself struggling to add an object to the stage with only his name is stored as a string

    I am trying to load the contents of their 'connection name' as lib.nome1 (), lib.nome2 (), etc..

    Is there something like GetDefinitionByName("string-name-here") as it used to be in AS3?

    I don't think you can because javascript is not real classes.

  • How to fix the error with the code: 0xe7210001 failed to load powrprof, object: cls

    Hello

    Dose anyone know how to fix the error with the code: 0xe7210001, message: unable to load powrprof, object: CLSD-no-it is found;
    OR: Fingerprintsoftware OR error: replicas THotkey.exe message window and the computer freezes

    Maleware scanned and virus, also in safe mode, found no infection, reinstalled driver fingerprint, but nothing has changed.

    grateful for the help!

    Hello

    > message: unable to load powrprof, object: CLSD-no-it is found;
    In my view, this would mean that there is a problem with Toshiba Power Saver
    What laptop Toshiba, you have exactly?

    Maybe reinstall Power Saver could help. You can find it on the official website of Toshiba.

  • iTunes keeps trying to load the music library to iCloud

    Hello, everyone!

    I don't know if it just happens to me, but whenever I try to change the current view of my music on the display list, my iTunes (version 12.3.1.23 on a Mac) will not stop loading the library iCloud, which I do not have access because I no longer member of Apple's music (and don't plan to be anytime soon). It remains just try to connect to the music library to iCloud and me without access to my music. The only way I can do this loading screen go away is to exit the application. Does anyone know how to fix this?

    Hello

    Try to connect to iTunes store, then reconnect. Go to preferences and make sure the music library music Apple and iCloud is disabled.

    Jim

  • When I use the library function node call in real time, is loaded only once for all or load the DLL whenever it is called?

    When I use the library function node call in real time, is loaded only once for all or load the DLL every time when it is called?

    I have a critical application in real time, in which I use a piece of DLL function developed in C++.  It is ok?  Make sure any senior developer?

    Thank you in advance.

    The user interface thread is the thread that is used to update the user interface. It's slow. And it's supposed to be that way because humans are slow.

    The call library function node can be configured as this thread to use in the configuration for it dialog box. Please visit the LabVIEW documentation on how to do this.

  • Unable to load the shared library LVASPT_WA.*

    Hello

    I have a hope that easy to fix the error: I want to use the function "WA Detrend' to the signal processing tool advanced in a real-time application running on a cRio 9030. When I try to run the VI I get the following error:

    ...

    Deployment NI_AdvSigProcWA.lvlib:WA decimation Filter.vi

    NI_AdvSigProcWA.lvlib:WA decimation Filter.vi loaded with errors on the target and was closed.
    LabVIEW: Unable to load the shared library LVASPT_WA.*ptDecimationFilterH:C. make sure that the library is present on the target of RT. Either MAX allows you to install software from OR or FTP to transfer custom RT target libraries.

    ...

    I reinstalled signals Advanced processing toolkit and linked things 'add new software' MAX, but the error persists.

    A picture of what the system looks like to the MAX is attached.

    Also, I Fund this post:

    http://forums.NI.com/T5/LabVIEW/problem-error-deploying-item-on-RT/m-p/3201345/highlight/true#M92822...

    could someone tell me what he means by "Please check the installation of the custom software all mode '?

    Can you telll me what I am doing wrong?

    Thank you very much in advance!

    I ran your situation in R & D, and the problem seems to be as a result of Advanced Signal Processing Toolkit is not not compatible on the x 64 under Linux RT OS in the 9030.  The product page could be clearer on this gap.  I am currently a web application to get this fixed!

    Best,

    David

  • Unable to load the shared library nilvce.*

    When you try to deploy a Labview 2009 real-time application, I get the message:

    Deployment XDNodeRunTimeDep.lvlib:loadnilvce.viXDNodeRunTimeDep.lvlib:loadnilvce.vi loaded with errors on the target and was closed.

    LabVIEW: Unable to load the shared library nilvce. *: niLVCtrlEngineReserveProc:C on the target RT device.
    Completed with errors of deployment

    I reformatted the CRIO-9073 and reinstalled the software, but this did not help.

    Any ideas on how to solve this problem?

    I was able to solve this problem by changing the settings in a timed loop Structure.

    The Source Type has been set to "synchronize in the scan engine.  This change to the problem solved 1 kHz clock source.

    This vi was initially written for the interface of the scan engine and reused on another project that uses the FPGA interface.

  • Error message "unable to load the shared library.

    I try to get my programs for school to work, and I get these error message whenever I try to run anything. The last line of the State of deployment is as follows:

    Deployment time get NLVSim and isAcceptedStep.vi IsAcceptedStep.vi and NILVSim get busy with errors on the target and has been closed.

    LabVIEW: Unable to load the shared library NILVSim.*: SIM_GetTimeAndIsAccepted:C. make sure the library is present on the target of RT. Either MAX allows you to install software from OR or FTP to transfer custom RT target libraries.

    I tried everything I can think of to fix this. I checked NEITHER Max and I'm all for date on the software. I reinstalled LabVIEW twice, and I reset my myRIO. My classmates do not experience problems with getting theres to work. I start to lose hope and hope someone might know what the question. Thank you for your help.

    WubaDee,

    NILVSim is part of the LV Control Design and Simulation Module. This one is correctly installed on your Windows development system and you installed it on your myRIO?

    Norbert

  • Why is-Visa Interactive Control unable to find or load the visa library

    I'm using LabVIEW 8.5.1.  I recently installed driver VISA tektronix to connect with one of their products.  That has proved to be a bad idea.  I've uninstalled it one then installed VISA460, but when I try to write a labVIEW driver that communicates via RS232 or USB, I get this error:

    LabVIEW: (Hex 0xBFFF009E) VISA or a library of code required by VISA impossible situated loaded.  This is usually due to a required driver is not installed on the system.
    =========================
    VISA: (Hex 0xBFFF009E) a code library required by VISA impossible located or loaded.

    When you try to run an interactive control Visa I get an error saying unable to find or load the visa library.  Is there anything else I need to download?  Any help would be great. Thank you.

    I had already done this, but had no luck.  However, I could be back up and running using Msiblast.  This is a great little program.  So, if anyone has problems in the future, simply download Msiblast and delete everything has VISA inside and then run the Setup program OR Visa.  Thanks for the help.

  • Receiver error message: "error loading the TCP MIB library" when you try to configure a network printer on Windows 7.

    I can't find the answer anywhere else online. I get the error message: "error loading the TCP MIB library" when you try to configure a network of Xerox on Windows 7 printer.

    Steps to follow:
    (1) install the drivers
    (2) add printer > local printer > create a new Port > Standard TCP/IP / IP address
    (3) error message

    Can test the printer.
    Others may use the printer at the same IP address.

    Any other suggestions?
    Thank you!
    Angie

    Can be caused by corrupted files win7 or third parties who have replaced the ones win7

    (for example, ntprint.dll, tcpmib.dll, mgmtapi.dll, smmpapi.dll)

    Maybe run scanow, the System File Checker

  • Scroll to Image/object/MovieClip as the Playbook Native clock App

    Hi guys,.

    I'm curious to know what makes scrolling image/object/movieclip effect, just like the native clock of the playbook application...

    What I get in my little mind, is that the clock app uses scroll pane that scroll horizontally.

    The 3 points are inside a container, and the container is set as the content of the scroll pane.

    the problem is that I do not understand how the elements also scaling vertically with the movement (scrolling the scrolling pane).

    I tried to scale according to the scroll event deltaX, but not good so far...

    Could someone here please help me get the idea of how to do this?

    Before thanks for your help

    Hi in case there are others like me who is also curious.

    Now I can able to scroll carousel effect, as the native clock of the playbook app.

    Here's what I do:

    -do clip in flash pro that animate the object to scale up and down.

    -import the .swc published in Flash Builder project,

    -call class video clips, add it to a container,

    -define the container as Scroll content pane,

    -Update of the current image of the video clips respectively as the scrolling of the scroll pane

    Sorry that my code is still a mess, if you want to know the code I use just PM me

    Now I am facing the problem with scrolling of the scroll pane, which does not display content to the top position of 1024px, but that's another question, which I'll post in the different thread

  • "Error R6034: an application has made an attempt to load the library runtime C incorrectly." while trying to update iTunes. Tried to reinstall, but get error "Windows error 1114.

    Original title: Runtime Error R6034

    When I was updating my Itunes library, I got a pop window with this message:

    Runtime error
    Program of C:\ Program files (x 86) \itunes exe.
    R6034
    An application has made an attempt to load the C runtime incorrectly library.
    Please contact the team for more information application support
    I tried to repair itunes without success and then uninstalled itunes and tried to reinstall it but when I tried to reinstall I get a different error message (error Windows 1114)
    Can you help me?

    Hello

    This seems to be a new issue facing users of iTunes while trying to update to the latest version of iTunes on Windows 7. I checked in the Apple support sites and found that uninstalling iTunes and then put it back in place, by running the installer with administrator privileges has solved the problem for many users with similar problems.

    You can see the responses made by user turingtest2 in the following threads of the Apple Support forums, the steps are correctly described here:

    https://discussions.Apple.com/message/24609674#24609674

    https://discussions.Apple.com/message/24616175#24616175

    The steps which have been voted as useful for these discussions include:

    First, uninstall each of these programs from your computer:

    • iTunes
    • Apple Software Update
    • Apple Mobile Device Support
    • Hello
    • Apple Application Support

    Then, Download and save the installer for iTunes by clicking on this link: http://www.apple.com/itunes/download/

    And finally, reinstall iTunes by running the installer registered with elevated permissions. Here's how you can do this:

    1. Right click on the installer downloaded.
    2. Click run as administrator.
    3. Click Yes or continue when Windows ask you for your consent.

    This should help you solve this problem. If you are still not able to get the iTunes program works correctly, you can also post your request in the iTunes of Apple Support Forums. Here is the link for forums:

    https://discussions.Apple.com/community/iTunes/itunes_for_windows

    Let us know how it goes. We will be pleased to be of further assistance. Thank you and have a nice day!

  • Impossible to access parameters for laptop and receive an error message saying "runtime error!" Program c:windows/system32/Dllhost.exe R6034. A request did try to load the wrong C run-time library. »

    Original title: laptop - unable to access settings.

    I can't access "pc settings" on the start menu. When select, goes to white screen, returns to 'start '. Error is displayed on the desktop = "runtime error!" Program c:windows/system32/Dllhost.exe R6034. A request did try to load the wrong C run-time library. "Any ideas on how to solve this problem? Thank you

    I found the answer here http://blogs.technet.com/b/ouc1too/archive/2013/10/19/windows-app-store-doesn-t-load-after-8-1-upgrade.aspx you just have to change application manifest path, in order, to fix all other applications

  • YES-67075: could not load the patch object & YES - 67073:OPatch failed: PatchObject constructor

    Hi Experts,

    I am really evil with Opatch following error... any suggestions would be very appreciated.  ! Thank you!

    am version of database upgrade R12.1.1 Vision of 11.1.0.7 for 11 GR 2 following this Doc.
    Doc-ID 1585578.1 (Interoperability notes Oracle EBS R12 with Oracle Database 11 g 2 (11.2.0.3) )

    and I checked this as understanding OPatch tool and patch [1451669.1 ID]!

    After you apply the patches on apps and db level pre-installation and Installation of 11.2.0.3 home.

    When I tried to apply the Patch getting following error. Also, I can't apply any Opatch or Patch DB with each Patch am getting the same error

    [oracle@ebs 14229857] $ /11.2.0.3/OPatch/opatch apply
    Setup Oracle interim Patch version 11.2.0.3.6
    Copyright (c) 2013, Oracle Corporation.  All rights reserved.


    Oracle homepage: /11.2.0.3
    Inventory Center: / oracle/oraInventory
    from: /11.2.0.3/oraInst.loc
    OPatch version: 11.2.0.3.6
    YES version: 11.2.0.3.0
    Location of the log file: /11.2.0.3/cfgtoollogs/opatch/opatch2014-05-08_18-58-59PM_1.log

    Could not load the patch object.  Possible causes are:
    The specified path is not an intermediary shiphome Patch
    Metadata files are missing in the region of patch
    Patch location = / oracle/14229857
    Details = PatchObject manufacturer: Input file ' / oracle/14229857/etc/config/actions "or" / oracle/14229857/etc/config/inventory "does not exist.

    OPatch failed: PatchObject manufacturer: Input file ' / oracle/14229857/etc/config/actions "or" / oracle/14229857/etc/config/inventory "does not exist.
    Location of the log file: /11.2.0.3/cfgtoollogs/opatch/opatch2014-05-08_18-58-59PM_1.log

    OPatch failed with the error code 73

    even if the patch 6880880 is successfully applied to the updated version OPtach also I set the Path variable for export PATH = $ORACLE_HOME/OPatch: $PATH

    There is no problem with the permissions on files and directories. as I have cross checked.

    /oracle/VIS/db/tech_st/11.2.0.3/OPatch/opatch lsinventory-details
    Setup Oracle interim Patch version 11.2.0.3.6
    Copyright (c) 2013, Oracle Corporation.  All rights reserved.


    Oracle homepage: /11.2.0.3
    Inventory Center: / oracle/oraInventory
    from: /11.2.0.3/oraInst.loc
    OPatch version: 11.2.0.3.6
    YES version: 11.2.0.3.0
    Location of the log file: /11.2.0.3/cfgtoollogs/opatch/opatch2014-05-08_19-26-02PM_1.log

    Location of the output file Lsinventory: /11.2.0.3/cfgtoollogs/opatch/lsinv/lsinventory2014-05-08_19-26-02PM.txt

    --------------------------------------------------------------------------------
    Installed products of higher level (2):

    Oracle Database 11g 11.2.0.3.0
    Oracle Database 11 g examples 11.2.0.3.0
    There are 2 product (s) installed in the home of Oracle.


    Here are the details of Patch Log!

    YES location: /11.2.0.3/oui
    Location of the log file: /11.2.0.3/cfgtoollogs/opatch/opatch2014-05-08_18-58-59PM_1.log
    [May 8, 2014 18:58:59]     History of patch file: /11.2.0.3/cfgtoollogs/opatch/opatch_history.txt
    [May 8, 2014 18:58:59]     From ApplySession Thu May 08 18:58:59 IST 2014
    [May 8, 2014 18:58:59]     Starting apply Session at Thu May 08 18:58:59 IST 2014
    [May 8, 2014 18:58:59]     YES-67075: cannot load the patch object.  Possible causes are:
    The specified path is not an intermediary shiphome Patch
    Metadata files are missing in the region of patch
    Patch location = / oracle/14229857
    Details = PatchObject manufacturer: Input file ' / oracle/14229857/etc/config/actions "or" / oracle/14229857/etc/config/inventory "does not exist.
    [May 8, 2014 18:58:59]     OPatch will clean the files 'restore.sh, make.txt' and "backup cars, scratch," directories.
    You will always be able to restore patches after this cleaning.

    Do you want? [y | n]
    [May 8, 2014 18:59:02]     Y (auto-répondu by - silence)
    [May 8, 2014 18:59:02]     The user responded with: Y
    [May 8, 2014 18:59:02]     Size of the directory "/11.2.0.3/.patch_storage"before cleaning is 269296 bytes. "
    [May 8, 2014 18:59:02]     Size of the directory "/11.2.0.3/.patch_storage"after the cleaning is 269296 bytes. "
    [May 8, 2014 18:59:02]     UtilSession: Save for the restoration area was cleaned. For a complete list of files/directories
    removed, please see the log file.
    [May 8, 2014 18:59:02]     YES - 67073:OPatch failed: PatchObject manufacturer: Input file ' / oracle/14229857/etc/config/actions "or" / oracle/14229857/etc/config/inventory "does not exist.
    [May 8, 2014 18:59:02]     YES - 67035:System is intact, OPatch will not restore the system
    [May 8, 2014 18:59:02]     Finishing ApplySession at Fri May 08 18:59:02 IST 2014
    [May 8, 2014 18:59:02]     Total time spent waiting for user input is 0 seconds.  End at Thu May 08 18:59:02 IST 2014
    [May 8, 2014 18:59:02]     Location of the log file: /11.2.0.3/cfgtoollogs/opatch/opatch2014-05-08_18-58-59PM_1.log
    [May 8, 2014 18:59:02]     Description of the battery: java.lang.RuntimeException: PatchObject manufacturer: Input file "/ oracle/14229857/etc/config/actions" or "/ oracle/14229857/etc/config/inventory" does not exist.
    [May 8, 2014 18:59:02]     StackTrace: oracle.opatch.PatchObject.createPatchObject(PatchObject.java:2433)
    [May 8, 2014 18:59:02]     StackTrace: oracle.opatch.PatchObject. < init > (PatchObject.java:2000)
    [May 8, 2014 18:59:02]     StackTrace: oracle.opatch.PatchObjectUtil.loadPatch(PatchObjectUtil.java:2188)
    [May 8, 2014 18:59:02]     StackTrace: oracle.opatch.ApplySession.loadAndInitPatchObject(ApplySession.java:1553)
    [May 8, 2014 18:59:02]     StackTrace: oracle.opatch.ApplySession.process(ApplySession.java:5850)
    [May 8, 2014 18:59:02]     StackTrace: oracle.opatch.OPatchSession.main(OPatchSession.java:2060)
    [May 8, 2014 18:59:02]     StackTrace: oracle.opatch.OPatch.main(OPatch.java:614)
    ~

    Thank you

    Priya

    Priya,

    You try to apply (Patch 14229857)? If so, it's for Exadata then is it applicable?

    11.2.0.3 patch # is 10404530

    11 GR 2 11.2.0.3 database certified with E-Business Suite

    https://blogs.Oracle.com/stevenChan/entry/11gr2_11_2_0_3

    Please note that 11.2.0.4 is the Group of hotfixes later certified 11 GR 2.

    11.2.0.4 database certified with E-Business Suite

    https://blogs.Oracle.com/stevenChan/entry/11_2_0_4_database

    Thank you

    Hussein

  • loading the library...

    ADE 2.0 and 3.0 gets loaded and started but glue on "library loading...". "and nothing happens. Several facilities and new facilities including reg cleaning does not change the status quo.

    Googling around, I found a hint, and now it works again:

    I deleted HKEY_CURRENT_USER\Software\Adobe\Adept.

    Don > ' t ask me why, but it worked and ADE opens again!

    Eureka!

Maybe you are looking for