[SWFObject] resize the flashcontent div?

Geoff Stearns geoff at deconcept.com
Tue Jun 27 07:04:04 PDT 2006


the name and the id is the second parameter you pass to the SWFObject  
constructor... so if your code is:

var so = new SWFObject("mymovie.swf", "foobar", ....);


you would use 'foobar' to find the object or embed tag.

swfobject either writes an object or an embed tag depending on the  
browser - if it's an object tag, 'foobar' is set as the id of the  
object. if it's an embed tag, it sets 'foobar' as the id *and* the  
name attribute.



On Jun 27, 2006, at 5:32 AM, Psychoinca wrote:

> Thanks for the Link, but it doesn´t help. Maybe someone knows how i  
> can identify the name attribute from the embed tag
>
> ----- Original Message -----
> From: Martin Eiler | Cumuli
> To: swfobject at lists.deconcept.com
> Sent: Tuesday, June 27, 2006 10:12 AM
> Subject: Re: [SWFObject] resize the flashcontent div?
>
> Please check this link. http://www.mustardlab.com/developer/flash/ 
> objectresize/
>
>
>
>
>
>
>
> Fra: swfobject-bounces at lists.deconcept.com [mailto:swfobject- 
> bounces at lists.deconcept.com] På vegne af Psychoinca
> Sendt: 27. juni 2006 09:27
> Til: swfobject at lists.deconcept.com
> Emne: Re: [SWFObject] resize the flashcontent div?
>
>
>
> this is what works for ie:
>
>
>
> <script type="text/javascript" src="swfobject.js"></script>
>
> <script language="javascript" type="text/javascript">
>
> function setHeight(sizeY) {
>    if(document.all && !document.getElementById) {
>       document.all['movieID'].style.pixelHeight = sizeY;
>    }else{
>       document.getElementById('movieID').style.height = sizeY;
>    }
>    //window.scrollTo(0,0);
> }
>
> </script>
>
> <style type="text/css">
>
> html,body{
>    margin:0px;
>    height: 100%;
>    width: 100%;
>    background-color: #FFFFFF;
>    }
>
> .textformat{
>    font-family:Arial Narrow,Arial, Helvetica, sans-serif;
>    font-size:16px;
>    font:bold;
>    color:#666666;
>    width:520px;
>    position:relative;
>    left:20%;
>    top:20%;
>    }
> </style>
>
> </head>
>
> <body>
>
>
> <div id="flashcontent">
>   This text is replaced by the Flash movie.
> </div>
>
> <script type="text/javascript">
>    var so = new SWFObject("movie.swf", "movieID", "100%", "100%",  
> "8", "#FFFFFF");
>    so.addParam("quality", "high");
>    so.addParam("salign", "LT");
>    so.addParam("scale", "noscale");
>    so.write("flashcontent");
> </script>
>
>
>
> how can i modify the fnction to use it with firefox?
>
>
>
>
>
> ----- Original Message -----
>
> From: Geoff Stearns
>
> To: swfobject at lists.deconcept.com
>
> Sent: Monday, June 26, 2006 5:03 PM
>
> Subject: Re: [SWFObject] resize the flashcontent div?
>
>
>
> should be fine, but you'll probably want to set the height of your  
> swfobject to 100% so it will stretch when you resize the div.
>
>
>
>
>
>
>
> On Jun 26, 2006, at 6:12 AM, Psychoinca wrote:
>
>
>
>
> Is there a possibility to change the height of the "flashcontent"- 
> div from within flash. I need it for a Portalsite. the content  
> expands and i can use the browsers scrollbars.
>
>
>
> I need a javascript funktion which adjust the height of the div.
>
>
>
> Before the ie update it was possible, with the swfobject i got a  
> mistake
>
>
>
> Please help me
>
>
>
>
>
> Greetings from Germany
>
> Carsten
>
> _______________________________________________
>
> SWFObject mailing list
>
> SWFObject at lists.deconcept.com
>
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
>
>
>
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
>
>
>
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060627/fa90958f/attachment-0005.htm>


More information about the Swfobject mailing list