A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Customizing the look and color of a scrollbar

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Location
    Planet Earth
    Posts
    298
    Customizing scrollbar colors
    Got a scrollbar, I want it to look flat. How the hell do i get the white highlight off of the scroll bar. Here is some of the code attached to my scrollbar:

    Code:
    this.setStyleProperty("face", 0x999999);
    this.setStyleProperty("higlight", 0xff0000);
    this.setStyleProperty("shadow", 0x999999
    none of these or "highlight3D", nor "darkshadow" allow me to rid the component of the white line that creates the 3D look of the up and down buttons.

    Signed,
    Frustrated


  2. #2
    Vox = Voice Vox98's Avatar
    Join Date
    Mar 2001
    Posts
    879
    Dont know the actionscript to change the look, so I just edit the component skins.

  3. #3
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    http://odin.prohosting.com/~oldnew/scrollbar1.htm

    Two ways to change the aspects (8 in all) of scrollbars.

    Global...

    myFormat = new FStyleFormat();
    myFormat.scrollTrack = 0xFF9900;
    myFormat.arrow = 0xFF0000;
    myFormat.face = 0x999999;
    myFormat.darkshadow = 0xFF0000;
    myFormat.shadow = 0x00FF00;
    myFormat.highlight = 0x00FFFF;
    myFormat.highlight3D = 0xFF00FF;
    myFormat.foregroundDisabled = 0xFFFFFF; // for disabled scrollbar only!
    // then you can apply it to Components like this
    myFormat.addListener(scrollbar2); // add other instances like myFormat.addListener(scrollbar1,scrollbar2,scrollb ar5);

    Individual...

    scrollbar1.setStyleProperty("arrow", 0x00FFFF);
    scrollbar1.setStyleProperty("face", 0x000000);
    scrollbar3.setStyleProperty("face", 0xFF0000);

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