External load and give the name of the instance

I use this code to load and external swf, now how do I assign an instance name for this?

var eventInitialLoader:Loader = new Loader();
var eventInitialURL:String = parent ["eventPath" + ie];
var eventInitialRequest:URLRequest = new URLRequest (eventInitialURL);
eventInitialLoader.load (eventInitialRequest);
eventOdd_MC.addChild (eventInitialLoader);

Thanks for the help!

At a certain point in your code, that you must have a reference to the instance that you want to remove, then you can just do:

[instance].parent.removeChild ([instance]);

or set up a table:

var instanceArr:Array = new Array();

and when you load a new instance with the charger, do:

instanceArr.push (myInstance);

and to access:

for (var i: uint = 0; i< myinstance;="">

child var = instanceArr [i];

(do things with child)

child.parent.removeChild (child);

}

Tags: Adobe Animate

Similar Questions

  • Can we load and unload the files in the run time?

    Can we load and unload the files in the run time?

    For example, there are four files named 'test1.h & test1.c' and another series 'test2.h & test2.c' (I have attached as an attachment to this post).

    test1.h contains the code:

    int variable; variable declared as integer

    test1.c contains the code:

    variable = 1; variable a value assigned

    test1.h contains the code:

    char * variable. variable declared as string

    test1.c contains the code:

    variable = "EXAMPLE"; a string that is assigned to variable

    So here, in this case can I dynamically load / unload first & second group files so that the same variable "variable" name can be used as an integer and string? And if so, how to do?

    Hi pa1majeti,

    You cannot simply consider that some code is loaded into memory or not: all code in a compiled application is permanently in memory unless you divide your application into DLLs that you dynamically load if necessary and remove if is no longer necessary.

    But as I understand from your description, you're better given the amount of memory occupied by the data (i.e. the contents of the variables) rather than the code. If this is the case, your only option is to allocate memory for variables dynamically and free it after it has been used. Now, even if this option is useful if you are using large networks of data, there is little or no effect on the unique variables.

    A final Council, given the huge memory installed on modern computers, are you sure you really need that extra work? I mean, the dynamic allocation of memory involves some additional precautions in programming: check the errors on each function malloc or calloc, check that the pointer is valid before each use, freeing pointers before reassignment in order to avoid memory leaks and so forth, so a balance must always be sought between the memory and the difficulty in programming.

  • How to export pictures / albums of iPhotos to external disk and keep the time/date/year and location information changed?

    How to export pictures / albums of iPhotos to external disk and keep the time/date/year and location information changed?

    Menu, file == > export - check boxes to include metadata and location- export to iPhoto

    LN

  • What happens when the photo of system library is on an external drive and then the system creates a library of Photos? How do merge you them?

    What happens when the photo of system library is on an external drive and then the system creates a library of Photos? How do merge you them?

    Your library system can be on an external drive, if the drive is Mac OS extended (journaled) format and mounted on-site.

    But you must be careful, your external drive is always connected and available before the Photos and to import new photos.

    If Photos opens a different library, news, you can switch to the library on your external drive by double clicking on an external library. You can have several libraries, no problem.

    But pictures don't have any tools to merge libraries. You can switch between libraries, then open them alternately.  To merge two libraries export the photos of the smallest library and import the photos exported in the largest library.

    Or use third-party "PowerPhotos" to move photos between libraries.  But the merger is not supported in the free trial version. You must purchase the full version. You can download it here: Fat Cat Software

  • How do I programmatically load and show the façade of a vi but NOT run it?

    Is it possible to load and display the front panel of a vi but NOT run?  I start with the AsynchronousCallAndForget.vi from the example finder and inserted a node invoke with the Open FP method call before the starting node the asynchronous call. The vi that I'm loading has the "Run when opened" unchecked and the menu bar IS visible so I can manually click the run arrow. Thank you!

    Why do you use the asynchronous call? If you simply open the VI reference, then call the FP. Open method, it works very well. You can then call the VI run method which wait until is set to false if you want to execute asynchronously, it is how we did in ye olde days before we have this fangled tricks "Start Asynchronous Call.

  • is it possible to tell me how I can make program in labview that take black and with image pixels and give the coordinates of black or white pixels again to me.

    Hello everyone

    is it possible to tell me how I can make program in labview that take black and with image pixels and give the coordinates of black or white pixels again to me.

    It depends on the image and the module LabVIEW available to you. LabVIEW can open bitmap and png files and convert them into tables: if it's really a monochromatic (depth of 1 bit) you get a table 2D boolean, T for white, F for black. Just look at the index of the item to its details (don't forget that LabVIEW does not use the order of rows and columns, so you must transpose and reflect the table). If you have a 24 bit bitmap, the table will contain the color in hexadecimal synthesis (000000 for black, FFFFFF is white and so on); Yet once, you simply check if the element of the array correspond to your requirements and get its index.

    With the vision that you module con open other pictures and perform advanced on them without convert them into tables. Anyway, you can just type the extension of your image using LabVIEW and see what you get.

    Here is a code snippet to open a monochromatic image

  • My computer laptop stop periodically and gives the following codes BCCode d1, 00000010 BCP1, BCP2 00000002 BCP3 00000001, 8A25F1C8 BCP4.

    My stop laptop periodically and gives the following codes:
     
    BCCode d1
    BCP1 00000010
    BCP2 00000002
    BCP3 00000001
    8A25F1C8 BCP4

    I was not able to find a solution to restart windows by clicking find a solution online. The system is free of viruses and other items malcious. Any ideas would be helpful because my laptop did not come with a repair disc and I'm afraid to make one with these questions.

    Thank you

    Hello

    Think video drivers especially if it may be others. Refer to the section of driver in my generic bluescreen
    methods of troubleshooting below. BIOS, low and antispyway/antivirus/security chipset drivers
    programs may also cause this. Check the resolution of problems and when you get to the section driver view
    for generic methods in the next message and then back to the if necessary troubleshooting tool.

    BCCode: D1 0x000000D1

    Cause

    A driver tried to access a pageable (or that is completely invalid) address while the IRQL was too high.

    This bug check is usually caused by drivers who used a wrong address.

    If the first parameter has the same value as the fourth parameter, and the third parameter indicates a runtime operation, this bug check was probably caused by a driver who was trying to run code when the code itself has been paginated outside. The possible causes for the error page are:

    • The function was marked as pageable and was operating at an IRQL higher (including obtaining a lock).
    • The function call was made to a function in another pilot, and that this driver has been unloaded.
    • The function was called by using a function pointer that was an invalid pointer.

    ======================================================

    Look in the Event Viewer to see if something is reported on those.
    http://www.computerperformance.co.UK/Vista/vista_event_viewer.htm

    MyEventViewer - free - a simple alternative in the standard event viewer
    Windows. TIP - Options - Advanced filter allows you to see a time rather
    of the entire file.
    http://www.NirSoft.NET/utils/my_event_viewer.html

    -------------------------------------------------------------------------
    Also this, so you can see the probable bluescreens.

    Windows Vista restarts automatically if your computer encounters an error that requires him to plant.
    http://www.winvistatips.com/disable-automatic-restart-T84.html

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

    Here are a few ways to possibly fix the blue screen issue. If you could give the blue screen
    info that would help. Such as ITC and 4 others entered at the bottom left. And all others
    error information such as codes of STOP and info like IRQL_NOT_LESS_OR_EQUAL or PAGE_FAULT_IN_NONPAGED_AREA and similar messages.

    As examples:

    BCCode: 116
    BCP1: 87BC9510
    BCP2: 8C013D80
    BCP3: 00000000
    BCP4: 00000002

    or in this format:

    Stop: 0 x 00000000 (oxoooooooo oxoooooooo oxoooooooo oxooooooooo)
    Tcpip.sys - address blocking 0 x 0 00000000 000000000 DateStamp 0 x 000000000

    It is an excellent tool for displaying the blue screen error information

    BlueScreenView scans all your minidump files created during 'blue screen of death '.
    hangs and displays information about all accidents of a table - free
    http://www.NirSoft.NET/utils/blue_screen_view.html

    BlueScreens many are caused by old or damaged, drivers particularly video drivers but it
    are other causes.

    You can do without if needed fail or the Vista DVD or recovery command prompt mode
    Options if your system was installed by the manufacturer.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    You can try a system restore to a point before the problem started when one exists.

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

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

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe)
    program generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    The log can give you the answer if there is a corrupted driver. (Says not all possible
    driver problems).

    Also run CheckDisk, so we cannot exclude as much as possible of the corruption.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

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

    Often drivers up-to-date will help, usually video, sound, network card (NIC), WiFi, part 3
    keyboard and mouse, as well as of other major device drivers.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

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

    How to fix BlueScreen (STOP) errors that cause Windows Vista to shut down or restart
    quit unexpectedly
    http://support.Microsoft.com/kb/958233

    Troubleshooting, STOP error blue screen Vista
    http://www.chicagotech.NET/Vista/vistabluescreen.htm

    Understanding and decoding BSOD (blue screen of death) Messages
    http://www.Taranfx.com/blog/?p=692

    Windows - troubleshooting blue screen errors
    http://KB.wisc.edu/page.php?id=7033

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

    In some cases, it may be necessary.

    The Options or Vista recovery disk Startup Repair

    How to do a startup repair
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • plugged an external mouse and now the keys and mouse pad do not work. in the properties it shows activated but the Activate button is not active.

    plugged an external mouse and now the keys and mouse pad do not work. in the properties it shows activated but the Activate button is not active.

    You can start in safe mode and restore the system.

  • Windows 8 freezes and gives the Blue error screen every hour approximately

    Hello guys. I have a problem with my system: windows 8 freezes and gives the Blue error screen every hour or more. usually it freezes, displays a blue error screen (clock watchdog timeout knode or not handled exception or something on a system request), I force restart it, and then it happens again (sometimes 3 - 4 times in a row, then it will be fine for another time). Here is the link to my dump leader : https://www.dropbox.com/s/uv27xr54esjlen0/MEMORY.DMP?dl... . The machine I built myself: amd fx 8350, card mother m5a97, dvd - r, 1 ssd, 1 hdd, PSU 500w, gtx 650 ti video. Also, here is a report of CPU monitor ID: https://www.dropbox.com/s/k1ma0m6maap404q/HWMonitor.txt... . I have already done all the windows, direct x updates and drivers and ran ideas
    If anyone has advice like how to do to solve this problem, please help me because I'm going crazy.

    Thank you.

    AS

    DMP file is corrupted and useless.  Please reconfigure your system for dmp files small as described in this wiki


    Please follow our instructions to find and download the files, we need to help you fix your computer. They can be found at here

    If you have any questions regarding the procedure, please ask

    Please provide us with your administrative Event Viewer logs by following these steps:
    Press Win + 'R' and type eventvwr > enter
    Expand custom views
    Click the administrative events
    Right-click Administrative events
    Record all events in custom view as...
    Save them to a folder where you will remember which folder and save it as Errors.evtx
    Go where you saved Errors.evtx
    Make a right click Errors.evtx-> send to compressed (zipped) folder of->
    Download the .zip for Onedrive or a file sharing service file and link to it in your next post

    *
    If you have updated to win 8.1 and you get the error message " " " the system cannot find the specified file" it is a known problem.  The work around is to change the registry.  If you are not comfortable doing this DON'T.  If you are, save the key before making
    Press Win + 'R' and enter regedit


    Navigate to:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels. Delete "Microsoft-Windows-DxpTaskRingtone/analytical.


  • Try to install and give the message that it does not support the BONES - and it says unsupported windows vista and we have windows 7

    Try to install and give the message that it does not support the BONES - and it says unsupported windows vista and we have windows 7

    Try to force the lightroom Installer to run in Windows 7 mode:

    Right-click on the Setup file and select Properties option.

    Then click on the Compatibility tab.

    The value of the Windows 7 operating system and check.

  • I have a 4TB vdisk and it occupies space is 2 TB and the remaining space is free but it is very slow, what could be the possible reasons and give the solution for this.

    I have a 4TB vdisk and it occupies space is 2 TB and the remaining space is free but it is very slow, what could be the possible reasons and give the solution for this

    Assuming that you are talking about disk space from in the guest OS. You are probably using an MBR partition table, which limits the maximum usable disk space to ~ 2 TB. In order to use the entire disk space, you need a GPT partition table.

    André

  • I recently used Migration assistant to transfer to a new macbook pro and when I try to use Photoshop I get an error message telling me to download and install App Office creative cloud so I didn't and it launches the application craps out and gives the sa

    I recently used Migration assistant to transfer to a new macbook pro and when I try to use Photoshop, I get an error message telling me to download and install App Office creative cloud so I do and it begins to it out craps and gives the same message over and over.

    Hi Paul,.

    Migration wizard does not work in the case of Adobe applications.

    Please, try the following steps:

    Kind regards

    Sheena

  • How to convert a text file and give the table

    Hai

    How to convert a text file and give the data of the table

    ISN'T THERE!

    You must put this

    SET_BLOCK_PROPERTY ('TEST_MS', insert_allowed, property_false);
    SET_BLOCK_PROPERTY ('TEST_MS', update_allowed, property_false);

    just before the last exception...

    Published by: Dora on January 19, 2010 14:54

  • How drive letters are assigned to external drives and file path names?

    How drive letters are assigned to external drives and file path names? MyBook is a drive letter (M) when it is connected to my desktop computer and another letter (L) when it is connected to my husbands office, USB key has the same letter, no matter what usb port is used. Is the letter assigned when the file is created and does not change? or is it to the port to which it is connected to? in what computer?

    Each computer assigns the player to the first drive letter not used in alphabetical order.  It makes no difference what port it connects to.

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • I tried to re - install Adobe reader on my Mac several times. Ask my PW and give my name. I just got a new PW without success. I have delete my name and put my email address. No help.

    Cannot re - install the Adobe reader software. Says "Adobe reader wants to make changes" and gives my name not Correo electronico then asks a PW. I received a new PW and may sign on Adobe.com, but am unable to install Adobe reader on my Mac.

    Enter the password of your Mac.

