Hi everyone,\r\rI want to add a code to a M.C to control its continous movement in flash5 A.S.where is the most efficient place from a performance perspective for the code? In\r\r1) The timeline which contains the M.C\r2)The timeline of the M.C, duplicated over the first two frames with no other frames\r3) an onClipEvent(load) event handler located on the M.C itself with no frames within the M.c\r4)An onClipEvent(enterframe) event handler located on an additional M.C located on the first frame of M.C’s timeline with no other frames. \r\rPls.help me out with this prob. along with the reason of adopting the given option.\r\rThanks in Adv.\rSonia
The only one that makes a difference at all is the onClipEvent(enterFrame). That one will check something over and over again in a loop, as long as it exists on the timeline. The other options are better, if you can do it that way, and any of them will pretty much be the same on the processor.