Salut Christophe,
Other will definitely pitch in but here are some answers:
> Is it possible to define a variable as a long ?
The data type is "Number". It's a IEEE-754 double-precision
floating-point number.
> How to program the overloading of an operator like the equal between 2
objects of a same class.
There are no operator overloading in AS3. You would have to code a
specific function (such as compare(a, b):Boolean) to achieve this. You
can only compare object instances using the == and === operators.
> What is the equivalent of a structure ?
You can use the "Object" data type. Basically {<pair1>:<value1>,
{<pair1>:<value1>}. It is not a structure but can be used for its
replacement I guess. You can also just code a plain old class.
> When I call a function with a parameter, did this parameter is
modified when I return from this function ?
All parameters are passed as reference except for the "fundamental" data
types (String, Number, int, uint, Boolean).
> How to convert an int to a Number ?
Numeric types are implicitely converted into each other. However, you
can cast it like this Number() if you want to make it clear in your
code.
<http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/
msgId=138809/stime=1236868087/nc1=1/nc2=2/nc3=3>