Read property of document class of FLA file using jsfl script
<p><br/>I create a script (document class) and attack into a FLA file.
<br/><a href="https://i.stack.imgur.com/SWVo7.png" rel="nofollow noreferrer">Document class here</a>.</p>

<pre><code>public dynamic class MainClass extends MovieClip
{
    public var xPos:int;
    public var yPos:int;
}
</code></pre>

<p><br/>Now, I run a jsfl script to read value of xPos &amp; yPos of document class. But It does not work:</p>

<pre><code>var obj = new MainClass();
fl.trace(obj.xPos+":"+obj.yPos); // edited
</code></pre>

<p>How can I do that?</p>

<p>Thanks.</p>