开发者

How can we set width and height of flex application by using javascript?

开发者 https://www.devze.com 2023-01-07 19:16 出处:网络
I developed one flex application to which we want开发者_开发百科 to set the flex application width and height by using javascript. Or is there any other way? please find the soloution.

I developed one flex application to which we want开发者_开发百科 to set the flex application width and height by using javascript. Or is there any other way? please find the soloution.

thanks, harikrishna.


There is a way

1st embed your application using SWFObject.

when you want to change the dimensions simply embed it again with the new dimensions. SWFObject has great documentation and a well thought out JS API.

The 2nd thing you will have to do is pass the width and the height to the flex application and set the height and the width simply by

application.width = x;
application.height = y;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号