1 person found this helpful
Chances are if the currentFrame ends at 32 and the totalFrames returns 32, it is working like it should, just not as you desire. I have no idea what goes on with Captivate, so you might want to inquire in the forums for that product regarding the structure of your Captivate-generated file...
One thing you might be able to do with your endOFMovie function to investigate is to check the numChildren property of the loaded file, and trace each one ( trace(getChildAt...) ) to see which ones are movieclips, and then trace the totalFrames property of the movieclips that you find. That might lead you to finding the animation sequence you are interested in.
Thanks for the advice! After doing some research on it, I found out that the correct way to obtain the current and total frames of captivate-generated swfs is to use:
It kind of works now... but now I'm getting the following message in the output at every single frame after the Loader loads another swf:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Curious thing is that it doesn't happen everytime. The load of swfs can also be triggered by button clicks, and when I go back and forth between swfs the error doesn't show up at all. I'll try asking the captivate forum.