stimulateme
April 2nd, 2003, 06:33 AM
I was just wondering cause I dont really know my flash...
In Visual Basic you can declare a variable for example:
Dim myvariable As Integer
This only allows the variable - myvariable - to hold numbers and wont allow any other data type.
Since Flash doesnt require this its sometimes easier. But declaring also has it advantages because whenever you modify that variable it will act as whatever you stated at the begining. I know in flash you can just change the data type whenever you wish to modify it but i was wondering if there is a way to declare it at the begining so that it will always act as that data type.
In Visual Basic you can declare a variable for example:
Dim myvariable As Integer
This only allows the variable - myvariable - to hold numbers and wont allow any other data type.
Since Flash doesnt require this its sometimes easier. But declaring also has it advantages because whenever you modify that variable it will act as whatever you stated at the begining. I know in flash you can just change the data type whenever you wish to modify it but i was wondering if there is a way to declare it at the begining so that it will always act as that data type.