[thelist] Flash problem: removeMovieClip

Millie Niss men2 at columbia.edu
Sun Jun 27 10:12:50 CDT 2004


I tried it that way, and it didn't work either...

Millie
----- Original Message ----- 
From: "joe" <stowaway at uklinux.net>
To: <thelist at lists.evolt.org>
Sent: Sunday, June 27, 2004 6:55 AM
Subject: Re: [thelist] Flash problem: removeMovieClip


> Millie Niss wrote:
>
> >If anyone can solve this Flash 2004 problem I'd be very grateful.... I am
up
> >against a deadline with this, and I am really stuck!
> >
> >I am defining a component that makes a movie clip from the library appear
> >when you roll over it.  This works.  I use attachMovie and give it a
unique
> >name made up of the linkage name of the thing I'm attaching plus the
depth
> >I'm attaching at.
> >
> >But when I try to remove it, it won't go away!  I want RollOut to remove
the
> >thing. When I trace the thing I'm trying to remove I get what I expect...
> >
> >My code is as follows:
> >
> >
> >
> >
> hey Millie
>
> the easy way is to give yourself a nice handle for the clip you've made:
>
>
> myClip = _root.attachMovie(toappear, clipname, depth);
>
> then you don't need the eval(...), just access it using myClip:
>
>     myClip._x = this.x;
>     myClip._y = this.y;
>     myClip._xscale = this.xs;
>     myClip._yscale = this.ys;
>     myClip._rotation = this.rot;
>     myClip._alpha = this.a;
>
> or myClip.removeMovieClip() to get rid of it.
>
> if you have more than one at any time being instantiated, you can use an
> array:
>
> myClip[depth] = _root.attachMovie(toappear, clipname, depth);
> this.rememberMyDepth = depth;
>
> ..
>
> myClip[this.rememberMyDepth].removeMovieClip();
>
>
> hth
>
> joe
>
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>




More information about the thelist mailing list