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




Scroll Zoom, Dynamic Txt



hi guys

this is realy cool effect, i am looking for such effect.

http://www.onebyonedesign.com/flash/newsScroller/

i don't how it is done.

if any one knows abt this effect dan plz do let me know abt this effect..


???



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 04-18-2007, 07:02 AM


View Complete Forum Thread with Replies

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

Dynamic Scroll + Zoom (what A Headache)
If any body can help me get through this it would be much appreciated.

What I'm trying to do is create a dynamic map that scrolls with movements of the mouse and if you click on the map it zooms in. This I have managed to do but the problem is the map borders scroll off the page. I have no idea can to stop the scrolling when the map gets to the borders.

Do anybody have examples of this or links they can direct me to.

Thanks in advance.
M.

Scroll N Zoom
hi list
the effect/interface m trying to create is something like this:

there r a number of thumbnails scrolling at the top, horizontally.
if i rollover a thumbnail it should scale up and come to the centre of the screen.irrespective of the position of the thumbnail it should zoom right from where it is at the time of scrolling. and it should not b like having a big pics movie clip that using tell target displays a big pic of thumbnail; it should actually zoom in. and when it scales up and come in centre its place should look empty in scroll pics. and other pics should keep scrolling.

m essentiallly a programmer and i know i cant do it without prog. tho i do basic programming in v5.0 but flash mx is completely alien to me. i have never ever felt more uncomfortable with flash bfore mx.

i'd b extremely greatful to anyone who'll try to help me.
windows 98, flash 5, flash mx
many thanx

Scroll And Zoom
hi list
the effect/interface m trying to create is something like this:

there r a number of thumbnails scrolling at the top, horizontally.
if i rollover a thumbnail it should scale up and come to the centre of the screen.irrespective of the position of the thumbnail it should zoom right from where it is at the time of scrolling. and it should not b like having a big pics movie clip that using tell target displays a big pic of thumbnail; it should actually zoom in. and when it scales up and come in centre its place should look empty in scroll pics. and other pics should keep scrolling.

m essentiallly a designer and i know i cant do it without prog. tho i do basic programming in v5.0 but flash mx is completely alien to me. i have never ever felt more uncomfortable with flash bfore mx.

i'd b extremely greatful to anyone who'll try to help me.
windows 98, flash 5, flash mx
many thanx

Zoom/scroll
Hi,

I'm trying to make a movieclip scroll down, but once it reaches a certain point, I need to stop scrooling even if you are still pressing (on (press)). How do you make it stop scrolling once it reaches a certain point? I have the same problem trying to zoom the picture....it disappears. Can anyone help?

/Emma

Zoom And Scroll Help Please
hello i am in the middle of creating an interface but in the movie
i have to zoomin and and use the scroll bars on the side i used the built in function for the scrolling but the zoooming needs to cahnge the size of the bars and the image so on if you go to this link

I really have to figure this out

i uploaded the movie here
www.fly-through.com/orcun/zoom.swf

thanks for the help

Zoom/scroll
Hi,

I'm trying to make a movieclip scroll down, but once it reaches a certain point, I need to stop scrooling even if you are still pressing (on (press)). How do you make it stop scrolling once it reaches a certain point? I have the same problem trying to zoom the picture....it disappears. Can anyone help?

/Emma

Zoom/scroll
Hi,

I'm trying to make a movieclip scroll down, but once it reaches a certain point, I need to stop scrooling even if you are still pressing (on (press)). How do you make it stop scrolling once it reaches a certain point? I have the same problem trying to zoom the picture....it disappears. Can anyone help?

/Emma

Zoom/scroll
Hi,

I'm trying to make a movieclip scroll down, but once it reaches a certain point, I need to stop scrooling even if you are still pressing (on (press)). How do you make it stop scrolling once it reaches a certain point? I have the same problem trying to zoom the picture....it disappears. Can anyone help?

Map Zoom & Scroll By Draging
Hi there,

I am working on a map panel.

I want to have 8 zoom levels on my map.
zoom level will be set by using the mouse wheel when the pointer on the map.

Also I want the map can be scrolled by holding the mouse wheel down and draging in any direction. In addition, using the arrow keys.

