Has anyone got any ideas on this? I am still using the timeouts and it's horrid!
Anyone out there know anything detailed about the old SWFLoaders? Thanks Rob --- In [email protected], "rob" <rob_mcmich...@...> wrote: > > I tried callLater(), but had the same issue as before. Perhaps the next frame > is too soon. > > I think as the SWF is in another process (virtual machine), callLater won't > work. > > I either need a way to tell if the content height and width are exact or an > event to listen to. > > The time out works, but I feel dirty using it ;) > > Rob > > > --- In [email protected], "valdhor" <valdhorlists@> wrote: > > > > Try a callLater so you are checking on the next frame. > > > > --- In [email protected], "rob" <rob_mcmichael@> wrote: > > > > > > I have a complete event on two swfLoaders. > > > > > > Once both of the swf loaders have dispatched their complete events I call > > > a method to calculate their content's width and height. > > > > > > Something like this: > > > > > > myWidth = mySwfLoader.contentWidth; > > > myWidth += mySwfLoader2.contentWidth; > > > > > > I get an intermittent problem where the content width and height are > > > reported incorrectly. If I call the method manually later, from a button, > > > then they always report correctly, even if they have previously reported > > > incorrectly. > > > > > > Therefore I have assumed that at the point the complete event dispatched > > > by the SWFLoader, it hasn't calculated it's contents height and width. > > > Sometimes my method must be asking for this value before it's calculated. > > > > > > My question is if this is a known problem, and if there is another event > > > I should be waiting for. I don't want to set a time out, to allow for the > > > content height and with to be calculated. > > > > > > Please let me know if there is another event dispatched by the SWFLoader, > > > I have tried all the non inherited ones, but with no joy :( > > > > > > Thanks > > > > > > Rob > > > > > >

