ouyang789987 / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

2.2 param bgcolor being ignored loading white #395

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using the script only way of implementating, add your div "mycontent" 
as the example shows
2. Add in your embedswf code feeding it the param of bgcolor with a value
3. load and learn that it will show white and not black 

What is the expected output? What do you see instead?
the expected is that it works like AC_runcontent and or just the standard 
object / embed tag where it shows the bgcolor as listed (in this case i 
was setting to black and it just shows white anyway)

What version of the product are you using? On what operating system?
2.2 on vista 32bit home premium (ie 8 but also happens in FF 3.5)

Please provide any additional information below.
if you like (watch my code be wrong lol) feel free to see at 
http://www.bbcafeandgrill.com/index_swfobject.php 
i'll let this page stay up for a couple of weeks.

Original issue reported on code.google.com by centero...@gmail.com on 27 Oct 2009 at 1:34

GoogleCodeExporter commented 9 years ago
Please post authoring issues to the mailing list before submitting a potential 
bug. 
In most cases (such as this one), it is not a bug, but a small authoring error 
causing the behaviour.

In this case, you are not passing the emebedSWF() method parameters in the 
correct 
order.

The method signature for embedSWF is:
swfobject.embedSWF(swfUrl, id, width, height, version, expressInstallSwfurl, 
flashvars, params, attributes, callbackFn

You have excluded the expressInstallSwfurl param (which can be passed as false 
if you 
do not require the functionality), so your param object is being treated as 
your 
flashvars object!

Because of this type of error, we recommend people use the swfobject code 
generator 
(available through the wiki for download or online). Even I use it, as it saves 
me 
time :)

Original comment by aran.rhee@gmail.com on 27 Oct 2009 at 10:50