View Full Version : Transparent scrollpane
scratch
01-07-2008, 12:50 PM
Hi,
I'm using the scrollpane component in Flash and I would like to make the background transparent. The background seems to be white by default. I've tried using:
myPane.setStyle("backgroundColor", "none");
but that does'nt seem to work. Could anyone tell me an easy way to do this?
Thanks,
you just need to modify the way you embed it inside the html document (you can also set this in the publish options of the fla, if you generate the html for it on publishing).
<OBJECT [...]>
[...]
<param name="wmode" value="transparent">
<EMBED src="file.swf" [...other embedding parameters...] wmode="transparent">
[...]
</OBJECT>
scratch
01-07-2008, 02:14 PM
The problem for me is not that I want it to be transparent on a HTML page. It's more that I want the background within the flash movie to show through the scrollable area. At the moment the scrollable area is white and the background image behind it (on the stage) is blocked out.
Is there a simple way that I can use actionscript to make the scrollpane transparent?
thanks,
oh, misunderstood that completely. additionally, i got no clue where to change that, i never used that component, sorry.
I'm not sure it's possible, components usually can be customized but it really depends on how they have been done. Maybe the scrollpane cannot have a transparent background and if so you might have to do your own scrollpane. Anyway look into Flash help>component>scrollpane> there you'll find how to work with skins/borders for this component.
W_H_I_T_T_Y
03-25-2008, 01:10 AM
You need to convert the scrollpane to a symbol. I changed mine to a movie clip. From there you can select the alpha in the properties and make it as transparent as you would like. Then to edit what goes into the scrollpane just double click the symbol and go from there.
Hope this is what you were looking for.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.