dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Can listBox component have transparent background?

  1. #1
    Senior Member
    Join Date
    Apr 2002
    Posts
    682

    Can listBox component have transparent background?

    For a text area, I use the following:

    _global.styles.TextArea.setStyle("backgroundColor" , "transparent");

    But I cannot figure out how to get it to work for a listBox component.

  2. #2
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    select the listbox component and create a movieclip from it, and then control the alpha of the movieclip containing the listbox
    If you don't think you're going to like the answer, then don't ask the question.

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    682
    Wouldn't that make the the contents transparent as well?

    None the less, I've found a solution that does what I need.

    Put this on your listBox.

    onClipEvent(enterFrame) {
    //
    transList(this);
    function transList(listRef){
    listRef.depthChild0._alpha = 0;
    for(var i in listRef.content_mc)
    listRef.content_mc[i].bG_mc._alpha = 0;
    }
    //
    }

  4. #4
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    no it wouldn't, this is how i've used it ,and it's perfect
    If you don't think you're going to like the answer, then don't ask the question.

  5. #5
    Senior Member
    Join Date
    Apr 2002
    Posts
    682
    Thanks. I'll try it out.

  6. #6
    Junior Member
    Join Date
    May 2006
    Posts
    7
    This only seems to work if you don't embed fonts - because non-embeded fonts won't obey alpha.

    Still trying to figure out how to do it with embeded fonts.

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