Monday, February 06, 2012

Adobe Flex For The OI Guy – Part 2 – Operators

Adobe Flex Icon                  OpenInsight Icon

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

For you to review Actionscript operators, visit http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/operators.html.  This will give you a good overview of what the operators are all about.

Actionscript your OI

Arithmetic is essentially the same.

Comments

Comments are also the same, however '*' (astericks) are not supported.

Comparison Operators

Comparison operators are quite a different concept all together.

In OpenInsight:

In Actionscript:

Notice the "==" instead of just "=".  This is to differenciate between assigment of a variable and comparison of a variable.  It is much more strict than OpenInsight, but you can see that there is no mistaking the action that is taking place.  

"Not equal to" is also a bit different.

In OpenInsight:

In Actionscript:

Or you can use:

Logical Operators

Logical operators are also quite a different concept.

In OpenInsight:

In Actionscript:

Strings

Dealing with strings is another different aspect to going from OpenInsight to Actionscript, but for the purpose of operators… Not so much different.

In OpenInsight:

In Actionscript:

Now, by the book strings are enclosed in double quotes ("), however, single quotes (') also work is Actionscript 3.0.  

Obviously there are more operators.  But, the focus of this article was to show you how operators in Actionscript relate to your knowledge of OpenInsight programming.  As we get deeper into how to make you OpenInsight database and web service "talking" with each other, these topics will be covered.   Next article — "Conditionals"



4 Comments

  1. Comments  nirkolounriodra   |  Thursday, 04 March 2010 at 6:16 PM

    ok, good post.

  2. Comments  Sade Jessie   |  Friday, 03 December 2010 at 3:02 PM

    Hello there, amazing web site you’ve gotten right here, however I simply had to tell you about what might most likely be a internet browser compatibility matter. I’m using Windows XP 32 bit with Ie, and the format is screwed up. It’s a little bit difficult to see a number of portions of the blog, and I am running my screen resolution at 1680 x 600. I believe you didn’t aim for your web-site to appear so strange, so could there be any way you’ll be able to help me deal with this issue?

  3. Comments  Top Free SEO Tools   |  Sunday, 15 May 2011 at 2:05 AM

    When purchasing SEO softwares, always make sure that you are careful with automation and try not to spam too much.

  4. Comments  hotshare   |  Friday, 11 November 2011 at 12:19 AM

    You write really interesting, the topics are cool. I like your web site. For how long have you been blogging? How much time do you spend on on blogging? I hope that I can use some of your opinions on my blog. Yours, Peter

Leave a Reply