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








This Could Be A Toughie . .Zoom In On Movie . .


Hi All,

I have a question. I just finished creating a standalone project.Now it looks great and all, but one of the end users requested the ability to zoom in on the movie. My movie's parameter size is 600x400.
Now with eye's like mine I can read text fine. But some of the general poulace may get eye strain (/jk). What I would like to be able to do is create a button that will allow the end user to zoom the movie WITHOUT having to go to the menu bar at the top of the FLASHPLAYER(projector). I have an intro that creates a fullscreen(); instance, and then calls the main movie.
I have found some informaion on this using a standard method javascript crossover code. :
Zoom 2,3,4, 5 2,3,4, 5
Syntax Zoom( percent )
Zooms the view by a relative scale factor specified by percent. Zoom(50) doubles the size of the objects in the view. Zoom(200) reduces the size of objects in the view by one half. Zoom(0) resets the view to 100%.

You cannot specify a reduction in the size of objects in the view when the current view is already 100%. The argument type is integer

Zoom 2,3,4, 5 2,3,4, 5
This only helps me if the movie is in a browser tho. What I would like to do is tell the movie to zoom in on a stand-alone projector.

Any help would be greatly appreciated.
Thank-you

Sincerely

ScrewFaceKiLLA




FlashKit > Flash Help > Flash MX
Posted on: 01-08-2003, 01:56 PM


View Complete Forum Thread with Replies

Sponsored Links:

Duplicate Movie Inherits Actionscript? Toughie...
Can't see a way to do this personally but thought I'd ask. Would be a good feature for future versions...

Is there a way feed a duplicated/attached movieclip a segment of actionscript? I want to atttach one from my library, but can't becuase attached/duplicated mc's have no actions.

The concept would be similar to the initObject parameter of attachMovie(); except attaching AS not visual properties.

Cheers.

View Replies !    View Related
THIS ONE'S A TOUGHIE PLEASE HELP
I am trying to make a text box that scrolls news headlines. I've got a timer working that tells the textbox to scroll +5 lines every 4 seconds. But this is a problem when the headlines and descriptions add up to more or less than 4 lines.

Is there a way that flash can recognize that it has a header at line one and stop scolling? What I mean is, can I tell the text box to scroll every 4 seconds until the next headline is at line 1?

the text file I am using has html format, so there are <b></b> tags and such around each heading.

HELP!

View Replies !    View Related
This Is A Toughie
How do you get a movie clip that is following the cursor to go to a certain _x _y coordinate when you rollover a button.

Thanx in Advance.

Nionicle......................................


