Change bgcolor param?
pztrick - March 26, 2009 - 05:19
| Project: | SWF Tools |
| Version: | 6.x-2.x-dev |
| Component: | SWF Tools |
| Category: | support request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hey,
I am wondering how I can change the bgcolor for 1pixelout without hard-coding it....
The 1pixelout player was appearing fine--but it starts minimized, and there was a blank white box behind it stretching the same 24x290 dimensions.
I ended up adding this to the swftools.module right before the player object is embedded:
$P['bgcolor'] = "#42424B";
But that isn't an ideal fix, because it will get lose with future updates...
It had been passing #FFFFFF as the param, and I don't know where it was getting that from...?
Thanks.
Patrick

#1
I'm at an internet cafe, so don't have access to the code.
Off the top of my head, I thought all the 1PixelOut coloring features were on its setting page? If they're not I should add them, and maybe I can bring back the FlowPlayer 3 color chooser?
The other place to check is whether the bgcolor parameter is being set by the "master" background value - you can set that on the main SWF Tools settings page.
In either case, I'll double check if these answers aren't right!
#2
Double checked and it's on the setting page. There are text fields for each configurable element, and you use the format 0xRRGGBB. Tested locally and set the background to black with no trouble.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.
#4
Stuart, I'm having the same issue. Luckily, I've found the solution, it's a parameter name mismatch. SWFTools.module is looking for a parameter of bgcolor, you're calling it bg in 1pixelout.module on line 74. Switching that to bgcolor solves the problem.
#5
Stuart, I'm having the same issue. Luckily, I've found the solution, it's a parameter name mismatch. SWFTools.module is looking for a parameter of bgcolor, you're calling it bg in 1pixelout.module on line 74. Switching that to bgcolor solves the problem.