Programmed zoom

I have to create an animation involving a big fast zoom with a little rotation and animating it on the timeline just doesn't cut it.
I start with state 1 (see attached file state11.jpg) where there is an animation and then I want a fast smooth zoom until I reach State 2 (see attached file state2.jpg).
In the first state the "map" occupies the entire screen, but when it reaches state 2 the map is inside a mask and the other elements will start appearing.
Can anyone teach me how to create this zoom smoothly with actionscript? I am really lost here and I know somethings about actionscript but I just cannot do this and my timing is today...

I have managed to create more or less what I want. Very happy with this since I have never used imported classes.
The Zoom is working fine. My only problem now is that I have a mask that needs to be animated along with the rest and the mask animation is not working. And When the movieClips reach their final value I want the timeline to continue, and I have no idea how to do that!
I have attached the code for you to see if I am doing anything wrong about the Mask.
And if you could help me with jumping ahead in the timeline when the tweens finish ...
// CODE
stop();
import mx.transitions.Tween;
import mx.transitions.easing.Regular;
// Set Mask for the map
state1.cacheAsBitmap = true;
maskMC.cacheAsBitmap = true;
state1.setMask(maskMC);
// Tween variables
var twContent;   // the Circle movieclip
var zoomContentX;    // Circle x Scale
var zoomContentY;    // Circle y Scale
var alphaContent; // Circle alpha
var twBK;        // Map piece
var zoomBKX;    // Map x scale
var zoomBKY;    // Map y scale
var alphaBK;        // Set transparent Map
var zoomMaskX;        //Set Mask x Scale
var zoomMaskY;     //Set Mask y Scale
// Final variables
var mcFinalX =  content1._x;    // initialized to its current value
var mcFinalZoom = content1._xscale = content1._yscale;
var mcFinalAlpha = content1._alpha;
var mapFinalX = state1._x;
var mapFinalZoom = state1._xscale = state1._yscale;
var mapFinalAlpha = state1._alpha;
var maskFinalZoom = maskMC._xscale = maskMC._yscale;
function moveMovies(){
    twContent = new Tween(content1, "_x", Regular.easeOut, content1._x, mcFinalX, 0.5, true);
    zoomContentX = new Tween(content1, "_xscale", Regular.easeOut, content1._xscale, mcFinalZoom, 0.5, true);
    zoomContentY = new Tween(content1, "_yscale", Regular.easeOut, content1._yscale, mcFinalZoom, 0.5, true);
    alphaContent = new Tween(content1, "_alpha", Regular.easeOut, content1._alpha, mcFinalAlpha, 0.5, true);
    twBK = new Tween(state1, "_x", Regular.easeOut, state1._x, mapFinalX, 0.5, true);
    zoomBKX = new Tween(state1, "_xscale", Regular.easeOut, state1._xscale, mapFinalZoom, 0.5, true);
    zoomBKY = new Tween(state1, "_yscale", Regular.easeOut, state1._yscale, mapFinalZoom, 0.5, true);
    alphaBK = new Tween(state1, "_alpha", Regular.easeOut, state1._alpha, mapFinalAlpha, 0.5, true);
    zoomMaskX = new Tween(maskMC, "_xscale", Regular.easeOut, maskMC._xscale, maskFinalZoom, 0.5, true);
    zoomMaskY = new Tween(maskMC, "_yxscale", Regular.easeOut, maskMC._yscale, maskFinalZoom, 0.5, true);
// set final values
state1.onRelease = function(){
    mcFinalX = 588;
    mcFinalZoom = 100;
    mcFinalAlpha = 100;
    mapFinalX = 420;
    mapFinalZoom = 400;
    mapFinalAlpha = 0;
    maskFinalZoom = 100;
    moveMovies();

Similar Messages

  • FEATURE REQUEST: Independently zoom page size and font size

    Firefox lets me zoom the page in and out, which is great, but usually useless. The problem I usually have is that font is the right size, but the text doesn't all fit in the window. What Firefox needs is a way to independently zoom text and page size. Then, I could fit all of the text in the window without making the text microscopic. Here's how it would work: CTRL+- ZOOMS JUST THE PAGE SIZE. The text size would remain the same. CTRL-SHIFT+- ZOOMS JUST THE TEXT. The page size would remain the same.
    I know this is possible. The fact that Firefox can zoom the text only without affecting the page size is evidence of that. Firefox is always looking for good ideas that have never been done before. Well, this is one of them. Do it, and we would love you all forever!

    Web pages with a fixed width layout will always be a problem for any zoom feature. Assuming Firefox wants to adjust the layout so it can't exceed the width of the window, should it just do a proportional adjustment of widths or try to keep sidebars the same while reducing a main area, or wrap a sidebar to the bottom of the content (as though it were a floated element), etc., etc. Maybe the experience of programming zoom on mobile browsers will feed back some learning to desktop browsers, but UI designers have a long way to go there as well.
    In the short run, maybe something like the [https://addons.mozilla.org/en-us/firefox/addon/readability/ Readability extension] will help tame those unruly layouts?

  • Is there a zoom SLIDER anywhere in Lightroom 5?

    When developing photos, I want to be able to more gradually zoom in and out. Am I missing where there is a zoom SLIDER in Lightroom 5? (The stepped zoom is driving me crazy -- it's not subtle enough!)
    Thanks!
    C.H.

    But it just cycles through the programmed zoom ratios.
    True. No smooth zoom function.
    But hints-
    Use mouse to click on the Navigator panel -"Fit" then a zoom ratio eg. "1:1". Lightroom remembers these "Last TWO" selections and will toggle between them when you click on the image in Loupe view. One click to 1:1, one click back to Fit.  The Spacebar will also toggle between these two 'Last used' settings.
    I have read that CTRL+[+]  or CTRL+[-] will zoom in or out- but it doesn't work at all on my system.
    'CTRL+mouse scroll wheel'  will zoom, but only cycles through the preset ratios as Jim Hess mentions above.

  • Java zoom library

    I wrote a zoom library in Java.
    A simple demo can be found here:
    http://www.activejoy.com/download/programming/zoom/demo.html
    The library can be downloaded from:
    http://www.activejoy.com/drupal/?q=node/21
    I would like to hear comments and suggestions from you :)
    Thanks!

    hi I've not downloaded the library. I've seen the code but. If u can take a bufferedImage , zoom it to a given value and return the zoomed bufferedImage, It would be helpful rather than, forcing us to use your panel.
    U can give greater flexibility in such a way. Do tell me if u've done something like that. I myself would be interested in having it.
    thank u

  • The problem I have since I upgraded to Mavericks version 10.9.1 The problem appears only with Mail not with other programs, not even with my browser. When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command   to e

    the problem I have since I upgraded to Mavericks version 10.9.1
    The problem appears only with Mail not with other programs, not even with my browser.
    When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command + to enlarge the text, although I can reduce it with Command -.
    As I have a problem with my eyes, This is a serious matter for me.
    When I write an e-mail, if I select text and press Command +, it just displaces the text to the right.
    Now, my husband has a USB keyboard. If he connects it to my computer, his regular Command + does not work either, but  he uses the extended keyboard, then it works. Unfortunately, he needs it for a musical application which does not work with a wireless keyboard.

    Firefox 3.6.4 and 3.6.6 use a process called, "plugin-container.exe" which was using up most of my CPU when I opened up multiple tabs that contained Adobe Flash files, and caused Firefox to lock up.
    My solution was to use Firefox 3.5.10 which you can get from the Mozilla website at [http://www.mozilla.com/en-US/firefox/all-older.html]
    I am using Adobe Flash 10.1.53.64 without any problem in this version of Firefox. Check the release notes, I believe it contains all the latest security fixes in "Firefox 3.6.4".
    Hopefully, they will fix Firefox 3.6 in the next version (e.g. Firefox 3.6.7), until then you should probably use "Firefox 3.5.10".

  • I imported a video I make in another program and I played it back in the video editor and I like the pan and zoom that was added by the program how do I save a copy with the effect of Premiere elements 12

    I imported a video I make in movie maker program and I played it back in the premiere video editor and I like the pan and zoom that was added by the program how do I save a copy with the effect of Premiere elements 12
    all I did was played it back how do I save that and make a new version of the video beacause when I save a copy the effect look I was trying to save was not there.
    Rodney
    [personal information removed... Mod - https://forums.adobe.com/docs/DOC-3731]
    [This is an open forum, not Adobe support, please do not post personal information]
    [If you are posting using email, please turn your 'sig file' function OFF for posting]

    silkman1
    I would be glad for the opportunity to customize a Premiere Elements 12 answer to your Premiere Elements 12 issue.
    But, I want to make sure that we are together on the details. This is my understanding of what you have written. Please review and let me
    know if I am misinterpreting anything that you have written.
    You have a video created in Windows Movie Maker.
    How did you output the video from Windows Movie Maker...wmv or mp4, what was the frame size and frame rate of that export?
    Next you import that video into Premiere Elements 12 (can we assume that this is on Windows 7, 8, or 8.1 64 bit?)
    From what you wrote, you have applied a pan and zoom effect to your video in Premiere Elements.
    Now you go to export the Premiere Elements 12 Timeline content with your video with the pan and zoom applied.
    But, the pan and zoom effect is not seen in playback of the export.
    Is all of the above correct so far?
    If so....we are going to need some more details from you...
    a. What is the project preset that you or the project are setting to match the properties of the video coming from Movie maker? See Edit Menu/Project Settings/General and the readings for Editing Mode, Timebase, Frame Rate, and Pixel Aspect Ratio even if the fields look grayed out.
    b. Are you applying the pan and zoom effect with the Pan and Zoom Tool, fx Effects Presets, or keyframing the Scale (for Zoom) and
    Position (for Pan) in the Motion Panel expanded?
    c. What are you selecting as your export in Publish+Share/. Please give details...are you using default settings or customizing the export
    setting under the Advanced Button/Video Tab and Audio Tab of the preset selected?
    I am suspecting some sort of mismatch of your project settings or some problems with working with the Pan and Zoom tool. I need
    your answers to help me help you. If I have written anything that you do not understand, please let me know. I will re-write if necessary
    so that we are in sync to resolve the issue.
    Thanks.
    ATR

  • How to Zoom and Pan in the program window.

    Hi,
    I have been using scale to adjust larger than 4K image sequences so they fit 1080 and 4K output. I want to be able to zoom in and pan/tilt the program window so I can see the edges of the program window close up, so I can see to make a fine adjustment of scale. I want to be able to adjust scale precisely so I don't lose a single pixel, or include any black around the edges of the images. Of course I can't see the edges close up enough while looking at the entire image, to really see if I have scaled too much or too little. I know how to zoom in the program window, but how do I pan over to the side and bottom edges ? Without being able to pan I instantly lose the edges of the frame when I zoom in the program window.

    Perhaps this will help it make sense to you.
    I am taking tme lapse sequences shot on a DSLR and putting them onto Blu Ray disks for viewing. I also outputted a 4K file to try to play at Best Buy on a 4K television. The images are  4928 X 3280 pixels, which is larger than 4K, and much larger than 1080. One of the advantages of using these large images directly and not reducing them in Photoshop first is that I can have a time lapse zoom, which is very difficult to achieve otherwise. I can also pan and tilt. Another advantage is not having to reduce thousands of images three times, once for 1080, once for 4K, and once for stills..
    I usually work with 1080 video, and animated 1080 still sequences from Maya, or standard definition video. This is the my first opportunity to work with higher resolutions.
    Generally, for my first evaluation of these DSLR stills, i wanted to show some of them fully without cutting any off. This means there is a black border onthe sides because the DSLR stills are 2:3 instead of 9:16. For this I have used a scale of 32.6% for 1080, and 66% for 4K. For some sequences i wanted to just completely fill the frame. For this I used 38.9% for 1080, and 77.9% for 4K.
    My assumption is that Premier should do scaling as well as Photoshop does, and so  I have let Premier do the work, saving me a lot of extra work. First i take all the original images and process them from raw to tiff, for the day exposures. Then i process them again for the night exposures. Then i bring them into either my 1080 project, or my 4K project. I put the night pictures above the day pictures on a separate video track. I use opacity to dissolve from the day to night processed images as night falls inthe scene.
    Two sequences I shot are of the night sky during the recent meteor shower. After watchign the video I see i caught three instances of persistent meteor trails distorting in the sky. I was able to zoom in quite a bit, and track the position, because the sequence is of greater resolution than the native 1080 format. It gives me a second change at composition, or the ability to zoom in on something interesting that happens in the scene.
    It seems to me that the only reason i would want to first process the images down to 1080 in Photoshp, would be if the quality of the scaling was higher in Photoshop.
    When i adjust the scale, I am adjusting the scale of an image that is 4928 X 3280, in the program monitor which is probably only well less than 1000 pixels on my screen. It would be nice if I could not only zoom, but pan in the program window, so I could more accurately adjust scale by looking at the edges. So if there is no other way to do this visually, I am suggesting adding the ability to pan and tilt in the program monitor to accomplish this. Sure I could figure out the scale mathematically. I could still end up adding a row of black pixels, or cutting off a row of image pixels, due to some error such as rounding errors, or starting with 1 instead of zero, or vice versa.

  • I just bought lightroom 5. I had lightroom 3. Now when I export my photos from lightroom 5 and upload them into my photoshop elements program to edit the photo files are at 100% zoom percentage. When I upload photos from my old lightroom 3 program they co

    I just bought lightroom 5. I had lightroom 3. Now when I export my photos from lightroom 5 and upload them into my photoshop elements program to edit the photo files are at 100% zoom percentage. When I upload photos from my old lightroom 3 program they come into photoshop at 14% zoom percentage which is what I want them to come in at so I can zoom them in to detail the skin. What might have changed settings wise between the 2 programs, I cannot figure it out.

    I just bought lightroom 5. I had lightroom 3. Now when I export my photos from lightroom 5 and upload them into my photoshop elements program to edit the photo files are at 100% zoom percentage. When I upload photos from my old lightroom 3 program they come into photoshop at 14% zoom percentage which is what I want them to come in at so I can zoom them in to detail the skin. What might have changed settings wise between the 2 programs, I cannot figure it out.

  • When Firefox is open the zoom function (option/command/space bar) does not work in Adobe programs (InDesign, Photoshop, Illustrator)

    Mac OS X 10.6.7
    CS 5.5
    When Firefox is open the zoom function (option/command/space bar) does not work in Adobe programs (InDesign, Photoshop, Illustrator). This happens only when Firefox is open and when I close it the zoom functions work fine again without having to restart the applications.
    This is intermittent but happens quite frequently each day if Firefox is active.

    MDN doesn't mention -chrome being used for ordinary web pages: https://developer.mozilla.org/docs/Mozilla/Command_Line_Options#Chrome
    When I use
    firefox.exe -chrome about:permissions
    I get a usable window, but zoom doesn't work as you noted.
    How about using an intermediate page and window.open() for the target page? You can (mostly) restrict the chrome of windows opened that way, but it will leave behind the intermediate window...
    https://developer.mozilla.org/docs/Web/API/Window.open

  • Zoom option in lightweight wallpaper programs

    In gnome when you pick a wallpaper, you can pick the zoom option and the wallpaper is set to the whole screen and all ratio's in the image are maintained (which is not the case with fill screen, and scale gives borders if the image hasn't got the right resolution).
    Now what I was wondering, is there any way to get this behavior from feh, imagemagick, xsetbg or some other non-gnome wallpaper setting program?
    I'd really like to know how to do so

    But that best fit option also gives borders, I'm on a 1024x1280 resolution and most wallpapers doesn't fit natively to this resolution. So with the gnome background handler I could select an option to magnify the image to fit the screen and loose a little piece of the image at the borders.
    But all other apps I've tried until now only support the option to set the image to the biggest size which shows the whole image and show a colored border at the sides.
    So I'm looking for an app with that same option as the gnome app (it's called zoom there).
    I hope my explanation is a little clear.

  • What program allows me to create a video by zooming, turning, or peeling a photograph?

    what program allows me to create a video by zooming, turning, or peeling a photograph?

    Hi Gnika2953,
    You can do some simple video creation in Photoshop although it is primarily an image editing app. The next two programs that come to mind would be a video editing app like Premiere Elements and a motion graphics/special effects program like After Effects. If you are a beginner I would suggest starting out with the trial of Premiere Elements.
    http://www.adobe.com/ca/products/premiere-elements.html?promoid=DJDWY
    -Dave

  • I have Elements 12. I can not use the "zoom burst effect". I the programe I can ad zoom burst and the picture gets blured as it should. But the moment I try to sharpen part og´f the picture the whole picture imidiatly gets sharp. What is wrong?

    I have Elements 12. I can not use the "zoom burst effect". In the programe I can ad zoom burst and the picture gets blured as it should. But the moment I try to sharpen part of the picture the whole picture imidiatly gets sharp. What is wrong?

    I have Elements 12. I can not use the "zoom burst effect". In the programe I can ad zoom burst and the picture gets blured as it should. But the moment I try to sharpen part of the picture the whole picture imidiatly gets sharp. What is wrong?

  • The program and sequence monitors are zoomed

    How do I get the program and sequence monitirs back to normal. The video on both are zoomed in.

    I had another problem and now it is fixed....Thanks

  • Program window is slightly zoomed in versus the source window

    Hello, I've used final cut for years and have switched over to premiere, I have cs5.5.  My question is:  I have imported the .mov file and viewed it in the source window, it looks great, when I put that into the timeline, double click it into the program window, the entire image is zoomed in a little, cutting off parts of the edges and the top and bottom, I exported the file thinking it would revert back to the original, but it's still zoomed in.  Is there settings that can match the source to the program?  What am I doing?  Thanks so much, Newbie

    Well, the Source Monitor shows the file, in a player, from the HDD. The Program Monitor shows the Timeline, and the Clips on it, for editing. They are different.
    Good luck,
    Hunt

  • 3D Picture Zoom programming

    What is the way that you can determine and set the zoom factor on the 3D Picture control?  I can only seem to do it by keyboard functions Shift+ Drag up/down.  When I programmatically draw an object in the picture, it may be larger than the picture itself and I want to be able to produce a visible screen object for the user without all the manual intervention.

    Hi,
    I believe the ModelView Matrix property for the 3D Picture control may be what you want to use. The ModelView Matrix property reads or writes a matrix that contains the translation, rotation, and scale values for the 3D scene that appears in the 3D picture control.
    Another option would be to use the AutoFocus method for the 3D Picture control. The AutoFocus method positions the camera to view all 3D scene objects in the front panel window.
    -Jake B.

Maybe you are looking for

  • Problem in background task with Control channel trigger in Windows 8.1 app

    Hi, I created app with control channel trigger as background task. This is working fine in windows 8.1 desktop whenever app in background and switching from my app to other apps. But this same behavior is not working fine in windows tab, whenever app

  • File reading at run time

    hi all, i have a problem that i want to read a file which is continously update(mean data is inserting in it) i want that my programme continously read the file and show the newly inserted data at runtime. thx in adavance for help

  • Desktop Issues

    OK, has anyone had the problem of their desktop extending off of the right side of the display. My desktop extends so far to the right that the last icon on the display is the battery/power icon. The date and spotlight are not visible. The mouse can

  • Troubleshooting PO Approval Workflow notification

    Hi All Some of the iSuppliers are not receiving the PO Approval notifications from the Workflow process. Any ideas/suggestions to debug this issue will be highly appreciated.

  • WF Builder: Container elements sporadically disappear

    Hi all, On a 620, patch 54 system I have container elements which occasionally disappear from the WF builder. They exist in a flow I've been building and testing for a while, I make some more changes, activate it and then it whines about binding erro