# Extracting keyframe length from Library MC

**URL:** <https://forum.kirupa.com/t/extracting-keyframe-length-from-library-mc/269730>\
**Category:** Uncategorized\
**Created:** [August 31, 2008, 5:25pm UTC](https://forum.kirupa.com/t/extracting-keyframe-length-from-library-mc/269730 "2008-08-31T17:25:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickjv](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@patrickjv](https://forum.kirupa.com/u/patrickjv)\
**Post date:** [August 31, 2008, 5:25pm UTC](https://forum.kirupa.com/t/extracting-keyframe-length-from-library-mc/269730/1 "2008-08-31T17:25:21Z")

</div>

Is there an easy way to extract the lenght of keyframes from a Library object? At this moment I simply create a new instance of it and read it out, for example

anidurin = new obj1\_elite\_alien().totalFrames;

But that also literally makes them ‘play’ and perform the actions within their timeline, and I can’t have that.

So, any other better way to do this or any way to immediately remove the invisible new object after I extracted the frame lenght ‘anidurin’?

tnx for suggestions  
P.
