Solved

Modifying Flash UI Components

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

632 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