Results 1 to 6 of 6

Thread: Changing color to a scrollbar component in flash

  1. #1
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default Changing color to a scrollbar component in flash

    I want to change the color of the UI Scrollbar in the flash components to a grayish color. I looked through the help tutorial which is quite general and doesn't give the "info" i'm usually looking for...
    Heres what I want to do...
    I want to make the scrollbar have a color scheme like this:
    Background or Scrollbar Color: #4e4e4e, or #444444
    Arrow Color: White
    Arrow Color-hover: CCCCCC
    I don't know what else I can do... I haven't searched for tutorials on this, I just thought i would ask DD because there have been a bunch of flash users recently come here and answer/ask questions...

    Thanks!

    *Mods*
    I thought this title was a bit long, let me know next time if I should shorten it...

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Look at the flash Help files

  3. #3
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    Quote Originally Posted by Rockonmetal View Post
    I looked through the help tutorial which is quite general and doesn't give the "info" i'm usually looking for...
    To me the help files are the tutorials and I have looked through them... it is not simple enough for me...

  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    it's all in the actionscript.

    Code:
    componentInstance.setStyle(propertyName, value)
    if you gave your scrollbar an instance name of "srollie" it would look something like this:

    Code:
    scrollie.setStyle("scrollTrack", 0x444444);
    for a complete list of editable scrollBar UI items see HERE

    You can also set global themes and things too, but thats more advanced.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    Thanks Blizzard... that helps alot!

  6. #6
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default One problem...

    Hey, it doesn't seem to be working...

    Here is the action script I put in:
    Code:
    onClipEvent (load) {
    	scrollie.setStyle("scrollTrack",0x4e4e4e);
    }
    I put in that, and it doesn't seem to have any change...
    Maybe my code i entered in is wrong...
    I got the flash file with the external txt file, swf, and fla file in a zip... thanks to anyone who helps... maybe I need to activate it or something, but yet again thats another thing I have absolutely no idea how to do...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •