tags:

views:

13

answers:

1

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.

A: 

Hi,

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;
Avi Tzurel
can u provide example on SWFObject.thanks!
I referred you to the documentation.
Avi Tzurel