|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
removeMovieClip() wierdnesses
I got a duplicateMoveClip creating / duping the movie objects
I give it a id dupe(id) { duplicateMoveClip(_root.objs, "object"+id, id); } all works cool, now on the removing is the isse remove(id) { removeMovieClip("object"+id); } This works if the id is 0-9, but if I go above 9 if dont work. I have a if(movie) inthe remove and it is saying "yes the move 11 exists" and then "removed object11" but the object does not get deleted, I can still access the object. Any ideas? cheers
__________________
regards, pgudge |
|
#2
|
|||
|
|||
|
You are not implementing removeMovieCLip correctly. Are you using MX or 5?
Code:
remove(id)
{
_root["object"+id].removeMovieClip();
}
|
|
#3
|
|||
|
|||
|
Yeah, I tried both ways, as an action and as method, or what ever they call it.
Code:
_root["object"+id].removeMovieClip(); and removeMovieClip(_root["object"+id]); Although for some reason as I was setting the depth to the same ID/name as the object the depth turned out to be >36,000, so I started to gove the depths parameter a value and increment it ever time, which in turn as solved the issue. All working ![]() Thanks dude. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > removeMovieClip() wierdnesses |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|