Web flash zoom and pan problem

I am doing a map interactive with zoom and pan capability. The demo is in this url: test_zoom

Zooming is done with the mouse wheel, and pan to click and drag.

My problem is that I want the photo (video clip with the instance 'map_mc' name) in the middle of zoom and pan, but all objects move at the same time...

I use the following script:

canvas.addEventListener ('mousewheel', MouseWheelHandler, false);

canvas.addEventListener ("DOMMouseScroll", MouseWheelHandler, false);

var zoom;

function MouseWheelHandler (ezoom) {}

If (Math.max (-1, Math.min (1, (ezoom.wheelDelta |)))) (- ezoom.detail))) > 0)

Zoom = 1.1;

on the other

Zoom = 1 / 1.1;

var local = stage.globalToLocal (stage.mouseX, stage.mouseY);

stage.regX = local.x;

stage.regY = local.y;

stage.x = stage.mouseX;

stage.y = stage.mouseY;

stage.scaleX = stage.scaleY * = zoom;

internship. Update();

}

stage.addEventListener ("stagemousedown", function (emove) {}

offset var = {}

x: stage.x - emove.stageX,.

y: stage.y - emove.stageY

};

stage.addEventListener ("stagemousemove", function (ev) {}

stage.x = ev.stageX + offset.x;

stage.y = ev.stageY + offset.y;

internship. Update();

});

stage.addEventListener ("stagemouseup", function () {}

stage.removeAllEventListeners ("stagemousemove");

});

});

I need assistance with this script so that I have move and zoom only the clip 'map_mc '.

Thank you

use:

var tl = this;

var zoom;

canvas.addEventListener ('mousewheel', MouseWheelHandler, false);

canvas.addEventListener ("DOMMouseScroll", MouseWheelHandler, false);

function MouseWheelHandler (ezoom) {}

If (Math.max (-1, Math.min (1, (ezoom.wheelDelta |)))) (- ezoom.detail))) > 0) {}

Zoom = 1.1;

} else {}

Zoom = 1 / 1.1;

}

TL.map_mc.x = stage.mouseX;

TL.map_mc.y = stage.mouseY;

TL.map_mc. ScaleX = tl.map_mc.scaleY * = zoom;

}

stage.addEventListener ("stagemousedown", downF);

function downF (e) {}

TL. Offset = {y: e.stageY, map_mcX:tl.map_mc.x, x: e.stageX, map_mcY:tl.map_mc.y};

stage.addEventListener ("stagemousemove", stagemoveF);

stage.addEventListener ("stagemouseup", stageupF);

}

function stageupF (e) {}

stage.removeAllEventListeners ("stagemousemove");

}

function stagemoveF (e) {}

TL.map_mc.x = tl.offset.map_mcX + e.stageX - tl.offset.x;

TL.map_mc.y = tl.offset.map_mcY + e.stageY - tl.offset.y;

}

Tags: Adobe Animate

