Flasher Archive

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


Subject: Re: FLASH: Moving target ar press down action (F5)
From: Randy Kato
Date: Wed, 30 Aug 2000 22:22:48 +0100

Motomichi,

You're on the right track. What you need to do is put what you have in your on
(press) statement into a frame in a Movie Clip and put the MC on the timeline.
Then you just change your on (press) statement to run that MC, and on (release)
to stop it.

In F4 you'd stop the MC in frame 1, put your script in frame 2, and a
gotoAndPlay (2) in frame 3. Then on (press) tell target the MC to Play,
initiating the loop. On (release), tell target the MC to gotoAndStop (1),
stopping the loop.

In F5 you could use the onClipEvent handler attached to the MC (which is just a
single frame with your script in it since "enterFrame" will simulate the same
type of loop described above as the single-frame MC loops).

HTH,
Randy


Motomichi wrote:

> Hi to all.
>
> I would like to make a button which moves the target while you are pressing
> down instead of doing millions of "click". What I have now is as follows. I
> am using Flash and that's one the reasons why I can't really figure this
> out..
>
> on (press) {
> setProperty ("/targetclip", _x, Number(getproperty("/targetclip",
> _x))+18);
> x_value = getproperty("/targetclip", _x);
> y_value = getproperty("/targetclip", _y);
> }

--
'''''' ' ' ' ' ' ' ' ' '
Randy Kato - Web Master
Braincraft

627 Broadway, Suite 504, NYC 10012
T 212.539.1680 F 212.539.1741
http://www.braincraft.com
...... . . . . . . . . .



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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


Replies
  FLASH: Help!! .fla file got corrupted!!, Motomichi

Replies
  FLASH: Moving target ar press down actio, Motomichi

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