var MySubStr:String; var MyStr:String; MySubStr = "cake"; MyStr = "chocolate cake"; trace(MyStr); trace(MyStr.indexOf(MySubStr));