yamakasi
06-09-2006, 04:31 PM
this is a quote i made from the famous book"Actionscript bible", it dosent matter what version of flash your
using since there is no huge changes in the action script language through the flash series,i refer to use flash mx 2004 though
note:
don't ask "why your writing in english"
well, i just wanna practice myself
cuz i'm very dope in english:boggled:
ok,let's get started
-----------------------------------------------------------
casting data:
casting data is convert one value of a certain type to another
any value except 0 (zero) is true Boolean
question: What is Boolean?
answer: A Boolean value is a truth value, either 'true' or 'false', often coded 1 and 0, respectively.
see also:
http://en.wikipedia.org/wiki/Boolean-valued_function
note:
the question and anwser part is not quote from the book
you can cast a value by using the the following syntax:
datatype(value)
example:Casting string to a number
number('123')
"123" is a string value when you apply the syntax it's convert to number value (datatype)I
when casting the nermeric value of 0 (zero) can be converted to a Boolean (false)II
-----------------------------------------------------------------------
declaring Variables:
strong typing:
this method of declaration is used only in flash mx 2004 and flash 8 so be carefull.
question:What is declaring Variables?
answer: It's the process of creating space in the "RAM" and control it by fill and delete the data from it
the more variables you declare the more ram you use.
how to declare variable:
use the following syntax
var VariableName:DataType
example:
i will make varible named yamakasi and it's datatype is String
var yamakasi:String;
at the end of the statement you shuold add the character
;
to end the statement, without it you might have some bugs
---------------------------------
i will continue later
it's time to watch my favorite show (yu-gi-oh
;)
using since there is no huge changes in the action script language through the flash series,i refer to use flash mx 2004 though
note:
don't ask "why your writing in english"
well, i just wanna practice myself
cuz i'm very dope in english:boggled:
ok,let's get started
-----------------------------------------------------------
casting data:
casting data is convert one value of a certain type to another
any value except 0 (zero) is true Boolean
question: What is Boolean?
answer: A Boolean value is a truth value, either 'true' or 'false', often coded 1 and 0, respectively.
see also:
http://en.wikipedia.org/wiki/Boolean-valued_function
note:
the question and anwser part is not quote from the book
you can cast a value by using the the following syntax:
datatype(value)
example:Casting string to a number
number('123')
"123" is a string value when you apply the syntax it's convert to number value (datatype)I
when casting the nermeric value of 0 (zero) can be converted to a Boolean (false)II
-----------------------------------------------------------------------
declaring Variables:
strong typing:
this method of declaration is used only in flash mx 2004 and flash 8 so be carefull.
question:What is declaring Variables?
answer: It's the process of creating space in the "RAM" and control it by fill and delete the data from it
the more variables you declare the more ram you use.
how to declare variable:
use the following syntax
var VariableName:DataType
example:
i will make varible named yamakasi and it's datatype is String
var yamakasi:String;
at the end of the statement you shuold add the character
;
to end the statement, without it you might have some bugs
---------------------------------
i will continue later
it's time to watch my favorite show (yu-gi-oh
;)