Solved

Modifying Flash UI Components

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

828 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