As above is there a way to access any function written inside main timeline from a class ?
for example:
main timeline frame 4:
ClassPHP Code:
function foo()
{
trace("foo");
}
Is there any other way to do this?PHP Code:
package{
import flash.display.*;
public class SomeDisplayObjectClass extends MovieClip
{
public function SomeDisplayObjectClass()
{
stage.foo(); /*error 1061: Call to a possibly undefined method foo through a reference with static type flash.display:Stage.*/
}
}
}