Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Zooming/Moving targets questions
From: Motomichi
Date: Tue, 29 Aug 2000 00:16:17 +0100

Hi to all

I am working on a zoomable map with Flash5. I found a good sample in Flash
5, the file is "Pan Zoom.fla". It works great except that the user can
move/zoom the target limitlessly and which means that they will see the edge
of the map. Is there anyway that you can limit the amount they zoom and the
distance they can move? Also, I would like to have the buttons working when
you press down and not only when they click. The way it is now is that you
have to click million times to move the target or zoom the target. Please
let me know if any of you have any idea.

(Moving Targets scrip[t)

on (release) {
setProperty ("/target_item", _x, Number(getproperty("/target_item",
_x))+18);
x_value = getproperty("/target_item", _x);
y_value = getproperty("/target_item", _y);
}


(Zooming Targets scrip[t)

on (release) {
x_scale_value = int(getproperty("/target_item", _xscale)*1.1);
y_scale_value = int(getproperty("/target_item", _yscale)*1.1);
setProperty ("/target_item", _xscale, x_scale_value);
setProperty ("/target_item", _yscale, y_scale_value);
height_value = int(getproperty("/target_item", _height));
width_value = int(getproperty("/target_item", _width));
/target_item:scale_value =
(int(("/target_item:scale_value"*1.1)*1000))/1000;
x_value = getproperty("/target_item", _x);
y_value = getproperty("/target_item", _y);
}




Thanks,
mm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]