(al(ulator

View Replies !    View Related
STill A Toughie
Hey thanx for all you help on the last post of mine. But i still cant get this to work. Here is everyone on my Tesat flash video.

1 frame.
2 objects 1 button 1 mc
The actions on the frame are:

stop ();

The ations on the button are:

on (rollOver) {
end_x = 550;
end_y = 550;
current_x = mc1._x;
current_y = mc1._y;
travel_x += (end_x-current_x)/10;
travel_y += (end_y-current_y)/10;
mc1._x = mc1._x+travel_x;
mc1._y = mc1._y+travel_y;
}
The actions on the movie clip.. it is named "MC1"
onClipEvent (enterFrame) {
_x += _xmouse*.1;
_y += _ymouse*.2;
}

And it doesnt work. the problem is on rollover, mc1 appears somewhere then moves strait back to the cursor.


Thanx IN advance

View Replies !    View Related
SCROLL TOUGHIE....LETS SEE IF YOU CAN GET THIS
Can someone tell me the script for a scroller where the text in my flash movie is picked up from a txt file..What I want is that If the text increases the scroll bar has a vertical slider which I want to adjust accordingly....meaning that if the text in the txt file increases the vertical slider has to adjust accordingly...

View Replies !    View Related
Toughie Involving Flash And Powerpoint
Okay people this is the situation:

I need to be able to control a powerpoint presentation (jump to different slides) via a Flash movie embedded in it. Can this be done using the VB end of PP or someother method? Or is it simply not possible?

ANY input is greatly appreciated even if you just post to sat 'I don't think t can be done' or whatever.

Thanks everyone
Mark

View Replies !    View Related
Zoom In Zoom Out For An External Swf Movie
Hi all,

Just wondering if anybody has done a zoom in and zoom out, as well as panning left to right using the mouse, for another movie (swf) which is loaded externaly. This can be simulated by right-clicking on any swf file, and clicking on the ZOOM IN button, after which the user can drag the entire page of the swf movie. Just wondering if this could be one. I've checked the forum, but I can't find anyhting relevant to my query. Might be 'cause I don't know which key word to use, haha. Thanks again1

View Replies !    View Related
Zoom In Zoom Out For An External Swf Movie
Hi all,

Just wondering if anybody has done a zoom in and zoom out, as well as panning left to right using the mouse, for another movie (swf) which is loaded externaly. This can be simulated by right-clicking on any swf file, and clicking on the ZOOM IN button, after which the user can drag the entire page of the swf movie. Just wondering if this could be one. I've checked the forum, but I can't find anyhting relevant to my query. Might be 'cause I don't know which key word to use, haha. Thanks again1

View Replies !    View Related
Zoom In / Zoom Out In Movie
Does anyone know how to make this effect in our animation?

Thanks

View Replies !    View Related
Zoom Whole Movie
I use Flash MX and want to make a function that zooms a part of the movie to full screen. It's not just one objects, but a zoom in the whole movie... is that possible?

Thanx, Patrick

View Replies !    View Related
Zoom In The Movie
How can i make a close-up on a characters head when he talk, for exemple, during the movie. (What i must do in flash, for this happen)

View Replies !    View Related
Zoom To Another Movie
ok, this is the plan:

i'd like to make a button,a square, wich when i realease it zoom and open the page it is linked to.
how can i do?
i could do an animation for the button, at the end of it i give the Ascript to load the movie...it's fine so?
there is a better way?

View Replies !    View Related
Zoom In On Flash Movie?
It may be difficult to express exactly what I want to do, but I'll try.

I want to develop a flash movie that shows a family tree building itself. I want it to appear as if it's being drawn, and that the image is originating from a single point. That's easy enough. Just a bunch of images of connected lines with masks to reveal them at just the right time.

Now I know how to create that. But what I want to do is have my "camera" zoom in and follow the lines as they're being drawn and then be able to zoom out and reveal the entire image at the end. Get what I mean? I know how to do this in After Effects, but I'm not so sure of myself in flash. Any tips? Thanks!!!

View Replies !    View Related
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

View Replies !    View Related
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...

View Replies !    View Related
How Do I Zoom/magnify Part Of A Movie?
Hello all,

I have a slight problem with a movie I am making. I want to have a circle appear on screen and everyting in the movie below needs to be zoomed by about 250%. This will just be a static movie so it doesn't need to be a draggable magnifier. I have managed to achieve it to an extent with masks etc. but they are very processor intensive so quite difficult to use properly. I have included a link to the .fla so that you can see what I mean.( http://www.universal-soccer.co.uk/markrosoftindex.fla ) p.s. you will have to right click and go save target as to retrieve this file.

Please give some advice,
Toby

P.S. I tried this in the general help forum but I don't think it was the right place for the post

View Replies !    View Related
How To Zoom In And Out, And Pan Viewers Image In A Movie
Zooming and panning in a movie

Hey, I think I should of posted this in the Noobs place, but anyway....

How exactly can you zoom/pan a movie?

What I have been doing is unlocking all the layers, making a key frame for every layer where I want it to get bigger,then make them all a motion tween, highlight everything on the stage, then go to transform, and make them like 400x size....Is there an easier way???

View Replies !    View Related
Maintaining Zoom Despite Movie Size
Hi

I'm just working on a little joke thingie....

See: http://www.w3bdevil.com/download_the_internet.asp

(oh, it only works in M$IE so far)

Yes, I know there are a few bugs, the first of which is that it's zoomed in

....This is because it's set to Width="100%" and Height="100%"

Is there any way to make it stay at 100% Zoom though?

....And I'm also interested in those flash programs Macromedia make that have elements that reposition themselves as the window changes size, rather than scaling, such as the "full-screen" variant of their FlashPaper product

-W3bbo

View Replies !    View Related
Adding Link To A Zoom Movie
Hey guys,

I am currently trying to add a link to a zoom "movie" if you want to call it that. The tutorial for the zoom aspect can be found HERE.

This is what I have done, and what I need to have happen:

Instead of clicking to activate the zoom part, I have it set to be a rollover and rollout effect. The link which I speak of will happen at the "zoom in" part (when the image stops, I want to be able to click that image, and it will take you to page X)

So here is a quick runover again:

rollover image - zooms in - clickable image to link to new page - If not clicked then rolloff - zooms out

hopefully I explained myself fairly well. Any help would be MUCH appreciated!

Cheers

View Replies !    View Related
Is There An Easy Way To Zoom In And Out In Your Flash Movie?
Here's the thing, i've been dealing with flash for only a little while now and i was wondering if there's an easy way to zoom in on your characters while their speaking in your movie. At the moment i've been selecting everything on the screen and just expanding it, then i would put a white symbol (like a white rectangle) covering the bits of my animation hanging over the Frame.

Do i have to keep doing this or should i just expand the image then rub out the overhanging animation or what?

If you could help that would be great.

Thanks

View Replies !    View Related
[MX, 04] How To Reset A Zoom, And Pan Movie Clip?
Hello all,
i have a movie clip that i can zoom and pan, but i am trying to make a reset button that goes to my default position of the mc. I'm thinking about telling the button to place the mc at (0,0) cordinates and scale back to 100%. Am i on the right track? i am using vr. MX, 04.

Thanks for any help!

View Replies !    View Related
Lokking For Zoom Tutorial/movie
Hi,

I'm looking for a tutorial or a movie for download that I saw some months ago. It was something like this: there were lots of circles (or squares?) lined up and then when you moved your mouse over them they would zoom in and then (on mouse out) slowly zoom out.

Can anyone help me finding this.

Many thx,
nolas

View Replies !    View Related
Drag And Zoom Movie Clip
Hi all of the Flash expert all around the world ! I need help from all you guys.


I was trying to do a Interactive map using flash MX. But It seen like having some

problems.


1) the map can be drag for the specific area only because I just draw 1/3 of the

map.the rest i dont want to be show in the flash movie. so i dont want it to be drag

until they can see the rest of the area, because it's look not nice. Even I use the

rectangular constraint in the flash but when the i click the zoom button it will

disturb the drag again... pls help me !

I hope you guys can understand what i am talking ,you can download the fla file from

here http://www.geocities.com/pekingdragon/map.zip
(point the link right click and select save target as...)

or you can view this website :::

http://www.geocities.com/pekingdragon/map.htm

and help me to test for this map. thank you !


Your help will be kindly appreciate !

View Replies !    View Related
Flash Movie With Javascript Zoom
Hi,

I have a flash movie which slides thumbnails. The data for the thumbnails images comes from a xml file.

This is the xml file:

<scroller>
<item image="thumbs/11.jpg" label="Caption 1" data="http://www.google.com/" />
<item image="thumbs/12.jpg" label="Caption 2" data="http://www.google.com/" />

</scroller>

As you can see I am able to go to a website when clicking on a thumbnail in the flash movie. However, I would like to combine the flash movie with a lightbox type gallery. This is the gallery effect that I would like to achieve
http://www.cabel.name/draft1/2008/02/fancyzoom-10.html
So, when clicking on the flash movie thumbnail, I would like for a bigger image to "zoom" out.

Is it possible to achieve this? What parameters would I have to put in the xml file for the flash movie?

Thank you very much,

Florian

View Replies !    View Related
Drag And Zoom Movie Clip
Hi all of the Flash expert all around the world ! I need help from all you guys.


I was trying to do a Interactive map using flash MX. But It seen like having some

problems.


1) the map can be drag for the specific area only because I just draw 1/3 of the

