A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [RESOLVED] Accesssing a component's properties

  1. #1
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389

    resolved [RESOLVED] Accesssing a component's properties

    Hi,

    I am working on this chat I'd like to personalize and I'd like to know if there's any difference between having a list box component by itself or inside a clip.

    I've had to copy it this way since I can't get it to work if I use it as is.

    My file is here: https://onedrive.live.com/?cid=CD824...10C6E8AC%21131. It's now working but I'd like to apply different format to the boxes.

  2. #2
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    927
    Sorry, I did not check your file, but to this
    if there's any difference between having a list box component by itself or inside a clip.
    The answer is, clips are pretty much like files or folders, they only serve to organize stuff. You don't have to use them, but you might want to. That probably does not help much, but I already wrote it, so... where's the post button?
    who is this? a word of friendly advice: FFS stop using AS2

  3. #3
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389
    I know I won't make myself clear.

    I used to have:

    Code:
    roomList_lb.setStyle("backgroundColor", 0xFFFFFF);
    roomList_lb.setStyle("fontFamily","Arial");
    roomList_lb.setStyle("fontSize",12);
    roomList_lb.setStyle("color", 0x330000);
    roomList_lb.setStyle("rollOverColor","0xDDDDDD");
    roomList_lb.setStyle("selectionColor","0xAAAAAA");
    roomList_lb.setStyle("textSelectedColor","0xFFFFFF");
    roomList_lb.setStyle("textRollOverColor","0xFF9966");
    roomList_lb.setStyle("selectionDuration",0);
    roomList_lb.setStyle("borderStyle","solid");
    roomList_lb.setStyle("borderColor","0xCC3300");
    roomList_lb.setStyle("themeColor","0x999999");
    // roomList_lb.rowHeight = 30;
    for a list box component, but then I can't apply the handlers:

    Code:
    roomList_lb.setChangeHandler("changeRoom");
    userList_lb.setChangeHandler("userSelected");
    to allow sending a private message or joining a private room.

    Could a plain component offer this?

  4. #4
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389
    Ok. I got it. That component was a MX component.

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