# \_totalframes of external swf

**URL:** https://forum.kirupa.com/t/-totalframes-of-external-swf/176673
**Category:** flash
**Created:** [January 25, 2006, 11:40pm UTC](https://forum.kirupa.com/t/-totalframes-of-external-swf/176673 "2006-01-25T23:40:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jackcviers](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@jackcviers](https://forum.kirupa.com/u/jackcviers)
#### Post date: [January 25, 2006, 11:40pm UTC](https://forum.kirupa.com/t/-totalframes-of-external-swf/176673/1 "2006-01-25T23:40:39Z")

</div>

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?

```auto
_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();

```
