Solved

Modifying Flash UI Components

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

770 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