Flasher Archive

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


Subject: Re: FLASH: moving an object with a button
From: John Croteau
Date: Fri, 3 Dec 1999 06:19:48 GMT

Hi Jon,

> I want to click a button and have an object move up 5 pixels.
Any of these will work for a movie clip with an Instance name of MC:

On (Press)
Set Property ("/MC", Y Position) = GetProperty ( "/MC", _y ) - 5
End On

On (Press)
Set Property ("/MC", Y Position) = /MC:_y - 5
End On

On (Press)
Begin Tell Target ("/MC")
Set Property ("", Y Position) = _y - 5
End Tell Target
End On

Notice, how the paths of the variables were applied.

--
Coming Soon Flash 4 Web Animation F/X and Design
http://www.amazon.com/exec/obidos/ASIN/1576105555/flashcentral
----------- -----------------------
John Croteau croteauaterols [dot] com (mailto:croteauaterols [dot] com)
------------- -------------------------
FlashTek (Advanced Websites with Flash) http://www.FlashTek.com/
Flash Bible (Fast track to good Flash) http://www.FlashBible.com/
Flash Central(The Universe Starts Here) http://www.FlashCentral.com/
The Flash Tech Resource (Tech Notes) http://www.FlashCentral.com/tech/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: moving an object with a button, Jon Bell

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