If i look at the code from Eduardo Ramos, I can see a problem for IE6 in
the pixelWidth property. I don't believe it exists ...
what you should be doing is the following :
function newSize(datoX,datoY) {
var flashElement;
if(document.all && !document.getElementById) {
flashElement = document.all['miFlash'];
}else{
flashElement = document.getElementById('miFlash');
}
flashElement.style.width = datoX + "px";
flashElement.style.height = datoY + "px";
}
Where you are setting the CSS width and height of the element you
selected (miFlash). And CSS width and height styles are defined with
either px, em, %
#flashcontent {
width: 100 px;
height: 100 px;
}
this is not tested but I believe it should work. I have a similar but
more complex code for resizing iframes and it works in IE6 as well.
good luck !
Alain
JabbyPanda wrote:
Dear flashcoders,
I have a flash content sitting on the single page with dynamic height
and width value (100% and 100%).
---example of SWF embedding in HTML
var flashObj = new SWFObject("myFlash.swf", "flash_obj", "100%", "100%", 9,
true);
----
I resize the Flash content using JS by applying technique described by Eduardo
Ramos here: http://2mdc.com/resizableFlash/
As it was correctly mentioned here
http://www.dncompute.com/blog/2006/03/20/javascript-flash-resize.html
this resize techninuque does not work in Internet Explorer 6 browser
if DOCTYPE XHTML declaration line is present in HTML page.
The question is:
How to resize flash content dynamically if NEED to keep DOCTYPE XHTML
declaration line
in HTML and IE6 is still on the list of supported browsers :)
--
Bstrgs,
JabbyPanda
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com