Using the dot (.) operator to create the same variable causes an error because it violates the syntactic rules for identifiers : Object : Class Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Class » Object »

 

Using the dot (.) operator to create the same variable causes an error because it violates the syntactic rules for identifiers


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var info:Object = new Object(  );
        info["411""Information Line";
        
        var info:Object = new Object(  );
        info.411 = "Information Line";  // ERROR! Identifiers must not start

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Class
» Object