Flasher Archive

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


Subject: Re: FLASH: Using Action Scripts to SCALE a MC?
From: Laura Mollett
Date: Fri, 5 May 2000 22:14:31 +0100

> Does anyone know how I can use Action Scripts to Scale an MC?
>
> What I want to do is have the user click and drag the mouse and have a
> graphic (MC) follow the mouse coordinates.

I'm a little confused. Do you just want it to be draggable? In which case,
you do something like On MouseEvent: drag out (or whatever) "drag movieclip"
in the action window.

If you want to scale a movieclip, you create a control movieclip with 2
frames with the action:
Set Variable = GetProperty X_Scale [MovieClip]
If Variable < [whatever you want the scale to be]
SetProperty X_Scale = X_Scale [+ or - whatever you want]
End If

and the same thing for Y_Scale.

Make sure you have two frames and they're both exactly the same.

hth,
Laura

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]