开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