This content has been marked as final. Show 5 replies
doLater() is now callLater().
That takes care of the question of what happened to doLater()... however, I was half hoping there were a way to not use it... (since it is essentially the same as setting a listener for "enterFrame")
it really doesn't seem right that "complete" launches before the image is actually displayed (and the width set) in SWFLoader... (sigh)
You should use the "init" event trigger.
"complete" happens when the content is loaded, and "init" happens when its variables are available.
Hadn't thought of using "init", not sure it will work for images. The recommended workaround is to subclass SWFLoader and override updateDisplayList
Flex harUI -
two solutions to this then are:
1) use the callLater() function or
2) extend the SWFLoader class...
I don't want to increase my component files so I will stick with the callLater() setup.
I tried init. It has the same result as complete. If I insert code like this: init="mx.controls.Alert.show(imgLoader.width)" I get the width for the *previous* setting (same as complete) and not the new setting.