RE: [Flashcoders] Calling functions in sequence

2006-08-09 Thread Mike Mountain
TED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Andreas Rønning > Sent: 09 August 2006 15:11 > To: Flashcoders mailing list > Subject: Re: [Flashcoders] Calling functions in sequence > > I might be mistaken, but: > > function doAll(){ > func1(); > fun

Re: [Flashcoders] Calling functions in sequence

2006-08-09 Thread Andreas Rønning
I might be mistaken, but: function doAll(){ func1(); func2(); func3(); func4(); } func2 is called once func1 is done, not before or during. In this way, happily start loading your flv and xml file "at the same time". If you want the xml file to load once the flv

Re: [Flashcoders] Calling functions in sequence

2006-08-09 Thread Mick G
You could call the second function from the first (and have a paramater so it only runs the second function if you send the paramater). function funct1(runNext){ //do something if(runNext){ funct2(); } } function funct2(){ //do whatever } to call only the first function: funct1(); to call

Re: Re: [Flashcoders] Calling functions in sequence

2006-08-09 Thread eric dolecki
Well, take it out of the package declaration, and then rewrite the class a bit using the AS2 EventDispatcher, etc. If you need help with that, I might be around later today. On 8/9/06, Matt Comstock <[EMAIL PROTECTED]> wrote: Thank you. What would I have to change to make is AS2 compatible? O

Re: [Flashcoders] Calling functions in sequence

2006-08-09 Thread Matt Comstock
Thank you. What would I have to change to make is AS2 compatible? On 8/9/06, eric dolecki <[EMAIL PROTECTED]> wrote: this is AS3: http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/senocular/events/Sequence.as On 8/9/06, Matt Comstock <[EMAIL PROTECTED]> wrote: > > I

Re: [Flashcoders] Calling functions in sequence

2006-08-09 Thread eric dolecki
this is AS3: http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/senocular/events/Sequence.as On 8/9/06, Matt Comstock <[EMAIL PROTECTED]> wrote: I am a newbie to flash and I did search flashcoders prior to asking this question. My issue is that I have two function that

[Flashcoders] Calling functions in sequence

2006-08-09 Thread Matt Comstock
I am a newbie to flash and I did search flashcoders prior to asking this question. My issue is that I have two function that I am trying to call when a user selects a cell in a datagrid. One function loads a flv file and the other loads an associated XML file. These functions work perfectly if I