Yes, they are different.r
Actionscript dictionary says 'eq' is deprecated. It just compares string
representations, so what you might be doing is comparing a number to
it's string representation (User input, perhaps?):
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary198.html
What == does depends on what sort of data you're comparing. Again, from
the dictionary:
The definition of equal depends on the data type of the parameter:
Numbers and Boolean values are compared by value, and are considered
equal if they have the same value.
String expressions are equal if they have the same number of characters
and the characters are identical.
Variables, objects, arrays, and functions are compared by reference.
Two variables are equal if they refer to the same object, array, or
function. Two separate arrays are never considered equal, even if they
have the same number of elements.
dnk wrote:
Is there a difference?
I have had some code that will not work using the "==" and then does
using the "eq".
Any issues?
Just curious what the difference is.
d
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
--
Haikal Saadh
Applications Programmer
ICT Resources, TALSS
QUT Kelvin Grove
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com