Map Zoom In
check out this attached file and code confused me .could someone improve upon it so that there are 2 buttons .zoom in n zoom out that are clicked to perform their duties respectively .
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 04-07-2006, 06:58 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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!
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
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);
}
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");
}
[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 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.
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?
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.
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
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... =]
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
Zoom In Zoom Out Script For Vector.
Hi Peeps,
I have created an enterframe script to tween a movie clip. The tween changes the _xscale/_yscale values (uniformly), and the _x and _y positions.
The script will increase the scale and move the x and y positions in one direction, but when i want it to decrease the scale back down again, or move x and y in the other direction, it wont work. Does it have something to do with the else if statement i have included to move the increment in the opposite direction?
Here is the code, its a bit of a dogs breakfast.
onClipEvent(enterFrame){
/*use an if statement to get an update sprite on each enterFrame, as a while or for statments never
refresh the stage until the condition is met.*/
if(z==1){
//create decrementing values passed from the unique values in each button.
trace(fridgeScale);
scaleSpeed= Math.abs((fridgeScale - _xscale)/5); //(scale / 5 iterations.)
trace("Current scaleSpeed interation value = " + scaleSpeed);
posSpeedX = Math.abs((newX - _x)/5); //(distance / 5 iterations.)
trace("Current posSpeedX interation value = " + posSpeedX);
posSpeedY = Math.abs((newY - _Y)/5); //(distance / 5 iterations.)
trace("Current posSpeedY interation value = " + posSpeedY);
//if statement to make sure the iterations of scaleSpeed, posSpeedX and posSpeedY dont get too small.
if(scaleSpeed <= 2){
scaleSpeed=2;
trace("ScaleSpeed got too small so i made it = " + scaleSpeed)
}
if(posSpeedX <= 2){
posSpeedX = 2;
trace("posSpeedX got too small so i made it = " + posSpeedX)
}
if(posSpeedY <= 2){
posSpeedY = 2;
trace("posSpeedY got too small so i made it = " + posSpeedY)
}
//adds the scaleSpeed increment to the movieClip, until it reaches desired scale(fridgeScale)
if (_xscale < fridgeScale) {
trace("Current Scale size = "+_xscale);
_xscale+=scaleSpeed;
_yscale+=scaleSpeed;
}else if (_xscale > fridgeScale) { //scales Down the size of the fridge mc.
trace("Current Scale size = "+_xscale);
_xscale-=scaleSpeed;
_yscale-scaleSpeed;
}
//subtracts the posSpeedX increment to the movieClip, until it reaches desired x pos(newX)
if(newX<_x){
_x-=posSpeedX;
}else if(newX>_x){ //move y postion of the movie clip in the opposite direction.
_x+=posSpeedX;
}
//subtracts the posSpeedY increment to the movieClip, until it reaches desired y pos(newY)
if(newY<_y){
_y-=posSpeedY;
}else if (newY>_y){//move y postion of the movie clip in the opposite direction
_y+=posSpeedY;
}
//enter this statment when the scale and x, y position has finished.
if(_xscale >= fridgeScale){
trace("Final Scale size = " + _xscale);
trace("Final x pos = " + _x);
trace("Final y pos = " + _y);
z = 0
}
}//end z = 1 statement.
}
Basically each time it enters the frame the increments(scaleSpeed, posSpeedX, posSpeedY) get smaller, to give an 'ease in' effect to the tween, and when the scale has been reached, it stops. Although to stop the increments getting too small i have implemented if statments that keep the iterations at a minimum value of 2.
What is it I need to move the scale in the opposite direction? if the new scale size(fridgeScale) is less than the current scale value, as well as move to new x,y locations (newX and newY) and if they are greater than the current positions? the else if part of my code dont seem to cut it! :)
The code that moves between the newX and _x positions may look incorrect, but this is because the x and y positions move into negitive numbers.
Cheers
Paul.
[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.
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?
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??
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
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
Zoom In On .swf If Zoom Is Disabled
There's an .swf file that I want to be able to zoom in on, but the "Zoom" option is disabled. Is there a hack, say for Firefox, or a stand alone program that will enable the zoom feature in the Flash player?
Thanks!
Zoom In And Zoom Out Function
hi all,
i was a following code which include a moive clip called photo and two buttons:
if i click the two buttons , it always enlarge the photo about 0,0 .
any suggestion to enlarge the photo about the center point of the stage?
Attach Code
photo._x=0 ;
photo._y=0;
photo.onPress = function() {
this.startDrag();
};
photo.onRelease = function() {
this.stopDrag();
};
incr_btn.onRelease=function(){
photo._xscale=photo._xscale+2;
photo._yscale=photo._yscale+2;
}
decr_btn.onRelease=function(){
photo._xscale=photo._xscale-2;
photo._yscale=photo._yscale-2;
}
Zoom In Zoom Out Images Through Xml
Hi All,
Can anyone give me idea to zoom in and zoom out images through xml , I have seen quite a few examples but in all there are images embeded in flash
Wht i am looking for images will be in xml file.........and the component of zoom in and zoom out will with be in flash.........
any suggestions,,,,,,,,,,will be of great help,
Thank You
Rohit Yog
How Do You Turn Off Zoom In/zoom Out?
How do you turn off zoom in/zoom out on a flash site like when you right click you don't have the option to zoom in or out.
examples: www.nt-sky.com, www.2advanced.com
Button: Zoom In Mouse Over, Zoom Out Mouse Out? (noob)
Please humour my ineptitude here. I want to make buttons that "zoom in" or scale up upon mouseover, depress on click and zoom out on mouse out. I figure I need a script for this withe on mouse over go to frame # whatever, but i dont fully understand the functions and commands of MX. Please would someone run me through what I would need to do to create this effect?
Zoom On...zoom Off
I am trying to make a movie that does not zoom in or out using flash. A fixed size so to speak.
I have made a button.....and inside the button, rollover activates the movie......but...when you zoom in (right click on mouse)...the movie goes off the screen and you can't see it all because it zooms too.
Does anyone know if I can turn off the zoom for the particular movie that i have inside the button??
HELP!!!
How Do I Zoom In?/
Hey duedz,
I'm developing, or rather, copying and pasting an image into an already ready-made movie clip where you can "pan" over the image, similar to 360 degree viewers but restricted to 180 degrees. Anyways, I've seen the ones that have a zoom in/out function. I've looked for those in the tutes but have found only the ones that move side-to-side, but no zoom. Then I found the perfect zooming tute, but no FLA to download!
http://www.flashkit.com/tutorials/3r...15/index.shtml
I'd develop this myself, but lack of experience and time constraints dictate here, so if you know of a tute with a panning/zoom combination, lemme know!!!!
appreciate it,
rich
ps. i'll email the fla that i started if required...
Zoom
Is there a zoom function in flash for zooming in and out?
Zoom In?
How do I make a SWF that is zoomable by where the mous clicks.
Zoom In/out
Is it possible to zoom into a location without increasing it's _xscale or _yscale or anything like that because it's very hard to zoom into something that's like in the corner..
/ has add (art deficit disorder, lol)
Map Zoom
I have a map that is loaded into an MC. Does anyone know how to set it up so that when a user clicks on the map, it will zoom to that area?
Thanks.
Zoom In
Does anyone know where a tutorial is that explains how to Zoom in on a particular part of a scene.
Thanks alot for any help
How To Zoom In?
I was wondering how to go about scripting a button to zoom in about 300% on a particular part of the main stage. Is this even possible?
No Zoom Please?
Hi all!
Is it possible to deactivate the zooming function by right clicking a swf?
Grateful for answers, daniel
Help, Need To Zoom Map
Hi guys,
Can anyone help me.
I'm trying to do an interactive map in swish. Where you
can zoom, pan etc.
This site is the perfect example
http://www.lorissoft.com/lvme_demo/map_explorer.htm
Its so frustrating, the feature seems simple, but just dont know how to go about it.
Your help will be very much appreciated
--- Flashchick21 ---
...::: ZoOM ZOom :::...
i am adding a zoom feature in a flash site. Now what i have at the moment is pretty dull as far as zooming goes. (it just clicks in and out)
i'd like to add a transistion, such as a bounce or accel-decel kind of thing.
i did actually find just the thing in the movies archive of fk, unfortnately though it requires placing additional frames inside of the mc to be zoomed in on. this i cannot do due as i need to maintain a constant loop.
any ideas would be big-up-rizzzzpekedid!
...::: ZoOM ZOom 2 :::...
hello,
i posted up a problem that i was having with zooming into a mc a few days ago. i got some really good replies (thanks all) but i haven't quite layed this one to rest.
my problem is that i have a mc that i need to have a zoom in and zoom out function on. now this i had working fine. my problem came when i needed to add a transition effect, in this case a "bounce", so the mc, when zoomed in on bounces into place, rather than just moving and stopping suddenley.
after all the help i recieved i am nearly there, the glitch is that i have to repetedley click the zoom in, zoom out buttons to get them to animate, instead of just one click and then it animates.
here is my frame script:
fscommand("allowscale", "false");
Movieclip.prototype.elasticScale = function(target, accel, friction) {
speed += (target-this._xscale)*accel;
speed *= friction;
this._xscale = this._yscale += speed;
};
Movieclip.prototype.elasticMove = function(target, accel, friction) {
speed += (target-this._x)*accel;
speed *= friction;
this._x += speed;
};
and here is my zoom in script on the button:
on (release) {
ball.elasticScale(400, .9, .6);
}
anyone?
How Did They Do The Zoom?
Hi All...
http://www.geelongstreets.com.au/
click 'Go' and then look at the street map.
There is a ZOOM SLIDER control on the right.
Err... this is really cool. Any ideas on how they did that?
Thanks!
-dhomes
joel@dhimaging.com.au
Zoom Zoom Zoom
I have an image that I am displaying in a specific frame, and I would like to zoom in on a particular section of the image once the user hits a button to view something. Any time of help with an image and zooming would be much appreciated.
Cheers
Zoom
where do i have to convert into if i want to make a zoom effect with tweening. the file to zoom is a png file.
need fast anser ... hase to be ready over a few minuts
Zoom-in Zoom-out
how would i make it so that during my game that i am making it will zoom in and out when they click on the - + buttons im going to make?
Zoom And Pan
I have place the following actionscript on the actions of a MC to make it zoom in and out. The problem is that I do not know how to pan up or down without using the Flash player commands (space bar and click/drag) and the top and bottom half of the MC go off the screen when you zoom in.
I was wondering if there is some additional code that would allow a user to simply move the mouse up or down, right or left to pan appropriately. Also other solutions are much appreciated.
On(rollover) {
//zoom in
this._xscale = 150;
this._yscale = 150;
}
On(rollout) {
//zoom out
this._xscale = 50;
this._yscale = 50;
}
Zoom
How do i zoom in my movie for example if rhere is a bomb placed and i want to zoom in so you see the timer how do i do then?
Zoom
Hi , id like to know how can i zoom an object with AS, example , on roll over a button , the object zooms , on roll out , return to the original position, but both softly
thanks
Zoom
I asked this question earlier in another forum but the answer didnt seem to work the way I wanted.
Im doing a zoom effect and its working, but I dont want it to go under a certain size. So here is the code I came up with to stop it. But it doesnt seem to be working. Any help would be a appreciated
First I create this variable at the root level.
ActionScript:
Difference = (_root.panorama._width - 4307.6)
Here 4307.6 is the original width of the movie clip and difference should just return the difference of whatever the current width is minus 4307.6
And then on the actual movie clip i put this code
ActionScript:
onClipEvent (load) {if (Difference >= 0) {_root.panorama._width = 4307.6;
_root.panorama._height = 446.0;
}
}
Here i was trying to get it to be the original width and height if the difference was less than or equal to zero. But its just not working
Any help would be really appreciated
Thanks,
Eric
|