lib/sprout/generators/project/templates/MainClass.as in sprout-as3-bundle-0.2.9 vs lib/sprout/generators/project/templates/MainClass.as in sprout-as3-bundle-1.0.8
- old
+ new
@@ -1,12 +1,13 @@
package {
import flash.display.Sprite;
+ import flash.display.DisplayObject;
import skins.<%= project_name %>Skin;
public class <%= project_name %> extends Sprite {
public function <%= project_name %>() {
- addChild(new <%= project_name %>Skin.ProjectSprouts());
+ addChild(new <%= project_name %>Skin.ProjectSprouts() as DisplayObject);
trace("<%= project_name %> instantiated!");
}
}
}