Skewing a movie clip using 3D rotation tool

Check out the swf below.  I'm trying to skew the images as they approach the edges of the screen.  My goal is to create a 3D effect so the images appear to be falling back to a vanishing point.  Any suggestions?  

If you're using the timeline to animate the rotation instead of code just add in some frame scripts at the appropriate time to swap children. The easiest thing to do is to set a childs index to the top of the stack.
In a timeline script where you know, for example, image_5 is coming around and you want it to be in the front, you could do something like this:
// move image_5 to the top of the display list
carousel_mc.swapChildren(carousel_mc.image_5,carousel_mc.getChildAt(carousel_mc.numChildren - 1));
Not trying to make it overly complex but where you put the code matters. If you put it inside your carousel itself (I'm loosely calling carousel_mc in my examples) then you'd replace "carousel_mc" with "this", e.g.:
this.swapChildren(image_5,this.getChildAt(this.numChildren - 1));
Sprinkle those on the timeline where you know any specific image is supposed to be front facing.
If you're rotating the carousel via code then you'll just need to pay attention to the rotation property and at specific points run this same type of code to position the image stack correctly.

Similar Messages

  • Problem with layer ordering when using 3D rotation tool

    Hello, I really hoping that someone might have an answer for this. I am trying to rotate a bunch of movie clips around the X axis (I think its the X in a sort of wheel. Basically what I did is I create a 9-sided polygon, made it a movie clip and then added 9 movie clips 3D rotated perpendicular to each 'face' of the polygon. Then, I made the entire thing a movie clip and 3D rotated the movie clip so that the perpendicular faces are facing forward, and then using 3D rotation to cause it spin, like the wheel on the Price is Right or a rollsign. However when the movie clips that are in back are rotated around the front, the movie clips that were in the front reappear, though backwards. I am guessing this is because they are higher up in the layer order. Here are screenshots of what I am describing: The "Success" should be in the back with a different one in the front, but it is showing up front, though upside down and backwards as it should be in the back. I am using CS5, AS3 and working mainly on the timeline as my coding skills for animation are not that good. Any suggestions?

    If you're using the timeline to animate the rotation instead of code just add in some frame scripts at the appropriate time to swap children. The easiest thing to do is to set a childs index to the top of the stack.
    In a timeline script where you know, for example, image_5 is coming around and you want it to be in the front, you could do something like this:
    // move image_5 to the top of the display list
    carousel_mc.swapChildren(carousel_mc.image_5,carousel_mc.getChildAt(carousel_mc.numChildren - 1));
    Not trying to make it overly complex but where you put the code matters. If you put it inside your carousel itself (I'm loosely calling carousel_mc in my examples) then you'd replace "carousel_mc" with "this", e.g.:
    this.swapChildren(image_5,this.getChildAt(this.numChildren - 1));
    Sprinkle those on the timeline where you know any specific image is supposed to be front facing.
    If you're rotating the carousel via code then you'll just need to pay attention to the rotation property and at specific points run this same type of code to position the image stack correctly.

  • Using the rotate tool and hand tool at the same time in CS6

    When using the rotate tool, you used to be able to use the hand tool even when the Rotate dialogue box was up. Is there a way to get that back?
    I make Mandalas (http://www.behance.net/gallery/Mandala/2700497) and work from the center out. This poster is 18"x24" so once I start to get to the outer edge, I'm zoomed into the center at 6400% so I can get my crosshairs as precise as I can, then enter a number (45 degrees, 20 degrees, etc.). Clicking Preview helps, but if you're zoomed in and the object is out of view, you have to guess where it's going. In CS5, you could press down the space bar and use the Hand Tool even while the dialog box was up. Is there a fix for this? (Sorry if this doesn't make sense...it's kind of hard to explain over a forum.)

    TBamber wrote:
    When using the rotate tool, you used to be able to use the hand tool even when the Rotate dialogue box was up. ....
    CS5 on Windows 7.
    I can use the hand tool while pressing the Space bar while another tool including the Rotate tool is current. But I can not use the Hand tool in anyway if I'm in the process of using the Rotate tool by holding down the mouse button or dragging with it.
    While the Rotate dialog is displayed I can not do anything outside of it in any way.
    I can use the scroll wheel on the mouse to scroll the view up or down vertically while using any of the tools including the Rotate tool but not when a tool dialog is open.
    I'm curious if others experience different behavior on a Windows system .

  • Using the rotate tool in CS6

    Hi,
    I am trying to use the rotate tool in CS6, I have created a petal, I then use the rotate tool to reposition the axis rotation pint, then when I double click to bring up the dialog box or if i go Object>Transform>Rotate the Axis point shifts back to the centre of the petal.
    I can only assume that this is a bug.
    Any help please
    Many thanks

    Pleased to be of assistance :-)
    By the way, double-click on the Rotate tool will rotate the object around its centre via the dialogue box.
    Maybe that was confusing you.

  • How to control movie clips using mause scroller...?

    ....please look
    http://www.nagaoka-id.ac.jp/gallery/gallery.html
    ...how to control movie clips using mause scroller...?

    Hi Ldavinci, I have noticed your posts on that particular
    site before. Just chiming in here... don't be afraid of Flash Help
    menu. There's a wealth of information there and I've found it much
    faster than waiting for a response from the forum. Then if it still
    doesn't make sense, at least you have a basic idea of specifics to
    ask.
    If you search for mouse wheel, you'll see an example under
    the Actionscript 2.0 Language Reference on this topic. That said,
    here's the example:

  • How to flip a movie clip using actionscript

    I have a movie clip on the stage facing one way (--->) how
    can I make it face the other way (<---) by flipping it over (not
    rotating it) using action script 3?

    var flipTween:Tween = new Tween(mc, "scaleX", Regular.easeIn,
    mc.scaleX, mc.scaleX*(-1), 1, true);
    should do it I think.

  • How do I create a play button for movie clip using AS3

    Hello.
    Bit new to this and have been searching the adobe forums and google. I am trying to create a button that will play an imported MovieClip.
    I have a movie clip that I've imported into it's own layer (Layer1) Frame 1.  I've given the MovieClip an instance name of foundationMovie.
    I've created a button and have that on its own layer(Layer2) above layer1, it is also in Frame 1.
    I've added a
    stop (); action to layer2
    The video is not set to autoplay.
    I want the video to start playing when the viewer clicks the button.  I know I've got to put some kind of event listener using AS3 in my timeline somewhere.
    I've found some code and I've been trying to work with it.  I'm sure I've mutilated it beyond usability but this is what I've got.
    stop ();
    player.addEventListener(MouseEvent.CLICK,play);
    function play(event:MouseEvent)
    gotoAndPlay("foundationMovie");
    If someone could point me the right direction or help me with my code I would really appreciate it.  Thanks.

    First, you need to clear up what you are working with... a movieclip and a video are usually entirely different things.
    Next, your code may get you started on your way with some changes.   You shouldn't use "play" as a function name due to there already being a play() method/function in Flash.
    If the movieclip is a movieclip and has an instance name of "foundationMovie", and your button has an instance name of "player" then the following adjusted code would normally work...
    stop ();
    player.addEventListener(MouseEvent.CLICK,playMovie);
    function playMovie(event:MouseEvent)
         foundationMovie.play();

  • Lost ability to move clips using keyboard -and fix

    So suddenly the other day, I could no longer move clips in a timeline using the keyboard. I would select a clip in the timeline and hit (for example) +40 to move the clip down the timeline 40 frames. Didn't matter whether I used the numeric keypad or the keys on the main part of the keyboard. Didn't get any error message or beep. When I hit the plus (or minus key) the little move window would open, I would enter numbers and hit either enter or return. And nothing would happen. I could click and drag on a clip in the timeline without any problems.
    I tried deleting preferences but it didn't help.
    Solution: created new sequence, and copied the contents of the problem sequence to the new sequence and problem solved.

    Thanks for the post Michael.
    I'm curious, you didn't by any chance move up to QT 7.6 did you?

  • Formats for movie clip used in PSE 4 slide show

    Still finding it difficult to find documentation of what formats are supported for using digital camera movie clips in PSE 4 slide show.
    The movie file from my Canon camera is 640 x 480, 30 fps Motion JPEG and has a .AVI extension. I am able to use it "as is" in a PSE 4 slide show. However, sometimes I need to trim the movie clip in Windows Movie Maker 2 in order to keep only the best part.
    My question is what parameters can I specify to save my movie clip in Movie Maker 2 so that I can use it as a movie clip in a Photoshop Elements 4 slide show that will be saved as a WMV file?
    Barb O

    Karin Sue,
    >Also, are the projects saved in a folder somewhere, or only as part of the Catalog?"
    The definition of the "project", which is the "Creation" in Organizer terms is saved only in the Catalog.
    >If you publish your creation as a pdf or wmv they are saved in the folder you designate. Once published, I don't believe there is any way to edit. If you save the creation, you can go back and edit and republish if you like.
    Yes, the WMV or PDF file is saved in the folder that you designate. You are correct that if you save the Creation, you can go back and re-edit. When you Save the Creation gets a thumbnail within the Organizer photo well and you can click on the thumbnail to go back in to the Creation process make modifications and save a new WMV or PDF file.
    Note: that the Save window documents that the PDF choice does not support some options such as Pan and zoom, videos, and certain transitiions.
    Barb O

  • Attach movie clips using seperate functions

    I'm having a little trouble with the following code. I'm
    calling two functions: init() and inittwo() to attach some movie
    clips to the stage. If I comment one of them out, the other works
    fine and the movement is okay. But as it is, only the "cloud" movie
    clips are being attached. I need for the clips in the "dreamarray"
    to be attached, and then for the "clouds" to be attached with a
    second function. I'm probably not going about this the right way,
    but I could sure use some help!
    It would also be cool if I could attach the dreams at set "x"
    values instead of random distribution. I'm not sure how to set a
    seperate x value for each item in the array being attached.
    var numClouds:Number = 10;
    var fl:Number = 250;
    var gravity:Number = .5;
    var vx:Number = 0;
    var vy:Number = 0;
    var vz:Number = 0;
    var friction:Number = .97;
    var vpX:Number = Stage.width / 2;
    var vpY:Number = Stage.height / 2;
    var vpY:Number = 400;
    var dreamarray:Array = new Array();
    dreamarray[0] = "dreamone";
    dreamarray[1] = "dreamtwo";
    dreamarray[2] = "dreamthree";
    init();
    inittwo();
    function init() {
    for (var i:Number = 0; i<dreamarray.length; i++) {
    var dream:MovieClip = attachMovie(dreamarray
    , "dreamarray" + i, i);
    //var dream:MovieClip = attachMovie("dreamone", "dreamone" +
    i, i);
    dream.x = Math.random() * 1600 - 800;
    dream.y = 50;
    dream.z = Math.random() * 800;
    //trace("functioncall");
    //tree.x = Math.random() * 2000 - 1000;
    //tree.y = 50;
    //tree.z = Math.random() * 10000;
    function inittwo() {
    for (var j:Number = 0; j<numClouds; j++) {
    var cloud:MovieClip = attachMovie("cloud", "cloud" + j, j);
    //tree.x = 400;
    cloud.x = Math.random() * 1600 - 800;
    cloud.y = 50;
    cloud.z = Math.random() * 800;
    function onEnterFrame():Void {
    if(Key.isDown(Key.UP))
    vz -= 1;
    else if(Key.isDown(Key.DOWN))
    vz += 1;
    if(Key.isDown(Key.LEFT))
    vx += 1;
    else if(Key.isDown(Key.RIGHT))
    vx -= 1;
    if(Key.isDown(Key.SPACE))
    vy += 1;
    vy -= gravity;
    vx *= friction;
    vy *= friction;
    vz *= friction;
    for (var i:Number=0;i<dreamarray.length;i++) {
    //i think there is a error here
    var dream:MovieClip = this["dreamarray" +i];
    dream.x += vx;
    dream.y += vy;
    dream.z += vz;
    if(dream.y < 200)
    dream.y = 200;
    vy = 0;
    if (dream.z <= -fl) {
    dream.z += 1000;
    else if(dream.z > 1000 - fl)
    dream.z -= 1000;
    var scale:Number = fl / (fl + dream.z);
    dream._xscale = dream._yscale = scale*100;
    dream._x = vpX + dream.x * scale/2;
    dream._y = vpY + dream.y * scale/2;
    //dream._x = dream.x * scale/2;
    dream._alpha = scale * 60 + 40;
    dream.swapDepths(-dream.z);
    for (var j:Number=0;j<numClouds;j++) {
    var cloud:MovieClip = this["cloud" + j];
    cloud.x += vx;
    cloud.y += vy;
    cloud.z += vz;
    if(cloud.y < 50)
    cloud.y = 50;
    vy = 0;
    if (cloud.z <= -fl) {
    cloud.z += 500;
    else if(cloud.z > 10000 - fl)
    cloud.z -= 10000;
    var scale:Number = fl / (fl + cloud.z);
    cloud._xscale = cloud._yscale=scale*200;
    cloud._x = vpX + cloud.x * scale;
    cloud._y = vpY + cloud.y * scale;
    cloud._alpha = scale * 60 + 40;
    cloud.swapDepths(-cloud.z);

    Hi Ive just taken a very quick look at your code and Ive
    noticed at least one or two mistakes.
    you are calling:
    init();
    inittwo();
    before the actual functions have been declared.
    Flash works from top to bottom when actioning code so by
    calling:
    init();
    inittwo();
    bofore the function has been declared and this will do
    nothing as it cannot find the functions to call as they have been
    declared AFTER the function calls.
    The best thing to do is put any calls right at the bottom and
    then you will know everything is ready to be triggered.

  • How do i mute the sound in a movie clip using action script?

    assuming my movie clip is named "movie"

    You should use SoundTranfrom object and soundTransform property of your movieClip.
    At first you have to instantiate soundTransform object and assign value of 1 to it's volume property:
    var soundTr:SoundTransform = new SoundTransform();
    soundTr.volume = 1;
    Than a simple toggle function, which changes volume property of soundTr and assigns the object soundTr to your movie's soundTransform property.
    function toggleMute():void
        if(soundTr.volume == 1)
            soundTr.volume = 0;
        }else{
            soundTr.volume = 1;
        movie.soundTransform = soundTr;
    Regards,
    gc

  • Creating instances of a movie clip using Actionscript

    I have a script that pulls a specified amount of Movie clips
    from the library to the stage, and that part of my script works. I
    want to add a button that will stop the movie clips but the Movie
    clips do not have instance names since they were pulled onto the
    stage from my script. I was wondering if anyone had an idea on how
    I can do this.

    stop();
    var _sixSidedDie:Dice;
    chooseDice_btn.addEventListener(MouseEvent.CLICK, onClick1);
    random_mc.addEventListener(MouseEvent.CLICK, onClick2);
    random_mc.buttonMode = true;
    function onClick1(event:MouseEvent):void
    var diceTotal:Number = parseInt(totalDice_cb.text);
    gotoAndStop(2);
    for(var i:Number = 0; i < diceTotal; i++)
    _sixSidedDie = new Dice();
    _sixSidedDie.label = "SixDie" + i;
    _sixSidedDie.name = "sixDie" + i;
    addChild(_sixSidedDie);
    if(i == 0)
    _sixSidedDie.frame = 2;
    _sixSidedDie.x = 96;
    _sixSidedDie.y = 115.7;
    else if(0 < i && i < 5)
    _sixSidedDie.frame = 2;
    _sixSidedDie.x = i * 168 + 96;
    _sixSidedDie.y = 115.7;
    else if(4 < i && i < 10)
    _sixSidedDie.frame = 2;
    _sixSidedDie.x = (i - 5) * 168 + 96;
    _sixSidedDie.y = 276;
    else if(9 < i && i < 15)
    _sixSidedDie.frame = 2;
    _sixSidedDie.x = (i - 10) * 168 + 96;
    _sixSidedDie.y = 438;
    else if(14 < i && i < 20)
    _sixSidedDie.frame = 2;
    _sixSidedDie.x = (i - 15) * 168 + 96;
    _sixSidedDie.y = 598;
    function onClick2(event:MouseEvent):void
    event.target.sixDie0.gotoAndStop(Math.ceil(Math.random() *
    6));

  • Trying to connect buttons to a movie clip

    Hi all,
    I need step by step instruction on how to attech control buttons to a movie clip.
    I imported the .MOV clip (a 3D rotation) into the library, and I would like to be able to control where the rotation stops, by use of a slider or clicking a button. Can some one please tell me how to do this in an easy way if possible?
    Any help would be greatly appreciated so much.
    Many thanks,

    drag your movieclip to the stage and assign it an instance name, say movMC.  create your button and give it an instance name, say btn.  you can then use:
    btn.onRelease=function(){
    movMC.gotoAndStop(your frame label or number here);

  • How can I make the Instance name the same as the name of the Movie clip in an animation.

    Hi, I am an animator for a small game project and I have this really big problem. Even though I used flash for animation for a long time I am a newbie when it comes to something technical. I just received a request to make every movie clip that I use  to have a consistent <Instance name> in every frame of the animation. Only if they told me this earlier... Is there an easier way to make the <Instance name> the same as the name of the Movie clip used other than manually entering it. I have 16 characters with 12 body parts with 20 animations each with about 6-7 frames for each body part it will take me months and nightmares evey night to enter everything by hand. Please help me keep my sanity!
    I'm not sure if I explain correctly, so here is a picture:
    Thank you!

    Thank you for the fast answer! I found this video on jsfl functionality that deals with a similar problem, I am not a coder so it will take me some time to figure it out, but when I do I will probably post the answer here. Here is the video:

  • Question about scrolling and Movie Clips Loaded from the Library

    I hope I am posting this in the right forum.
    Ok, I'm using actionscript 2.0, and I am trying to make a scrolling image gallery. I have a movie clip with three layers. the first contains a movie clip used as a scroll bar. The second is a mask used to hide the overflow content, and the third contains movie clip thumbnails. when I click one of the thumbnails, it loads a symbol containing a larger version of the picture over top of the thumbnails on the same layer. My problem is, the large image is added at the very top of the movie clip, even when it is scrolled out of sight. I want it to appear in sight, so the user doesn't have to scroll all the way back up to the top to see it. This is annoying and confusing. Is there a way to do this?
    Here is the code I used to create the scroll effect (there is actually a whole lot more to the code but it is very long, so I am not adding it now. I will if it is needed though) 
    (Oh, and there is no text involved in this. I just got this code off a tutorial and I haven't changed the variable names yet)
        var scrollUpper:Number = 58;
        var scrollLower:Number = 309;
        var textLower:Number = 60;
        var textUpper:Number = -179;
        var scrollRange:Number = scrollLower - scrollUpper;
        var textRange:Number = textLower - textUpper;
        var startY:Number = imagesHolder_mc.thumbs_mc._y;
        function scroll(){
           var moved:Number = imagesHolder_mc.scroller_mc._y - scrollUpper;
           var pctMoved:Number = moved/scrollRange;
           var textMove:Number = pctMoved*textRange;
           imagesHolder_mc.thumbs_mc._y = textLower - textMove;
        imagesHolder_mc.scroller_mc.onPress = function(){
           this.startDrag(false,this._x,scrollUpper,this._x,scrollLower);
           this.onMouseMove = scroll;
        imagesHolder_mc.scroller_mc.onRelease = scroller_mc.onReleaseOutside = function(){
           this.stopDrag();
           this.onMouseMove = null}

    Thanks for your reply. I'll try to explain it better. I have a long, vertically scrolling movie clip. This movie clip contains lots of thumbnails. When I click a thumbnail, the full sized image is loaded from the library and displayed within the same movie clip. when I click the full size movie clip, it disappears again, and I can click another thumbnail to display another full size image. So I'm not just adding more and more stuff to the gallery if that's what you were thinking. I'm just clicking thumbnails to display the full size image so I can look at it, closing it, and moving on.
    But the full sized image is fixed at the very top of the scrolling movie clip, so if I click a thumbnail at the very bottom, I have to scroll all the way back up to the top to see the full size image. I just want the full size image to appear on screen no matter how far down I have scrolled to click a thumbnail.
    I made my basic gallery useing this tutorial:
    http://flashexplained.com/actionscript/making-the-ultimate-dynamic-image-gallery-in-flash- 8/
    if you want to take a look at that, to get an idea of what I'm talking about.
    Now I'm just trying to add some scrolling functionality, which wasn't included, but I don't really understand actionscript well enough to do this easily on my own.
    Sorry for the long reply. I hope this is clearer.

Maybe you are looking for

  • 10.6 will not play entire movie or tv show

    Wintel Box has the movies - running iTunes 10.6 3 AppleTVs can not play an entire movie ( hosted on either a MacBook Pro 10.7 running iTunes 10.6 nor a Windows 7 Desktop running 10.6 ) Either Home Sharing back to either computer running 10.6 will pla

  • RNIF Service Header data

    Hi experts,     Can somebody help me in finding how to get the RNIF Service Header data in XI, when i get a message from a RNIF compliant system? Regards, Ravi

  • COPA - Operating Concern

    I seem to have accidently partially activated the S_AL operating concern which in turn created additional fields in structures ACCTSD and COPAFIELDS, this was all done in our Dev client.  Our Dev client is now not in line with our QA and Prod clients

  • While executing method getting error

    Hai i written method and and executed i got the error like as follow see in that Date is assigning CHAR. but not like happend , i not used any CHAR type so tell me what is reason behind that . "SELECT * FROM "TASK_DETAILS" WHERE "TASK_RECEIPT_DATE" =

  • Print options in Financial Reports

    I build a report grid with lots of income statement accounts (10 pages) in rows and 2 different entities in columns. I want to print the report completed by each entity, that means all 10 pages for the first entity in column A and afterwards the 10 p