Solved

Modifying Flash UI Components

Posted on 2003-12-09
4
345 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
  • 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

760 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now