Is there a way to get the total frames and current frame of an externally loaded swf? The code I am using below does not work. My _root timeline has three objects: two dynamic text boxes and a container clip. Their instance names are myText_text, myText2_text, and loader_mc, respectively. I have two variables, “i” and “j”, which populate myText_text.text and myText2_text.text, respectively.
The problem is that the values display “1” because they are getting the value of the container clip and not the movie loaded into the container clip. I need the _totalframes and _currentframe properties of the externally loaded clip, not the container clip. My code below doesn’t work. Any ideas?
_root.loader_mc.loadMovie("loadedclip.swf");
var i = _root.loader_mc._totalframes;
var j = _root.loader_mc._currentframe;
_root.myText2_text.text= j;
_root.myText_text.text = i;
stop();