1 Reply Latest reply on May 5, 2007 5:33 AM by Newsgroup_User

    1046 from other swf

    orlleite
      1046: Type was not found or was not a compile-time constant: RectangleParticle.

      This is a error that I get. I know why, but I don't know how to fix like I want.

      I create a swf that have a class. This class have a metod like this:

      public function createSomeThing() {
      return new someThing();
      }

      Simple. But in a another fla, I wont put like this:

      var myObject:someThing = swfLoaded.createSomeThing();

      I get that code. The soluction is:

      var myObject = swfLoaded.createSomeThing();

      But I want some form to do this and put intance of. Somebody help me?

      Thanks and sorry about my english.
        • 1. Re: 1046 from other swf
          Level 7
          orlleite wrote:
          > 1046: Type was not found or was not a compile-time constant: RectangleParticle.
          >
          > This is a error that I get. I know why, but I don't know how to fix like I
          > want.
          >
          > I create a swf that have a class. This class have a metod like this:
          >
          > public function createSomeThing() {
          > return new someThing();
          > }
          >
          > Simple. But in a another fla, I wont put like this:
          >
          > var myObject:someThing = swfLoaded.createSomeThing();
          >
          > I get that code. The soluction is:
          >
          > var myObject = swfLoaded.createSomeThing();
          >
          > But I want some form to do this and put intance of. Somebody help me?
          >
          > Thanks and sorry about my english.
          >
          Import the class into the loading fla