Thanks

Mouse Scroll Zoom
Hey, this took me a LONG time to sort out so i thought i'd post it online so others find it easier.
This allows you to zoom on a mc with the mouse scroll while keeping the mc centered by the cursor.



ActionScript Code:
addEventListener(MouseEvent.MOUSE_WHEEL, Zoom);
         function Zoom(e:MouseEvent):void
        {
            var mod:Number = 10;
            map_drag.scaleX += e.delta / mod;
            map_drag.scaleY += e.delta / mod;
            map_drag.x = ((2 * mouseX) - (2 * (e.localX * map_drag.scaleX))) / 2;
            map_drag.y = ((2 * mouseY) - (2 * (e.localY * map_drag.scaleY))) / 2;
        }

Hope this helps

Scroll Wheel Zoom Mac
Hi, I have recently moved from PC to mac, i used to always use ctrl+shift+scroll wheel to zoom in and out on the stage in flash how ever i can't seem to find the equivilent shortcut for the mac. There isn't a setting for this in the configure shortcuts menu for either version. Anyone got any ideas as it slows my workflow.

thanks
Jon

Scroll Wheel Zoom Mac
Hi, I have recently moved from PC to mac, i used to always use ctrl+shift+scroll wheel to zoom in and out on the stage in flash how ever i can't seem to find the equivilent shortcut for the mac. There isn't a setting for this in the configure shortcuts menu for either version. Anyone got any ideas as it slows my workflow.

thanks
Jon

Zoom And Scroll Gallery
I apologize if something like this has already been covered before.

At http://www.aarondeemer.com/, in the "new works" section he has a photo gallery that consists of a long strip of images, and when you click on one it scrolls toward it while zoming in. Does anyone know how this is done? I've been trying to figure it out for weeks now, and am stumped.

Thanks in advance for any help!

Mouse Scroll Zoom Tip
Hey, this took me a LONG time to sort out so i thought i'd post it online so others find it eaier.
This allows you to zoom on a mc with the mouse scroll while keeping the mc centered by the cursor.



Code:
addEventListener(MouseEvent.MOUSE_WHEEL, Zoom);
function Zoom(e:MouseEvent):void
{
var mod:Number = 10;
map_drag.scaleX += e.delta / mod;
map_drag.scaleY += e.delta / mod;
map_drag.x = ((2 * mouseX) - (2 * (e.localX * map_drag.scaleX))) / 2;
map_drag.y = ((2 * mouseY) - (2 * (e.localY * map_drag.scaleY))) / 2;
}
Hope this helps

How To Scroll/zoom A Map In Flash?
flash newbie here.

im a GIS user and have converted various layers of my map into vector graphics. how do i use these layers in flash?

i've already have these different layers in flash mx.


- i want to scroll through the map (east/west/north/south),
- i want to zoom in and out of the map
- show/hide layers of my map.


how should i do this? any help would do, thanks!

(create buttons for) showing and hiding layers? how do i do this?
buttons for moving east, west, north or south?

do i move my map (layer2) in flash, or do i move my browsing window (layer1) to a corresponding place in my map?

How To Limit Scroll & Zoom In Flash?
Hi All,

I've been referencing the below thread but have hit a bit of a wall.

Title: how to scroll/zoom a map in Flash?
http://www.sitepoint.com/forums/show...77#post1399577

