Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorprototype
- CommentTimeJan 11th 2009
I want to place the emitter behind a MovieClip and don't know how do that since the emitter is generated dynamically at runtime and the MC is authored on the timeline. Help appreciated. -
- CommentAuthorawesomerami
- CommentTimeJan 12th 2009
I've used
setChildIndex(renderer,0);
Where 0 is the level of the displayobject.
It's a bit quirky for me, where if i set the level of the movie clip (i.e 1), and the level of the renderer (i.e 0) then it doesn't work properly..
Anyways, i hope i helped.
My 2 cents.
Awesomerami. -
- CommentAuthorRichard
- CommentTimeJan 12th 2009
Alternatively, when adding the renderer to the stage, place it at the back withaddChildAt( renderer, 0 );
or place the renderer behind your mob=vieclip but in front of everything elsevar index:int = getChildIndex( myClip );
addChildAt( renderer, index ); -
- CommentAuthorprototype
- CommentTimeJan 12th 2009 edited
Thanks to both of you. That worked nicely.
Now since I'm I'm using v1.0.4 how do I stop or remove the emitter when I want to? The docs don't list a method for stop() or remove.
EDIT: Never mind. I found an answer from an October post.
emitter.dispose(); and/or remove renderer.
1 to 4 of 4
