[MX04] ZOOM & DRAG Problem...
Hi, does any one know how to make this MC drag on click? is there a way to zoom in & out using only one button instead of two? Please open the attachment...
Thanks.
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-02-2007, 12:03 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
I Want To Make A Map That Can Be Zoom In , Zoom Out , Drag And When You Click Any Loc
hi .. Anyone ! I have a problem in my Flash Actionscript 1.0 , I want to make a map that can be zoom in , zoom out , drag and when you click any location in the map for example you can see this site.>> click on this link ::
,http://www.enjoyshanghai.com/2007big...id=1&childid=1
Hope you will help me for this, I really appreciate your kindness if you help me. Thank you and God Bless .. Attached file is the zoom.fla samples of my work and i want to be like enjoyshanghai/venue finder map..
Anyone could help...plllzzz
[MX04] Pan And Zoom Help
Help! I am trying to modify a very cool pan and zoom flash that I found on this site (you can download the source fla):
http://www.gogoat.com/2006/08/07/flash-zoom/
I figured out how to do some changes on my own that were pretty easy, but I can't figure out how to keep the panning feature from going beyond the perimeters of the graphic within the dummy content movie clip. I just want to keep the user from panning beyond those dimensions and keep him/her right on the graphic. If anyone can help out, I would really really appreciate it!
[MX04] Sniper Zoom
http://www.funflashgames.com/policesniper.htm
how would i go about making the scope have an enlarged picture
[MX04] Zoom Problems
I am using Mx 2004 placing a .PDF catalog online for viewing. I have set it up to be zoomable with a mouse click. The problem comes when you click the next and previous buttons at the bottom of the page. I am trying to figure out the scripting to not zoom in on the area with the buttons when clicked. Any help would be greatly appreciated.
Link to the catalog (Click on Holiday Magic Image)
http://www.arcticiceonline.com/catalog.htm
The script is as follows:
code:
onClipEvent (mouseUp)
{
if (k>0) {
return;
}
zoom = true;
dir == 1 ? (dir=-1) : (dir=1);
if (dir == 1) {
pt = {x:_root._xmouse, y:_root._ymouse};
}
}
onClipEvent (enterFrame) {
if (!zoom) {
return;
}
_root._xscale += dir*k*50/8;
_root._yscale += dir*k*50/8;
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;
}
}
[MX04] Required: Smooth Zoom
Hi Guys,
I have this animation where the user can ride a scooter on a straight road on mouse-over. There are buildings on either sides of the road. The animation is done at 25fps. The animation has a tween, which repeats itself. The total size of the animation is 180 kb.
However, when I play it, it doesn't play smoothly. It plays with jerks as if the computer has gone slow.
I want to know if there is a way by which I can smoothen this animation, so that there are no jerks.
Thanks,
Ashwitz
[MX04] Zoom Effect Navigation
Hi there, thanks firstly to 19.5degs.com for the use of this flash code. (http://www.19.5degs.com/element/420.php#zoom-navigation) It allows you to zoom in and out to the page you want to look at. Which works great but I would like it so that when I press a navigation button it also plays a movieclip that is nested inside the page that zooms into focus(by playing it from frame 2). Is this possible?
If you download the attached flash file you can see what I have attempted so far. I have tried making it so that the movieclip in panel_2 plays when the navigation button for that panel is clicked. (see the second bullet in 'bullets' mc, 'panel_2' mc and 'trial_mc' in particular - they are the only changes I have made apart from making the 3rd and 4th panels yellow.)
However as the panel_2 does not have an instance name I'm not sure how to get to the movieclip inside it. I'm not the brightest spark when it comes to actionscript so forgive me if I've been a bit dim! If anyone might be able to help I'd really appreciate it, thanks.
[MX04] Is It Possible Use Javascript To Set The Zoom % In Flashpaper2?
Is it possible to set flashpaper zoom % when it's loaded by javascript such as litebox or lightwindow. I'm currently using lightwindow as it allows all types of media to be used on the same page. Sample to load the flashpaper swf:
<a class="lightwindow page-options" params="lightwindow_width=800,lightwindow_height=3 24" title="Reply to Eagle Article" href="anyflashpaper.swf">read more</a>
Is there or can a param for the zoom be used? Thanks, Cyn
Zoom And Drag
Hi guys, Damn it's warm in the uk
Anyways
I have found a very cool and very detailed satalite image(map)of my home city. I want to create a simple viewing feature were the user can zoom in and out etc. I have managed to sort the zoom in and out (easy bit)
The problem that i am having is setting a new drag area if the user zooms in on the map
on the zoom button i have
Code:
on (press) {
if (map._xscale<=170 && map._yscale<=170) {
map._xscale = (Math.ceil(map._xscale)+20);
map._yscale = (Math.ceil(map._yscale)+20);
trace("yscale="+map._yscale);
trace("xscale="+map._xscale);
}
}
Now here comes the tricky part for me. The map is held in an mc and is also a button so that makes, mapMC=(instance name)map inside mc map i have button that has the map image in it. I hope your following this.
The mapmc is masked So when dragging u cant drag the image edge into the mask area.
On the button is were the problem starts. i think i need to build an if statement on the button that checks to see the scale of the image before allowing the map to be dragged. I am not 100% on how i would go about coding this.
Can anyone help me out.
Cheers
Zoom And Drag
Does anyone know of a good detailed tutorial on how to create zoom out and in capabilities for a map, also a drag function. I need to create a map, it has to be alot like how google earth works. Just alot more simplified. You must be able to zoom up onto pin points and also be able to search for certain pinpoints. If you can help, i will go into more detail of how it must function.
Thanks alot
Drag And Zoom
I have a map (mapMC) that is embedded into another movieclip (worldMC). The mapMC is draggable, and the worldMC is zoomable - The reason I set it up this way was to ensure that the map zoomed from the center of the viewable screen, since the worldMC registration point will always be at the center, no matter where the mapMC is dragged.
So now I'm at a point where I want to set boundaries for the drag. I can't just set the boundaries using the startDrag variables since these will need to change based on the zoom level.
I really need something like this:
startDrag("mapMC",false,100*zoom_percentage,50*zoo m_percentage,500*zoom_percentage,100*zoom_percenta ge);
Where zoom_percentage will adjust the boundaries based on the zoom level. So basically when you zoom in, the boundaries need to be increased by the same percentage.
Hope all this makes sense! Does anyone have any ideas on how to create this functionality?
Zoom And Drag Map :(
I have made a map that zooms and drags but I need it to change between zooming and draging when I click on different movie clips. I was thinking it was best to use an action listener but I wasnt able to incoperate it into this project any idea what I can do?
Code:
#include "mc_tween2.as"
map._width = 593
map._height = 832
drag.onRelease = function() {
map.onPress = function(){
this.startDrag();
};
map.onRelease = function(){
this.stopDrag();
};
}
zoom.onRelease = function() {
map.onRelease = function() {
if (map._width >= 594) {
map.resizeTo(593, 832, 2, "linear");
}
else {
map.resizeTo(2372, 3328, 2, "linear");
}
}
}
stop();
Zoom And Drag
Hello again,
I thought I'd try to simplify my questions. I have a custom cursor. I want to also be able to drag a zoomed image. Me thinks it's impossible to drag 2 objects at once yes?
I wanted to have a hand dragging around the image. Is this possible??
Drag Rotate And Zoom
Help me oh wise ones! I beg. I have a flash movie, two separate wheels, one on each layer, one on the inside and one on the outside. I need to have the user rotate each wheel separately to line up numbers on each wheel. Have the wheels stay in place and have the viewer able to zoom in to view the numbers. Then keep the same rotation position for both wheels and be able to rotate both wheels in unison and again zoom. I made a movie clip symbol of each wheel rotating the full 360, and figured on the "on mouse down play movie" "on mouse release stop" but I'm lost as to the rest of it, or even if that is the best way to go about it. It would seem that applying a variablename to each clip and figureing some code to lock the position, except for the rotation. Like I said "HELP PLEASE"
Scale/drag/zoom
Hi everybody,
I am looking for source file or tutorial how to do the zoom effect similar to this effect on this site
http://www.ashesandsnow.org/home.html (and click on Press Releases).
When you point to certain area on the picture it zooms in slightly and then goes back to its normal position.
Can anyone help me with this?
Thanks in advance
Help To Modify A Zoom/Drag .fla
Hi, I found this tutorial:
http://www.flashkit.com/tutorials/In...-844/more2.php
It allows you to zoom in on a picture and using a thumbnail, drag to different parts of the image. I want to modify it so I can have two image side by side both controlled by the same slider and thumbnail. I got the slider to work but I cant get the thumbnail to control them both.
Can anyone help? I would really appreciate it!
Drag Rectangle And Zoom
Flash MX, the first version of it.
I have been trying to do this in various different ways for months with partial success.
I have a movie clip on the stage that is a map. I can drag a rectangle with the mouse and the movie clip will either a) zoom an appropriate amount based on the size of the rectangle, or b) move the spot on the movie clip where the mouse touched down (when rectangle was drawn) to the top left corner of the stage. But not both.
I downloaded an example off this site that seemed to do exactly what I'm wanting to do. It was done in Flash 4, though and when I compiled the movie in Flash MX, then it stopped working and started behaving more like my own attempts.
Here's some of my code:
Code:
//Scaling. Works fine.
scale = (_root.map._width/_root.rect._width)*100;
_root.map._xscale = scale;
_root.map._yscale = scale;
//Repositioning. Works fine as long as I don't scale the map.
//_global.posX and _global.posY store the 0,0 coordinates where the rectangle was drawn. The source of this variable is _root.map._xmouse, and _root.map._ymouse.
newX = _root.map._x - (_global.posX/(scale/100));
newY = _root.map._y - (_global.posY/(scale/100));
setProperty(_root.map, _x, newX);
setProperty(_root.map, _y, newY);
In all my various tries at changing the code around I might be able to get the map to move somewhere in the vicinity, like in the approximate same quadrant. Otherwise, other tries makes the map always zoom to show the top left quadrant, the bottom right quadrant or the center.
Where am I going wrong? Is there a way to do this that will work?
Drag Rectangle And Zoom Help
Flash MX, the first version of it.
I have been trying to do this in various different ways for months with partial success.
I have a movie clip on the stage that is a map. I can drag a rectangle with the mouse and the movie clip will either a) zoom an appropriate amount based on the size of the rectangle, or b) move the spot on the movie clip where the mouse touched down (when rectangle was drawn) to the top left corner of the stage. But not both.
I downloaded an example off this site that seemed to do exactly what I'm wanting to do. It was done in Flash 4, though and when I compiled the movie in Flash MX, then it stopped working and started behaving more like my own attempts.
Here's some of my code:
Code:
//Scaling. Works fine.
scale = (_root.map._width/_root.rect._width)*100;
_root.map._xscale = scale;
_root.map._yscale = scale;
//Repositioning. Works fine as long as
//I don't scale the map.
//_global.posX and _global.posY store
//the 0,0 coordinates where the
//rectangle was drawn. The source of
//this variable is _root.map._xmouse,
//and _root.map._ymouse.
newX = _root.map._x - (_global.posX/(scale/100));
newY = _root.map._y - (_global.posY/(scale/100));
setProperty(_root.map, _x, newX);
setProperty(_root.map, _y, newY);
In all my various tries at changing the code around I might be able to get the map to move somewhere in the vicinity, like in the approximate same quadrant. Otherwise, other tries makes the map always zoom to show the top left quadrant, the bottom right quadrant or the center.
Where am I going wrong? Is there a way to do this that will work?
Drag N' Zoom, With Buttons...
Hey Everyone,
Ok, so I have figured out how to get a MC to be draggable. The problem is, I need it to be draggable, behind a mask, and stop once it's reached its boundries.
The MC is a huge graphic, and the user needs to be able to drag it to view it.
The second part is, how do I get it to be zoomable, using the + - buttons I have created?
Thanks for your time,
Jeff
Reset Zoom/drag
I have a movie clip that you can zoom in & zoom out on, plus you can drag it within the window. I want a reset button that tells the mc to go back to 100% in size and the original position. I have the scale all set, but how do I make it go back to the original position?
This is my script for the button so far:
on (release) {
_root.map1._yscale = 100;
_root.map1._xscale = 100;
}
Thanks for any help!
Zoom And Drag Constrainment
Hi again!
Since you've helped me so much allready, I might as well give it a shot.
Does anyone know a smart way to constrain the keydragging to the masked area in the attached file?
I tried loading mask width and hight and the created a button with the following script, which didn't work.
on (press) {
dx = (maskWidth - _width)/2;
dy = (maskHeight - _height)/2;
this.startDrag(0,-dx,-dy,dx,dy);
}
on (release, releaseOutside) {
stopDrag();
}
I'd really appreciate any help or suggestions.
Thanx in advance!
[F8] Drag And Zoom Map With Nav Window...
Hi guys and gals,
I have created a world map based on the one below...
http://www.senocular.com/flash/source.php?id=0.76
However I want slightly different functionality. Instead of when you click on the main map and drag it zooms in, I just want it to drag the map and update the nav window accordingly.
Can someone please help me modify the code to achieve the effect please.
I've attached as far as I have got. I'm almost there but when I click on the main map to drag it jumps to a diagonally opposite point on the map, which effectively means every time you click and drag you end up in the same place
Best
Steve
Zoom & Drag Keeps Centering
Hello,
I am a web designer and I am currently working on a map with Drag and Zoom controls for my company. Currently, the map is working the way I've wanted it too, with one small issue. It zooms to a designated point as oppose to zooming straight into where the view is looking.
The file is done in CS3 and if need I can save a version in CS2. The action script is 2.0.
Here is a test page of the map to see what our goal is.
http://thevillages.com/new/maptest3.htm
Here is a link to the FLA file.
http://thevillages.com/new/images/map/MapDev1.fla
Thanks in advance,
Chris
Flipping Swf With Zoom & Drag
hi all, i'm new! good to meet u all here....
actually, i'm struggling with a flipping swf.
i did lots of research, and know about flash component.
now i can make a simple swf flipping book like this..
http://page-flip.com/new-demos/02-object-demo/index.htm
however, i wanna add more functions in it. like this..
http://page-flip.com/new-demos/03-ki...008/index.html
this example is a html..contains css, javascript..etc...
just wanna know, is it possible to do the same thing in swf version?
that means..i want to make a flipping swf that i can:
- flip like a digital magazine
- double click to zoom in/out and drag
- also have buttons to control
any good ideas or comments on it? and i'm using mx 2004
i'm still trying.....thank you very much!!!!!
Drag And Zoom Problem
I've already posted a thread about this but with no response. Can anyone help?!
I have a picture which you can drag around, and zoom into.
It is constrained by borders on a surrounding box. But when you zoom in and drag it around, the picture starts shaking. Can anyone help!?
Please- I'm in real dire straits with this (not the band!)
ActionScript Code:
if(dragSq.x>0){
boxer.room._x=(boxer.room._x-dragSq.x);
}
if(dragSq.y>0){
boxer.room._y=(boxer.room._y-dragSq.y);
}
if(dragSq.x<0-(boxer._width-570)){
boxer.room._x=((0-boxer.room._width)+285)
//"570" is the width of the frame and "285" is half the width of the frame
}
if(dragSq.y<0-((boxer._height)-253)){
boxer.room._y=((0-boxer.room._height)+126.5)
//"253" is the width of the frame and "126.5" is half the width of the frame
}
Advanced Drag-n-Zoom?
Hello, I was wondering how to make a drag and zoom function? I want the user to be able to drag a rectangle over the image/movie and it will zoom in ?
Thanks! (=
Drag A Window And Then Zoom In
Hi
I took the zoom and pan tutorial from flash 5 and have tailored it to my needs bar 1 thing. I'm not sure how to create a tool so I can click and then drag a box round an area and then zoom in on it. I've seen it done but can't replicate it.
Can anyone help?
cheers
Lenny
Flipping Swf With Zoom & Drag
hi all, i'm new! good to meet u all here....
actually, i'm struggling with a flipping swf.
i did lots of research, and know about flash component.
now i can make a simple swf flipping book like this..
http://page-flip.com/new-demos/02-object-demo/index.htm
however, i wanna add more functions in it. like this..
http://page-flip.com/new-demos/03-ki...008/index.html
this example is a html..contains css, javascript..etc...
just wanna know, is it possible to do the same thing in swf version?
that means..i want to make a flipping swf that i can:
- flip like a digital magazine
- double click to zoom in/out and drag
- also have buttons to control
any good ideas or comments on it? and i'm using mx 2004
i'm still trying.....thank you very much!!!!!
DRAG, SHADE, And ZOOM
I can't seem to find the link/post to this example....
Someone did a great example of this drag zoom...
Description:
Let's say there is a picture. And you want to zoom the picture...but you want to zoom in on a particular area.
Move the mouse to the area you want. Hold the mouse down and drag... this will creare a square shaded box. Drag / Size the box to the area you want zoom.
When you let go...that area is zoom.
If anyone knows what I am talking about...and know the link / post... post here please.
Here is an example of what I did...but I want to apply the above method instead.
CLICK HERE
Image Zoom In/out And Drag
Hello,
I have created a flash movie which consists of an image. The image is a movieclip with an instance name "Image". The idea of this movie is to allow a user to be able to zoom into the image when his/her mouse button is held over the image stopping at a scale of 200%, the user will also be able to drag the image around whilst being zoomed in. On release of his/her mouse button the image should zoom back to the original size and locate back to the home position in a smooth motion.
I have got the fundamentals working on this flash movie however if the user clicks outside the image (on the stage) the image starts zooming in. I have written the code so it is only applied to the image so i dont understand why this is happening. I will post the code i wrote for this movie below:
ActionScript Code:
/*******************************************************
* Author: L. Tambiah
*
* Date: 27th April, 05
*
* Program: Enables a user to zoom and drag into image.
* By holding the mouse button down over the image, will
* cause the image to zoom gradually towards you. On the
* release of the mouse the image will zoom out gradually
* back to 100% and return to its home location with a
* smooth motion.
*
* FileName: dragZoom.fla
*******************************************************/
function dragZoom(movieClip) {
/************************************************
* Variables for home position of movieClip
* NOTE! You will have to change these values
* according to the movie size. See "readme.doc"
* for how to adjust this to your requirements.
************************************************/
_global.homeX = 314;
_global.homeY = 219;
/************************************************
* Variable for the zooming speed. Adjust this
* value to tweak the speed. The lower the value
* the lower the zoom speed.
************************************************/
_global.zoomIncrement = 10;
/**************************************************
* You can change this variable to alter the zoom
* amount. The default is 200 meaning the image will
* scale to twice the size as 100 is the original size.
* The higher the number the more the zoom will scale
* the image.
**************************************************/
_global.zoomAmount = 200;
/*************************************************
* Create a zoom in function
* Function zoomIn checks if the current xscale
* and yscale is less than 200. If less than 200
* the image scales in x and y are increased by the
* amount that zoomIncrement is set too.
*************************************************/
function zoomIn(movieClip) {
if(movieClip._yscale && movieClip._xscale < zoomAmount) {
movieClip._xscale = movieClip._xscale + zoomIncrement;
movieClip._yscale = movieClip._yscale + zoomIncrement;
} //end if statement
} //end zoomIn function
/**************************************************************
* Create a zoom out function.
* Function checks if the y scale and x scale is
* greater than 100. If the image(movieClip) scale is
* greater than 100 the scale is decreased by the zoomIncrement
* value.
**************************************************************/
function zoomOut(movieClip) {
if(movieClip._yscale && movieClip._xscale > 100) {
movieClip._xscale = movieClip._xscale - zoomIncrement;
movieClip._yscale = movieClip._yscale - zoomIncrement;
} //end the if statement
} //end the zoomOut function
/****************************************************************
* A function for onMouseDown.
* When the user holds the Mouse Down this activates the function.
* On activation of the function the startDrag commands is issued
* and the on enterFrame function is called which then calls the
* zoomIn function created earlier. Due to the onEnterFrame properties
* this enables the zoom to be called at the set frame rate of the movie
* causing a continuous motion
****************************************************************/
movieClip.onMouseDown = function() {
this.startDrag();
movieClip.onEnterFrame = function() {
zoomIn(this);
} //end onEnterFrame
} //end onPress
/*****************************************************************
* Releasing the mouse button involkes the stopDrag method and
* excutes the onEnterFrame function. The onEnterFrame function
* calls the zoomOut function which is effectively looped due to
* the onEnterFrame method. The function also returns the movieClip
* home to the original location in a smooth motion
*****************************************************************/
movieClip.onRelease = function() {
this.stopDrag();
movieClip.onEnterFrame = function() {
zoomOut(this);
// Send the image back to the home on release
image._x = image._x - (image._x - homeX) / 5;
image._y = image._y - (image._y - homeY) / 5;
} //end on EnterFrame function
} //end onRelease function
} //end programm dragZoom
// Call the function dragZoom to activate!
dragZoom(image);
I will also enclose a zip file.............
Regards
L. Tambiah
P.S A Solution would be highley appreciated.........
Image Drag & Zoom
Hi Guys,
I'm looking for code/tutorials for an image zoom and drag similar to this:
image zoom & drag
I have found a dynamic registration class here:
dynamic registration
But can't really utilize this code.
Can anyone offer some ideas or point us in the right direction.
Thanks!!!
Image Drag & Zoom
Hi Guys,
I'm looking for code/tutorials for an image zoom and drag similar to this:
image zoom & drag
I have found a dynamic registration class here:
dynamic registration
But can't really utilize this code.
Can anyone offer some ideas or point us in the right direction.
Thanks!!!
World Map Drag/zoom
I've created a world map with clickable countries and two buttons for zooming in and out. The clip is also draggable when clicked but there are a few aspects I want that I have no idea how to start...
First of all, when the "zoom in" button is clicked, the movie clip simply increases in size (dont know of another way to do it), but always zooms in towards the center of the map. So, you always have to keep dragging around to get back to where you were looking. I dont want a feature that zooms wherever you click though. Simply, I need a way for the current position to be kept when zoom in/zoom out is clicked.
Next is about the dragging... If you drag the map far enough, everything looks rather blank and you might not even be able to drag it back and have to end up refreshing the page. I'm trying to make a feature that loops the map horizontally, so one could drag endlessly...but at the same time there must be a barrier vertically. The barrier needs to work in a way that it still allows zooming in, but remains at the top and bottom when you try to drag the map up/down.
For me, both of these ideas are difficult enough, but they also have to work in harmony with each other. I hope someone can understand how I've laid this out...
Any script ideas would be greatly appreciated. I'm using Flash 8.
Heres my zoom script:
zoomin.onRelease = function():Void{
with (world){
_xscale += 25;
_yscale += 25;
}
};
zoomout.onRelease = function():Void{
with (world){
_xscale -= 25;
_yscale -= 25;
}
};
And my dragging script (basic startdrag took away button functionality for some reason):
onClipEvent (load) {
dragging = false;
}
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
dragging = true;
xOffset = this._x - _root._xmouse;
yOffset = this._y - _root._ymouse;
}
}
onClipEvent (enterFrame) {
if (dragging) {
this._x = _root._xmouse + xOffset;
this._y = _root._ymouse + yOffset;
}
}
onClipEvent (mouseUp) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
dragging = false;
}
}
Edited: 12/20/2006 at 02:16:55 AM by batmanbury
Drag/Zoom Formula
I have a draggable MC that can also be scaled up and down. I need to dynamically figure out the R, T, L, B boundaries for the mc while it scales.
The MC is viewable within a 600x400 window, and need to be draggable to the right-most, top-most, left-most and bottom-most boundaries of that viewable area. Does that make sense? Here's the code I have so far...
Attach Code
//viewable window
var xArea = 600
var yArea = 400
//boundaries need to scale as MC gets to be larger than viewable window
//obviously this code doesnt work because since myMC is draggable,
//the x and y position of myMC is dynamic
function setBounds() {
boundR = myMC._x
boundT = myMC._y
boundL = Math.abs(myMC._width-xArea)
boundB = Math.abs(myMC._height-yArea)
}
function dragMC() {
myMC.startDrag(false,boundL,boundT,boundR,boundB);
}
function scaleUp(){
myMC._xscale+=10
myMC._yscale+=10
setBounds()
}
function scaleDown(){
myMC._xscale-=10
myMC._yscale-=10
setBounds()
}
Zoom, Drag, And Insets
Hi all,
I found this really great fla posted some time ago by senocular:
http://www.umbc.edu/interactive/fla/slidezoom.swf
http://www.umbc.edu/interactive/fla/slidezoom.fla
I have two questions:
1) Can anyone tell me the best way to swap it so that the user can drag the frame in the inset and have it update on the big map? I know the drag button has to be on the inset but can't get it to work.
2) Is it possible to build some kind of container MC that the zoom and drag acts upon but can contain different maps? In other words, the inset and the base map always stay the same but the user could press a button and load something on top of the base map and still be able to zoom and drag around?
Thanks for any help!
Flipping Swf With Zoom & Drag
hi dears,
i'm struggling with a flipping swf.
i did lots of research, and know about flash component.
now i can make a simple swf flipping book like this..
http://page-flip.com/new-demos/02-object-demo/index.htm
however, i wanna add more functions in it. like this..
http://page-flip.com/new-demos/03-ki...008/index.html
this example is a html..contains css, javascript..etc...
just wanna know, is it possible to do the same thing in swf version?
that means..i want to make a flipping swf that i can:
- flip like a digital magazine
- double click to zoom in/out and drag
- also have buttons to control
any good ideas or comments on it?
i'm still trying.....thank you very much!!!!!
Flipping Swf With Zoom & Drag
hi all, i'm new! good to meet u all here....
actually, i'm struggling with a flipping swf.
i did lots of research, and know about flash component.
now i can make a simple swf flipping book like this..
http://page-flip.com/new-demos/02-object-demo/index.htm
however, i wanna add more functions in it. like this..
http://page-flip.com/new-demos/03-ki...008/index.html
this example is a html..contains css, javascript..etc...
just wanna know, is it possible to do the same thing in swf version?
that means..i want to make a flipping swf that i can:
- flip like a digital magazine
- double click to zoom in/out and drag
- also have buttons to control
any good ideas or comments on it? and i'm using mx 2004
i'm still trying.....thank you very much!!!!!
[MX04] E-catalog Zoom In/Out Button To View External Swfs
Hi,
I have done a lot of searching on this site for "zoom" and have not yet found out how to handle zooming from a button outside the target MC.
Here is the basic idea. I have an E-catalog. My navigation panel is in the main swf. I have a container movie clip where the pages will load from external swfs. In my navigation panel, I have zoom tools (in and out). I am fine with the zoom happening at the registration point and then adding scroll bars for the user to see the rest of the page. I would like 2 depths of zoom in and just one zoom out (back to original size). I just don't know how to write the script to make the zoom happen and where to put it (and how to reference the currently loaded swf in the AS). From what I've read, it's not efficient to code the button/mc itself - correct?
Also, my external swfs are raster images, so I am obviously concerned about load times. Would I create seperate swfs for each level of zoom for each page (there are 70-80 pages)? Sorry for so many questions in one post.
Here is an example of the Zoom function I am trying to acheive: http://www.frontgate.com/jump.jsp?it...RY&sku=FG0608A
Any guidance and help would be greatly appreciated.
Zoom And Drag Within Masked Area...
Hi,
I have a movie clip approx. 400px wide, 400px high that is scalable and draggable by the user with in a mask.
My problem is when the MC is zoomed in or out, you drag the MC and see the edges of the map. I want the map to stay within the masked area regardless on its size.
Any help / tutorials or ideas would be great!!!
Zoom + Drag Image Problem
Hi,
I have a small problem with the following Situation.
I load a JPG into the Scene into following Structure
MCHolder -> MCZoomHolder -> MCImageHolder
The image gets loaded in the MC ImageHolder.
MCZoomHolder have the Orgin in the Center of the Screen.
I use Startdrag to drag the MCImageHolder and the MCZoomHolder is used to Zoom the Image.
The Problem that I have is by setting the restriction boundarys for the Drag function.
Because after I zoomed the MCZoomHolder the Vales that works with 100% zoom, didn't work anymore (thats clear because of the Zoom)
And I don't have any clue how to solve it, tried a lot of Math but all doesn't work.
Maybe someone know that problem (and a Solution) or an another Way to Move MCs with restriction boundary and able to Zoom (and rotate) the image at the center.
-XT
Flash Zoom And Drag In A Website
Hi Everyone, I'm new to this site.....
Just wanted to see if anyone had any useful pointers as to how to include things like drag and zoom within a Flash site, something similar to what is used on this site:
http://www.manhattanloft.co.uk/mlc/
Thanks,
Lauren
Drag And Zoom Library Mash W/ PHP....soon.
Hi all,
I'm using this thread as an initial promise to mash an object from the library to fit it with a PHP backend of sorts.
The Reasoning:
I liked this idea from Marioz Drag and Zoom fla i cam across from the fla library on Actionscript.org. I want to dynamically load my php images, so that i can use this little gem to zoom into products from a site i worked on called http://www.prettybycritty.com.
With my limited knowledge of AS and limited knowledge of php, i'm hoping to make this mash dream a reality. after i create this mashup, i will come back and post the steps.. but in the meantime, this posting will become a blog style posting as you go through the trials and tribulations with me.
First Step:
I need to find a php tutorial or library object that imports images from a mysql database, using php. I'm off to look for that. Feel free to contribute to this original Mashing idea from Actionscript.org. I also hope to mash many more objects with some other techniques or purposes from across this great site. Join me in the Mash Challenge.
Sidebar One::
I kind of like what these guys do atScene7. The first guy to open source similar code will be labelled a genius.
I like how they were an ecommerce store first. Realized that the retail thing wasn't working and morphed into a technological provider for ecommerce. Perfect use of recycling technology. Basically they take a store's image and allow a user to zoom in and stuff. IT repixelates the image and is super slick. I am still on the lookout however, for a php image engine in flash. Stay tuned and/or help out if you know of one.
Drag And Zoom Function In Interactive Map
Dear Kirupa Members,
I had design a map that can be drag and zoom, but how do I control the drag function when I zoom in the map . I would not like the map been drag too far away until it see the untidy map at the corner. fla file had attached pls take a look. Thanks !
p/s: pls open the main_map.fla (main control interface) to start the interactive map. The rest of the swf is all diffrent map in movie clip.
pls download the attachment file here..
http://www.brandyoudesign.com/map.zip
THanks !
Regards,
Clement
__________________
clement
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 !
Need Tutorial Of Flash Zoom And Drag
I was wondering if anyone has a tutorial for flash on how to zoom on an image and also drag that image around.
Also if it had pull dynamitc images, but i can figure this part on my own if i can get a tutorial on how to zoom and drag images inside of flash
Thanks guys!!
josh
Zoom And Drag Function On Press
i'm working on a map file
i have controls set up to pan left, right, up and down. but i'd also like to be able to drag the map within the bounds on press and stop dragging on release
imagine if you will, a bounding box with a draggable box that is larger than the bounds. the right bound of the box must never be less than the x position of the right side of the box .... and so on
does this make sense?
can anyone help?
Setting Limits On Zoom And Drag
Hey does anybody out there know how you can convert the movie clip size to a percentage so that you can set limits for zooming and dragging? In other words, if I set an x and y limit for dragging then that changes when I zoom in, such that when the movie clip is at 100% I can drag to a certain spot but when I zoom in and then drag the x and y drag limit prevents one from seeing as much of the clip as you could at 100%. So it would be great to say something to the effect of "whatever zoom level one is at, you can only drag to 90% of the movie clip" so one can't drag the movie clip outside of the set drag area.
Is that totally confusing?
Any help would be appreciated!
[FLASH 8] Drag Zoom Mask -- Please Help
i have an image (possibly that has an animation), that i want to zoom when i roll my magnifying glass over it. i want it when you click on the handle to pick it up and move it and when you let go it lets go of it.
somebody PLEASE help me i am SO stuck on this, just anyone if they can point me to a tutorial, or tell me the code, or if you need the .fla, please let me know and help.
i'll be your bestest friend :-D
any help at all on this would be GREATLY appreciated.
[AS2] Drag - Pan - Click To Zoom XML Content
Hi,
An example of creating a Drag and Click to Zoom navigation system. Where content loads into one large movieClip that is scaled up and positioned with a mouse click. It uses mouse listeners to provide mouse functionality in the parent movieClip without destroying any button events in loaded content. I was interested in working out multiple button event handling in AS2 as well as creating a drag and zoom navigation system for a website I am currently building. Content can be dragged around in both a scaled down and scaled up state. Content can either center in the screen or be positioned. The example also uses custom cursors to provide interface feedback when using mouseListeners, which do not trigger the built in cursor handling in Flash. The custom cursors only run when the content is scaled down. I turn them off when the content is scaled up to allow for interaction with the externally loaded swfs etc.
Updated 10 Jan, 2007: Bug fixes, shift to using tweenlite for all tweening. I found a subtle bug with mcTween when two tweens were operating on one object at the same time. Also implemented a navigation widget version, where a small widget mimics the layout of the main content. Main content can be navigated via this widget.
To scale down from a scaled up state, you need to double click.
Content is loaded in via XML and is laid out via either a crude grid making function or pulls in layout information from the XML file.
You can have a look at the file here: http://www.noponies.com/dev/slidernav/
And get the source files here: Source Files (Flash 8, Flash CS3)
Requires TweenLite http://www.tweenlite.com
I built it for specific purpose, but there may be stuff that is useful in there for everyone else. Hopefully there are enough comments in the script for you to make any edits. Let me know if its rubbish etc..
Drag And Zoom Function In Interactive Map
Dear Kirupa Members,
I had design a map that can be drag and zoom, but how do I control the drag function when I zoom in the map . I would not like the map been drag too far away until it see the untidy map at the corner. fla file had attached pls take a look. Thanks !
p/s: pls open the main_map.fla (main control interface) to start the interactive map. The rest of the swf is all diffrent map in movie clip.
pls download the attachment file here..
http://www.brandyoudesign.com/map.zip
THanks !
Regards,
Clement
__________________
clement
|