# Get total frames of externally loaded SWF

**URL:** <https://forum.kirupa.com/t/get-total-frames-of-externally-loaded-swf/291442>\
**Category:** flash\
**Created:** [June 30, 2009, 12:00am UTC](https://forum.kirupa.com/t/get-total-frames-of-externally-loaded-swf/291442 "2009-06-30T00:00:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [June 30, 2009, 12:00am UTC](https://forum.kirupa.com/t/get-total-frames-of-externally-loaded-swf/291442/1 "2009-06-30T00:00:24Z")

</div>

I have a bunch of AS2 swfs that I am loading into an AS3 project. These AS2 swfs are powerpoint slides essentially. In my onComplete method, I trace(event.target.content.totalFrames) and I get this error:

```auto

ReferenceError: Error #1069: Property totalFrames not found on flash.display.AVM1Movie and there is no default value.
	at Index/::displaySlide()

```

How can I get the total frames of the SWF in AS3 on an AS2 movie?

…or alternatively find out when the swf is done playing?
