How can you "Bring object to Front" (but not to the end!) in AS3?

1. imagine a swf file that shows an image (the image is a music video btw).

2. now imagine three objects behind which frame (each are video clips).

3. I use the ' object bring forward the "code snippit of each have three objects come forward when you click it.

Question: How can I do so that the objects do not go in front of the image?

P.S. I'm super new to AS3, so feel free to talk to me like I'm a child of five. I'm not offended.

/ * Wear any object clicked forward

By clicking on any symbol on the stage posing in front of all other cases.

*/

This code makes all occurrences of symbol on the clickable scene by listening for the CLICK event.

for (var fl_ChildIndex:int = 0;

fl_ChildIndex<>

fl_ChildIndex ++)

{

this.getChildAt (fl_ChildIndex) .addEventListener (MouseEvent.CLICK, fl_ClickToBringToFront);

}

This is the function that moves the selected object to the front of the display list

function fl_ClickToBringToFront(event:MouseEvent):void

{

this.addChild (event.currentTarget as DisplayObject);

this.addChild (yourpictureframe);

}

Tags: Adobe Animate

Similar Questions

  • How can you add totaltime to test everything not in the report

    We use with the xml declaration horizontal.xsl.  I see the totaltime property in the xml file.  I have a comment to the code in the style sheet to display the time of module for the steps of success/failure.  I'd rather see totaltime for each step.

    Alternative is to write Labview code to extract the name of the test step and Associates time from xml code.

    Problem solved.  I wrote my own little style sheet for just the time to display in a table. Works better than treatment in Labview.  LabVIEW used to take hours to process the xml file and give me the same result.  Internet Explorer takes approximately 15 seconds.

  • How can you save pictures to a text message on the sd card?

    How can you save pictures to a text message on the sd card?

    tap and hold the picture and you get a pop-up menu to save the image.

  • How can I get rid of this annoying tag at the end of my posts wordpress: / / &lt;! [CDATA [&lt; div id = "" class = "_mp3rocket_overlay_style" style = "left:; top:; width:;]]

    Whenever I post on my blog, it appears at the bottom:

    // <![CDATA[
    <div id="" class="_mp3rocket_overlay_style" style="left: ; top: ; width: ; height: ">
    // ]]>
    

    How can I get rid of him?

    Is the mp3rocket name ring a Bell? It may be related to a browser add-on. You might check and possibly disable or remove such an add-on here:

    Orange Firefox button or classic menu Tools > Modules

    Try the Extensions and Plugins categories.

    If she seems not related to an add-on, perhaps it's something added by a Wordpress plugin or theme of your blog. If you provide a link to your blog, a volunteer here could take a look and see if they get the same text.

  • How can you bring Illustrator Cs5 layers in Photoshop Cs5?

    Hi everyone, it is possible to bring Illustrator artwork in Photoshop so that the layers in Illustrator are layers in Photoshop, and so that all content is arranged as in Illustrator.

    I did bring in a form or a group of shapes in Photoshop by pasting them into a layer in PS then some bringing more things to another layer in Illustrator and paste into another layer in PS but obviously it is a mission to align new content, so it is organized as if it were in Illustrator first.

    Any help appreciated

    Thank you Gareth

    Save layers
    [...] Select Maximum editability to export transparent objects (in other words, the objects of an opacity mask, a constant opacity less than 100% or a different blending mode than Normal) in the form of live, editable Photoshop layers.

    and don't forget to remove the overprint settings.

  • How can you save Pdf as spreads, but when someone's looking for a page number, that it does not spread?

    Hi, I need to make the pdf which was recorded as spreads (from Indesign) so that when you navigate to a page in Acrobat, you go to the page number not the number of propagation for example if you search for page 5 do not you on page 8-9, which is the 5th spread , y at - it a setting or even a script that I can add to my pdf?

    I'm sorry, but it is not possible with a script, either. A possible solution would be to divide the "spreads" of two physical pages and set the option to display the file view two pages at a time. This way, if the user has entered a number of page they will see any spread.

  • I need to make a banner 300 inches wide, but it is defaulted to 224 inches.  How can you make your plan of work greater than the maximum allowed?

    I ned to do a banner 12' high x 25 ft wide.  The default width to 224 inches.  How can I extend this to my width?

    As SRiegel suggested above - I would half work to make things easy for you. So, make your plan of work 6' x 12.5 then output the file to 200%. See also the note above from messages on images.

  • AS3 how can you detect if someone shoots their camera into the USB port?

    In AS3 if the SWF Gets a hold of the camera of someone successfully and they begin streaming video everywhere and everything, but then halfway, either they wiggle accidentally their camera into the USB port, or the camera just sort breaks down, or something like that, how can detect you on the user side?  I tried using event listeners and different variables of Mark also every five seconds, but none worked. any of the public properties of the camera or its events seem to be acting funny of all when something happens like that.  And apparently you can just keep analysis the computer for devices (for a good reason, I suppose).

    Is there something I'm missing here?  Is it possible to detect the copy of a user of a SWF file (PF or AIR, but much more important still FP) when their camera has effectively stopped as the result of something goes wrong, like them what she wiggling the computer by mistake?  If so, how?  Thank you!

    Run your code and disconnect your camera. What are the common properties of it? Stop your flow? To return only a framework of specific color? These things can be used to detect, but you are right when you say that you can not detect more than a loss of packets from a NetStream object.

  • How can you add a device in MAX after getting the error 200220

    Hello

    I get the following error message when I start my datalogging software

    When I opened MAX, I noticed that the device NOR I use (USB-TC01) is not listed.

    Someone out there would be able to let me know how to add the TC01 device? I know that I need to go to the icon "create new" devices and Interfaces, but do not know how to proceed after that. I get the next screen but not sure what to select.

    I use the 9.0.2 version of NOR-DAQmx driver on Windows XP operating system.

    Thanks for your time,

    Kevin

    You may need to update your DAQmx driver.

    Look at this page.  http://sine.NI.com/PSP/app/doc/p/ID/PSP-916/lang/en

    All versions of DAQmx listed are more recent than the 9.0.2 you use.

    Also, take a look at this message thread.  http://forums.NI.com/T5/instrument-control-GPIB-Serial/NI-USB-TC01-not-found/m-p/1454196?requireLogi... which seems to confirm.

  • How can I connect on my laptop, but not in safe mode?

    Comcast told me that I should never open my Dell laptop in safe mode.  I don't know how to change this mode.  Can you help me?  The laptop is so slow (only 3 years) and takes 15 minutes to raise even start working.  Thank you

    not sure why comcast said here.

    Perhaps, there is a set communication.

    in any case, there are a number of things you can do to speed up the computer and the test computer is safe mode is a good idea.

    so go ahead and boot your computer and wait for the desktop to load.

    You must also make sure that the ethernet cable is unplugged or the phone line is disconnected the modem before you start the computer.

    After loading the desktop computer, click Start > run > .msconfig

    (type and enter above msconfig)

    Then go to the Startup tab and check the box start secure, then reboot and the machine will launch safe mode.

    (by the way, to return to normal mode, repeat the steps to open msconfig and uncheck secure boot)

    now that you're in safe mode, test the computer.

    If works better, then we can perform a "clean boot" for operations in normal mode.

  • How can you add more options of basic research for the Service Profile Configuration Directory profile

    In the CUCM, under Service Profile Configuration.  I created a service profile.  In the profile directory section, I can only have 3 Research Bases.  I have 6 domains I have to link them.  They are in a forest.  How can I extend the search to users?

    It is with regard to the Jabber Clients.  I can't find the users in the second research base.

    IN the LDAP authentication, it allows only 2 additional redundant LDAP servers.  Why not add each of them?

    Thank you

    Cathy

    Hi Cathy,.

    Please take a look at the following link: Jabber - config.xml

    I hope this helps.

  • How can you Hotsync a T5 and one E4 with the same Palm desktop program?

    My husband and I had 2 Palm Tungsten, a T5 and an E2. How do you use the same office palm hotsync our Palms? What program would work better for both of them? Thank you!

    All available versions of Palm Desktop can be downloaded here:

    http://KB.Palm.com/SRVS/Nua/launchKB.asp?c=33529

    Please note that what you are looking for is Palm Desktop 4.1.4E.  The E stands for "extended", which is required for the fields in the database of contacts who use the T5 and E2.  If you only download the version 4.1.4 (without the E), you will lose this feature on your desktop.  I think both versions are also the same.

    You will notice that the E2 is not in the list for version 4.1.4E.  It is only because they now recommend the new version (6.2) which was designed for Vista desktop computers.  Unless you have a Vista desktop, you gain nothing by using version 6.2 and you actually lose some features.

    Message relates to: None

  • How can you determine what version of PHP is on the cold fusion Server

    I'm trying to find out which version of PHP is on my cold fusion server, how can I do this? ColdFusion comes with PHP?

    In the C:\Windows folder, locate the file named php.ini and open it in Notepad.

    I answered myself. Maybe it can help someone else.

  • How can I put bleeds for individual images (not for the entire document)?

    Hello everyone,

    I have a ready brochure for printing and now I had information on some images ago 3 mm lack of bleed. How can I fix this? The entire document should be set to this purge, but they always tell me that, in some places (images), he is still missing.

    Thank you much in advance.

    You must bring your images for objects that purge leave the allocation of purge and make sure that the image is big enough to fill this area.

  • How can I downloaded an app that is not in the App Store

    Different is an application that I found on the internet that is not in the App Store. But whenever I try to download... .it does not work... How can I download this app

    You do not have.  Cannot install iOS Apps devices from anywhere, but the App store.   If it is not in the App Store, the app is very probably not designed for iOS and would not be able to be run in any case.

Maybe you are looking for

  • Use the adapter USB Bluetooth Toshiba with cell phones LG

    Hello I have the * Toshiba Bluetooth v2.0 + EDR USB Adapter * in my PC Windows XP Pro SP3.I want to use it with my * LG KC780 * mobile phone. I have installed all drivers and programs. PC and phone are in "coupling", but the settings Bluetooth from T

  • How to install Windows Vista - BT stack should be removed but how?

    I finally bought a new windows vista instillation cd, and it worked fine until when he was checking confirmation... when it happened he came with a message saying that I had to remove the Toshiba bluetooth stack. I had no problem with that, in additi

  • Windows 7 - error Code: 800 b 0100

    I tried step 1 as suggested, but there is no errors with CheckSUR. I was not looking for step 2 as MS Support told me that I am under a different version of Windows 7 and this hotfix does not apply. I am running Windows 7 Home Premium, 64-bit. Other

  • Why the system restore won't work

    When I try to run, System Restore my computer just is there and does nothing... .no invites nothing

  • XPS 10 screen Glitch

    The screen on my new XPS 10 keeps glitching out, it behaves as if my finger is to hit the screen in the upper left corner on several occasions. The display shows even the bubble indicator as if I were really not touch. It becomes very annoying when t