I'm struggling to find any other ref. for this zoom on a map thing. I've based my file on the one posted by Losos (http://www.sitepoint.com/forums/atta...achmentid=6406) and it works great! but I need to limit the zoom size and scroll amount and can't work out why the suggestions in the thread aren't working. I would appreciate any advice.

MAC Scroll/zoom Menu System
hey guys.. any clues where i can find some tuts on a menu-like system like the MAC?.. you know..those menu icon at the bottom..when you mouse over it zoomz out..etc..and scrolls..left/right on mouse move..

I search on flashkit and here..i cant find it...

thanks..

Scroll Any MC Four Directions And Zoom But Within Bounds? How To Structure This?
Hi,

I keep coming back to the same issue, trying to rebuild this navigation system so it will accept any content without modification.

What is it? I'm making a navigation system that will scroll any-sized movieclip content (not text!) left & right & up & down as well as zoom in and out. It scrolls using two typical scrollbars with up & down buttons and a dragger in the middle. The zoom happens using "+" & "-" buttons and also has a dragger in the middle. My problem is, I am trying to do this as dynamically as is possible. And I've run into certain issues:

1. How can I always keep the MC within the bounds of my masked area when scrolling it using the getBounds() function, regardless of the size it's been zoomed or shrunk to? Of course, I will set bounds on the zoom levels too, but the scrolling is more of an issue. I assume i will use the border of the masked area as the MC to getBounds()? Just not familiar with it.

2. If I am scrolling the MC in all four directions and zooming the MC in and out, is it best to put the content's registration point at the center or at the top left corner? Flash uses the registration point to get it's position but I am concerned since it is harder to determine the true position of the MC's top and bottom when it's centered than when it's reg point is at the top left corner. At the same time, when I zoom, I would like it to zoom evenly in all directions and that would not happen if I set the reg point to the top left corner.

The same issue lies with the border MC that would be used with getBounds(). Would the reg point be centered or top left corner?

So to summarize, what's the best way to set up the content and the border of the viewing area (which is likely what will be used with getBounds()?) And how does getBounds() work exactly? I am going through a tutorial using it in "Advanced Flash Actionscript" by Dan Livingston, but it's not really what I'm doing.

Thank you!! Any help is really appreciated. =)
Jessica

My Flash Site; Zoom/parallax Scroll
hiya,

could some of you be so kind and check my test flash site and give me feedback on how to improve my .swf and .fla? (though it might be a bit newbieish )

as i wrote before, i tried to reconstruct the navigation of http://www.thebees.info, but couldn't clone the zoom mechanism (tried for days).
they apparently have a fixed point to which the layers zoom to if you rollover certain objects in the landscape, but still its flexible enough. mine is stuttering around if you rollover the buttons in the middle from below. thebees.info works from either direction.

i'd be great if someone could check my fla (2.3mb due to images) and hint me in the right direction.

besides the zoom mechanism, i'd like to accomplish a smoother animation when the images change direction. check thebees.info for this as well.

i'm desperate to finish this project. already lost some hair over it i think...

i know that it is heavy on the image side of flash, but thats how my friends wanted it to be. oh, and i'm using flash mx.

i really appreciate your help and thoughts on this!

cheerio,
dual

links:
http://www.staatsakt.com/test/test.html
http://www.staatsakt.com/test/test.zip

My Flash Site; Zoom/parallax Scroll
hiya,

could some of you be so kind and check my test flash site and give me feedback on how to improve my .swf and .fla? (though it might be a bit newbieish )

as i wrote before, i tried to reconstruct the navigation of http://www.thebees.info, but couldn't clone the zoom mechanism (tried for days).
they apparently have a fixed point to which the layers zoom to if you rollover certain objects in the landscape, but still its flexible enough. mine is stuttering around if you rollover the buttons in the middle from below. thebees.info works from either direction.

i'd be great if someone could check my fla (2.3mb due to images) and hint me in the right direction.

besides the zoom mechanism, i'd like to accomplish a smoother animation when the images change direction. check thebees.info for this as well.

i'm desperate to finish this project. already lost some hair over it i think...

i know that it is heavy on the image side of flash, but thats how my friends wanted it to be. oh, and i'm using flash mx.

i really appreciate your help and thoughts on this!

cheerio,
dual

links:
http://www.staatsakt.com/test/test.html
http://www.staatsakt.com/test/test.zip

Scroll Bar Show Up If Needed And Only Scroll To Dynamic Text Input Bottom... HOW
I have attached a copy of my scroll bar that i am currently using how can i make the scroll bar not show up unless needed (really not all that important but would be nice.)

The important thing is that i can setup a dynamic text box inside my item_holder movie clip but my scroller always scrolls to the bottom of the scroll box not matter if inside my scroll box i have on line of text loaded dynamicly or i have 100. So if i have 1 line of text and a large dynamic text box the scroll bar will scroll to the bottom of the scroll box even though it only has one line. See attachment and see if anyone can help. Thanks in advance. Brian