map.the rest i dont want to be show in the flash movie. so i dont want it to be drag

until they can see the rest of the area, because it's look not nice. Even I use the

rectangular constraint in the flash but when the i click the zoom button it will

disturb the drag again... pls help me !

I hope you guys can understand what i am talking ,you can download the fla file from

here http://www.geocities.com/pekingdragon/map.zip
(point the link right click and select save target as...)

or you can view this website :::

http://www.geocities.com/pekingdragon/map.htm

and help me to test for this map. thank you !


Your help will be kindly appreciate !

View Replies !    View Related
Drag And Zoom Movie Clip
I had solve the problems , but it seen like still got some bugs!

1) When It zoom into very detail part of the map and drag it ,zoom out again the map will not back to the same location (x,y). Why?

2) When I press the zoom button, the scale of the map will diffrent from the original map.


you can view this website :::

http://www.geocities.com/pekingdragon/map.htm

and help me to test for this map. thank you !


Your help will be kindly appreciate !


you can download the fla file from

http://www.kirupaforum.com/forums/at...&postid=146460

View Replies !    View Related
Zoom In And Center On An Arbitrary Movie Clip
I am working on a system that uses a floor plan. It gets the information for it from PHP and MySQL. All of that works fine.

What I'd like to be able to do is have the user select an object on the map, and tell it to zoom and center this. I can write the code for the PHP just fine for this. My problem is with the Actionscript.

