The code I posted works :)

The example was just to point out the nature of the error I was having, as I found it hard to explain with words alone. The problem occurs in a much larger chunk of code. It is incredibly difficult to track down the difference, hence my post: I was hoping someone had already had this problem and could tell me where to look. I don't know if you read me saying, but changing the called method to a static member made it work - the plot thickens.


Chris Velevitch wrote:

On 11/28/05, Nick Griffiths <[EMAIL PROTECTED]> wrote:
The examples are supposed to work

Are you saying, the code fragment you posted isn't working for you?

The same code will run correctly if called differently.

So what is the difference in the two ways you're calling the failing code?

What I want to know is, has anyone had anything similar happen to them,
i.e. a called method doesn't execute until after the callee has
returned, meaning you can't get the result of the called method.

It sounds vaguely familiar, but I've obviously fixed the problem and
(hopefully) learnt my lesson. But I don't recall what went wrong and
how I fixed it.

The 2 classic problems that I seem to be continually getting are:-

1. typos in method names that don't generate compile errors
2. Failing to notice compile errors when compile 2 or more swfs in a
batch file before testing that app.

Also, copying to reuse existing code, but failing to change ALL the
variable names.

Sorry I can't be more helpful.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to