Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Zoom/Move targets |
From: | Kheng Hong |
Date: | Tue, 29 Aug 2000 15:47:01 +0100 |
Think u have to check 'Constraint to rectangle' under the drag movie click
action.
-----Original Message-----
From: Motomichi <motomichimail [dot] juvenilemedia [dot] com>
To: flasherchinwag [dot] com <flasherchinwag [dot] com>
Date: Tuesday, August 29, 2000 9:47 PM
Subject: FLASH: Zoom/Move targets
>Hi to all,
>
>Sorry to keep posting this but I am still hoping that someone might know
>about this in this newsgroup.
>
>I am working on an interactive map and the users can zoom in/out or move
the
>screen. I ma doing this in Flash 5 and I need to know if there is anyway
>that I can set the limit of zoom or distance of movement to the users.
>
>The script I have so far is as below. Thanks millions in advance.
>
>mm
>
>(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);
>}
>
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>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 helpchinwag [dot] com
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 helpchinwag [dot] com
Replies
Re: FLASH: Zoom/Move targets, Motomichi
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]