How to animate an object that goes behind another

Does anyone know how to go about animating a movie clip that would go behind another movie clip?
For instance: A stack of photos, that on click, the top photo would animate to the left (or right) and then animate to the back of the stack. My only problem is that i don't understand how to change the order of things, or if this is even possible (as essentially eveything is on layers), the only way i can think of is to have everything on one layer, but then this would interupt the animation of each photo
Cheers

I'd use a combination of the setChildIndex() function and AS3 transitions. I would create a top layer see-through (alpha value 0) movieclip. When the user clicks on this top layer, animate "fly" the top pic out using the FLY transition in fl.transitions. Then use setChildIndex() to shuffle the pics however you want.
A bit about setChildIndex(). The highest number is the pic on top; 0 is on the bottom:
setChildIndex(TOP-PIC_movieClip,N); /* transparent pic that is always on top */
setChildIndex(picture2_movieClip,2);
setChildIndex(picture1_movieClip,1);
setChildIndex(BOTTOMPIC_movieClip,0); /* blank pic used as placeholder for shuffles */
Add an onClick event to the transparent layer, which shuffles the setChildIndex() values as the user clicks the top layer pic, thus changing the pic that they see:
TOP-PIC_movieClip.addEventListener(
  MouseEvent.CLICK,
  function(evt:MouseEvent):void
Now you have to code a little function that adjusts the setChildIndex VALUES. I don't have time to code it out, but here's some guidelines:
a. When the user clicks, use setChildIndex() to set the value of the top picture (NOT the transparent layer on top--the top pic) to 0, moving it to the bottom. Remember that we reserved setChildIndex() space 0 for shuffles, so that we don't overwrite anything.
b. Set up a loop to make the setChildIndex of the Nth clip to the N-1 clip. This rotates the pics into their new positions.
c. Note that the picture in setChildIndex() space 1 will always be the same as in space 0.
The AS3 fly transition example:
http://www.onebyonedesign.com/tutorials/transMgr/scriptTrans.html
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/transitions/Fly.html
setChildIndex() page:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectConta iner.html#setChildIndex%28%29
mouseEvent.CLICK:
http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/events/MouseEvent.html#CLICK
Hope this helps!
Love,
Boletus edulis

Similar Messages

  • Selecting an object that is behind another object

    Is there a keyboard command for selecting objects that are behind other objects in the stacking order? or is the only way to select them from layers menu? i'm always selecting the object that is on top of what I want to select, and wonder if there is a keyboard command to "click down" to the object i'm aiming for
    thanks!

    Scot18 wrote:
    I've tried copying this idea by giving the car class a data value reference to a person class, but when I dereference the reference using an in place loop and call a method on it I get data from the moment the reference was made and not the current data of the person class.
    Yes, LVOOP uses value based references, and when you split the wire to write the owner you created a data copy. The function you're after requires you do use a DVR for all class functions in which case you'll get reference based OOP, which is more familiar coming from text based OOP.
    It just so happens that G# uses that approach, take a look at it.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • How to display an object that links to another object

    I am trying to find out how display 2 objects (box's) in a frame and connect them with a line so if I move one box the line stays connected.
    Can anyone point point in the direction of any tutorials or example.
    Eventually I plan to change these box's to be a database table containing attributes and the link representing the fk.

    Eric_Davidson wrote:
    I am trying to find out how display 2 objects (box's) in a frame and connect them with a line so if I move one box the line stays connected.
    Can anyone point point in the direction of any tutorials or example.
    Eventually I plan to change these box's to be a database table containing attributes and the link representing the fk.Which part do you need help with? The drawing of the boxes, the handling of the GUI, the dragging, etc?
    Do you have any code started?

  • What are the objects that goes inactive after Transportation

    Hi,
    Usually,What are the objects that goes inactive after Transportation?
    If you have any  links for tranportation ,please send.?
    Regards.,
    Naresh.

    HI,
    the main reason for most of the transports to fail is:
    1)Transporting each and every object in the same transport request.
    Ideally,
    u2022The Infobjects should be transported first in a separate request.
    u2022Then the Data source and the Info providers (Cube, ODS, Data source and Multiproviders) together in a separate request.
    u2022At the end the transformations and the DTPu2019s in an another separate request.
    If the above mention sequence is followed while transporting the transport failures can be avoided.
    2)Also when a change is made to an ODS (I object added or deleted) it should again be transported along with the transformation but in separate request.
    I.e. the ODS 1st and the transformation.
    Hope this helps.
    regards,
    mahesh.

  • How to release a object that is set to obselete?

    Hi All,
    In my development system i need to develop a workflow using BUS1007/BUS1008.
    But it is set to obselete.
    Can anyone tell me How to release a object that is set to obselete?
    Thanks and regards,
    Raj

    Hello,
    As per the documentation on Business object builder on help.sap.com,
    Obsolete object types/object type components show that the functions are being discontinued and replaced with other functions that are incompatible.
    Object types or object type components being discontinued and designated by SAP as obsolete are still supported in the change release and the next release. The old functions and the new functions are available in parallel for this period.
    Incompatible changes are included by SAP in a central release note.
    So, it is better that you look out for other business objects. I am not sure, but I think you can use the BO KNA1 in place of 'BUS1007' and LFA1 for BUS1008 as the key fields are same for both the business objects.
    Hope this will help.
    Regards,
    Samson

  • How to move the objects from Infoarea to another?

    Hi,
    How to move the objects from Infoarea to another?
    Thanx in advance,
    Ravi.

    Hi ..
    If the drag & drop functionality is enabled you can drag the catalog and drop it in another InfoArea just as you do with files on your PC.
    The other procedure is Use the right mouse button to create an InfoObject catalog in the InfoArea. If you want to make a copy of an existing InfoObject catalog, specify a reference InfoObject catalog.
    and check this  thread
    Re: Info Object Mapping to Info Area

  • How do I unlink objects that I want to delete?

    Hi,
    If I want to delete video that I used in a project and it is linked to other stuff in the project--How do I delete the video without deleting the other things that it is linked to? Or how do I unlink them?
    A warning comes up that reads;
    +One or more objects that use this media will also be deleted. Are you sure you want to delete the media used for these objects?+
    -marco

    Marco Giordani1 wrote:
    Also I don't understand why you have me in step 3 Clear the video from the dropzone then in step 4 you have me select it again from the drop down tab in Properties>Media?
    I didn't understand it either. I was just going through and trying a bunch of things until I was able to delete the media and not the replace clip.
    I've been back through this a couple of times, and I've discovered the procedure, but again, I'm not clear why it works this way. To be honest, you're better off building a workflow like Certified mentioned. Templates are the way to go here. But in case you've already put yourself in this position, you'll need a way out before you can move on. In that case, this should be a useful workaround.
    Add Replace 1 to Canvas. Change to Drop Zone. Drag "Video 1" over drop zone to add. In the Image Tab of the Inspector, click the Clear button to remove the video from the drop zone.
    In the Media Tab, select the clip and hit delete. You'll get the message which will show all the additional media that will be deleted also. Hit delete again. Everything will go away.
    Hit CMD+Z to undo. Hit Delete again. Now only the video shows up in the warning message. Click the Delete button and the video goes away and everything else stays.
    Andy

  • If an internal ID is changed for the Work Repository how does it affect objects that are already in it?  Will they continue to run or do you need to cycle the ODI agent?

    I was having trouble migrating the Master and Work repositories from my QA to my Prod environment.  I was getting an error message that the internal id's were alike so I changed the internal id in my Prod Master repository.  Then I tried to migrate the Work repository and was getting a similar error.  I did a search on the internet for the error message and it recommended that I renumber the Work repository so I did.    My concern now is how these changes affect the objects that are already in the repositories?  Will those objects continue to run?  Also do these changes take affect immediately or do you need to cycle the ODI agent?

    Well I cannot completely assure you but so far I have not faced any issues after a renumber. It will affect the exist object only when you have imported the object in synonym_update mode. I believe you have the daily backup of your production repository.
    Bhabani
    http://dwteam.in

  • How do I preview objects that are outside of artboard.

    Hello,
    When I placed an illustrator file in Indesign, I would select command+D > select "Show Import Options" and we have a preview of the image. On some occasions, the preview will include all extraneous objects that are outside of the artboard and other times, it will display only the image within the artboard or bounding box. (Please see attached samples)
    Does anyone know the reason behind this?
    Thanks,
    Sutagami

    The only way I can reproduce what you are experiencing is if I save out as an .eps and am not mindful of the Artboard check box on the save dialog. If you deselect this check box you will get all of the file content, if you select this check box you will only get the designated Artboard bounding area. But you never said what file format your are saving or what version of Illustrator you are using. I have to assume you are in CS4.

  • How to move an object that is in many layers in to its own layer?

    Hello,
    I created a catalog where I have used layers but at that time didn't know that I will be creating another catalog of the same products for our wholesalers.  Anyway, now I have an object (QR Code) that is in many layers and I need to move it to its own layer where I can turn it on or off as needed. I have already created the layer but now I am not sure the quickest way to move the (QR code). I really need to learn how to use GREP in find and change, I sure it is possible with GREP but don't know the string to use.
    I would appreciate any kind of help I can get.
    Thanks,
    Omar

    Am I crazy, or is there a "Paste Remembers Layers" checkbox hidden somewhere in the preferences? Because when I have a bunch of objects that are all on separate layers, I simply Copy, Delete, and Paste in Place - and then they're all on one layer.
    I'm not crazy! It's in the options on the Layers panel. And it seems to be off by default.

  • How to delete webintelligence objects that are not viewed

    Hi,
    I need to find a way to delete the objects that have not been viewed in the last 12 months. We are using Business Objects XI 3.1 here. I've already looked for this feature around a lot of sites and foruns, but I still have not found anything.
    We have over than 2.500 webintelligence objetcs in our environment. A lot of them are useless. So we would like to clean up the reports that are not viewed by the users. Maybe we would use this feature one time every year.
    Thanks in advance,
    Gustavo Borges

    We decided to clean up the old documents taking a look to their last modified date. It'll be easier and we won't loose important documents. That is gonna be enough for us.
    Thanks,
    Gustavo Borges

  • On the new IMOVIE, How do you do voice overs and how do you add a video going while another video is going? HELP.

    I recently got a MAC BOOK PRO! The newest version and I make beauty videos, so I need to edit my videos, how do you do voice overs on Imovie? It doesnt give me an option to do a voice over.  And how do you have a video going and then in the corner have another one going? I Have the IMOVIE app on my phone and I know how to do all of that but it doesnt let me do it on my laptop.  Please help! Thank you

    Voice over:
    http://help.apple.com/imovie/mac/10.0/#mov91a895a64
    Picture-in-Picture:
    http://help.apple.com/imovie/mac/10.0/#mova1aaa682b
    Matt

  • Motion Tracking An Object That Goes Out Of The Sceen?

    Hi i am quite new to after effects i have only been using it for a few months im using after effects cs4,here is my problem i am trying to track a picture frame but when the picture goes out of the scene,the motion tracking path just goes crazy. It works great when the picture frame is in the scene
    example
    the camera is pointing straight at the picture frame, works perfect, but when the camera turns right , and the picture frame is no longer in the scene, my track path just goes wrong.
    How do i stop this?
    Do i have to make a seperate motion tracking null object? or is it something to do with backwards tracking?
    Any help on this would be great i have serched youtube,adobe for the answer but i cannot find it anywhere
    Thanks
    Mike

    Yes, that's just how it is. AE has no way of knowing where those markers might be and even tracking points separately and in segments can only take you so far. You'll have much better luck trying such things with mochaAE, which comes with the main program. IUt assumes that all points would be part of a plane. If even that isn't enough, then probably 3D matchmoving tools like SynthEyes are your only option...
    Mylenium

  • How do I delete objects that only show up in outline view?

    I have hidden objects in a file that only show up in the outline view. It will not let me select them and it's making the file larger then it needs to be. Any ideas to be able to get rid of these unwanted objects? Thanks!

      There is nothing that is locked and it's only one layer. The normal view shows the ad as I need it but when I switch it to outline view there is a completely different ad stuck behind it, it will not let me select any of it to delete it and its making my file size way larger then needed. I tried to make a new file and move the normal ad over but it takes the entire thing with it. There has to be a way to get rid of that ad that's found its way in there somehow.

  • How to find the objects that are used for a particular BEx query

    Hi ,
    I am preparing the inventory for BEx queries. Means for a particular BEx query I want to know the correcsponding
    1. Selection screen variables
    2. Characteristics
    3. Restrcited, Calculated and normal key figures.
    I have checked all the BEx query related tabe but unable to find the proper relation between these tables to get the desired output.
    Can you help for table joins to get the output as mentioned above.
    Thanks in advance.
    Regards,
    Sai

    Hi,
    you want find the total information about query details use the T  CODE - RSRTQ.
    give the proper selection then execute.
    please find the doc.
    RSRTQ – Query Definition – Multipurpose T-Code on BEx Queries
    Thanks,
    Phani.

Maybe you are looking for

  • Sound card problem - This device cannot start. (Code

    hi all, here's my situation... i had a dell dimension 4400 that came with a sound blaster li've! value(wdm) sound card. i recently got a new motherboard/case etc. i transferred the sound card to my new system and i get a "This device cannot start. (C

  • Font problem in exchange account

    I use my Exchange account but some messages are displayed in completely unreadable font whereas they are sent by same person and all composed in the same font in browser. By the way messages are supposed to be in Russian but there s no other troubles

  • Site not showing responsively on mobile (viewport tag help?)

    I'm new to responsive design so bear with me... My site works responsively when I change the size of the browser window on a desktop, but on mobile it appears as a zoomed-out version. I tried several versions of the viewport meta tag to try and solve

  • Epson Artisan 810 and Snow Leopard and Photoshop....Print quality??

    I'm a little lost to be honest. I'm not sure where my problem is...Photoshop, Epson, or Snow Leopard I'm using Photoshop CS4 to edit my photos. I've constrained my cropping to designated print sizes, thus pixelation changes as well. For example to cr

  • Help! MAC OS X Lion says, "Disk damaged... cannot be repaired."

    I hope someone here can help me out with my issue... I successfully installed MAC OS X Lion to my desktop to transition to iCloud. I prodceeded to do the same on my MacBook Pro. However, after restarting my laptop as prompted upon the installation co