Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Right Click Zoom In +flash 5



I was wondering if anyone had info or know how on zooming in via a button in a movie, instead of right clicking and zooming in.  So the user would click a button in the main movie and the site would zooming to each click, much like if the user keeps selecting zoom in for the right click menu.

Thanks



Tek-Tips > Adobe(Macromedia): Flash Forum
Posted on: 26 Oct 03 1:00


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

I Want To Make A Map That Can Be Zoom In , Zoom Out , Drag And When You Click Any Loc
hi .. Anyone ! I have a problem in my Flash Actionscript 1.0 , I want to make a map that can be zoom in , zoom out , drag and when you click any location in the map for example you can see this site.>> click on this link ::

,http://www.enjoyshanghai.com/2007big...id=1&childid=1

Hope you will help me for this, I really appreciate your kindness if you help me. Thank you and God Bless .. Attached file is the zoom.fla samples of my work and i want to be like enjoyshanghai/venue finder map..

Anyone could help...plllzzz

How To Disable Right Click Components (zoom In....) In Flash 8
How can I disable/hide the zoom in, zoom out, play, loop, show all, quality, rewind, forward, back, print components
... and only display 'settings' and 'about adobe flash player 9' when a user right clicks;

also give me a link to a tutorial on a website for the above.

Zoom In Zoom Out Double Click
Hi guys!, I need help, I have this code that allows you to zoom in and out of any flash clip by double clicking on the screen. It works nicely, however I would like to be able to move around by using the mouse once I am zoomed in, I can do it by double clicking again zooming out and double clicking once more to zoom into a different area, but this gets quite tedious.

the code is the following:

onClipEvent (load) {var clickInt;
var pressed = 0;
function doSingle(mc) {
clearInterval(clickInt);
pressed = 0;
trace("single");
}
myZoom = function (myDepth) {
var k = 0;
var zoom = false;
if (myDepth == "deep") {
myDepth = 4;
} else if (myDepth == "medium") {
myDepth = 8;
} else if (myDepth == "light") {
myDepth = 12;
}
trace(myDepth);
_root.onMouseDown = function() {
pressed++;
if (pressed == 1) {
clickInt = setInterval(doSingle, 300, this);
} else {
clearInterval(clickInt);
pressed = 0;
trace("double");
if (k > 0) {
return;
}
zoom = true;
dir == 1 ? (dir = -1) : (dir = 1);
if (dir == 1) {
pt = {x:_root._xmouse, y:_root._ymouse};
}
}
};
this.onEnterFrame = function() {
if (!zoom) {
return;
}
_root._xscale += dir * k * 50 / myDepth;
_root._yscale += dir * k * 50 / myDepth;
var pt2 = {xt.x, yt.y};
_root.localToGlobal(pt2);
_root._x -= (pt2.x - pt.x);
_root._y -= (pt2.y - pt.y);
k++;
if (k == 8) {
zoom = false;
k = 0;
}
};
};
myZoom("medium");
}

Click -> Zoom
Hi,
I have a scene in my movie where i have an embeded movie clip. In this movie clip, there are a series of buttons. When a user clicks on a button, I would like the movie to zoom to the point of the mouse click.

I've got this *kind of* working, however, it's not quite right. When it zooms, it zooms to an odd point in the movie, and not where the mouse click event actually occurred.

Here's my code:

on(press){
with ('productmovie'){
_yscale+=100;
_xscale+=100;
_x = _xmouse;
_y = _ymouse;
}
}

Right Click To Zoom On Pc, Mac?
Have a small map on a site I'm building and want the user to be able to drag the map around to view a wider area, and also to zoom in on it. On a PC use the right click and choose zoom in, but what ( for this never been on a MAC and dont intend on starting now heathen) is the control on a MAC????


cheers in advance
ash

Right Click Zoom
hi
in the movie clip i am making i want to disable the options when i right click on the playing movie. i have used the Stage.showMenu=false; command but my problem is my boss still wants the user to be able to zoom.

