• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

is there a piece of code to undo an '#include "myfile.as"'

hi
is there a piece of code to undo an '#include "myfile.as"'
so that all the functiosn and drawings that are need in my movie
don persist and get in the way later on in my movie?

thanks
liseperu
0
liseperu
Asked:
liseperu
  • 3
  • 2
1 Solution
 
liseperuAuthor Commented:
Actually
want i think i need is a way to destroy moiveclips created inside the include file

this the call to create my clip

this.createEmptyMovieClip('square',0);
with(_root.square)
............................
.........more code here

is there a way i destory this?
thanks again
liseperu
0
 
muso120999Commented:
removeMovieClip(_root.square);
delete _root.square;
0
 
liseperuAuthor Commented:
great will check it out and get back to you in abit
0
 
muso120999Commented:
Cool.

By the way, "delete _root.square;" is largely redundant as it stands above, because that's what removeMovieClip does.  However, you can use delete to remove instances of variables and functions too, which helps re-claim memory.
0
 
liseperuAuthor Commented:
thanks that worked a treat
briliant
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now