embedded html margin - swf object

Asked by Ary Wibowo

Hi :)

i try to embed a swf file, using swfobject ( i try the usual embed as well) - but there is some margin on top and left of the swf object, approximately 10-pixels, is it possible to make it to 0? so the swf object is able to fill the screen?

still on this matter, sometimes scaling the swf automatically using swf object is failed, u need to set a 'hardcoded' size, it means the flash doesn't able to detect screen height and width, any workaround on this one?

thanks in advance :)

rgrds
ary

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Ary Wibowo
Solved:
Last query:
Last reply:
Revision history for this message
Dan Garner (dangarner) said :
#1

Did you try to use to standard "Flash" media item?

Revision history for this message
Ary Wibowo (ary-outboks) said :
#2

yes :) a simple image slide show.i use TOP LEFT Scale, and show All property so its stretched (forced)

Revision history for this message
Dan Garner (dangarner) said :
#3

Sorry I was not clear...

Are you embedding your SWF file manually through the "embedded" media
type in Xibo or are you using the "Flash" media type in Xibo?

Revision history for this message
Ary Wibowo (ary-outboks) said :
#4

Hi Dan, thanks for replying.

embedded html to be precise :)

within the embedded code is swfobject to embed flash media, the reason i use the embedded is the flashvar, while flash media doesnt accept flashvars

rgrds
ary

Revision history for this message
Dan Garner (dangarner) said :
#5

The embedded HTML media type in Xibo doesn't add any borders or
padding, etc to the html you put in the box. Can you share your HTML
with us?

Revision history for this message
Ary Wibowo (ary-outboks) said :
#6

ah interesting....

i use fixed size 1360 * 768 to fill up the screen since it wont automatically fill the browser

here is my embed code

<script type="text/javascript" src="http://******.com/player/swfobject.js"></script>
<script type="text/javascript" src="http://******.com/player/swffit.js"></script>
<script type="text/javascript">
var flashvars = {fn: "http://******.com/player/getplaylist.php?pid=100001", un:"admin"};
swfobject.embedSWF("http://*******.com/player/play.swf", "objFlash", "1360", "768", "9.0.0", "expressinstall.swf", flashvars);
</script>
<div id="objFlash" style="position:absolute; top:0; left:0; margin: 0 0 0 0;"></div>

sorry i obscure the url for now, let me know if u need a full working url

thanks again for helping Dan :)

rgrds
ary

Revision history for this message
Dan Garner (dangarner) said :
#7

I think it will almost certainly be the fixed size of the flash object
causing the problem... OR perhaps your layout doesn't quite have the
right resolution for your display.

If you were to schedule a layout to that display which contained a
background image and a text item only - do you still get the border
around the edge?

Xibo will automatically perform some scaling to your layout so that it
can be shown on any screen regardless of the resolution you set on the
layout. If the above test still shows a border, then it is the layout
resolution that is the problem and not the flash.

Revision history for this message
Ary Wibowo (ary-outboks) said :
#8

i see..well i will test with simple flash graphic later today, with no script or special function.
and will report the feedback immediately :)

thanks Dan :)

Revision history for this message
Ary Wibowo (ary-outboks) said :
#9

report.

the margin is fixed :) i guess using swfobject not a good idea in this matter, im using a simple embed object code from HTML that generated by flash editor and it worked out fine :) - although there is some small space on top, but doesnt really matter if i set the background to black.

thanks alot for a helpful insight Dan :) - really appreciate it

Revision history for this message
pj (puye) said :
#10

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >