I have been stuck around this for days and I wonder if anyone
on this forum can help me out.
The code works, but what I really want to do is to allow
users to at least click on the image and resize it dynamically
without me having to limit users to only shrink down the size 25
pixels at a time.
There are some manuals I found telling me to use Hsliders,
but I don't want users to be restricted to that either. Could
anyone please give me some guidance on how to make this work?
I was dealing with a similar problem recently. The way that I
was to attach a listener for the mouse down event. Then, I
global coordinates of the click (to variables called lastX
and added a mouse move listener to the stage and a mouse up
The mouse move listener calculates the change in the mouse
from the last saved coordinates, and changes the object size
delta value. Then it saves the new coordinates to lastX and
Finally, the mouse up listener removes itself and the mouse
listener from the stage.
The reason I added the listeners to the stage rather than the
that the user can move the mouse outside the object before
has time to occur.