Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash7- slow SWF output 1

Status
Not open for further replies.

walahe

IS-IT--Management
Feb 24, 2005
11
GB
Hi

I hope you can help me with this guys:

In our latest job, we like to stack MC's on top of each other using GetNextHighestDepth, which is new to MX2004 and only works when movie is published for Flash 7. We have 6 buttons on the original design with 6 MC's all have heavy jpegs. Here is a small version of the test site: (500K downloads)

Problem:after clicking few times on buttons, MC's load become slower and slower. It looks like there is a rendering problem.

But if i publish the movie for Flash 6, no problem, they load normally as fast as you expect them. (Obviously, publishing for Flash 6, i loose the functionality of GetNextHighestDepth and MC's replace each other rather than stacking on top of each other. (We need to have that wipe off effect of the MC underneath by the new one on top )

Also, getting rid of the scrolling text in all of the MC's, helps a lot, but problem still there. Is this a bug in MX2004? or its my code?

Thank you all
Koosha
 
You can always delete the lower movies once the mask effect has obscured them - if you're just piling one on top of the other without removing them then they're all still burning up CPU cycles so the movie will become progressively slower.

If you want the getNextHighestDepth() functionality in Flash 6 all you need to do is set a 'depth' variable to some arbitrary value then increment it everytime you load a new clip:

Code:
this.attachMovie(clipFromLibrary, clipNameOnStage, depth++);
 
Good point. Can you tell me how to remove the movie underneath when masking is done?

This is the code i have on all buttons:

hotels_mc.vat_btn.onPress = function() {
var someDepth = empty_mc.getNextHighestDepth();
empty_mc.attachMovie("vat" , "vatup", someDepth, {_x:200,_y:100});
trace(someDepth);

Thanks
Koosha
 
Code:
myClip.removeMovieClip();

...is the syntax for removing a clip.

I'd just stick some code on the last frame of each clip which removes the other two, that way you don't have to keep track of what clip was loaded last.
 
Fine, but i dont want to remove the MC underneath, or perhaps removing it with a delay, after the one on top has covered in completely?

And there are actually 5 buttons with 5 MC's. cant put removeMovieClip on all of them, because you dont know what button will be clicked next.

Thanks
Koosha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top