This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > November 2006 > animated hit area
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Pewee2000 2006-11-05, 10:33 pm |
| I was wondering if it is possible to animate the hit area of a button. I have
tried
making a button and placing a animated movie clip on the hit keyframe of the
button,
but it doesnt do anything. I have also tried putting actionscript inside the
movie clip
to tell it to play, but no such luck.
Any ideas
| |
|
|
"Pewee2000" <webforumsuser@macromedia.com> wrote in message
news:efqubn$jo7$1@forums.macromedia.com...
>I was wondering if it is possible to animate the hit area of a button. I
>have
> tried
> making a button and placing a animated movie clip on the hit keyframe of
> the
> button,
> but it doesnt do anything. I have also tried putting actionscript inside
> the
> movie clip
> to tell it to play, but no such luck.
>
> Any ideas
You say 'animated movie clip', have you tried just an animated GIF or is
that what you mean?
| |
| droopy.ro 2006-11-05, 10:33 pm |
| hello,
i think you can use
[i]movieClip.hitArea[/i] property.
so you can have a separate movie that will be the hitArea and that can be
animated.
for example try the code bellow.
anyway .. i hope it works for the button instance. i only used it for
movieclips. in case it doesn work, i think you can make the button a movie clip
and should work then.
if you have problems with this, let me know.
//yourButton_btn is the instance name for the button
//hit_mc is the isntance name for the movie clip that will act as the hitArea
for the button
yourButton_btn.hitArea = hit_mc;
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|