For the time being, I'd just like to be able to stick into my onClipEvent(load) something that will zoom in and center the movie clip that I specify. From there, I can figure it out.

I've been messing around with the _x and _y positions, but am having no luck.

View Replies !    View Related
How Can I Move The Camera In A Flash Movie ( Zoom In & Out)
Hi, I want to know how I can make the camera zomm in and out or left and right in a flash movie ! Where can I find the controls ?

View Replies !    View Related
Stuck With Zoom In And Zoomout Button For A Movie
Hi ! There,

How do i go about a zooming a movie on button click and zoom out on another button click...

I tried placing two buttons for zoom in and zoom out...
where I used setproperty parameter x_scale n y_scale...It scales movie only once..up to the defined value

Help Pls..

Sabs

View Replies !    View Related
Separate Xml Galleries In A Zoom Navigated Movie
Greetings to all,

I am having difficulties running additional xml resizable galleries in separate locations of a zoom-navigated movie.

To view the zoom navigation, visit the site I'm designing:
www.nemyofdastate.com

It is my intent to have an xml picture gallery or a video player anchored in the 6 different quadrants of the main movie without having their paths disrupted. I inserted an additional gallery recently and upon testing, the paths to the jpg folders were broken.

I'm new to xml management. If someone could assist me on how to solve this problem I would be grateful.

Best,

Paul

View Replies !    View Related
Separate Xml Galleries In A Zoom Navigated Movie
Greetings!

I am having difficulties running additional xml resizable galleries in separate locations of a zoom-navigated movie.

To view the zoom navigation, visit the site I'm designing:
www.nemyofdastate.com

It is my intent to have an xml picture gallery or a video player anchored in the 6 different quadrants of the main movie without having their paths disrupted. I inserted a second gallery recently and upon testing, the paths to the jpg folders were broken.

I'm new to xml management. If someone could assist me on how to solve this problem I would be grateful.

Best,

Paul

View Replies !    View Related
Zoom In On A Movie Clip To Reveal Hot Spots
Here is the code I am currently using, yet its not exactly want I need... I would like to zoom in on a movie clip as opposed to a static jpg. The reason is I want to add hot spots on the image that reveal callouts... If there is a way to use a movie clip in the place of the jpg, I have been unable to get it to work. Any direction and or assistance would be great, so thanks in advance...


