Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-02-2006, 05:40 PM   #61
Mortimer Jazz
Thing
 
Mortimer Jazz's Avatar
 
Join Date: Jun 2001
Location: UK
Posts: 2,418
Default

Quote:
Originally Posted by danimal
A project I'm working on requires a textarea ... just changing the _alpha of depthChild0 seems the quickest.
Thanks
You can do it globally like this:
_global.styles.TextArea.setStyle("backgroundColor" , "false");

You can also do this:

_global.styles.TextArea.backgroundColor = undefined;

I haven't compared the results of the depthchild hack to the above methods, so I'm not entirely sure if/where the results differ. The main reason I can think of for favouring the above methods is for future compatability. Using the public methods of a class means that we'll still get the same result even if the inner workings of the component are altered by Adobe at a later date.
__________________
............................
FLEX/FLASH BLOG
Previous Flash Tutorials

............................
Mortimer Jazz is offline   Reply With Quote
Old 03-08-2006, 12:58 PM   #62
gpacioli
Registered User
 
Join Date: Dec 2003
Location: Naples Florida
Posts: 26
Default

is this thread still active ? newbee wants to make background black and font white on tree component
gpacioli is offline   Reply With Quote
Old 03-08-2006, 01:02 PM   #63
gpacioli
Registered User
 
Join Date: Dec 2003
Location: Naples Florida
Posts: 26
Default

can someone point me to an example of a working transparent tree background? please.
gpacioli is offline   Reply With Quote
Old 03-08-2006, 02:21 PM   #64
red penguin
[^\d\D]
 
red penguin's Avatar
 
Join Date: Jun 2001
Location: Brooklyn, NY
Posts: 3,254
Default

Mortimer Jazz's example in a previous post!
__________________

komielan.com
red penguin is offline   Reply With Quote
Old 03-08-2006, 05:36 PM   #65
gpacioli
Registered User
 
Join Date: Dec 2003
Location: Naples Florida
Posts: 26
Default

Quote:
Originally Posted by nicholaswatton
thanks farairo, but it's still not getting there - i'm finding lots of different ways to make the background invisible, but they all remove the ability to click a List item.
will continue to search....
have you tried LiveDocs?
gpacioli is offline   Reply With Quote
Old 04-07-2006, 04:48 PM   #66
Blindeye
Registered User
 
Join Date: Apr 2006
Posts: 12
Default TextInput transparency

I couldn't use the same code for the textArea transparency for a textInput area. Is there a reason for this?
Blindeye is offline   Reply With Quote
Old 04-11-2006, 10:07 PM   #67
Brisa
Registered User
 
Join Date: Jan 2003
Location: San Diego, CA
Posts: 50
Default

I've been using this code that I found somewhere (can't remember where)..It works.

Code:
_global.styles.ScrollSelectList.backgroundColor = undefined;
mx.controls.listclasses.SelectableRow.prototype.drawRowFill = function (myTree:MovieClip, newClr:Number): Void {
myTree.clear();
if (newClr == undefined)
myTree.beginFill(0xABCDEF, 0);
else
myTree.beginFill(newClr);

myTree.drawRect(1, 0, this.__width, this.__height);
myTree.endFill();

myTree._width = this.__width;
myTree._height = this.__height;
}
Brisa is offline   Reply With Quote
Old 05-09-2006, 07:06 PM   #68
Blindeye
Registered User
 
Join Date: Apr 2006
Posts: 12
Default

That prevents people from selecting the Tree options.
Blindeye is offline   Reply With Quote
Old 05-11-2006, 07:18 PM   #69
Brisa
Registered User
 
Join Date: Jan 2003
Location: San Diego, CA
Posts: 50
Default Blindeye..

What tree options? I tried with my tree and my items are selectable..

tks

Brisa
Brisa is offline   Reply With Quote
Old 06-16-2006, 07:56 PM   #70
YousufHaq
Registered User
 
Join Date: Mar 2006
Posts: 9
Default Loading Transparent textArea

anyone know why when you implement :

_level0.myText4.depthChild0._alpha=0;


and try to load that swf into another it doesnt work?
YousufHaq is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:39 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.