Solved

Modifying Flash UI Components

Posted on 2003-12-09
4
375 Views
Last Modified: 2010-04-03
How can I modify a Flash Component's attribute?

I have a scrollpane (which I got from Flash Components, just dragged it to the stage) and I need to either change its background color or make the background transparent. Oh, and it would be a nice thing to make the scroll darker or something.
0
Comment
Question by:Silvinham
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
negatyve earned 250 total points
ID: 9904769
>change its background color

pane_instance_name.setStyleProperty("background", 0xFFCC00);

>or make the background transparent

pane_instance_name.boundingBox_mc._visible = false;

>Oh, and it would be a nice thing to make the scroll darker or something.

you can play with these values and variables:

// create a new instance of the FStyleFormat Class
var stile = new FStyleFormat();

// change it's properties
stile.arrow = 0x4D6185;
stile.check = 0x4D6185;
stile.scrollTrack = 0xEEEEEE;
stile.background = 0xFFFFFF;
stile.darkshadow = 0x7C9FD3;
stile.shadow = 0xFFFFFF;
stile.highlight = 0xFFFFFF;
stile.highlight3D = 0x7C9FD3;
stile.face = 0xB1CDFA;
stile.foregroundDisabled = 0x999999;
stile.backgroundDisabled = 0xFFFFFF;
stile.textColor = 0x000033;
stile.textDisabled = 0x666666;
stile.selection = 0x316AC5;

// associate style and component
stile.addListener(pane_instance_name);
0
 

Author Comment

by:Silvinham
ID: 9905191
thanks negatyve! :)

Just one more question to make this work: where should I input this script?
0
 

Author Comment

by:Silvinham
ID: 9905203
Oh, nevermind! I found it! Thanks a lot! :P
0
 
LVL 27

Expert Comment

by:negatyve
ID: 9905283
you're welcome!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question