Scroll Bar Component Doesn't Scroll When Dynamic Txt Is Used?
I have a dynamic text box with the Flash UI component "Scroll Bar" attached to it. It works and scrolls fine when you enter text directelly into the dynamic box but when you use the loadVariables command to load an external txt file into it, it fails to scroll the text?
Is there a way to get it to scroll?

thx Bk9

Dynamic Zoom
anybody have some info on where Imight find a tutorial to do a zoom effect similiar this?

http://www.burton.com/gear/products.asp?productID=57

you have to click on the zoom feature under the boot.

Thanks

Dynamic Pan & Zoom
I really like how burton snowboards has made all of their clothing zoomable (http://www.burton.com/ProductDetailBasics.aspx?pid=639). It looks to load the image dynamically depending upon how far you zoom in or out.
I want to make something just like this or very similiar with the zoom in/out and re-center buttons. I dont really know where to start.
I found something on Flashkit (http://www.flashkit.com/movies/Interfaces/Navigation/Scalable-Shawn_Ry-52/index.php)that is close to this but It does not load the image dynamically, its just one large static image. It also doesn't have the re-center button.
Does any know of a good tutorial or place to find a pre-made app like this?

Thanks

Looking To Create Dynamic Zoom Map
I'm trying to create a map that has locations on it, when the mouse is close to one of those locations, the map re-centers and the closer you get to the location the more zoomed in the map goes.

I found a similar map here
http://www.lovesac.com/retail/map.php

I'm not sure where to start building something like this. I know how to create the motion and zoom, but the part where I'm fuzzy is the interaction with the mouse position. Any help?

Flash For Dynamic Zoom
Hi,

I wonder if anyone knows of a Flash program that will allow you to define a basic low-res image to display, with zoom controls, that when used, they will retrieve higher-res imagery from the server.

Kind of like to allow to navigate through satellite imagery and allowing you to zoom in.

Thanks in advance.

Building Dynamic Zoom Gallery
Hi all,

I'm want to develop a dynamic gallery with xml file like the example mentioned on this site.

However, I want the pictures to appear in a small format (thumbnails) and spread out the stage. Each click on the image will result a manification of the picture with a zoom effect.

A great example can be found here:
http://www.airtightinteractive.com/p...iewer/example/

I just can't seemed to find a way to make the zoom effect... Is there an actionscript which can help me to enlarge the hole "layer"?
What other soutions can I find??

Thanks in advance,

Eyal.

Dynamic Image Viewer With Zoom And Drag
I need to build a flash viewer for product images that can preview the image as a thumbnail with a dragable window that shows the masked larger image. The larger image also needs to be draggable in the large window. Really hard to explain!

This link is an example that circuitcity.com use, if you go to the 3d rotate link and then the detail tab

http://www.circuitcity.com/ssm/Sony-Cyber-shot-DSC-W5-Digital-Camera/sem/rpsm/oid/118104/rpem/ccd/productDetail.do

I have basis flash skills and would like to know if this is really hard to do or suggestions on how to do it.

Thanks


Dynamic Text Feild With Dynamic Scroll Bar
I have a Dynamic Text Feild with a dynamic Scroll bar.
It loads a simple ASCI text file with some html formating.
but I still can not manage to get the text to format.

The biggest problem with the format is a big space between paragraphs.
I am not sure why but I think the Frame must need a var to render to html.
Can anybody help please?

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 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?

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.


Dynamic Scroll Bar
my problem is that i have a dynamic number of MC buttons appearing on the stage that have to replace text in a text field (loaded from a .txt file). the text field is using the scroll bar component that comes with MX and i want it to replace the text with the new text and change the scroll bar component to accomodate the new amount of text... i hope that makes sense.

this seems simple, but only the first text loaded causes the scroll bar to work.

please help!!

greg

Dynamic Scroll
hello I got a problem with dynamic scroll.

This is my situation:
I got a principalMC on my mainstage wich contains other MC's who are dynamicly generated (duplicate MC) row1 row2 row3 ... I try to set an scroll component on my principalMC but it doesn't work...

Anybody an idea... sugestion???

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