FORUMS: list search recent posts

Nested movie, removeChild function doesn't suddenly work

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Terrence Dunlop
Nested movie, removeChild function doesn't suddenly work
on Jun 14, 2008 at 12:45:35 am

I've been developing a site for work and I'm in the no man's land between ActionScripting everything and using the Flash timeline simply and sensibly - I'm having the following problem:

The site is basically a photogallery - click a navigation-menu button and a text box and a background image fade in. Behind the scenes on every MOUSE_UP, the previous screen's children are removed.

On the "Contact" screen, I've added a movie-clip button that brings up a map screen. When the map screen fades in, the text box from the contact screen remains in front of it, "unremoved." Is this a function of the fact that this is a nested movie?

Here's the child-removing function I put together:

function onClick(event:MouseEvent):void{
if ( numChildren > 0)
removeChildAt( 0 );
trace("prev. screen removed");

Any ideas?

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved