Slow external loaded movie 2004-03-09 - By Adrian McTaggart
Back Thanks Andreas,
For example in the movie that is being loaded in I have this code:
-- ---- ---- ---- ---- ---- ---- onClipEvent(load) { var i = 1; } onClipEvent(enterFrame) { var makeBubbles = (random(26)==2) ? 1:0; if (makeBubbles) { _parent.bubble_mc.duplicateMovieClip("bubble"+i, i); var bubbleX = Math.floor(Math.random() * (240)); var bubbleY = Math.floor(Math.random() * (440 - 350)) + 350; setProperty ("_parent.bubble"+i, _x, bubbleX); setProperty ("_parent.bubble"+i, _y, bubbleY); i++; } } -- ---- ---- ---- ---- ---- ---- This duplicates another mc 'bubble_mc' so that there are a continuous stream of bubbles. How would you go about optimising this?
Many thanks,
Adrian
-- --Original Message-- -- From: Andreas Weber [mailto:webweber@(protected)] Sent: Tuesday, March 09, 2004 5:24 PM To: flashnewbie@(protected) Subject: RE: [Flashnewbie] Slow external loaded movie
On the code level:
Watch out for onEnterFrame handlers, particularily if they contain loops. Sometimes a possible workaround: execute the code in a slower interval.
HTH -- ---- ------ Andreas Weber motiondraw.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|