Thanks to everyone for the great advice. I have now taken your advice and
got rid of all the multiple onEnterFrames and it now works a treat.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T. Michael
Keesey
Sent: 14 March 2007 14:44
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Order of events for function call

You can't rely on the order of events for two movies in the same
timeline. Instead, why not have an onEnterFrame in the parent clip
that calls functions in ball_mc and ball2_mc in the proper order?

On 3/14/07, Paul Steven <[EMAIL PROTECTED]> wrote:
> This may be really basic but I can't understand.
>
> The following is a simplified version of what I am trying to achieve.
>
> Basically I am attaching an onEnterFrame function to 2 objects, say
object1
> and object2.
>
> I am attaching it to object1 first however it is calling the onEnterFrame
> function for object2 first.
>
> I would appreciate any advice on why this is happening.
>
> When I test the movie, the "Object2 enter frame" trace is displaying
first.
>
> Here is the code for my simplified test file:
>
> object1 = attachMovie("ball_mc","ball_mc",1);
> object2 = attachMovie("ball_mc","ball_mc2",2);
>
> object1.onEnterFrame = function() {
>
>         trace ("Object1 enter frame");
>
> }
>
> object2.onEnterFrame = function() {
>
>         trace ("Object2 enter frame");
>
> }
>
> Many thanks
>
> Paul
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


-- 
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to