Pickup zoom effect help

hey guys, always done a basic scale effect when an item is grabbed and dropped. Now with my clustered items, it'll only scale 1 of the three items. Anyone know why? Every item zooms properly, but in pile1 or pile2 1 of the 3 objects will zoom and not return to size. Is there a way to have the whole pile zoom in the same way a single object would? Any help would be great.
import flash.display.StageDisplayState;
import flash.display.StageScaleMode;
import flash.events.Event;
import com.greensock.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
var me:MovieClip;
// listeners
backbutton.addEventListener(MouseEvent.CLICK, backclick);
helpbutton.addEventListener(MouseEvent.CLICK, helpclick);
answerbutton.addEventListener(MouseEvent.CLICK, answerclick);
helpmenu.xbutton.addEventListener(MouseEvent.CLICK, xbuttonclick);
answermenu.xanswerbutton.addEventListener(MouseEvent.CLICK, xanswerbuttonclick);
stage.addEventListener(Event.ENTER_FRAME,_fullScreen);
for(var i:int=1;i<=20;i++){
this["m"+i].addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
for(i=1;i<=15;i++){
this["t"+i].addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
for(i=1;i<=15;i++){
this["j"+i].addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
pile1.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
pile2.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
pile1.addChild(m1);
m1.x=0
m1.y=0
pile1.addChild(m2);
m2.x=0
m2.y=10
pile1.addChild(m3);
m3.x=0
m3.y=5
pile2.addChild(m4);
m4.x=0
m4.y=0
pile2.addChild(m5);
m5.x=0
m5.y=10
pile2.addChild(m6);
m6.x=0
m6.y=5
helpmenu.visible=false;
answermenu.visible=false;
function grabMe(e:MouseEvent):void{
    me = e.currentTarget as MovieClip;
    me.startDrag();
e.target.parent.addChild(e.target)
TweenMax.to(me,0.2,{scaleX:0.8,scaleY:0.8,rotation:0});
stage.addEventListener(MouseEvent.MOUSE_MOVE, dragMe)
    stage.addEventListener(MouseEvent.MOUSE_UP, dropMe);
function dropMe(e:MouseEvent):void {
    stage.removeEventListener(MouseEvent.MOUSE_UP, dropMe);
    me.stopDrag();
TweenMax.to(me,0.2,{scaleX:0.3,scaleY:0.3,rotation:0});
lockinplace(DisplayObject(e.currentTarget))
    unpackpile();
function dragMe(e:MouseEvent):void {
e.updateAfterEvent();
function unpackpile():void {
if(boxtop.hitTestPoint(mouseX, mouseY, true)){
var i:uint = me.numChildren;
while (--i) {
var movieclip:MovieClip = addChild(me.removeChild(me.getChildAt(i))) as MovieClip;
movieclip.addEventListener(MouseEvent.MOUSE_DOWN, grabMe);
movieclip.x+=me.x;
movieclip.y+=me.y;
if(me==pile1 || me==pile2){
removeChild(me)
function lockinplace(e:DisplayObject):void{     
//section 1
if( me.x >= 200 && me.x <= 833 && me.y >=13 && me.y <=140){
me.y = 75
//section 2
}else if( me.x >= 189 && me.x <= 842 && me.y >=163 && me.y <=302){
me.y = 235
//section 3
}else if( me.x >= 174 && me.x <= 866 && me.y >=328 && me.y <=421){
me.y = 400
//section 6
}else if( me.x >= 432 && me.x <= 874 && me.y >=507 && me.y <=621){
me.y = 570
function _fullScreen(e:Event):void
   stage.removeEventListener(Event.ENTER_FRAME,_fullScreen);
   stage.scaleMode = StageScaleMode.EXACT_FIT;
   stage.displayState = StageDisplayState.FULL_SCREEN;
//nav bar items
function backclick(event:MouseEvent):void{
answermenu.visible=false;
helpmenu.visible=false;
function helpclick(event:MouseEvent):void{
helpmenu.visible=true;
answermenu.visible=false;
setChildIndex(helpmenu,numChildren - 1)
TweenMax.to(helpmenu, 3, {y:350, startAt:{y:600}, ease:Elastic.easeOut});
function xbuttonclick(event:MouseEvent):void{
helpmenu.visible=false;
function answerclick(event:MouseEvent):void{
answermenu.visible=true;
helpmenu.visible=false;
setChildIndex(answermenu,numChildren - 1)
TweenMax.to(answermenu, 3, {y:350, startAt:{y:600}, ease:Elastic.easeOut});
function xanswerbuttonclick(event:MouseEvent):void{
answermenu.visible=false;
helpmenu.visible=false;

that code should be:
    var mpt:Point = new Point(map.mouseX,map.mouseY);
    mpt = map.localToGlobal(mpt);
    map.x = f*(map.x-mpt.x)+mpt.x;
    map.y = f*(map.y-mpt.y)+mpt.y;
    map.scaleX *= f;
    map.scaleY *= f;
and you can put it in a function to call when needed:
function zoomF(dobj:DisplayObject,x:Number,y:Number,f:Number):void{
    var mpt:Point = new Point(x,y);
    mpt = dobj.localToGlobal(mpt);
    dobj.x = f*(dobj.x-mpt.x)+mpt.x;
    dobj.y = f*(dobj.y-mpt.y)+mpt.y;
    dobj.scaleX *= f;
    dobj.scaleY *= f;

Similar Messages

  • Pan and zoom effect

    Hi there,
    How do you create a pan and zoom effect, like a video effect, on a picture? The technical term I believe is the Ken Burns effect from a still imagery. I know it can be done in Adobe Premiere, Final Cut Pro but I want to know if it is possible in InDesign (CS6). It tried the overlays option but it only created pan and zoom effect that the viewer needs to scroll. It want it to move by itself.  I hope that makes sense ))
    Thanks.

    "Make sure that the container frame is smaller than the image. If the width or height of the frame and image are the same size, the object is treated as scrollable content."
    http://helpx.adobe.com/digital-publishing-suite/help/pan-zoom-overlays.html

  • End()'ing a zoom effect

    Hey All-
    I'm having a problem whenever I issue an "end()" command for
    a sequence event that's running, and I have a zoom effect. Below is
    a quick example. Clicking the stop button during the parallel/fade
    will break it, clicking stop during the zoom works fine. Looks like
    line 420 is dumping out in ZoomInstance.as. If anyone can help, I'd
    appreciate it.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical">
    <mx:Text text="Move me" id="tomove" fontSize="20"
    visible="false" />
    <mx:VBox height="240" width="240"
    horizontalAlign="center" verticalAlign="middle">
    <mx:Box id="myBox" height="200" width="200"
    backgroundColor="#80ff00"/>
    </mx:VBox>
    <mx:Button label="Click to start" click="mySeq.play()"
    />
    <mx:Button label="Click to stop" click="mySeq.end()"
    />
    <mx:Sequence id="mySeq">
    <mx:SetPropertyAction target="{myBox}" name="visible"
    value="true" />
    <mx:Parallel target="{myBox}" duration="2000">
    <mx:Fade alphaFrom="0" alphaTo="1" />
    <mx:Glow blurXFrom="1" blurXTo=".8" duration="1500" />
    </mx:Parallel>
    <mx:Zoom target="{myBox}" zoomHeightFrom="1.1"
    zoomHeightTo="0.01" zoomWidthFrom="1.1" zoomWidthTo="0.01"
    duration="2000" />
    </mx:Sequence>
    </mx:Application>

    If you get things into layers you can select "make frames from layers" and then choose animation.  This should get you started anyways.

  • Pan and Zoom Effect, which PE version introduced it?

    I like my PE 3.0 but it does not seem to offer the Pan and Zoom effect. Or am I just not seeing it.  Does anyone know which later version introduced it? I know 8.0 has it, but when did it come along?  The bundled version of Photoshop 5.0 it came with has a pan slide show, just discovered it.
    Also, I am familiar with keyframes, would this be helpful with 3.0 pan? or do I need a newer version.  Any tutorials good for this?
    thank you

    Pan & Zoom is available in all versions that offer Keyframing on the fixed Effects>Motion>Scale (Zoom) and Motion>Position (Pan). What might have been introduced would be Presets to do those with "one button." Do not know when those came into being. I do not use them in PrE 4, and would not in PrE 8, or 9, as I want control, and also the ability to determine what MY subject is, in an image. No amount of AI can do that for me, so a simple Preset stands about a zero chance of doing exactly what I want.
    At some point, PSE added the automatic Random Pan & Zoom. Again, were I doing a slideshow in it, I would not apply such, as i would Keyframe Motion>Position and Motion>Scale in PrE.
    In PrE 3, I feel strongly that you have the Effects Control Panel (accessed via Edit Effects for a Clip/still), and the ability to Keyframe both Motion>Scale and Motion>Position. This allows one adjust the parameters for those Effects over time, i.e. create a Zoom, and create a Pan. Other than the fact that you do these by hand, by eye and by mind, but with ultimate control, you have the features - just not automatically applied via a single button.
    Good luck,
    Hunt

  • Random pan & zoom effects?

    I'm trying to create a movie from a lot of still images and I would like to have a pan & zoom effect to each image, but not the exact same to every image.
    Is there a way to have a random pan & zoom effect applied to all images?

    Steve: Thanks so much. As I am now just finding that I may be able to pan & zoon stills, but on my PE7 I cannot find a more button anywhere in order to select your import presets as below. Please help.
    Thanks Tom
    o install this set of presets in Premiere Elements:
    1. Unzip this file to a folder on your hard drive
    2. Open Premiere Elements' Effects and Transitions panel
    3. From the More button, select Import Presets
    4. Browse to the prfpset files, select them all (hold down the Shift key and select the first, then the last) and then Open
    5. The presets will appear in your My Presets folder

  • Zoom effect snapping edit boxes

    I've got a combo box that, when altered, turns hides or
    unhides certain elements in the form. However, to keep it from
    snapping in badly, I put a simple zoom effect on it. So now I watch
    FormItems shrink out of view, as others bounce into view. It's a
    good effect, but I notice that the edit box in the FormItem seems
    to grow to a certain width, then snap to it's correct width once
    the effect is done. Is this unavoidable, or does it sound like I'm
    doing something wrong?
    Thanks for reading this, and I appreciate any help you can
    give.

    bump.
    Sorry to bother you guys, but surely someone else has noticed
    this. Has anyone found a way to fix it?

  • Is there a way to create a pan and zoom effect in a lightroom slideshow?

    Is there a way to create a pan and zoom effect in a lightroom slideshow?

    Nope. Be a great feature. For that I use FotoMagico after exporting JPEG's from LR.

  • Cannot see zoom effect

    After setting up a zoom on a still image it looks fine when using "play output"  in the pan/zoom tool preview window but when I return to the timeline view and play that clip it doesn't display properly. Instead it shows the initial frame with something looking like the zoom effect going on behind it.
    Can I not view the actual zoom effect for a clip after setting it up and returning to the timeline view?  I will be grateful for any insight.
    Still image is a .psd 1613 x 1080 in a project that is HD 1080i 1920 x 1080 (so the still image has black bars at both sides--which is the way I want it)
    OS: Windows 7 Ultimate x64

    Thank you to all three of you (Steve, Vipul, Bill) who took the time to answer and make suggestions.
    I have uploaded two videos showing : 1) view in effect preview window and 2) view in timeline.
    However, I think I may have done something wrong to begin with because when I created a new project and used the same source psd file to do the same kind of zoom effect it displayed perfectly both in the effect preview window and in the timeline.
    Accordingly, because I can do what I want to do--get the proper zoom effect--I'm not going mess around with that original clip anymore.
    What I did wrong with the original clip, I don't know, but I think that perhaps I was trying to make the orginal clip too short and that messed up the program. The new project clip with zoom that I created was a few seconds long.

  • How do I create a magnifying glass zoom effect?

    I'm building an image 'showcase of work' website site. Each html page features a selection of thumbnails on one side linked to a main image on the other.  I am trying to find out how to create something like a zoom effect 'magnifying glass' so that the user can hover over the main image to zoom in within a confined circle or square in more detail, which moves with the mouse whilst hovering over the image. I'm sure you all know what I mean!  (just in case, please see attached html file showing the page layout)  (I also don't want to get too techy/over complicate things as I'm learning as I go). I want to be able to use this feature throughout the site, therefore, I guess it's another CSS rule that I need to apply...?
    I'm hoping someone can point me in the right direction to find some sort of step by step 'how to' do this.  I can't seem to find just what I'm looking for... maybe I'm not calling it by the right terminology!
    I'm currently using Design Premium CS4 (predominantly Dreamweaver, Photoshop and a little Flash)
    Cheers....

    Hi
    Magiczoom and lightbox are used for showing enlarged versions of images etc. similar to using a separate pop-up window (but without the annoyance of pop-up windows).
    Anythingzoomer is a magnifying glass effect and works as such.
    PZ

  • Problem with the zoom effect

    I have five images in a row and I have added a zoom effect to
    the rollover and rollout effects. What I have noticed is that the
    image only zooms out when I bring the mouse out from the bottom of
    the image. If I try to bring the mouse from left to right across
    the images the first image zooms in but not out, and this happens
    for all five images. Can anyone identify what I am doing wrong?
    Here is my code:
    <mx:HBox width="100%" horizontalAlign="center">
    <mx:Image source="@Embed('images/bistro9-1.jpg')"
    scaleX=".05" scaleY=".05" rollOver="doZoom(event)"
    rollOut="doZoom(event)"
    click="showImage('images/bistro9-1.jpg')"/>
    <mx:Image source="@Embed('images/bistro9-2.jpg')"
    scaleX=".05" scaleY=".05" rollOver="doZoom(event)"
    rollOut="doZoom(event)"
    click="showImage('images/bistro9-2.jpg')"/>
    <mx:Image source="@Embed('images/bistro9-3.jpg')"
    scaleX=".05" scaleY=".05" rollOver="doZoom(event)"
    rollOut="doZoom(event)"
    click="showImage('images/bistro9-3.jpg')"/>
    <mx:Image source="@Embed('images/bistro9-4.jpg')"
    scaleX=".05" scaleY=".05" rollOver="doZoom(event)"
    rollOut="doZoom(event)"
    click="showImage('images/bistro9-4.jpg')"/>
    <mx:Image source="@Embed('images/bistro9-5.jpg')"
    scaleX=".05" scaleY=".05" rollOver="doZoom(event)"
    rollOut="doZoom(event)"
    click="showImage('images/bistro9-5.jpg')"/>
    </mx:HBox>
    <mx:Zoom id="zoomAll" zoomWidthTo="0.06"
    zoomHeightTo="0.06" zoomWidthFrom=".05" zoomHeightFrom=".05" />
    public function doZoom(event:MouseEvent):void {
    if (zoomAll.isPlaying) {
    zoomAll.reverse();
    else {
    // If this is a ROLL_OUT event, play the effect backwards.
    // If this is a ROLL_OVER event, play the effect forwards.
    zoomAll.play([event.target], event.type ==
    MouseEvent.ROLL_OUT ? true : false);

    I figured out the problem I was having with my zoom effect.
    It worked when I added a specific number for height and width.
    Before I had a percent. Try adding a height and width number, it
    worked for me.

  • After effects help & adobe air

    i'm in the after effects cs5 application (creative suite production premium) on a power mac 10.5.8 and when i go to the help pull down and click on after effects help, i get the following error message:
    don't even know what abobe air is. i'm assuming the after effects help has to run through this app. is this something i need to install and what does it do? i hate hate running unnecessary programs. thanks.

    You can use After Effects Help without using the AIR application. You can either use the HTML version of After Effects Help on the Web or the  PDF version of After Effects Help.
    For information on how to fix this problem with the AIR application, see the Community Help Client forum.

  • HTML Widget zooming effect

    Hi,
    I am trying to make my HTML Widgets in my iBooks Author book to being fired up when user taps on a small button in the side of the book.
    For that sake, I place my widget first, then I drag my small button graphic to the widget area so it becomes the poster image of it.
    Problem is that when I test my book and I tap on the button, there's always a "zooming effect" of the button prior to execute the Widget itself, that enlarges the little png for a little while, so it shows the big pixel jagged image. I don't like this effect, is there any way to get rid of it?
    Thank you,
    Ignacio

    I am just using finally this workaround:
    1) Place the HTML widget as usual, but without poster image, nor Title, Background... so it is sort of a "transparent hot spot" in the book
    2) I draw a figure with text inside, as a button, and organize it so it lies below this transparent widget
    When I run the book in the iPad, I see a crisp, clear button that I cap tap and the Widget plays at full screen without that annoying jagged PNG zoomed in.
    Same thing if you use an image button rather than a figure.
    Greetings,
    Ignacio

  • Pan & Zoom effect in FCP 6

    Hello everyone,
    New to this forum and struggling with FCP to perform zoom and pan effect on scren cast movies.
    Can anybody give me som tips and tricks on how you best approach this or recommend a good effect for it?
    Thank You

    Sorry Shane, with screencast I mean that I capture with IShowU screen movements with a Mov file as finished product. In my case it is about creating a software tutorial. Once captured I do the editing in FCP and I need to zoom in or pan to certain screen areas to focus on some functionality on the screen.
    I have seen the tutorial before and Thank you for pointing it out, but that illustrate only a zoom effect, but I cannot find a way on how you easaly can move the screen from left to right , for example.
    Roger

  • Please rate the After Effects Help pages you find useful

    You may have noticed that Adobe employees and Community Experts hanging in this forum keep pointing users to the relevant sections in After Effects Help on the Web. The reason for this is, of course, that the quality of explanations, visual examples, video tutorials and other materials in those pages is much higher than what anyone could quickly type in a forum reply. Personally, I think AE help has experienced a drastic overhaul in the last few years, to become a great, community-driven, user-focused resource.
    if you find these pages helpful, you can in return help the documentation team by stating which pages you find useful by using the buttons at the bottom of each page.

    You should also leave comments to tell us what other information you'd like to see... or to leave a tip, link, or technique of your own.
    After Effects CS4 Help

  • Disable zoom effect in QT Player fullscreen playback?

    I'm using Quicktime Player to present video in fullscreen mode on a separate monitor. It all works well, but I'd like to disable the "zoom" effect when the video starts and finishes -- that is, I don't want the video window to "slide" in and out of position, but just begin and end "out of nowhere", so to speak.
    I don't mind hacking a plist or going through the Terminal to get there, if that's what's needed.
    Curiously, I have the MP2 (DVD file) plug-in, and there's no zoom when playing a muxed mpeg file -- it just shows up, like I want. But for various reasons I don't want to use muxed files, although that suggests there's a zoom switch somewhere that can be turned off.
    Any suggestions?

    Nope, that won't do it.
    I'm having the same problem, as I am planning to use QuickTime to play back a series of clips for an in-house CATV system, and under QT-7 there is this unacceptable zooming between clips. I have not found a solution under QT-7.
    I've also found that the AppleScript commands "Enter Full Screen" and "Exit Full Screen", which were added for QuickTime 6, are missing from the AppleScript dictionary in QuickTime 7. I actually reported this one to Apple as a "bug" (#5612904, Nov. 26, 2007) and as of this morning (March 24, 2008) the bug is still "open"...that is, Apple has not declared it "non-persuasive" or "expected behavior" or whatever they do to "bugs" that are just needless whining yet.
    What you CAN do (kudos to QuickTime Kirk for coming up with this one as a solution for another problem) is to run the QuickTime 6 player. That is, with QuickTime 7 installed, find a copy of QuickTime Player version 6.5.3 and give it a unique name (mine is called "QuickTime 6.app"). That allows you to run the v6 player on the v7 framework, and it actually does work. You get full-screen without the animation, and the full-screen AppleScript commands also work.
    --Dave Althoff, Jr.

Maybe you are looking for