A non-constructor error is an inconvenient way to compile: "You called the constructor for a class that I have not seen"; if he was a little smarter, he could check the file (compilation unit) for inner classes before complaining ... mehhh
Seeing that you have provided your private static variable, it is obvious that you intend to use the instance only inside SomeClass (assumption can be passed as a return value).
The following solution discards the creation of a static var when the inner class is initialized, i.e. when the (supposedly implicit) Helper.cinit() , and not SomeClass.cinit() when the Helper does not exist yet:
package com.domain { public class SomeClass { public function doSomething(param:*):void {
Darren bishop
source share