النتائج 1 إلى 7 من 7

الموضوع: (Constructing ActionScript) clear

  1. #1
    التسجيل
    12-02-2004
    الدولة
    football playground
    المشاركات
    143

    (Constructing ActionScript) clear

    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

    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 VariableNameataType

    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


  2. #2
    التسجيل
    22-02-2004
    الدولة
    جدة,السعودية
    المشاركات
    105

    رد: (Constructing ActionScript) clear

    well first of all hello

    ur english is quite great i dont see why do u need practice :P

    anyways i still do not get the function of boolean if ud explain the use of it and wht are the situations i can use it in

    also i was reading an action script book called "Wrox.Beginning.ActionScript."
    note: worx is the author's name
    anyhow i found it lacking the application required for me to understand how it works and lots of action script command tht i wanted to know and understand its explaining is quite hard to understand to be frank ijust wonder if the bible book is any diffrent and would u recomend it for me to read

    thnx for the brief explenation ,looking forward to see ur reply



  3. #3
    التسجيل
    12-02-2004
    الدولة
    football playground
    المشاركات
    143

    رد: (Constructing ActionScript) clear

    sorry for the delay
    ummm. Boolean i'ts little bit hard to learn if you are not good at mathematics
    but don't worry .... yamakasi is here (i don't like math though)


    Boolean is true value (what does this mean) it's mean that it will never gives you results like (infinite or does not exist) .... it will gives you a 1 or 0
    and as you know 1 in coding means ture and 0 is false ,


    simply
    Boolean data is data that can hold only two values: true and false
    do you get?!

    i can't tell you exactly where this function can be used it's depend at you code.
    all can i say is it's vary useful tool to test conditions within your Flash movie.

    Actionscript bible is truly wonderful ,if you want to learn correctly you should own one


  4. #4
    التسجيل
    12-02-2004
    الدولة
    football playground
    المشاركات
    143

    رد: (Constructing ActionScript) clear

    try this and tell me what your seeing

    1.
    trace( Boolean(-1));

    2.
    trace( Boolean(6));

    3.
    trace( Boolean(d));

    i am sure will notice that any vaule except 0 is true and the alphabet is not included into this function


  5. #5
    التسجيل
    12-02-2004
    الدولة
    football playground
    المشاركات
    143

    رد: (Constructing ActionScript) clear

    you guys have a dead section here ....



  6. #6
    التسجيل
    22-02-2004
    الدولة
    جدة,السعودية
    المشاركات
    105

    رد: (Constructing ActionScript) clear

    Hello>>>

    thnx dude im begining to get to understand wht it is :P
    sorry for the late respawn ,kinda busy with school starting and things like tht...



  7. #7
    التسجيل
    12-02-2004
    الدولة
    football playground
    المشاركات
    143

    رد: (Constructing ActionScript) clear


    your school is the NO.1 priority

    man this forum is dead, i don't think i will continue posting things here .

    focus in your studies


ضوابط المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك
  •