How can you make a movie clip zoom in on play?

I simply have a rectangle vector image of a landscape and I want it to zoom in when I play it...and I guess stop at a certain point. Not a clicking function or roll over, just when I start up my swf file or go to that specific scene I want it start zooming (gradually, not fast either). Please help me. Thank you!

Convert the image into a movieclip, give it an instance name, and look into using the Tween class to provide the gradually changes of the scaleX and scaleY values of whatever object you wish to zoom.
import fl.transitions.Tween;
import fl.transitions.easing.*;
var twX:Tween = new Tween(instanceName, "scaleX", Regular.easeIn, startValue, endValue, zoomSecs, true);
var twY:Tween = new Tween(instanceName, "scaleY", Regular.easeIn, startValue, endValue, zoomSecs, true);
The code above is written instructively more than literally.  Anything I've bolded you can/need to define.
Many people will recommend using third party tweening classes due to better performance and other reasons.  So you may want to look into them after you get this working.

Similar Messages

  • How do you make a movie clip face the mouse

    How to you make a movie clip rotate so it's always facing the
    mouse?

    thanks a lot! I got the code to work, I just modified it a
    bit.

  • How Can I make a movie on my iweb begin playing before it is fully loaded?

    OK, Forgive me in advance. I am a new "Mac Man". 5 days and counting. I just published a web site using iWeb 09. I have a 12 meg movie on the page. The movie doesn't begin playing until it fully loads (takes about 60 seconds). How can I make the video play as the rest of it loads. (like it does on Youtube)?
    Thanks in advance,
    Greg

    tip for a new mac man. the inspector is your friend.

  • How do you make a movie clip play in CS4

    Hello, I used Flash MX a long time ago (beginner level) then
    left it for years. I'm now using CS4 and am stuck. I have a stage
    with a movie clip placed onto it. I want to create a simple 'click
    to play' button so that the movie clip only plays on click of this
    button. Can someone please give me a step by step (idiot-proof)
    guide on how to do this please

    Cases that use to be _property in AS2 are now just property
    in AS3. So _x is x, _y is y, and _visible is visible. This should
    work:
    function showPlay(event:MouseEvent):void
    play_text.visible = true;
    pause_text.visible = false;

  • How can you make the iPod tell the diff between a movie and music video

    Greetings!
    How can you make iPod tell the difference between a Music Video and Movie? Everything I put up on the iPod falls into Movie. So is it something I have to do in iTunes?
    Thanks for the help!

    Rightclick the video in iTUnes, hit Get info then the "Options" tab. Beside kind you can set it to movie. music video. or TV show

  • How can i let a move clip complete his motion tween movement after dragging and dropping it

    hi how can i let a move clip complete his motion tween movement after dragging and dropping it
    i am using this code and there is a motion tween applies to the movie clip r_mc
    r_mc.addEventListener(MouseEvent.MOUSE_DOWN,fun); r_mc.addEventListener(MouseEvent.MOUSE_UP,fun2); function fun(event:MouseEvent):void { stop(); r_mc.startDrag();
    function fun2(event:MouseEvent):void {
    play(); r_mc.stopDrag();

    i have a simple .fla file wich contains MC that has
    a motion tween(its moving from the left to the right of the stage)
    this motion tween covers the whole time line (  there is only 50 frames in the time line)
    i mean in the frame 1 the MC appears in the left of the stage
    and in the frame 50 the MC appears in the right of the stage and there is a motion tween between them
    every thing till now working well
    i want to make that MC dragabble
    so when i drag the MC i will use stop()
    and when i drop it i will use play()
    but the problem is that the mc doesnt move and complete
    his motion tween movement when i drop it
    for example the MC will be in the middle of the stage in frame 25
    in this frame (25) i am draging the MC ,stoping the timeline,dropping the MC and resum playing the timeline again
    but the MC freezes in the middle of the stage and doesnt go to the right of the stageo until the flash loops and start from the frame 1 again
    here is the example wich i am worikng on
    http://www.mediafire.com/?ia47r4owha7sz8v
    thank u very much and sorry for my bad English

  • In imovie 09 can you make one continuous clip

    in imovie 09 can you make one continuous clip
    canu u download video in HDV to imovie 06 from a    SONY HDR-Fx 7 video camera as one clip

    No. iMovie 09 (and 11) is designed to import movies from camcorders. Every time it detects a start/stop it will make a different clip. They will be in chronlogical order, rather than edited order.
    If you still have iMovie 06, you can load the tape there as one continuous clip. Then EXPORT USING QUICKTIME choosing HDV as your codec. This will produce an MOV file that iMovie 09 or 11 can read, and which will be in the edited order.

  • How can I make my movies pro for mac work?

    How can I make my movies pro for mac work?
    I have downloaded it i click on the icon but I cant make it work

    Delete the app using this free utlity > Download AppCleaner for Mac
    Then re download the app using the same Apple ID it was originally purchased from. You won't be charged again.
    How to re download apps from the Mac App Store:
    Open the App Store. From the menu bar click Store > Sign In
    Click Purchases from the top of the App Store window.
    Select which apps you want to re download. Then right or control click where you see Installed  then click Install.
    If you still have problems, I located the app developer's website. Contact details for help here >   http://www.mymovies.dk/about.aspx

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • In iMovie 11, how can you cut/paste a clip that has subtitles and actually have the subtitles get cut/pasted. When I try, the subtitles disappear into the void and I have to do the subtitling all over again.

    In iMovie 11, how can you cut/paste a clip that has subtitles and actually have the subtitles get cut/pasted. When I try, the subtitles disappear into the void and I have to do the subtitling all over again.

    If you think this is a bug, you can report it here:
    Apple - Mac OS X - Feedback

  • How can you make your persona show on the top and bottom? Also can you make it bigger at the top to show more of the picture?

    How can you make your persona show on the top and bottom?
    Also can you make it bigger at the top to show more of the picture?

    Add extra empty toolbars if you want to see more of the persona.<br />
    You can create extra toolbars to get extra space via View > Toolbars > Customize<br />
    You have to put something on a toolbar (drag a Space item onto it) before closing the Customize window because empty toolbars are automatically removed.<br />
    See http://kb.mozillazine.org/Toolbar_customization

  • How can you upload a movie to I tunes then sync with Ipad2?

    how can you upload a movie to I tunes then sync with Ipad2?

    There are several options to choose from its either you will buy directly from itunes which go directly to movie. Another option is that convert first your movie to mpeg4 by using any converter software, then after converted drga the file (movie) to itunes library. Next thing you will do is to click your account (your ipad device) then look movie tabs then check sync movies.

  • Can you make a movie for more than 2 minutes on an ipad and save it on a flash drive

    Can you make a movie for more than two minutes on the ipad and sve it on a flash drive using windows XP

    Using Apple's camera connection kit, you can use a flash drive to IMPORT photos and videos. However, you can't EXPORT any type of file to the flash drive.
     Cheers, Tom

  • How can you import AVCHD movies using iMovie '11?

    How can you import AVCHD movies using iMovie '11?

    H264 is one example of a codec used in MPEG-4 video encoding. Windows Media is a codec. Sorenson is a codec. DVPRO is ...etc....
    Play a source video file and do a get info on it and tell me what the audio and video details are.

  • Premiere CS4 - How can you import QuickTime (.mov) videos and which settings for the sequence?

    Premiere CS4
    How can you import QuickTime (.mov) videos and which settings for the sequence?
    Please reply in plain English or if possible in German
    Greetings from Vienna, Peter

    I have not installed Quicktime.
    I got a few scenes (.mov) from a Canon Eos 70d.
    I want to create a short film (in Premiere CS4) with these scenes, mixed with photos and MP3 music.

Maybe you are looking for