-
Wait- what now?
Instances from previous frames dont go away!
Ive always been aware of this problem but its really bugging me now. In my game when i use a gotoAndPlay function and instances which have had the swapDepths applied to them stay on screen. Its really annoying and I cant find a way to get around it. Can anyone help me please?
"I'd only told them the truth. Was that so selfish? Our integrity sells for so little, but it is all we really have. It is the very last inch of us, but within that inch, we are free."
-
Script kiddie
-
Wait- what now?
no i cant do that because then they dont appear at all on the next frame
"I'd only told them the truth. Was that so selfish? Our integrity sells for so little, but it is all we really have. It is the very last inch of us, but within that inch, we are free."
-
Wait- what now?
if i phrased the question wrong;
i have some fog using swapsdepths and i need it to change position and tint ect but it just stays the same as the last level. Its very annoying
"I'd only told them the truth. Was that so selfish? Our integrity sells for so little, but it is all we really have. It is the very last inch of us, but within that inch, we are free."
-
Script kiddie
Isn't that what you said you want?
-
The Flashman
or make them _visible = false if you don't want to remove them.
i eat actionscripts for breakfast
-
Or just attach them again when needed?
-
skylogic.ca
Originally Posted by Tidusen
instances which have had the swapDepths applied to them stay on screen.
I've had the same problem, I've had movieclips on the stage and used swapDepths on them and then they dont go away when I want them to. Try using attachMovie instead of putting the clips on the stage, if you use attachMovie() you still have control over the depth and removeMovieClip() will work properly (and you have to use removeMovieClip because attached clips aren't affected by frames)
Good luck,
~MD
-
Hype over content...
Ironic, I cleared an attachment about this just a week or so ago.
MD004's got it. If you place a clip on stage it's author time content, so it's depth is a minus. If you then swapDepths on that it has a postive depth, so Flash thinks it was dynamically created ( ie, via attach or duplicate ), and then looping back to that first frame ( Where the instance is first displayed on stage ) just confuses the hell out of Flash.
Took me forever to get to the bottom of this way back when I first found it. Since then I've avoided swapDepths where ever possible, and never use it on authortime content.
Squize.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|