Quantcast
Channel: Adobe Community : Discussion List - Using Flash Builder
Viewing all articles
Browse latest Browse all 1802

Help with my Flash Builder code.

$
0
0

Hello,

 

I am getting two errors, well four but three are the same. 1083 && 1084.

 

here is my code, can someone look over it and tell me what I am doing wrong. I am fairley new to Flash Builder so please no harassement.

 

//Check The Login

                var userName: String= "requestofone";

                var passWord: String= "robots96";

                    if (userName == "requestofone" && passWord == "robots96"){

                    trace("Welcome requestofone")

                    }else{ (userName != "requestofone")

                    trace("User not found. Try again.")

                    }else if{ (passWord != "robots96")

                    trace("Password does not match our records.");

                    }

               

                    //Tire Pressure

                   

                    var frontTires:Array = ['43', '43'];

                    var rearTires:Array = ['45', '45'];

                    if (frontTires:Array != uint: 43 && rearTires:Array != uint: 45){

                        trace("Get Your Tires Checked Out")

                    }else{ (frontTires:Array == uint: 43) && (rearTires:Array == uint:45)

                        trace("Tires pass the spec")}

 

 

 

 

DescriptionLocation
1083: Syntax error: else is unexpected.line 48
1084: Syntax error: expecting rightparen before colon.line 56
1084: Syntax error: expecting rightparen before colon.line 58
1084: Syntax error: expecting rightparen before colon.line 58

 

I have been trying to figure this out for a while now. Please help.


Viewing all articles
Browse latest Browse all 1802

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>