>- Is it possible to define a variable as a long ? 
int is 32 bits and if you need bigger than go with Number
http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_11.html
 

>- How to program the overloading of an operator like the equal between 2 
>objects of a same class.
Overloading is not possible in AS3, but google around some ppl have workarounds

>- What is the equivalent of a structure ? 
I think you would want to use Object class...?

>- When I call a function with a parameter, did this parameter is modified when 
>I return from this function ? 
All ActionScript objects are always passed by reference except primitive data 
types: Boolean, Number, int, uint, and String
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=03_Language_and_Syntax_160_19.html
 
>- How to convert an int to a Number ? 
just cast it
http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f87.html

 



________________________________
From: christophe_jacquelin <[email protected]>
To: [email protected]
Sent: Thursday, March 12, 2009 10:27:32 AM
Subject: [flexcoders] Question from a C developper


Hello, 

I am a C developper and now I am developing in Action Script. I have questions 
about ActionScript

- Is it possible to define a variable as a long ? 

- How to program the overloading of an operator like the equal between 2 
objects of a same class.

- What is the equivalent of a structure ? 

- When I call a function with a parameter, did this parameter is modified when 
I return from this function ? 

- How to convert an int to a Number ? 

Thank you,
Christophe, 





      __________________________________________________________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! 
Canada Messenger at http://ca.beta.messenger.yahoo.com/

Reply via email to