Calling window.resizeTo() javascript function from flash reporting error

Hi All,

I am facing problem when calling window.resizeTo() javascript function from flash movie. Flash movies wmode is set to window because I have to use the Flash player 9 fullscreeen option. And Fullscreen option doesn’t work with wmode set to transparent/opaque (as in adobe documentation).

Let me describe the whole situation:

I have to make a flash movie in which there is a flvplayback component, and three buttons “Mini”, “Standard” and “Fullscreen”.
The functionality of mini button is to call a javascript function (I put window.resizeTo statement in that function) which will resize the browser window.
The functionality of Standard button is to call the javascript (window.resizeTo) which make the browser to normal size (occupying all the screen size).
The functionality of Fullscreen is to use the flash player 9 fullscreen option and resize the flvplayback component to the full screen size.

Now what is happening is: When Mini button is clicked the IE browser is changing the size and showing the vertical scroll, standard button is also working. But when I scroll the page with the help of scrollbar, after that Mini and Standard buttons are not working and showing javascript error “Access denied”. This functionality is working fine in Firefox and there is not problem with the scrollbar too.

These above stated problem with the scrollbar is not showing up when the wmode is set to “transparent”, but doing this makes the fullscreen option stop to work.

I actually don’t know the problem which I am facing lies in the javascript, flash or the problem in IE

thanks in advance,
Vikas