all groups > flash actionscript > july 2007 >
You're in the

flash actionscript

group:

------ n00b can't make buttons work inside movie clip


the real files ... Re: here are my files / Re: ------ n00b can't make buttons work inside movie clip töff
7/30/2007 11:45:23 AM
flash actionscript: Alright: http://www.arcticcoconut.com/buttonwoes/theRealFiles

Anybody want to tell me what the difference is here?

In _ Trinsic Map.html, by the Gilde North Tower, you'll see a red box
and a blue box. They are BUTTONS. When I am editing the movie clip that
contains them, they work as buttons, with rollover states, hand cursor,
etc. ... But in editing the parent scene, and in viewing the published
SWF, they are inactive. They just sit and glare at me noninteractively.

The sample button in my movie clip in ButtonWoes.html works fine.

WHAT'S THE DIFFERENCE!? I am too new to Flash to know what's wrong.

Drunk & Naked in the town square. Re: the real files ... Re: here are my files / Re: ------ n00b can't make buttons work inside movie clip töff
7/30/2007 11:59:25 AM
OK, so after HOURS and HOURS of tweaking, and surfing through tutorial &
support forums ... and having posted everything right here FORALL THE
WORLD TO SEE ... now I figured it out. :(

It was some kind of layering concern. Something is on top of the buttons
that aren't working. That's all.

So please let me slink into a shadow somewhere and pretend I have a
scrap of dignity.

------ n00b can't make buttons work inside movie clip töff
7/30/2007 6:24:43 PM
(Adobe Flash CS3, Actionscript 3.0)

I have a movie clip on the stage.
Inside the movie clip I have some buttons (and lots of non-interactive
graphics).

When I am editing inside the movie clip, the buttons work with "Enable
Simple Buttons" on. But when I go back to the parent scene, they don't
work ... and of course they don't work in "Test Movie" either.

One more piece of info that might be important: The whole reason I put
the buttons inside the movie clip is that I want to zoom & pan the whole
movie clip dynamically (it's a map) with other buttons (which DO work!,
on the root stage). But the map has some hotspots in it that I want to
make interactive as buttons.

There must be a SIMPLE SOLUTION, but I've searched the web for hours,
looked and looked, read about "trackAsMenu" and alpha=0 and
visible=false, none of it seems to be what I need, but I just can't tell
because I am a pretty green Flash newbie so I just have to ask. This
must be a COMMON OCCURRENCE, to use buttons inside movie clips, eh?

Help please! t.i.a.

BTW ... I am assigning NO rollover, mouseover, click events or anything
like that to my movie clip. I just want the buttons inside the movie
clip to work as buttons, or at least be accessible to Actionscript 3.0
as buttons. I don't want the movie clip itself to do anything when
clicked or moused-over.

here are my files / Re: ------ n00b can't make buttons work inside movie clip töff
7/30/2007 6:35:02 PM
Re: here are my files / Re: ------ n00b can't make buttons work inside movie clip töff
7/30/2007 6:37:06 PM
Oh my god ... now I've posted it ... it works ... how humiliating ...

OK, that was just a sample file ... let me post the real thing ... there
just be an error in it, but I'm bedamned if I can figure out what it is
..... criminy, this is worse than taking your car into the mechanic, and
it runs fine.

[quoted text, click to view]
AddThis Social Bookmark Button