Hey everybody,
Has anyone ever had the flash player not calling a method when you would
expect it to. For Example...
function a():Void {
trace ("a begins...");
trace ("b returns: " + b());
trace ("a ends.");
}
function b():Number {
trace ("b has been called");
return 4 + 4;
}
running this results in the following trace...
a begins...
b returns: undefined
a ends.
b has been called
instead of....
a begins...
b has been called
b returns: 8
a ends.
The real case was slightly more complicated code, involving for loops
etc, but the call to "b" was not inside a for loop or anything, in fact
it was a call to set some stuff after some dynamic layout happenings had
gone on. I've had this before, and now it has happened again and I am
perplexed. I managed to work around it by making the "b" method static.
Any ideas?
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders