Flasher Archive

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


Subject: RE: FLASH: Scaling symbol tween on Action script?
From: Jody Keating
Date: Fri, 31 Mar 2000 17:26:53 +0100

Hi Jeff -

Here is my not terribly elegant solution - but it's a start:

Set up your draggable movie clip (I gave mine an instance name of dragger).
Actions on the button should look something like:
On (Press)
Start Drag ("/dragger", lockcenter)
Set Variable: "/:dragging" = True
Set Variable: "old_y" = _y
End On
On (Release)
Stop Drag
Set Variable: "/:dragging" = False
End On

Set up a controller movie clip with nothing but the following actions:

If (/:dragging = True)
Begin Tell Target ("/dragger")
Set Variable: "current_y" = _y
Set Variable: "current_scale" = _xscale
If (old_y > current_y)
If (current_scale > 10)
Set Property ("", Y Scale) = _yscale - 1
Set Property ("", X Scale) = _xscale - 1
End If
Else If (old_y < current_y)
If (current_scale < 100)
Set Property ("", Y Scale) = _yscale + 1
Set Property ("", X Scale) = _xscale + 1
End If
End If
Set Variable: "old_y" = current_y
End Tell Target
End If

Drag a copy of your controller movie clip on to the stage with your
draggable movie clip and you're good to go.

Jody Keating
Fig Leaf Software
"We've got you covered!"

-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Jefferis
Sent: Friday, March 31, 2000 9:37 AM
To: Flash MailList
Subject: FLASH: Scaling symbol tween on Action script?


I am just curious if this is possible.

Using the Flash 4 actions and the drag and drop metaphor, is it possible
to take a symbol and tween its size along a mouse dragged action as if
you were moving forward or back in perspective?

Jeff


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The Worlds Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: Scaling symbol tween on Actio, Jody Keating
  FLASH: Animated GIF's to Flash, UNINOVA. Rui Tavares

Replies
  FLASH: Scaling symbol tween on Action sc, Jefferis

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