A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: List Component - Transparent Background?

  1. #1
    Senior Member foochuck's Avatar
    Join Date
    Aug 2000
    Location
    Estero, FL
    Posts
    522

    List Component - Transparent Background?

    Does anyone know if there's a way to make the list component's background transparent? I want to put a custom image in the background of the list menu.

    Thanks!

    FOO
    Foochuck
    http://www.myspace.com/foochuck

  2. #2
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    I did not get the image alpha to 100, but try this. Create a movieclip with your image and export for actionscript. Here is a script for a clip named my_skin:

    var themeShape:String = "my_skin";
    myList.setSkin (1,themeShape);
    myList._alpha=50;
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    Senior Member foochuck's Avatar
    Join Date
    Aug 2000
    Location
    Estero, FL
    Posts
    522
    I'll give that a try. What about the alpha though? Can I make it 99? I'm not sure what you meant when you said you couldn't get 100...
    Foochuck
    http://www.myspace.com/foochuck

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    50 is a compromise. When it is 100 the image is hidden behind the list. When it is 0, the list is not visible so isn't the image, which is part of the list.
    - The right of the People to create Flash movies shall not be infringed. -

  5. #5
    Senior Member foochuck's Avatar
    Join Date
    Aug 2000
    Location
    Estero, FL
    Posts
    522
    cancerinform,

    I've tried this method and although it functions, it doesn't work for what I need. Instead of a bitmap, I'd like to put a vector gradient in the background. Is that possible without having to mess around with the alpha settings?

    Thanks

    FOO
    Foochuck
    http://www.myspace.com/foochuck

  6. #6
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    You can still put a vector gradient by placing it in a movieclip.

    The only way to get rid of the background is this:
    _global.styles.ScrollSelectList.setStyle("backgrou ndColor", "transparent");
    but then you also loose the eventhandler.

    If you switch to AS3 components you can easily manipulate them.
    - The right of the People to create Flash movies shall not be infringed. -

  7. #7
    Senior Member foochuck's Avatar
    Join Date
    Aug 2000
    Location
    Estero, FL
    Posts
    522
    Switching to AS3 will require a flash CS3 upgrade, correct?
    Foochuck
    http://www.myspace.com/foochuck

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