A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How do you handle giant user interfaces?

  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    37

    How do you handle giant user interfaces?

    Should each button get a class and a listener, or should I dump everything into one Object and use e.target.name to figure out what is getting clicked? That way I can just use one listener, but then I won't be able to recycle anything. I could probably work around that though.

    I can figure the coding out, I just need to know the right direction to go in.

  2. #2
    Senior Member
    Join Date
    Jul 2006
    Location
    San Jose, CA
    Posts
    334
    How giant are we talkin here? I usually seperate the buttons into a basic functionality, such as navigation, media controls, etc. So all nav buttons would get a "changeNav" function in the listener, and using a switch() on the e.target.name like you're talking about do _______. I really like the eventListener functionality of AS3 as it does allow for a vast amount of reusability when it comes to similar functions.

    What do you mean about recycle?
    I (Love | Hate) Flash.
    ----
    Save a version back so others may help you!

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