Similar Questions

  • Import background image and the ability to zoom and pan

    I need to write an application that takes an image file (jpeg, bitmap, etc.) and the applied inside a window of labview.  I need to be able to zoom in on a selected area and panoramic in all directions.  The zoom and pan feature can use external controls.  If someone has done something similar?  I think using an image control but the zoom and pan is the problem.  I have to re - draw a smaller section of the original image.  Is there a better way to do it?  Thanks, any help would be appreciated.

    Not exactly what you are looking for, but should give you an idea.  Click and drag to pan, use the scale to zoom.  At the moment it loads a PNG file, you can change at any shape you want.

  • Is there a way to smooth the zooms and pans which are not consistent throughout?

    Shot some footage using a digital SLR camera and a tripod grip of squeeze, images is good except the zooms and pans are not too smooth

    how I wish that they. Anyway to fix this?

    Reshoot cos it's hard impossible.

  • Smooth zoom and Pan

    Hello guys

    I did a simple zoom and pan example but it is not smooth.

    How can I make it smooth?

    Is there an example or article?

    Thanks in advance

    Use google to search.  Google spiders these forums (and much more).

  • Unable to connect to a site web - says Adobe Flash Player and JavaScript problem

    For more than a year, my daughter was able to use the Web site for children for the lively game. Ago about a week after it has loaded the site and clicked on "Let's play", instead of check-in at the login screen, she received the following message - "to view this content, you must activate JavaScript and you need the latest version of Adobe Flash Player. I found this confusing, because we all software up to date. But, just in case where I did everything he said... still no results. I then contacted the web site support and they recommended I uninstall Adobe software and reinstall it. They sent me specific links from Firefox to do. Always without success. I don't know if some updates have taken place in the last week that may have caused this problem with the web site, but it's very frustrating for us. In addition, we are able to connect (as we used to be able to) on IE, but we love Firefox - Please HELP! One last thing, I am also unable to open web site to my work computer, which also uses Firefox. I'm a fool to the computer, so I would need instruction step by step... Thank you!!!

    URL of affected sites

    http://www.ClubPenguin.com

    I had the same problem and it goes back to AdBlock. Once I disabled that, Club Penguin loaded well again.

  • Background image and draw XYGRAPH received same zoom and pan values

    Hello!.

    NI Vision Software contains many of the palettes you speak. It's a separate software package that you can view here.

  • Lightroom more slowly than Lr5 cc and struggling for simple cropping and Pan

    I wonder if there is something wrong here. I have a decent machine (2500 k overclocked to almost 5 GHz, GTX570, 8 GB ram, Lr, installed on a SSD).

    LR5 me served well for a long time, and despite its slowness to certain tasks, it is ok. On the other hand, CRD offers very little new features and a decrease in performance.

    I change some 20mp canon raw files and the task simple or cropping/rotation/Pan became a nightmare. It's slow and something seems to be very bad when I try to recrop a virtual copy of an image. At the top very slowly, moving the clipping rectangle sometimes guard reset its position and "refuses" to stay in the place I put it to.

    When I zoom and pan on library mode, everything is going well, he gets only bad on developer mode. If I zoom 1:1 and have some adjustments with the brush of spotting, it feels like I'm panoramic a gigantic file on a 20 year old computer. Even in a clean image with no adjustment, developer mode fight bad pan with zoom.


    My catalog has around 40 000 files, but it should not matter when a single photo developing. Once again, the same catalog was LR5 and had many questions.

    Checked the use of computing resources, and nothing is really forced to the limit. Total memory usage never exceeds 5 GB (about 8 GB) and the CPU usage does not raise above 40%. If believes that CCRB does not have good use of the computing power available.

    Just replying to me here, I tried to disable this option in preferences > Performance to use my graphics processor and the performance boosted immediately. It is now at the same level as the Lr5.

    I use the version of 350.12 (later like today) of the Nvidia with a GTX570 driver. Apparently, there is a problem on the way that CCRB uses my video card. I hope that this problem is corrected, but at least now my LRcc is usable.

  • Flash Player and problem Mackeeper

    Hey, I recently bought a MacBook Air(Os X Yosemite, 1.6 GHz Intel ore i5), and I had this problem. Whenever I browse in Safari, I get a message of MacKeeper, saying that my flash is obsolete and he also says that I need to update my flash player. What's the problem because the last time that I downloaded a Flash Player and installed?

    Please advice...

    Sorry,

    It is Intel * Core

  • Hello. There is a problem on the IPhone s 5 - after reset, the display flashes on the sides for 10 minutes, then the flashing stops. And the problem does not appear again until they do not use a Hard Reset (Power Home). The phone is new (5 days). It's a m

    Hello. There is a problem on the IPhone s 5 - after reset, the display flashes on the sides for 10 minutes, then the flashing stops. And the problem does not appear again until they do not use a Hard Reset (Power + Home).

    The phone is new (5 days). It's a wedding?

    If you encounter this flicker, then the next troubleshooting step is to restore from a backup. If the behavior persists after the restore, then the last step is the factory restore. If after the factory restore and adding no additional content, you see always this problem, then you must make an appointment at the Genius Bar to the nearest Apple store or service provider authorized Apple to have the material examined. If the behavior goes after the factory restore, then sync again your content manually, without using the backup. It seems to me it's corrupted content in the backup.

    Restore your device from an iCloud or iTunes backup - Apple Support

    Use iTunes to restore your iPhone, iPad or iPod settings - Apple Support

  • 0XC0000005 error printing "Lexmark Web gateway has encountered a problem and needs to close"

    0xc0000005
    Recent problems with my Lexmark X 7675.  After printing, I get an error message that says:

    Lexmark Web gateway has encountered a problem and needs to close.

    I think it's a problem with the latest Windows updates.  I use XP SP3 and that you have not seen this problem until this last week.

    Find C:\WINDOWS\system32\spool\drivers\w32x86\3\lxdwwbgw.exe and delete or rename it so that it does not work.

    This program sends just the stats of the printer for Lexmark.

  • The problems IAM downloaded adobe flash player and get the videos to play

    videos YouTube will not play it says I need to download adobe flash player. I took the old flash player and download a new but still not able to watch movies. It seems that the flash player is in the computer but will not work. I have a laptop windows 7 hp Pavilion g series

    Hello

    Try to run through the Daniel_Potyrala guide on the following link.

    http://h30434.www3.HP.com/T5/notebook-display-and-video/the-solution-to-most-problems-with-the-Flash-Player-plugin/TD-p/1399719

    Kind regards

    DP - K

  • I installed the latest version of flash player and it said installed successfully and I can use it very well, but when I checked the system requirements do not match. She required 2.33 ghz and I 2.13 ghz. then that cause problems on my computer? I h

    I installed the latest version of flash player and it said installed successfully and I can use it very well, but when I checked the system requirements do not match. She required 2.33 ghz and I 2.13 ghz. then that cause problems on my computer? I have an intel i3 proccessor, windows 7, internet Explorer.

    All processors Intel i3 having at least 2 hearts, your specifications far exceed the requirements; See http://ark.intel.com/products/family/75025#@All

    I have some computers with much slower processors, and Flash Player 14 works perfectly well on them also.

  • Flash Player update and download problem

    I got a message telling me to update my Adobe Flash Player, so I tried to do that. Received a message that we had to close the update, so apparently he did not complete the setting to. (don't remember the message exactly because I didn't know he was going to lead to this problem). Then I found that I could not open my email or other sites that require Adobe Flash Player. It appeared that Adobe had eliminated all together.

    I tried to download Adobe Flash Player 11.3.300.268. It starts the download but at the end of the day gives me an error message saying: "unable to load Application Host Configuration. I use Windows XP and Internet Explorer 8. I tried to save the Adobe Flash Player on my computer before trying to start it, but it does not work when I try to open it... I just get the same welcome message.

    I tried to use system restore to restore my settings on a date, 6 days ago, but after the process is completed, I received a message that the process was "incomplete" because there had not been any changes to my computer Well, there have been changes since I used to have Adobe Flash Player and now I don't have, and I can't install and run it, which means that I can not open my email or other sites who need. Please help me solve this problem. I'm not a computer Wizard. Would appreciate any help!

    You can try to download and install if necessary hold only installer you can find here?

    http://helpx.Adobe.com/content/help/en/Flash-Player/KB/installation-problems-Flash-Player-Windows.html #main - pars_header

  • Problems with the flash drive and ReadyBoost

    I just bought a fairly expensive 32 GB SanDisc Extreme 3.0 USB Flash Drive for use with my Windows 7 Professional 64 Bit...

    After formatting the new flash drive and tried to assign to ReadyBoost, a dialog box pop on the screen informing me that "this device cannot be used for ReadyBoost.  The unit doesn't have the performance characteristics required.

    If Windows 7 does not have a top of the range flash drive as a device for ReadyBoost, what "performance" requires

    Monday, January 5, 2015, 17:34:53 + 0000, TheJimObasa wrote:

    I just bought an expensive ther 32 GB SanDisc Extreme 3.0 USB Flash Drive for use with my Windows 7 Professional 64 Bit...

    After formatting the new flash drive and tried to assign to ReadyBoost, a dialog box pop on the screen informing me that "this device cannot be used for ReadyBoost.  The unit doesn't have the performance characteristics required.

    If Windows 7 does not have a top of the range flash drive as a device for ReadyBoost, what "performance" requires

    Not an answer to your question, but let me point out the following:
    unless you have very little RAM on your computer, ReadyBoost is
    useless and will do nothing to improve your performance. Use of the
    drive for something else.

  • Ignore YouTube in Firefox more recent flash player and youtube using HTML5 player

    Hi I have a problem with the new firefox YouTube site ignores the flash player and uses HTML5 player. I have no any button to move to flash player in settings HTML5 on youtube (in another Web browser it works fine), you can see from the photo, but I have installed flash player and on https://helpx.adobe.com/flash-player.html after that press 'Check now' button flashplayer is detected correctly, see on photo 2. Can you help me? And sorry for my English.
    Photo:http://s14.postimg.org/ukndagdsf/youtube.png
    Photo 2:http://s28.postimg.org/8yr58jxyz/flash.png

    I played with the settings etc and now his job very well.

Maybe you are looking for