Flasher Archive

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


Subject: RE: FLASH: Zoom/Move targets
From: Paul Willoughby
Date: Wed, 30 Aug 2000 10:53:09 +0100

Are you moving the map around with a button? If you are you don't need to
worry about drag movie clip.
As this is F5, i'm not going to be able to give you any code as I don't have
it yet <!tight boss!>, but the solution in principle is to set variables for
your maximum limits. Then set up a movie clip that calls some code that
constantly checks if these limits are exceeded.

hth

Paul

-----Original Message-----
From: Motomichi [motomichiatmail [dot] juvenilemedia [dot] com (mailto:motomichiatmail [dot] juvenilemedia [dot] com)]
Sent: 29 August 2000 19:12
To: flasheratchinwag [dot] com
Subject: Re: FLASH: Zoom/Move targets


Hi there,

Sorry but I don't really get what you mean. Which drag movie click action?
Could you please explain to me more?

Thanks thanks,
mm
>
> Think u have to check 'Constraint to rectangle' under the drag movie click
> action.
>
> -----Original Message-----
> From: Motomichi <motomichiatmail [dot] juvenilemedia [dot] com>
> To: flasheratchinwag [dot] com <flasheratchinwag [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 helpatchinwag [dot] com


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