A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Event Imports AS3/FLEX/AIR

  1. #1

    Event Imports AS3/FLEX/AIR

    Greetings to all.

    This is one of those things in flash development that I have never use and never really grasp what exactly is hapenning when the code below is on a as class .

    [Event(name="UPDATE", type="flash.events.Event")]

    I have seen this a lot in the pass and never really know excatly what it is doing, what its purpose and what is its benefits or lack thereof.

    Can any member shed some light of this for me?

    Many thanks in advanced.
    There's nothing wrong with wanting its needing that is the problem.

  2. #2
    Flactionscrish Baby Minion's Avatar
    Join Date
    Nov 2005
    Location
    Planet Earth
    Posts
    312
    my understanding is this:

    it is a flex embed tag that lets the IDE and the compiler know that this class dispatches this event at some point. This way, in the IDE when you type object.addEventListener() it can auto suggest the right type of events for you. Not so sure about the compiler side really if any so i won't speculate.

    have you tried looking at adobe docs related to this? (if there is any?)
    ktu[k-two]
    he who hesitates is lost; so i guess i'll wander intently

    Are you sure this is real?
    Life is Love, Love is Blind, Blind we go through Life.
    Life isn't hard, dealing with your self is.

    The concept of life in a human brain is weakening day after day. Live every day like its your last. Take the chances, and opportunities, and never let authority push you around for fun.


  3. #3
    Thanks, Baby Minion

    I'ts difficult to seasrch for this even on adobe's docs as I do not know what is its proper name. There has to be naming for this syntax, I suppose I can try emdeding events but that looks and sounds weird.
    There's nothing wrong with wanting its needing that is the problem.

  4. #4
    Flactionscrish Baby Minion's Avatar
    Join Date
    Nov 2005
    Location
    Planet Earth
    Posts
    312
    ktu[k-two]
    he who hesitates is lost; so i guess i'll wander intently

    Are you sure this is real?
    Life is Love, Love is Blind, Blind we go through Life.
    Life isn't hard, dealing with your self is.

    The concept of life in a human brain is weakening day after day. Live every day like its your last. Take the chances, and opportunities, and never let authority push you around for fun.


  5. #5
    Yes, many thanks. This seemed so simple but yet puzzled me for years.
    There's nothing wrong with wanting its needing that is the problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center