package org.FlepStudio
{
import flash.display.*;
import flash.text.*;
import flash.events.*;
import flash.net.*;
import flash.ui.*;
import caurina.transitions.Tweener;

public class Main extends MovieClip
{
private const IMAGE_PATH:String='07_Zoom.jpg';

private var more:More;
private var less:Less;

private var container_mc:MovieClip;

private var original_width:Number;
private var original_height:Number;
private var ratioW:Number;
private var ratioH:Number;

private var boo:Boolean=true;

public function Main()
{
addEventListener(Event.ADDED_TO_STAGE,init);
}

private function init(evt:Event):void
{
removeEventListener(Event.ADDED_TO_STAGE,init);

stage.frameRate=31;

apple_mc.alpha=0.8;
apple_mc.width=apple_mc.height=50;
apple_mc.x=stage.stageWidth/2-apple_mc.width/2;
apple_mc.y=stage.stageHeight/2-apple_mc.height/2;

initMenu();
createContainer();
addMoreAndLess();
loadImage();
}

private function createContainer():void
{
container_mc=new MovieClip();
addChild(container_mc);
}

private function addMoreAndLess():void
{
more=new More();
more.visible=false;
more.mouseEnabled=false;
addChild(more);

less=new Less();
less.visible=false;
less.mouseEnabled=false;
addChild(less);
}

private function loadImage():void
{
var request:URLRequest=new URLRequest(IMAGE_PATH);
var loader:Loader=new Loader();
loader.contentLoaderInfo.addEventListener(Progress Event.PROGRESS,setProgress);
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE,setComplete);
loader.load(request);
}

private function setProgress(evtrogressEvent):void
{
var percent:uint=(evt.bytesLoaded/evt.bytesTotal)*100;
pre_txt.text=percent+' %';
}

private function setComplete(evt:Event):void
{
apple_mc.stop();
removeChild(apple_mc);
removeChild(pre_txt);

evt.target.loader.removeEventListener(Event.COMPLE TE,setComplete);

var bitmap:Bitmap=evt.target.loader.content as Bitmap;
bitmap.smoothing=true;
original_width=bitmap.width;
original_height=bitmap.height;
bitmap.width=stage.stageWidth;
bitmap.height=400;
container_mc.addChild(bitmap);

ratioW=(original_width-stage.stageWidth)/stage.stageWidth;
ratioH=(original_height-stage.stageHeight)/stage.stageHeight;

addMouseListeners();
addPicListeners();
}

private function addMouseListeners():void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE,setMo ve);
}

private function setMove(evt:MouseEvent):void
{
if(container_mc.hitTestPoint(mouseX,mouseY))
{
Mouse.hide();
if(boo)
{
more.x=mouseX;
more.y=mouseY;
more.visible=true;
less.visible=false;
}
else
{
less.x=mouseX;
less.y=mouseY;
more.visible=false;
less.visible=true;
}
}
}

private function addPicListeners():void
{
container_mc.addEventListener(MouseEvent.MOUSE_DOW N,setPicDown);
}

private function setPicDown(evt:MouseEvent):void
{
evt.target.mouseEnabled=false;

var bitmap:Bitmap=evt.target.getChildAt(0) as Bitmap;
if(!boo)
{
Tweener.addTween(bitmap,{x:0,y:0,width:stage.stage Width,height:400,time:0.5,transition:"easeOutQuad" ,onComplete:enableMoreOnly});
}
else
{
var arrX:Number=mouseX*ratioW;
var arrY:Number=mouseY*ratioH;

Tweener.addTween(bitmap,{x:-arrX,y:-arrY,width:original_width,height:original_height,t ime:0.5,transition:"easeOutQuad",onComplete:enable LessOnly});
}
}

private function enableMoreOnly():void
{
less.visible=false;
more.x=mouseX;
more.y=mouseY;
more.visible=true;
boo=true;
container_mc.mouseEnabled=true;
}

private function enableLessOnly():void
{
more.visible=false;
less.x=mouseX;
less.y=mouseY;
less.visible=true;
boo=false;
container_mc.mouseEnabled=true;
}

public function initMenu():void
{
var etichetta:String='Flash CS3 zoom';
var cm:ContextMenu=new ContextMenu();
var item:ContextMenuItem=new ContextMenuItem(etichetta);
cm.hideBuiltInItems();
cm.customItems.push(item);
item.addEventListener(ContextMenuEvent.MENU_ITEM_S ELECT,itemHandler1);
this.contextMenu=cm;
}
private function itemHandler1(event:ContextMenuEvent):void
{
var url:String='http://www.flepstudio.org/';
var request:URLRequest=new URLRequest(url);
navigateToURL(request,'_parent');
}
}
}

View Replies !    View Related
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!

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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

View Replies !    View Related
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!

View Replies !    View Related
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);
}

View Replies !    View Related
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");
}

