What are the different ways in which the variables can be assigned?



What are the different ways in which the variables can be assigned?..

Answer / Uday Veer

In ActionScript, there are several ways to assign variables. They include:
1. Using the '=' operator: var myVar = 5;
2. Declaring and initializing a variable on the same line: var myVar:Number = 5;
3. Assigning a value to an already declared variable: myVar = 5;
4. Using the assignment operator within an expression: anotherVar = (myVar + 1)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Flash Action Scripting Interview Questions

How to change background color and stage size?

1 Answers  


to what does object drawing model refer? : Adobe flash

1 Answers  


What is meant by vector graphic animation?

1 Answers  


what is the best reason for using the geturl command, instead of the fscommand, when communicating with the host application? : Adobe flash

1 Answers  


How to play a movie clip?

1 Answers  


which keyword is used to attach methods and properties to a class? : Adobe flash

1 Answers  


Explain what are the data types supported by actionscript?

1 Answers  


how does an xmlsocket server know when a received message is complete? : Adobe flash

1 Answers  


in which level does the original movie resides? : Adobe flash

1 Answers  


can any one tell good training center for adobe flex in chennnai?

1 Answers  


what is the purpose of the break statement? : Adobe flash

1 Answers  


Can you explain what are the differences between javascript and actionscript?

1 Answers  


Categories