;

PDA

Click to See Complete Forum and Search --> : set the background color of a contentpane with AS


torfnase
09-10-2008, 01:44 PM
Hello alltogether....

I have a little problem with changing the background Color of a contentpane with AS...
the name of the contentpane is contentpane1... and onClpEvent(release) I would like to change the background Color auf the contentpane (and also of annother shape....)...

I allready tried the following code-line:

_parent.contentpane1.setBackgroundColor("0xffffff");

but nothing happened...

What is wrong with this statement.. ?

kind regards

torfnase :-)

thesween
09-10-2008, 04:21 PM
Hi torfnase,

I've never seen this before/wasn't aware you could use this but I don't think you need the _parent.. so it would just read contentpane1.setBackgroundColor("0xffffff" );

Hope that helps??

w.brants
09-11-2008, 01:03 AM
There is no function like that to set the background color.
If you place one on stage using the gui, you can select the color you want.

torfnase
09-11-2008, 08:09 PM
thank you all,
I managed to solve the problem...

I am working on a TAB-Interface, where the content is displayed in a contentpane. The active TAB has to be in the foreground, to make it look naturally. OK I could not change the background color of the contentpane, but now I change the "face" of the TAB, which has the same effect....

This is quite easy by using the following statement:

_root.button2.setStyleProperty("face",0xff0000);

to make the face red :-)

greetings :-)

torfnase
09-12-2008, 09:37 PM
allright,
most of the work is done...

if you would like to have a look at the results :-)

klick me !! (http://www.lausch-online.de/tab_interface/tabs.html)

Nightcap
09-12-2008, 10:54 PM
allright,
most of the work is done...

if you would like to have a look at the results :-)

klick me !! (http://www.lausch-online.de/tab_interface/tabs.html)
Very nicely done and you clearly explained the possibilities of the contentpanel in the text.

Tschüss! :)

w.brants
09-13-2008, 02:46 AM
allright,
most of the work is done...

if you would like to have a look at the results :-)

klick me !! (http://www.lausch-online.de/tab_interface/tabs.html)

The content pages don't show when viewing the site with FireFox.
It looks like you typed you url's in a way IE understands and FireFox doesn't.

torfnase
09-13-2008, 08:09 AM
The content pages don't show when viewing the site with FireFox.
It looks like you typed you url's in a way IE understands and FireFox doesn't.

uupps
I only tested the interface with IE. It is obviously a problem with the Flashvars...

I put the names of the html-Snippets to display in a Flashvar like this:

<param name="FlashVars" value="schritt_1=1&schritt_2=2&schritt_3=3&schritt_4=4&schritt_5=5&schritt_6=6&schritt_7=7&einblendung=1">

but that does not seem to work in the FF :-(

torfnase
09-13-2008, 08:45 AM
allright, I fixed it :-)

now it is working fine even in the feuerfuchs :-)