Is there any way to display the playback progress of an external loaded .swf file [COLOR="#0000FF"]BUT[/COLOR] it is not made with timeline animation? I mean I used TweenMax for the animation on the loaded .swf and due to this the totalFrames method doesn’t seem to work…
Is there any solution for this? (I would prefer not to transform the .swf as an .flv cause I need the interactivity)
Part of my code so far is:
function swfLoaded(event:Event):void
{
addEventListener(Event.ENTER_FRAME, trackPlayback);
}
function trackPlayback(event:Event):void
{
var perPlayed:Number =
MovieClip(loader.content).currentFrame / MovieClip(loader.content).totalFrames;
prog_mc.drag.x = (prog_mc.width - prog_mc.drag.width) * perPlayed;
}