The wierd thing is if I add an alert command in the same function, it gets processed immediately. On its own it takes between 1-3 seconds to update....
Thanks Philip. I've come to the conclusion that my problem was simply that the call going out from actionscript to the HTML doc, was too 'deep'. The same call from the base class gets an immediate response from the HTML doc's resize function.
I hope that makes sense, and any of this helps anyone else = ]
Um. If you make an external interface call from within flash, it should make do differnce how "deep" it is within a class or movieclip structure. As external interface in event based there is no concept of levels, just broadcasters and listeners.
I think your conclusions of js engine speed sounds much more likely :)
I'm completely baffled with it. I have an object with a method. This method changes the position of the object on the stage. It also makes an External Interface call with one Number parameter.
I also have an external interface call sent with a button click event from the base class, that changes the position of the object on the stage.
The latter is immediately handled by the javascript function, whereas the former takes between 1-3 seconds. If it was the js engine, why would it matter whether the function is called from the base class, or an object method? It shouldn't! But then, maybe you think the objects method is simply taking longer to complete? No, the visual position changes immediately on screen, but the javascript function takes between 1-3 seconds. wth?
Do you see why I'm so confused?
But then if I add an alert to the javascript function, it processes immediately, so then I think maybe it is just the js engine in Safari being slow to get the element id and act on the style.height....
AAHH! BAH-HUMBUG! I JUST DONT KNOW! I just wish there was one web browser, or they all used the same WEBKIT!