instances of addChild does not recognize event.target.name?

I have a button that has been added to the stage using addChild when the page load, the button is supposed to be removed using removeChild and redirect in its specific page using event.target.name... somehow, I got this error:

Error #2044: Unmanaged by the IOErrorEvent:. Text = Error #2035: URL not found.

I try to replace this line.

var newswf:URLRequest = new URLRequest (".") ("/ swf /" + event.target.name + ".swf");

with that,.

var newswf:URLRequest = new URLRequest("./swfs/about.swf");

and everything works fine, but I don't want that since I want to dynamically load and use less code... is there a solution to do this, thanks for the help

my code as below:

//////////////////////////////////////////////////////////

var subject: About = new About().

about.x = 300;

about.y = 200;

addChild (about);

function btnClick2(event:MouseEvent):void {}

removeChild (about);

removeChild (loader);

var newswf:URLRequest = new URLRequest (".") ("/ swf /" + event.target.name + ".swf");

Loader.Load (newswf);

Loader.x = XPos;

Loader.y = YPos;

addChild (loader);

SoundMixer.stopAll ();

to stop all the background sound when click

}

about.addEventListener (MouseEvent.CLICK, btnClick2);

//////////////////////////////////////////////////////////////////////////

I missed the part where you create dynamically on the Forum...  You must assign a name because the name property is not the same as the var with that you instantiated...

var subject: About = new About().

about. Name = "a connection";

Tags: Adobe Animate

Similar Questions

  • Skype does not recognize my user name

    Help! Why Skype does not recognize my user name, I've used before in another computer? I use Skype 4.2 on Windows 7.

    https://support.Skype.com/

    Contact the Skype Support for questions about their software.

    And:

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to the it.

    You are in the Vista Forums.

    See you soon.

    Mick Murphy - Microsoft partner

  • Server does not recognize my user name on outgoing emails

    On my iPhone 4 my server does not recognize my email (Telstra) address on outgoing emails, but recognizes the incoming emails. What happened all of a sudden no reason apparent. I have two other email addresses on the phone and they work fine. One is a gmail address and the other is another address of Telstra. Can someone help me please?

    try to remove the account from the problem and add it again

  • I'm having a problem with the email of comdast especially for the outgoing with SMPT. Does not recognize the user name or password. Erased and the exact same re-admitted and do a little work and now 2 - 3 times a week same recurrs either on iphone, ipad a

    In the last 6 months + / _ my Comcast email not send mail as the smpt said that the name and the password not recognized. I can delete them both and then re-enter on my iphone and ipad, imac and it works again. It happens now 2 or 3 times each week. Comcast.com my website does not do this and can receive and send email without problem. Their support, explains what's happening with many of their apple using the client.

    All the answers in the group. Has not happened before. This could be with apple's IOS dates as google is not not the case.

    pdeyedoc

    You should probably get a different email.

    I know this isn't much of an answer or even very applicable but everyone I know eventually loses their emails from mobile provider or cable operator sends cause unless you stick with them forever, your account is deleted after you leave them.

    Gmail, yahoo, rocket mail, and even AOL don't do that.

  • What should I do to be able to view a mime type of PDF on my computer keep get error msg saying microsoft does not recognize the file name extension can someone help me with this problem please

    Can u please help me

    You have PDF reader software on your computer? for example:-Adobe Acrobat Reader?

    If this isn't the case, you can get it free from Adobe.

    Waiting for your response.

    Thank you and best regards.
    codescientist

  • Photo of ios10 does not recognize a face in a photo.

    Photo of ios10 does not recognize a face in a photo.

    How to attribute it to the person.

    You need the User Guide, as it sounds like the info. For more information, please download the Guide of the user, with only an iPad 4 I am unable to help much more.

    "Add others. Tap Albums, people, press Add people, select people to add, then press Add.

    Merge people. If the people album shows a person identified as two people or more, press Select, click each instance of the person, and then select Merge.

    Remove the incorrectly identified people. Press a person in the photo album, and then view all to display all the photos they appear in. Press Select, press on show's face, touch the face misidentified, tap, and then tap not this person.

    See the photos that contain a person. Tap Albums, people, then select the person. »

    From: Apple Inc. "iPad for iOS 10 user's Guide." Apple Inc., 2016. iBooks.

    These documents can be protected by copyright.

    Find this book on the iBook Store: https://itun.es/us/Cf0Odb.l

  • I just upgraded to logic 10.2.4 and now it does not recognize my controller - Yamaha P-95. Yamaha has no new drivers yet. Any suggestions?

    I just upgraded to logic 10.2.4 (and 10.11.16) and El Capitan now logical does not recognize my controller - Yamaha P-95. Yamaha has no new drivers yet. RELOADED drivers available and tried different USB ports. The audio works fine. Any suggestions?

    you need to ask Yamaha if they have a work-around or they intend to release the pilots, have a beta driver or what is their recommendation.

    If the logic is compatible with the operating system then the problem is with the 3rd party controller, and the developer will have to answer it. Past that if you have a backup time machine an instance where worked together your controller, the software and the operating system you can restore to that point

    Use Time Machine to back up or restore your Mac - Apple Support

  • iTunes does not recognize my nano

    iTunes does not recognize my nano when connected to my pc

    Hi kaciej0nes,

    Thank you for using communities Support from Apple.

    I see that your iPod nano is not recognized by iTunes on your Windows PC.  In order to get this issue resolved, I suggest that you perform the steps described below.

    Connectivity/synchronization

    Follow these steps if your computer does not recognize your iPod or you have problems with your iPod synchronization.

    iPod not recognized by iTunes or computer

    Make sure that you have installed the latest version of iTunes from www.itunes.com/downloadssoftware. Try connecting to another USB port on your computer. Your computer needs a USB 2.0 port or a USB 3.0 port to connect the iPod nano. If you have a Windows PC that does not have a USB 2.0, in some cases, you can buy and install a USB 2.0 card.

    • If the iPod nano is connected to a USB hub, try to connect the iPod nano directly to the USB port of your computer.
    • iPod nano may need to be reset. Reset the iPod by holding down the sleep/wake button and the Home button until you see the Apple logo appears.
    • If you connect iPod nano to your laptop using the lightning cable, connect the computer to a power outlet before connecting the iPod nano.
    • Check the cable connections. Unplug the cable at both ends and make sure that no foreign objects are in the USB ports. Then reconnect the cable.
    • Try reseating the connector of lightning in the iPod. Lightning connector can be inserted in any event.
    • Try restarting your computer.

    If none of these steps resolve the problem, you may need to restore the iPod nano software.

    Also see the following for assistance:

    iPod nano (7th generation): hardware troubleshooting

    Take care.

  • My 10.2 final cut does not recognize my Lexar 512 ssd drive which is formatted for Mac Os journaled and completely empty

    My FCPX 10.2 does not recognize my Lexar 512 ssd drive,
    who is formatted for Mac Os journaled and completely empty (already formatted),
    He comes to see my ssd as an SD card once I click an import media.

    I had once FCPX 10.0.8 and with which I was able to edit with my external Lexar 512 GB SSD drive,
    that was seen as a normal external hard drive with all my projects and events.

    I'm not using Time Machine, never used.

    Any thoughts, why can't you do more?

    Here is a screen from my drive information: http://i.imgur.com/3TrITKf.png.
    and here is a screen in FCPX where he sees my ssd as external device: http://i.imgur.com/PB4dgkB.png

    Thank you
    Federico

    SO it is not working properly. The drive is empty. Make a new library and save it on the SSD drive.

  • LabView does not recognize my NXT.

    LabView does not recognize my NXT. The small orange window in the lower part
    left corner shows "NXT target not specified." I powered down and back up
    (block the NXT and computer) again after connecting my USB at NXT. The computer is the little jingle when I connect or disconnect both ends of the USB cable.  I have
    tried scanning via Tools/NXT terminal. Pushing scan causes simply one
    image quick to appear and disappear; no 'name', 'connection type' or 'State' appears. They are empty. The help section says that it is 'straightforwrd' and it makes me feel
    LabView will automatically recognize the NXT block that is connected, but this isn't the case. Is there a standard procedure to ensure
    connection-aware in the NXT block by the LabVIEW program? How can I 'specify' my 'target' as it says in the small orange window? (My
    laptop using XP and I tend to use Mozilla firefox...) Thank you!

    Measurement and Automation Explorer (MAX) is another software that we provide. You should have on your computer since you have LabVIEW. If you who open and expand my network, and then expand devices and interfaces, a device USB shows in there? If not, then MAX does not recognize the device, and if this is the case you will not be able to use the device in LabVIEW. If the device is not recognized, make sure that you have the module and the driver for this product.

    Once the unit displays in MAX, you will be able to use in LabVIEW. The module is located here.

    David has.

  • Want to reinstall XP but the computer does not recognize the cd drive and does not allow for any installation.

    Accidentally deleted some system files and now the computer won't allow me to install anything. Tried to install a new cd player to replace a corrupt, but it does not recognize drive. All the driver and OS install CD. Help.

    Fix missing files:

    Try to run the checker system (CFS) files.  Press start, select run, type: SFC/scannow

    SFC will ask your installation disc (which you must have if you are going to re - install), put it in the drive when requested.  Leave the SFC to replace all missing or corrupt files.

    To resolve the startup problem:

    Check your BIOS Setup and make sure the optical drive is enabled and listed before the hard drive in the boot order.  When you start, there will be a message, "type any key to boot from the CD-ROM."  Type any key (execpt shift, shift caps lock, NumLock, etc) will cause the CD to be initialized in the installation program.  (I use the space bar, it's an easy target.)

    In addition, it would be useful to know a few more things: 1) what edition and service pack level of Windows XP you are running?  (2) what is the model and manufacturer of the optical drive, please?

  • 8.1 Windows does not recognize the Touchsmart

    8.1 Windows Pro does not recognize the Touchsmart. This work like a mouse when I click on the screen. In the properties of the system, said that will not have a pen and touch. Someone knows how to solve? Thank you.

    Edit:

    "HP ENVY 15t - j100 Quad Edition CTO Notebook PC (ENERGY STAR)
    Product number: F5G56AAR

    Hi, I am a new customer of HP products. I made a mistake, my Ultrabook is
    HP ENVY TouchSmart 15t - j100 Quad Edition CTO Notebook PC.

    My touchscreen stopped working, because I had updated the drivers using a 3nd software named 'Slim Drivers'.

    This program was updated to some instances of my integrated video (HD 4600) and that make unrecognizable touch screen and display the touchdo has not worked.

    I reinstall Windows 8.1 again and has been updated disks directly from the HP website and the problem was solved.

  • Windows Vista does not recognize my Ipod Touch

    Windows Vista does not recognize my Ipod at all. He even appears in Device Manager. I know that is not my USB cable because it is new, and it isn't my Ipod because it works on Mac computers. I just need someone with expertise to help me get my computer to recognize my Ipod so I can go back to enjoy my music.

    Hello

    MTP mode for WMP11 sync - mode MSC to treat the MP3 as a reader. So you have set up in the MTP.

    -----------------------------------------
    If necessary:

    Tips for solving problems of USB devices - and a Mr Fixit
    http://windowshelp.Microsoft.com/Windows/en-us/help/c39bd203-f729-47a4-8351-83291e13c8a81033.mspx#EGB

    Make sure that Windows is updated appropriately that there have been several USB updates.

    1 check that the driver letters for them, for a player, if the drive of the default drive letter is changed, what is happening.
    Mine was h: I added a device that took H: and the player stopped. So I put it back to H: and the other
    device to J: and everything worked again. If necessary start - type in the area of research-> disk management find top
    -Right-click on it - RUN AS ADMIN

    Don't forget to remember the MP3 must be set to the PSG to sync with WMP, and meteorological service of Canada to copy and delete files
    and update the firmware.

    If no joy follow these steps:

    You may need a powered hub. (all the USB ports on your computer are not powered, often only 2)

    Try these:

    Make a Restore Point

    Control Panel - Device Manager - click in the empty area - VIEW - show hidden devices

    Here, your devices are the MP3 player.

    Now look everywhere EXCEPT the USB controllers for your devices (cannot be found) and if you find
    It RIGHT CLICK and UNINSTALL all.

    now go to the USB and UNINSTALL ALL controllers in the category, but the category itself.

    APPLY/OK

    RESET

    This refresh battery USB and hopefully it will allow the unit to install. (You may need a powered hub)

    Here is the similar procedure under XP, Vista is the same, except that we need clear specific devices, as appropriate.
    http://support.Microsoft.com/kb/310575

    This is a utility to help you, but do 1 above.

    USBDeview is a small utility that lists all USB devices currently connected to your computer, as well as all USB devices that you previously used. Run Options and check the 1st three choices to see if one is there.

    http://www.NirSoft.NET/utils/usb_devices_view.html

    You must remove all instances of the devices and restart.

    I hope this helps.

    Rob - bicycle - Mark Twain said it is good.

  • My HP Pavilion dv5 Windows 7 Home Premium does NOT recognize my sd card

    I need help! My computer does not recognize my sd card, or my sd card to my micro sd card adapter. I'm starting to think is housing, given that the sd card is recognized on my cell phone.

    Hello

    Check their documentation online with the HP Support and drivers, diagnostics and ask to their
    Forums about known problems. If it's the USB adapter, it can be removed/disabled in BIOS

    and/or Device Manager and a used external is not that expensive.

    HP support/troubleshooting & drivers
    http://welcome.HP.com/country/us/en/support.html

    Contact HP
    http://welcome.HP.com/country/us/en/contact_us.html

    HP forums
    http://h30434.www3.HP.com/PSG/

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

    References to Vista also apply to Windows 7.

    Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to fix the system files of Windows 7 with the System File Checker
    http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.html

    Then run checkdisk (chkdsk).

    How to run check disk in Windows 7
    http://www.SevenForums.com/tutorials/433-disk-check.html

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

    Then lets refresh the USB stack

    Control the click Control Panel - Device Manager - no matter where in the box of white/white - then the VIEW - see the
    Devices disabled - look around (with the exception of USB controllers) for your devices (can have
    zero or more than one) and top - right click UNINSTALL.

    Control Panel right CLICK on EVERYTHING - Serial USB controllers - device configuration-manager and
    UNINSTALL all but the category itself - REBOOT - it refreshes the driver and battery USB

    This KB shows XP how to and methods of Vista and Windows 7 are the same
    http://support.Microsoft.com/kb/310575

    This is a utility to help you, but do 1 above.

    USBDeview is a small utility that lists all USB devices currently connected to your computer.
    as well as all USB devices that you previously used. Run Options and tick three 1
    are there choices to see if any.

    http://www.NirSoft.NET/utils/usb_devices_view.html

    You must remove all instances of the devices and restart.

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

    If necessary try these two:

    Tips for solving problems of USB devices - and a Mr Fixit
    http://windowshelp.Microsoft.com/Windows/en-us/help/c39bd203-f729-47a4-8351-83291e13c8a81033.mspx#EGB

    Hardware devices not detected or not working - Mr. Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Windows 7 does not recognize sony dcr-trv140 camcorder

    I have a sony dcr-trv140 camcorder and I can't find a port of FireWire on my computer to transfer my files and my USB won't be recognized by my computer and the software that I need to download does not work for windows 7, otherwise, how can I download my instance on my computer hi8 tapes?

    Have you tried the Sony dcr-tv140 support Site?  There is a link for "the computer does not recognize the USB disk hard camcorder." that may be useful.

Maybe you are looking for