Flasher Archive

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


Subject: RE: FLASH: OnMouseClick Swapping of Graphic
From: Paul Willoughby
Date: Tue, 26 Sep 2000 15:07:03 +0100

Hi Bruce,

The best way to do this doesn't really involve swapping the graphics at all
(not like javaScript rollovers anyway). Create a movie clip with 3 layers
and 2 key frames on each. The lowest layer will be your graphics. In frame 1
put the image of the unselected tooth and in frame 2 the image of the
selected tooth (you could use just 1 image, convert it to a graphic symbol,
then just modify it's instance colour properties for the selected version).
Create an invisible button (this is a button without an up, over or down
state, just a hit area). Make the hit area of it a nice shape to cover your
tooth. On layer 2 of your 'tooth' movie clip drag instances of the button
into both keyframes. Assign this action to the button in frame 1:

On(Release)
Go to next frame
End On

On the button in frame 2, assign the action:

On(Release)
Go to previous frame
End On

Finally, on layer 1, assign a 'stop' action to each keyframe to keep that
crazy playhead in check.
Probably more detailed an explanation than you need, but it's just so darn
quiet today...where is everybody?
Anyone going to the list party tommorrow?

hth

Paul

-----Original Message-----
From: Bruce Lye [Bruceataptitude [dot] com [dot] sg (mailto:Bruceataptitude [dot] com [dot] sg)]
Sent: 26 September 2000 11:04
To: 'flasheratchinwag [dot] com'
Subject: FLASH: OnMouseClick Swapping of Graphic


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.

Thanx in advance!

Regards,
Bruce Lye Ir-win
Web Designer
--------------------------------
Office (65) 226 4246 ext. 42
Fax (65) 323 7663
Mobile (65) 9 842 0222
E-Mail bruceataptitude [dot] com [dot] sg

Aptitude Systems Pte Ltd
105 Cecil Street #07-02/03
The Octagon, Singapore 069534
Http://www.aptitude.com.sg
--------------------------------


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



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


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