I can comment on swfobject.js since I prefer that to LzEmbed.
First, I assume that the snipped code comes from an internal function wrapper
which
receives passed arguments ..
function loadSWFobject (src, movie_id, w, h, v, bgcolor, div_id) {
var so = new SWFObject(src, movie_id, w, h, v, bgcolor);
so.addVariable("serveraddress", "***.***.***.***");
// use addVariable, not addParam
...
...
}
Note that when using addVariable you are passing the value to a canvas global
var, not a
canvas attribute.
You can define global var (not attribute) at canvas level
<canvas ....
<script>
var serveraddress = "";
</script>
There are several threads in the forum discussing passing vars
If you use swfobject.js you must use some additional method to set a canvas
attribute (if
needed). Or just use the global var value instead of attribute.
In LzEmbed there is a function setCanvasAttribute()
Finally. if you use ExternalInterface (Flash 8) you can call lzx functions
dynamically to
change attributes. Otherwise addVariable only works on first loading the swf
object.
Search the forum for "passing vars" and "ExternalInterface" (but latter might
not be needed if
serveraddress is a fixed var value).