Flasher Archive

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


Subject: Re: FLASH: Detecting clicked button - one more try
From: Scott Rouse
Date: Tue, 21 Nov 2000 15:47:26 GMT


----- Original Message -----
From: "Lena Bj�rklund" <lena [dot] bjorklundatmbox304 [dot] swipnet [dot] se>
To: <flasheratchinwag [dot] com>
Sent: Tuesday, November 21, 2000 1:43 AM
Subject: FLASH: Detecting clicked button - one more try


> Maybe this posting was drowned in all the "rainmesses". Since I am quite
> eager about this, I give it another try:
>
> I read in Flash 5 Action Script ReferenceGuide: "Typical types of
> information you can store in a variable include...(this and that), or
> whether a button
> has been clicked."

on (release) {
_root.yourVariable = _root.yourVariable + 1;
}

This code can be found (and only works with) when you select a button symbol
and open the Object Actions. yourVariable is now going to increase with
every click on that symbol.

OR you may be looking for Clip events which can be found (and work only in)
movie clip symbols

onClipevent (up) {
_root.yourVariable = _root.yourVariable + 1;
}

This will increase yourVariable with every and any mouse click no matter
where.

(Also, there is a short cut for the code to simply add one,
_root.yourVariable += 1, but I wanted to make sure that it was clear)




Would anyone tell me where I can find a description
> of how to write a script with such a function? Or possibly send a sample
> to the list... Would be very appreciated by me.
>
> Lena B - novice in action scripting
> http://www.tangoindesign.com
>
>
>
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: www.russellwong.com/workarea/per/, zefrank
  FLASH: Detecting clicked button, Lena Bj�rklund
  FLASH: Detecting clicked button - one mo, Lena Bj�rklund

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