473,473 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

drag and zoom into graph (actionscript)

1 New Member
hi, I'm fairly new to actionscript - I have created a graph out of a sprite, and got it responding to mouse events (eg onPress, onMouseDown...).


when the user triggers a mouseDown on the graph, i register the mouse position, and when they release the mouse( mouseUp) also register that position. I want to enlarge and zoom into the difference between these two.

in essence what i'd like to do is be able to drag the mouse over a certain section of the graph, for that section to fill the whole area.

any help would be much appreciated, so thanks in advance!
Jan 29 '08 #1
0 3173

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Sean McIlroy | last post by:
The subject line essentially says it all. Is there a way to do it? If so, where do I look to find out how? Any help will be much appreciated. Thx, STM
4
by: Carl Gilbert | last post by:
Hi I was looking for a component that will enable me to zoom into an image very easily and quickly. I was hoping there may be something, perhaps part of VB.NET, that will allow me to drag a box...
1
by: guo.an.hong | last post by:
Hi, My current project requires drag and drop graph: for example, I have a line graph, I need to drag a certain point of the line and change its curve. (it is straight line so it will change in...
2
by: Milla | last post by:
Hi experts, I got the graph in excel. I need the graph to zoom out as mouse hovers over it. Please help:)
7
by: =?iso-8859-1?Q?Vicente_Garc=EDa?= | last post by:
Hi, I need to programmatically draw a graph (his nodes and his edges) from dynamic XML file. The graph is very complex and I don't know how I could do this task. Any ideas please? Microsoft...
2
by: pvsgupta | last post by:
Hi, I have given the task to draw a graph in action script that looks like in google analytics. So please guide me how can i draw the graph through action script. I want the code for that. If...
0
by: paulcybulski | last post by:
I have a 2 buttons and the mouse wheel enabled with zoom functionality. Generally this is the AS: //zoom out mcName._xscale *= 0.9; mcName._yscale *= 0.9; //zoom in mcName._xscale *= 1.1;...
0
by: Habbau | last post by:
Hi! there ...experts I've created a dynamic photo gallery in flash prof. 8. with menu buttons, thumbnails and so on. An xml document include as well and of course an actionscript file. Now I...
1
by: Czenek | last post by:
Hi, can I use somehow standard matplotlib's functions pan/zoom? I would like to zoom my created graph after double-clicking and move with it after keyboard (arrow) pressing (similar as Google...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.