Flasher Archive

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


Subject: Re: FLASH: OnMouseClick Swapping of Graphic
From: Randy Kato
Date: Tue, 26 Sep 2000 15:37:37 +0100

Bruce,

You can use a MC for each tooth (or reuse some if they're the same shape) that
is the highlighted color. Then in your button for each tooth use:

on (release) {
(MCinstanceName._visible == 1) ? MCinstanceName._visible = 0 :
MCinstanceName._visible = 1;
}

This will turn the highlight color on/off depending on what state it's currently
in. If you put the button itself *within* the MC, you can use a relative code
like this (and never have to change the instance names in each button script):

on (release) {
(_parent._visible == 1) ? _parent._visible = 0 : _parent._visible = 1;
}

HTH,
Randy


Bruce Lye wrote:

> Dear all,
>
> I have a new project to create a set of teeth for dentists so that when a
> particular tooth is selected, it actually highlights itself. This means that
> if multiple teeth are selected, those too will be highlighted and produce a
> change in colour.
>
> Anyone can provide me with the action script/solutions/help about how to
> enable a graphic swap when that particular graphic has been clicked on.

--
'''''' ' ' ' ' ' ' ' ' '
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: OnMouseClick Swapping of Graphic, Bruce Lye

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