View Replies !    View Related
[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.,

View Replies !    View Related
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?

View Replies !    View Related
Zoom In-Zoom Out World Map By ActionScript
i m trying to make a Zoom In-Zoom Out a world map.What i want when i click on 1 particular part(country) at that time that part(country) will be zoom in,and after that when i click on a samepart(part which is zoom in),at that time its will be zoom out(at original size). is is possible by actionscript? if yes plz,How?plz tell me in details....


Thank u.

View Replies !    View Related
Move & Zoom In, But Wont Zoom Out. - HELP PLEASE
I have 2 scripts, that by themselves work just fine.
The first upon clicking moves items to the correct location.
the second zooms the final item in - action script to 300%. when another button is pushed that item is zoomed back out.
when they are combined for some reason the zoomItem holds the script from zoomIn and uses the settings for zoomOut, but does not zoomOut. It loops back to the zoomIn script. Can anyone see where these scipts are fighting?

View Replies !    View Related
Move & Zoom In, But Wont Zoom Out. - HELP PLEASE
I have 2 scripts, that by themselves work just fine.
The first upon clicking moves items to the correct location.
the second zooms the final item in - action script to 300%. when another button is pushed that item is zoomed back out.
when they are combined for some reason the zoomItem holds the script from zoomIn and uses the settings for zoomOut, but does not zoomOut. It loops back to the zoomIn script. Can anyone see where these scipts are fighting?
It appears that the move and then zoom in loops. The zoom in occrus and then for soem odd reason loops back to the start of the move sequence, but since the action is completed it moves to the zoom in.. which is why the zoom out only briefly works.. it zooms out a bit then loops back the the move script then to the zoom in script, which zooms it back to 300%. I have tried settin up catches and set varibles, but nothing seems to release it.

View Replies !    View Related
Remove The 'zoom In' 'zoom Out' Options
hello, my question is, when I click on the right mouse button, it shows me 3 options

"zoom in" "zoom out" "show all"

I saw in few sites that they remove it... how can I do it?


thanks... =]

View Replies !    View Related
[Help]: Help Needed Creating A Zoom Menu Like Flashloaded's Zoom Menu
Hi,
Can someone please tell me how to create a zoom menu such as the one offered by Flash Loaded -
http://www.flashloaded.com/zoommenu.php
Or does anyone have any similar menu ideas?
Also, instead of keeping it as squares, is it possible to make it circles.
Looking forward to hearing from someone at the earliest.
Thanks in advance.

View Replies !    View Related
Zoom In - Zoom Out - Show All
What is it that makes a flash movie (when right clicked) show the menu items Zoom In - Zoom Out etc. And what makes it only show Settings/About Macromedia Flash Player?

View Replies !    View Related
Zoom In Zoom Out Navigation
Hi all, Im tryin to put together a navigation for my page.
I have a very wide and high page, and I want it to scroll nicely
to different parts of the page when different buttons are pressed.
Ive seen a tutorial on a navigation said to be like the one on LEnny Kravitz's site or somffin, where it zooms out and then in on the right section....anyone know where this tut is??

Or can help in some other way??

View Replies !    View Related
How Can I Do Zoom In And Zoom Out With Mouse?
Hello Dear Friends,
hi,
Dear there is a web site
http://www.amplifier.com/

here he has used a very good navigation.
When we click on (+) button it zoom in and when we click
on (-) button it zoom out.
and there is also a smoothness when we click on any button.
it move smoothly.
it is not only on website that have used this type of navigation, there is a lot of websites now a days that have used this type of.....
i have searched a lot of, but i can't get any help?

I want to know how it is possible to do this to zoom in or zoom out with mouse.
If someone have a link or tutorial or and suggestions
then please tell me i shall be very thankful to you for this
purpose.

Your Sincerely,
Amir

View Replies !    View Related
Map Zoom Tool Does Not Zoom In...
I have a main "main-menu.swf"
I'm loading "map1.swf" in main-menu
I'm also loading "nslidebar.swf"

"nslidebar.swf" does not control the map when in "main-menu"

It only controls the map if I launch "map1.swf"

What can I do to use the zoom control in "main-menu"?
Downlaod Here

View Replies !    View Related
How To Do Zoom In/Zoom Out Like Matthewmahon.com
Does anyone know how these sites were developed. Any .FLA out there??

matthewmahon.com
http://www.bbdo.com
http://www.saturday-london.com

Any help would be appreciated.

HH

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved