ReferenceError: Error #1056 - instance name Error

后端 未结 2 838
南方客
南方客 2021-01-24 22:36

I got a Problem with a Movie Clip I add to the Stage in Flash CS4/AS3.

The Flash File consist of two MovieClips, \"Inside\" and \"Outside\". The \"Inside\" Clip

2条回答
  •  灰色年华
    2021-01-24 23:12

    Try to declare a public var corresponding to the name of your inside clip into you outside clip:

    package gui
    {
     import flash.display.MovieClip;
    
     public class Outside extends MovieClip
     {
      public var insideClip:MovieClip; // here your declaration so the compiler can find it
    
      public function Outside(){}
     }
    }
    

提交回复
热议问题