In flash with as3.0, I have to call a function on the main stage from a movieClip

前端 未结 4 1765
盖世英雄少女心
盖世英雄少女心 2020-12-22 04:07

I have to call a function that is defined on the main stage of my project, and I have to call it from a MovieClip, what can I do? I\'m using flash cs5.5 and AS3.0

4条回答
  •  孤城傲影
    2020-12-22 04:32

    if your MovieClip has a class, just add it to your main class using like:

    var m:MovieClip = new MovieClip(); **addChild(m);

    then you can get access into it's public function like typing:

    m."functon name";

提交回复
热议问题