so is there any way of disabling optins such as play, rewind, settings, when i right click but keep the option to Zoom??

Right Click Zoom
I am currently makeing a game.

I have alot of confusion on how to make a zoom when you press right click.

What i plan to do is be able to press right click and that will activate the zoom
(what would be best is once i am zoomed in to be able to control the amount of zoom with the up and down arrows, but thats after i get the zoom to work)

How do i make a zoom?

The Right Click Zoom Option
is there a way to use the right click zoom in and out option from within a flash movie?

(from the menu that you get when you rightclick on a flash movie while it's playing)

Disable Right Click Zoom?
Hi i want to stop people from right clicking and zooming in, whats the command to stop this cheers Paul

Hotkey For Right-click Zoom?
is there any way to assign hotkeys to substitute for the right-click zoom in/out when fscommand scale = true? thx

How To Disable Right Click Zoom ?
i see that some sites when you right click on the flash part, only settings and about show up and zoom functions are not there. How can I do this to my flash projects so no one can zoom in on things ??
thx !

How To Disable Right Click Zoom On Net?
I have noticed that many flash movies on the net have zoom feature disabled and other right click features like print disabled too, but my movie on the net allows you to do that stuff, how do you disable that?

Disable Right Click Zoom In?
i noticed on most of the more pro flash sites, when you right click anywhere on the flash segement of the page, you don't have the option to zoom in etc. like you do by using default publish settings. How do you do this? I've looked through all of the publish settings and haven't had any luck...

[MX] Double Click Zoom
helloo. I want to be able to double click and zoom and then double click to zoom back out on where the mouse clicked. so i got this code from a different post. but this only zooms in and out from a single click.
how do I add the double click function as the zoom in and out function?
thank you so much



Code:

var k = 0;

myZoom = function (myDepth) {
if (myDepth == "deep") {
myDepth = 4;
} else if (myDepth == "medium") {
myDepth = 8;
} else if (myDepth == "light") {
// default
myDepth = 12;
}
trace(myDepth);
_root.onMouseDown = function() {
if (k>0) {
return;
}
zoom = true;
dir == 1 ? (dir=-1) : (dir=1);
if (dir == 1) {
pt = {x:_root._xmouse, y:_root._ymouse};
}
};
this.onEnterFrame = function() {
if (!zoom) {
return;
}
_root._xscale += dir*k*50/myDepth;
_root._yscale += dir*k*50/myDepth;
var pt2 = {x:pt.x, y:pt.y};
_root.localToGlobal(pt2);
_root._x -= (pt2.x-pt.x);
_root._y -= (pt2.y-pt.y);
k++;
if (k == 8) {
zoom = false;
k = 0;
}
};
};

myZoom("medium");

Zoom Effect Like That When You Right-click...
Hi there, I want to get a zoom effect similar to that when you 'right-click' a .swf movie, and then be able to scroll the movie around in it's frame....

I'm going to have the control for the zoom on a seperate movie and link them using _localConnection (which I reckon I can do, just the zoom factor is the problem)

If anyone can point me in the right direction to acieve this, I'd be most grateful

Cheers

Rob

Zoom In On Mouse Click
Hi Guys,

i am working on a magazine (just to learn as3 and xml).

It currently works by pulling in all the content, images, buttons, vids using xml. I would like to give the user the ability to zoom in closer on the magazine. it would work by the cursor changing from a pointer to a magnify glass when the cursor hovers over the magzine and zoom in when the user clicks the mouse (left bttn).

Can this be created using as3?

some pointers would be nice

cheers
dazzclub

Zoom In From Right Click Menu
Hello all,

I was wondering if there is a way using ActionScript to figure out when someone has zoomed in on a swf using the right click zoom in option?
I tried using _xscale and _yscale, but I guess those don't change when they use the context menu.

Thanks!

Right Mouse Click/Zoom In
Is there a way to simulate the effect of right mouse click/zoom in?
I have to forbid the menu on right click, but I was wondering is there a simple way to get the same result without write an actionscript to scaling the main movie and drag it with the mouse

Zoom (right-click) Function With A KeyPress?
I'd like to have a user be able to press + or - and have the file zoom in and out ... similar to the right-click > Zoom in/out function.

I searched around here but can't seem to answer my question.

Thanks in advance.

How Do U Make It So U CANT Right Click And Zoom In And That Stuff
i want it so when u right click u dont get the zoom in features and those stuff , thanx

On Click - Zoom / Floating Navigation
I absolutley love sites like this.... the movenent / layers

http://www.matthewmahon.com/

This is general, but hows it done? Tutorials, source file movies ... anyone?

ANY INFO WOULD BE GREATLY APPRECIATED!


TW

Delete Right Click Zoom Option
When you come to our landing page and right click it allows you to zoom into the flash page. I was told we can omit this option. Can someone send me the code to delete this and also tell me where to plug it in?

Thanks

Delete Right Click Zoom Option
When you come to our landing page and right click it allows you to zoom into the flash page. I was told we can omit this option. Can someone send me the code to delete this and also tell me where to plug it in?

Thanks

Delete Right Click Zoom Option
When you come to our landing page and right click it allows you to zoom into the flash page. I was told we can omit this option. Can someone send me the code to delete this and also tell me where to plug it in?

Thanks

Click And Zoom From A Thumbnail Menu
Hello All:

I want to zoom in on an image from a thumbnail menu once I click it. I want to place image thumbs in a grid-like fashion, and once the viewer's cursor is on top of an image thumb, clicking it will magnify the image about 200 percent, and clicking again will reset the thumb to its original size. For an artist website.

Thanks!

S&P

[AS2] Drag - Pan - Click To Zoom XML Content
Hi,

An example of creating a Drag and Click to Zoom navigation system. Where content loads into one large movieClip that is scaled up and positioned with a mouse click. It uses mouse listeners to provide mouse functionality in the parent movieClip without destroying any button events in loaded content. I was interested in working out multiple button event handling in AS2 as well as creating a drag and zoom navigation system for a website I am currently building. Content can be dragged around in both a scaled down and scaled up state. Content can either center in the screen or be positioned. The example also uses custom cursors to provide interface feedback when using mouseListeners, which do not trigger the built in cursor handling in Flash. The custom cursors only run when the content is scaled down. I turn them off when the content is scaled up to allow for interaction with the externally loaded swfs etc.

Updated 10 Jan, 2007: Bug fixes, shift to using tweenlite for all tweening. I found a subtle bug with mcTween when two tweens were operating on one object at the same time. Also implemented a navigation widget version, where a small widget mimics the layout of the main content. Main content can be navigated via this widget.

To scale down from a scaled up state, you need to double click.

Content is loaded in via XML and is laid out via either a crude grid making function or pulls in layout information from the XML file.

You can have a look at the file here: http://www.noponies.com/dev/slidernav/

And get the source files here: Source Files (Flash 8, Flash CS3)

Requires TweenLite http://www.tweenlite.com

I built it for specific purpose, but there may be stuff that is useful in there for everyone else. Hopefully there are enough comments in the script for you to make any edits. Let me know if its rubbish etc..

Click And Zoom Pieces Of An Image
Hi,

I have an image that is divided into several different sections.  I want to allow users to click each indivdual section.  When they click a section, I was to zoom into the details of that section and have the whole image fade in the background.  Does anyone know if there are any tutorials out there that explain what I am trying to do?  If not, does anyone have any suggestions to get me started?  

Thanks!

How To Get Remove The Zoom In Option (right Click)
Can you please tell me how to remove the entire right mouse click options when someone right mouse clicks on flash or, how to remove the zoom options?

Thanks Dudes!

Zoom And Center MC At Mouse Click?
Hi,
I've searched some to find a smooth solution and tried several different things but I can't seem to find that smooth zoom-and-center solution yet.

I have a MovieClip that I want to zoom in, let's say 25%, at each click by mouse. That much I can handle with xscale/yscale but I want the MC to smoothly zoom to center the point that was clicked.
B ut i can't seem to find the math behind it. It sounds simple but I'm stuck.

Anyone done this before that can give me some help or ideas?

Thanks!

Zoom In Controls (right Mouse Click)
Hey,

Whats the code for taking away the control-click or right-mouse click zoom in and out controls?

I used to have it but i dunno, i guess it left me


cuse

How To Disable Settings, Play, Zoom When You Right Click?
Hi,

I was wondering on how do you disable settings,play, zoom in
on flash 5 and right click will only show "About Macromedia Flash 5 or 6"? Does anybody know how to do it in your own created flash movie?

Scale Larger/smaller On Click (zoom)
I want to have 2 buttons, 1 to zoom in on an object (incrementally), 1 to zoom back out to 100%. I have seen the magnify glass tutorials and I'm not intersted in that much functionality, just need something simple.

Thanks in advance!
Missmetz

MC Image Zoom On Mouse Click & Position.
Howdy all again,

I have a picture of a product within an MC that I'd like to zoom in and out behind a mask with a click and is restrained within the size of the MC.

Something like this that I found on this forum.

http://www.flashkit.com/movies/Inter...8487/index.php

I have no idea what I am doing..ha and for some reason it doesnt want to work when I replicate it in a new flash pro 8 doc.

What id like is to have that example work as or inside an MC and only when the mouse is over it. Am I asking for too much?..ha
If someone could figure it out for me there will be a "virtual" slab of beer in it for them. Pointing me in the right direction might help just bear in mind my website is built around the cut & paste method..lol

Cheers.

Zoom Moive On Mouse Click Location
Below is a simple actionscript I had applied to a button to zoom in. I want this same type of zoom to happen but don't want it applied to a button. I want to be able to zoom in on the area in which the mouse is clicked.

Question 1: Is there an actionscript to zoom in with the click of a mouse, not using a button or any other object? If so, can it zoom out on next click?

Question 2: Considering Question 1 is possible... Once zoomed in, is there a way to have the user to view other parts of the stage?

EXAMPLE LINK: http://www.ashevillevisitorguide.com/

on(press) {
movie._xscale=200;
movie._yscale=200;
}
//
on (release) {
movie._xscale=100;
movie._yscale=100;
}

Any thoughts, input, or ideas is always appreciated. Thanks in advance!

Luke

Righ-click = Zoom Ability... How To Remove?
My friend pointed it out that it was silly to have the ability to zoom in on the flashfile... and he is correct (in my case)... I guess this requires some scripting, but I dont really know... so the question is, how do I remove the zoom ability (by right-clicking) in the flash file when published?

An example is rhamej's page...
http://www.2210media.com

thanks for any help given...

Click And Zoom 3D Carousel Customization - Help Needed
It works OK, but I have some small problems. I've modified it so I can move it with mouse scroll. But it registers scroll only after I click somewhere on stage.
Also, I would like to add text field to every image, and read it's text from XML.

Please help.

Here is the code:
Code:

package
{
   import com.gskinner.motion.GTween;
   import com.theflashblog.fp10.SimpleZSorter;
   
   import fl.motion.easing.Exponential;
   
   import flash.display.Loader;
   import flash.display.Sprite;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.net.URLLoader;
   import flash.net.URLRequest;

   public class Carousel extends Sprite
   {
      private var container:Sprite;
      private var loader:URLLoader;
      private var anglePer:Number;
      private var rotacija:Number=0;
      private var pozicija:Number=0;
            
      public function Carousel()
      {
         init();
         loadXML();
      }
      
      private function loadXML():void
      {
         loader = new URLLoader(new URLRequest("images.xml"));
         loader.addEventListener(Event.COMPLETE, createCarousel);
      }
      
      private function createCarousel(e:Event):void
      {
         var xml:XML = new XML(e.target.data);
         var list:XMLList = xml.image;
         anglePer = (Math.PI*2) / list.length();
         
         for(var i:int=0; i<list.length(); i++)
         {
            var imc:imCon = new imCon();
            imc.buttonMode = true;
            imc.addEventListener(MouseEvent.CLICK, onClick);
            
            var l:Loader = new Loader();
            l.x = -250;
            l.y = -167;
            l.load(new URLRequest(list[i].@src));
            
            var k:Loader = new Loader();
            k.x = -250;
            k.y = -167;
            k.load (.....)  ///////////////////HERE is the problem with XML/////////////////////////
                     
            imc.text_field = k; /////// ????

            imc.addChild(l);
            imc.scaleX = imc.scaleY = 0.5;
            imc.angle = (i*anglePer) - Math.PI/2;
            imc.x = Math.cos(imc.angle) * 450;
            imc.z = Math.sin(imc.angle) * 450;
            imc.rotationY = 36 * -i;
            container.addChild(imc);
            
         }
      }
      
      private function onClick(e:MouseEvent):void
      {
         //currently not needed

      }
      
      private function init():void
      {
         container = new Sprite();
         container.x = 350;
         container.y = 250;
         container.z = 400;
         addChild(container);

         this.addEventListener(MouseEvent.MOUSE_WHEEL, rotation_handler);
         cover.addEventListener(MouseEvent.CLICK, stageClick);
         this.addEventListener(Event.ENTER_FRAME, loop);
      }
      
      private function stageClick(e:MouseEvent):void
      {
         var tw:GTween = new GTween(container, 0.8, {z:400}, {ease:Exponential.easeInOut});
      }
      
      private function rotation_handler(e:MouseEvent):void
      {
         rotacija = e.delta;
         pozicija += rotacija;
         var tw2:GTween = new GTween(container, 0.8, {rotationY:pozicija*9}, {ease:Exponential.easeOut});
      }
      
      private function loop(e:Event):void
      {
         SimpleZSorter.sortClips(container);
      }
   }
}

Help Me To Disable To Zoom Option When The Enduser Right Click On The Swf File
hi,

In swf file, if we right click we can able to select zoom in and zoom out options. Anybody knows how to disable that option???

Help Me To Disable The Zoom Option When The Enduser Right Click On The Swf File
hi,

In swf file, if we right click we can able to select zoom in and zoom out options. Anybody knows how to disable that option???

Zoom On "on Click"
OK, I have a Pageflip Book and am looking to add zoom function to it. Whether it be just a click and zoom like this . or a toolbar to zoom in and out. Honestly I would like it to download a higher resolution version, but that's going to require much more i'm sure.

Currently what I have to make it zoom in on a particular page is;

onClipEvent (enterFrame) {
this._xscale = this._xscale+1;
this._yscale = this._yscale+1;
if ((this._xscale >= 150) && this._yscale >= 150) {
this._xscale = 150;
this._yscale = 150;
}
}

only problem is this will do some things i have problems with,

It does it when it loads so i replace it with "on (release){..." however then it doesn't have the gradual type of movement. I have tried "on (press)" as well. Plus I need cursor change between the two functions to zoom in and out.

Would a toolbar function be easier? I know it'd be better, but probably not easier.

Plus when it zooms in, it needs to be centered on where the mouse is, which I can't figure out.

Thanks

[Flash MX Prof 2004] Click Down Click Up
hey guys
i'm working on a thing at the moment which is a news bulliton im having trouble using the movie button you see when you click it plays so the main board drops down. but i want it so as when you click again it goes back up currently im using script like this:

Code:
on(press){
this.gotoAndPlay(2)
}
on(press){
this.gotoAndPlay(15)
}
the dropdown works fine when i emit the last 2 lines of coding but when im using it like it is above i belive the two (press) listeners cancel eachother out.

any help would be fab!
chris

A Simple Zoom From Senoculars Advance Zoom-and-pan Script
Hi guys,

I've tried to modify the zoom script on senoculars website to a total simple zoom function.

http://www.senocular.com/flash/source.php?id=0.76

I want to use the slider, but without the pan-function and zooming in on different places on the main window.

Only thing I need is the slider to zoom in on the center of my main movieclip. I need to have a max. and min. _xscale and _yscale...

Can anybody help me out here... It should be pretty simple, but never used the slider thingy before, so I'm all lost here...

thanks

Zoom Large Image (Stream Enlarge) W/ Pan & Zoom?
I have been scouring google looking for more information on how to zoom large map images with pan functionality.

I found one example of EXACTLY to a T of what I need http://www.veer.com/zoom/

Does anyone know where I can find more information as to the process of loading scaled images on the fly when zooming or what the process is called so I can find the information?

I need to get this working TODAY but have no idea what I am looking for. The map that I am using is quite large, and scale zooming will not do.

Thanks in advance...

Button Mouseover (zoom-in) Mouseout (zoom-out).. How?
OK, here's what I want to do, I have searched and not found anything on it.

OK, I have a button, and when the mouse goes over it, it snaps closer REALLY fast and has kind of a bouncing effect in and out until it finally comes to a complete rest.

Upon mouseout, it should go back to normal size... and before it comes to a stop, it has a little zoom-bouncing effect a well.


Can anyone help me?

Thanks a lot mates!

Zoom In And Zoom Out But No Loss In Resolution Of The Image
Hi there,
I am currently in the process of making a flash movie. In the first section of the movie I have three scrollers and there are buttons beside these scrollers to choose which components of the scrollers he/she wants.
Below these scrollers I have a button directing to the next page to see the sum of the three scrollers ie. the final result.
The final result image is rather small and I want to allow the user to see the image in more detail.
I have a zoom piece of code and it doesn't seem to work for me.
Can anyone help me out on this please?
Thanks

Zoom In And Zoom Out But No Loss In Resolution Of The Image
Hi there,
I am currently in the process of making a flash movie. In the first section of the movie I have three scrollers and there are buttons beside these scrollers to choose which components of the scrollers he/she wants.
Below these scrollers I have a button directing to the next page to see the sum of the three scrollers ie. the final result.
The final result image is rather small and I want to allow the user to see the image in more detail.
I have a zoom piece of code and it doesn't seem to work for me.
Can anyone help me out on this please?
Thanks

Zoom In - Repeat/delay Zoom?
I'd like an effect where after my preloader finishes the countdown, a static image which was part of the preloader zooms in to a much larger version.

That, I can do.

But what I am having difficulty doing, without frame by frame animation, is what I *really* want. That is, as it zooms in and slightly moves to the side, an 'echo' image or three are shown in its wake. I hope you know what I mean, since I am unsure how best to describe it. I'll try anyway.

Basically, the main image scales up from 10% to 100%, moving from center to stage left. As it does so, every 5th or 10th frame is frozen for a moment, while the main image continues to scale and slide. This would create an after-effect or 'echo' image just behind the main image.

Any suggestions on how to do this with the least amount of manual work?

Thanks!

Adapting Zoom Code To Use Zoom In And Out
i am using my code at the minute whereby when you click a button it activates a cursor and a function which allows you to click 3 times and with every click it zooms in. but i then want to be able to click a zoom out button which activates a different function whereby you can click 3 times dependant on the state.
below is my code

Quote:




import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
import fl.motion.MatrixTransformer;
{
const TWEEN_IN:String = "tweenIn";
const TWEEN_IN1:String = "tweenIn1";
const TWEEN_IN2:String = "tweenIn2";
const TWEEN_OUT:String = "tweenOut";
var tweenDirection:String;

var internalPoint:Point;
var externalPoint:Point;
var tw:Tween;
zoomBtn.addEventListener(MouseEvent.CLICK, activateZoomIn);


function activateZoomIn(event:MouseEvent):void
{

mapContainer.insideMap.addEventListener(MouseEvent .CLICK, zoomIn);
mapContainer.insideMap.addEventListener(MouseEvent .MOUSE_MOVE,redrawCursor);

function redrawCursor(event:MouseEvent):void
{
Mouse.hide();
mapContainer.zoomInPointer.x = mapContainer.mouseX;
mapContainer.zoomInPointer.y = mapContainer.mouseY;
}

function zoomIn($e:MouseEvent):void
{
mapContainer.insideMap.addEventListener(MouseEvent .CLICK, zoomIn1);
mapContainer.insideMap.removeEventListener(MouseEv ent.CLICK, zoomIn);

internalPoint = new Point(mapContainer.insideMap.mouseX, mapContainer.insideMap.mouseY);
externalPoint = new Point(mapContainer.insideMap.mouseX, mapContainer.insideMap.mouseY);

tweenDirection = TWEEN_IN;

tw = new Tween(null, "", Strong.easeOut, mapContainer.insideMap.scaleX, 2, 1, true);
tw.addEventListener(TweenEvent.MOTION_CHANGE, _syncScale);
tw.addEventListener(TweenEvent.MOTION_FINISH, _cleanTween);
}
function zoomIn1($e:MouseEvent):void

{
mapContainer.insideMap.addEventListener(MouseEvent .CLICK, zoomIn2);
mapContainer.insideMap.removeEventListener(MouseEv ent.CLICK, zoomIn1);

internalPoint = new Point(mapContainer.insideMap.mouseX, mapContainer.insideMap.mouseY);
externalPoint = new Point(mapContainer.insideMap.mouseX, mapContainer.insideMap.mouseY);

tweenDirection = TWEEN_IN1;

tw = new Tween(null, "", Strong.easeOut, mapContainer.insideMap.scaleX, 3, 1, true);
tw.addEventListener(TweenEvent.MOTION_CHANGE, _syncScale);
tw.addEventListener(TweenEvent.MOTION_FINISH, _cleanTween);
}
function zoomIn2($e:MouseEvent):void
{
mapContainer.insideMap.removeEventListener(MouseEv ent.CLICK, zoomIn2);

internalPoint = new Point(mapContainer.insideMap.mouseX, mapContainer.insideMap.mouseY);
externalPoint = new Point(mapContainer.insideMap.mouseX, mapContainer.insideMap.mouseY);

tweenDirection = TWEEN_IN2;

tw = new Tween(null, "", Strong.easeOut, mapContainer.insideMap.scaleX, 4, 1, true);
tw.addEventListener(TweenEvent.MOTION_CHANGE, _syncScale);
tw.addEventListener(TweenEvent.MOTION_FINISH, _cleanTween);
}


function _syncScale($e:TweenEvent):void
{
mapContainer.insideMap.scaleX = mapContainer.insideMap.scaleY = tw.position;

var matrix:Matrix = mapContainer.insideMap.transform.matrix;

MatrixTransformer.matchInternalPointWithExternal(m atrix, internalPoint, externalPoint);

mapContainer.insideMap.transform.matrix = matrix;
}

function _cleanTween($e:TweenEvent):void
{
tw.removeEventListener(TweenEvent.MOTION_CHANGE, _syncScale);
tw.removeEventListener(TweenEvent.MOTION_FINISH, _cleanTween);

tw = null;

if(tweenDirection == TWEEN_IN)
mapContainer.insideMap.addEventListener(MouseEvent .CLICK, zoomIn1);
if(tweenDirection == TWEEN_IN1)
mapContainer.insideMap.addEventListener(MouseEvent .CLICK,zoomIn2);
else if(tweenDirection == TWEEN_OUT)
mapContainer.insideMap.addEventListener(MouseEvent .CLICK, zoomIn);
}

[F8] Image Viewer And Zoom In & Zoom Out
hi friends,
I have attached two attachments with this.
My Query is.

There are nine images are equally displayed. On mouseover on an image The image will be Zoom Out and and displayed in the page center . The background images are diminished or a black color mask will be appear.

I want to done it in the flash If anyone done such thing. give ur views.how to do.

I want your suggestions and Thanks in advance.,

Zoom In Zoom Out With Mouse And Keyboard
is all about gain speed i forgot how to zoom with the keyboard and mouse. how do i zoom with the mouse and keyboard?

Copyright © 2005-08 www.BigResource.com, All rights reserved