  | |  | Controller Movie Clips (best practice question) | Controller Movie Clips (best practice question) 2004-03-11 - By Daniel Hai
Back quick question about best practices:
is it better to have one clip that controls 50 movieClips with 1 onClipEvent(enterFrame), or have each of the 50 clips with their own enterFrames? Just doing simple movement of the individuals objects.
-- ---- ---- --
onClipEvent(load) {
function moveItems() { for (var count=0;count<50;count++) { with (_parent['box'+count]) { _x -= xMove; _y -= yMove; } } }
}
onClipEvent(enterFrame) { moveItems(); }
-- ---- ---- -- or -- ---- --
onClipEvent(enterFrame) { _x -= xMove; _y -= yMove; }
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106604 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |