Setting the dimensions of a flash movie

22 views
Skip to first unread message

Steve Onnis

unread,
Oct 21, 2009, 9:10:47 AM10/21/09
to mootool...@googlegroups.com
I am trying to set the width and height of an <object> tag that is being returned through a JSON request.
 
this is what i am doing..
 
$("video").set("html", response.html);
$("video").getElement("object").setProperty("height", "385");
$("video").getElement("object").setProperty("width", "605");
 
 
Works fine in FireFox but am getting an "Object does not support this method or property" error in IE
 
Any suggestions?
 
Steve
 

Ryan Florence

unread,
Oct 21, 2009, 10:26:08 AM10/21/09
to mootool...@googlegroups.com
Give this a try:

.setStyles({
  'height': 385,
  'width': 605
});


Ryan Florence
Recent Entry: Mootools Mixins

Oskar Krawczyk

unread,
Oct 21, 2009, 10:28:05 AM10/21/09
to mootool...@googlegroups.com
.set('styles', {
  'height': 385,
  'width': 605
});

___

Oskar Krawczyk
http://nouincolor.com

Daniel Lohse

unread,
Oct 21, 2009, 10:30:05 AM10/21/09
to mootool...@googlegroups.com
Maybe you should take a look at the Swiff component? Or the iFrame component?

What are you trying to do? Looks like a flash player. What do you need the object tag for?


Daniel

Steve Onnis

unread,
Oct 21, 2009, 6:34:49 PM10/21/09
to mootool...@googlegroups.com
setStyle didnt work either...got the same error


From: Ryan Florence [mailto:rpflo...@gmail.com]
Sent: Thursday, 22 October 2009 1:26 AM
To: mootool...@googlegroups.com
Subject: [Moo] Re: Setting the dimensions of a flash movie

Steve Onnis

unread,
Oct 21, 2009, 6:36:55 PM10/21/09
to mootool...@googlegroups.com
Its actually for vimeo. i am using the api to get some videos back and they return the embed code but their api wont return the embed in the size i want it.  for some reason they return the embed in proportion with the size of the actual video, not in the dimensions that i am requesting it so i am trying to resize it when i load it.


From: Daniel Lohse [mailto:annism...@googlemail.com]
Sent: Thursday, 22 October 2009 1:30 AM

To: mootool...@googlegroups.com
Subject: [Moo] Re: Setting the dimensions of a flash movie

Oskar Krawczyk

unread,
Oct 21, 2009, 6:56:44 PM10/21/09
to mootool...@googlegroups.com
No such thing as setStyles in Moo 1.2.

Daniel Lohse

unread,
Oct 22, 2009, 3:18:37 AM10/22/09
to mootool...@googlegroups.com

Oskar Krawczyk

unread,
Oct 22, 2009, 5:36:24 AM10/22/09
to mootool...@googlegroups.com
Woha, it has been resurrected! Wasn't aware of that. 

I stand corrected.


___

Oskar Krawczyk
http://nouincolor.com


Reply all
Reply to author
Forward
0 new messages