Flasher Archive

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


Subject: FLASH: moving an object with a button
From: Jon Bell
Date: Fri, 3 Dec 1999 05:40:58 GMT




I want to click a button and have an object move up 5 pixels. If I
click the button again, it'd move up another five pixels. Also, when
certain actions take place, I want the moveable object to change.

For example, you're in the front section and you click a button to
make an apple move up. You go to the next section, and now pressing
the same button will make an orange go up instead.

I've searched through this list and looked at many examples - most of
what I've found is talking about scrolling text, which isn't exactly
what I'm looking for.

Right now, I've got

Set Property ("/thingToMove" Y Position + 4) but that's not working.


In director, I know it'd be

on mouseDown
sprite(6).locV = sprite(6).locV - 5
end


But I can't get the syntax right in Flash 4.


TIA,
jon bell















+----------------------------------+
"you've got your whole life to do something
and that's not very long..."

http://www.bareSquare.com
------------------------------------


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
  Re: FLASH: moving an object with a butto, John Croteau
  Re: FLASH: moving an object with a butto, Carlos Cardoso

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