Author Topic: Beginners problem with Flare3DLoader1, base package examples  (Read 182 times)

Hi, after reading several post about this item I still have problems making my first examples work:
this is my Base.as which shows me error:Description    Resource    Path    Location    Type
1078: Label must be a simple identifier.    Base.as    /Flare3DTests/src/base    line 20    Flex Problem
My code is:

package base
{
    import flare.loaders.Flare3DLoader1;
    import flare.materials.filters.*;
    import flare.system.*;
   
    import flash.display.*;
    import flash.text.*;
   
    /**
     * ...
     * @author Ariel Nehmad
     */
    public class Base extends Sprite
    {
        private var textField:TextField;
       
        public function Base( info:String = "" )
        {
            scene.registerClass(Flare3DLoader1):void
            textField = new TextField();
            textField.selectable = false;
            textField.defaultTextFormat = new TextFormat( "arial", 12, 0xffffff );
            textField.autoSize = "left";
            textField.multiline = true;
            textField.text = info;
            addChild( textField );
        }
    }
}

I hope somebody can just help.
thanks I will post some of my beginners mistakes soon.
If you can't be a good example, just be a horrible warning!
bob

Sorawuth Chaidaroon   «   Reply #1 on: August 08, 2012, 12:46:55 AM »
i think the problem is, there no ":void" after " scene.registerClass(Flare3DLoader1)"

Ivan Vodopiviz   «   Reply #2 on: August 08, 2012, 11:49:33 AM »
Yes, the compiler is confusing this: scene.registerClass(Flare3DLoader1):void with a label declaration.