# Framecount of symbol on main timeline with jsfl

**URL:** <https://forum.kirupa.com/t/framecount-of-symbol-on-main-timeline-with-jsfl/331275>\
**Category:** Uncategorized\
**Created:** [June 26, 2013, 8:19pm UTC](https://forum.kirupa.com/t/framecount-of-symbol-on-main-timeline-with-jsfl/331275 "2013-06-26T20:19:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bonassus](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@bonassus](https://forum.kirupa.com/u/bonassus)\
**Post date:** [June 26, 2013, 8:19pm UTC](https://forum.kirupa.com/t/framecount-of-symbol-on-main-timeline-with-jsfl/331275/1 "2013-06-26T20:19:20Z")

</div>

I’m trying to get the frame count of the timeline of a movieclip that is on the frist frame of the main timeline of a .fla file with jsfl.

```auto

fl.openDocument(fileURL);
var dom = fl.getDocumentDOM();
var timeline = dom.getTimeline();

//this traces movieclip
fl.trace(timeline.layers[0].frames[0].elements[0].symbolType);

//this traces undefined 
fl.trace(timeline.layers[0].frames[0].elements[0].frameCount);

```

any ideas?

thanks in advance!