Maybe you are looking for

  • I can reply to messages without including the message with the answer?

    In Microsoft Outlook, there is an option to include the incoming response message, or do not include the incoming message. Is there an option in Thunderbird? I can't find it in Options.

  • Can I save systemstatebackup on remote folder?

    Hello Can I save systemstatebackup on remote folder? I have windows 2008 server OS family. I used the following command to take systemstatebackup C:\wbadmin start systemstatebackup-backuptarget:------(remotefolder). I couldn't able to store the syste

  • My hotmail (msn) account hacked and is now entirely in Arabic.

    My account has been hacked and friends starts to receive applications for the money I was supposed to be stuck somewhere in the world. After changing the password, I checked on the account, and it's entirely in Arabic. I tried in different ways to go

  • X 1 carbon questions

    Hello I received my 1 x carbon 1 week ago and I love it, it's beautiful, thin and light. However, I have some concerns on my laptop. (1) every time I charge my laptop from the bottom of the laptop gets really hot. Its uncomfortable and it sometimes f

  • BlackBerry smartphone how to control when desktop emails are forwarded to the Blackberry?

    I am a new user... BB has the same e-mail address as desktop. All office emails automatically to my BB. I want to stop this automatic function and IF I want the emails to go to the BB then I turn it on. In general, I'll go a few weeks without checkin