Sunday, May 20, 2012

Adobe Flex For The OI Guy – Part 3 – Conditionals

Adobe Flex Icon                  OpenInsight Icon

In this edition of "Adobe Flex for the OI Guy", we will discuss Actionsscript conditionals and how they compare to OpenInsight's conditionals.  First I will give you some links for you to review Actionscript conditionals, then I will go into detail on how it differs from OpenInsight Basic +.

For you to review Actionscript conditionals, visit here. This will give you a good overview of what conditionals are all about.

Actionscript your OI

The if statement

In OpenInsight:

In Actionscript:

Notice the parenthesis around the condition in Actionscript. Also, instead of the "then" keyword in Basic +, Actionscript uses the "{" and "}" curley braces.

Using Boolean Operators

As shown in an earlier post on Operators, the below code shows boolean operators in your conditional statement.

In OpenInsight:

In Actionscript:

Case Statements

In OpenInsight, Case statements are utilized for conditional branching.  In actionscript, it is not called a Case statement, it is known as a Switch statement.

In OpenInsight:

In Actionscript:

"Default" is basically an "otherwise" statement.

Next week — Loops!



5 Comments

  1. Comments  frostwire   |  Monday, 17 January 2011 at 8:57 PM

    Fantastic goods from you, man. I’ve understand your stuff previous to and you are just too wonderful. I really like what you’ve acquired here, really like what you are stating and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I can not wait to read much more from you. This is really a wonderful site.

  2. Comments  Shenita Newberger   |  Saturday, 07 May 2011 at 6:57 PM

    As you see your rankings climb you must see a corresponding improve in web traffic and a substantial increase in sales enquiries.

  3. Comments  Tonette Richarson   |  Monday, 15 August 2011 at 2:40 PM

    Hi there Tonette Richarson right here, I was simply looking for info about CLB IT – » Adobe Flex For The OI Guy – Part 3 – Conditionals in google. So happy to have arrived at http://clb-llc.com/index.php/openinsight/adobe-flex-for-the-oi-guy-part-3-conditionals to understand about this info. Ended up saving me a ton of energy, thank you.

  4. Comments  Rodney Ketcherside   |  Sunday, 05 February 2012 at 7:06 PM

    Wow, fantastic blog layout! How long have you been blogging for? you make blogging look easy.The overall look of your site is wonderful, let alone the content!

  5. Comments  Lan Caccamise   |  Sunday, 12 February 2012 at 6:47 PM

    Nice blog here! Also your site loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my site loaded up as fast as yours lol.

Leave a Reply