Thaks for answer i' ll try to follow your tips.

On 23 Apr, 04:08, "Aran Rhee" <[email protected]> wrote:
> That is because you are changing the ID! You need CSS on
> ExternalInterfaceExample, not train (which doesn't exist after you embed
> your swf). Remember SWFOBject 2 REPLACES your div with a <object> tag
> defining the swf.
>
> You could also make a wrapper div to apply the CSS to instead of the
> replacement div.
>
> Also, all of your SWFObject code should be in the <head>, not in the body
> with your div definitions etc.
>
> Aran
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of Zack
> Sent: Thursday, 23 April 2009 1:13 AM
> To: SWFObject
> Subject: swfobject.embedSWF Overlay div don' t work with attribute id set !
> Why
>
> Hi i don' t kown if it a bug but i used swfobject.embedSWF with an
> absolute div and works fine.
> If i set attribute.id , swfobject created swf out the div in the
> bottom of the website.
>
> This is the code
>
>     <div id="train"></div>
>         <script>
> var flashvars = {};
> var params = {
>   menu: "false",
>   wmode: "transparent"
>
> };
> var attributes = { id: "ExternalInterfaceExample", name:
> "ExternalInterfaceExample" };
>
> swfobject.embedSWF("train.swf", "train", "991", "200", "8", true,
> flashvars, params, attributes);
>
> function sendToFlash() {
>         var text = document.htmlForm.sendField.value;
>   var swf = document.getElementById("ExternalInterfaceExample");
>   swf.sendTextToFlash(text);
> }
> v
> </script>
> css
> #train{
>         height:200px;
>         width:991px;
>         padding-left: 300px;
>         position: absolute;
>         left: 20px;
>         top: 367px;
>         z-index: auto;
>
> }
>
> if i set var attributes = { };
> swfobject ' ll create the swf inside  train div !
>
> Why ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to