all groups > flash actionscript > november 2006 >
You're in the

flash actionscript

group:

Dynamically removing a component button...


Dynamically removing a component button... DIY_Lobotomy
11/15/2006 7:00:27 PM
flash actionscript:
Sorry if this question sounds stupid/easy, but I'm blanking. How do I use AS to dynamically remove a component button that was dragged out onto the stage?...

Thanks!...
Re: Dynamically removing a component button... squadjot
11/15/2006 7:11:17 PM
Re: Dynamically removing a component button... DIY_Lobotomy
11/15/2006 7:22:17 PM
Well, removing the button that way definitely worked, but it didn't solve my
problem, like I thought it would...

If you go to the link below, then click the red bar near the top-right that
says "NETWORK BASICS AND COPPER CABLE", you will get a drop-down menu. Scroll
down to the last thing that says "FINAL EXAM". Then when you click the "Begin
Final Exam" button, you'll see that the "glow" from the button stays there. I
don't get what's going on. I removed the button, but the "glow" still stays!:

http://al-i.anixter.com/TEMP/SCS/copper/mod1/index2.html

--Matt

Re: Dynamically removing a component button... kglad
11/15/2006 8:10:51 PM
you can remove that button (like all movieclips) by moving it (use swapDepths()
) to a (dynamically) removable depth and then using removeMovieClip().

because i don't know what's causing that issue, i'm not sure removing the
button will resolve the issue.
Re: Dynamically removing a component button... DIY_Lobotomy
11/15/2006 8:28:34 PM
[q][i]Originally posted by: [b][b]kglad[/b][/b][/i]
because i don't know what's causing that issue, i'm not sure removing the
button will resolve the issue.[/q]
Yeah - I'm sure that removing it isn't helping, because the frame that the
"glow" is in doesn't even HAVE that button in it. When you click the button,
it moves to a different keyframe, and that button doesn't even EXIST on the new
keyframe. So, for some reason, just that "glow" is remaining. Any ideas?...



Re: Dynamically removing a component button... kglad
11/15/2006 8:51:24 PM
Re: Dynamically removing a component button... DIY_Lobotomy
11/15/2006 8:54:28 PM
[q][i]Originally posted by: [b][b]kglad[/b][/b][/i]
you caused that problem by doing something to the button's bounding box and/or
loading your finalexam.swf into another swf.[/q]
I don't know what I would have done to the bounding box. I just put the
component on the stage and changed the theme color of it - that's all...

As far as the final exam loading into another .swf, that's true. There's one
"main" .swf that is the basic navigational shell for the course (the top/bottom
of the course). Then all the "pages" of the course load into the big main
window of the navigational shell...

...would that be what's causing it? How come? Is there a way to fix it???



Re: Dynamically removing a component button... kglad
11/15/2006 9:06:09 PM
what if you don't change the theme color? does the problem resolve?

what if you do change the theme color, but test finalexam.swf on its own
without loading into another swf? does the problem resolve?
Re: Dynamically removing a component button... DIY_Lobotomy
11/16/2006 5:47:23 PM
[q][i]Originally posted by: [b][b]kglad[/b][/b][/i]
what if you do change the theme color, but test finalexam.swf on its own
without loading into another swf? does the problem resolve?[/q]
Okay - I think we're getting closer to a solution!...

...not changing the theme color has no effect. BUT, when I test the .swf on
its own (NOT loaded through the other .swf) the glow goes away.

So, I guess that's the problem. Now....a solution???

Hmmmm...weird.



Re: Dynamically removing a component button... kglad
11/17/2006 12:00:00 AM
AddThis Social Bookmark Button