PDA

View Full Version : Flash movie -- controlling visible area?



ZenBlender
March 19th, 2007, 01:16 PM
I would like to be able to control the visible area of a Flash movie. Let's say the SWF is sized at 700x500. I need a way to set the object/embed tags to 700x500 and then put the whole thing in a container where I can control the visible area dynamically, without having to reload the page. I tried putting the SWF's tags in a div and setting its min-width, min-height and overflow properties but in Firefox the results were inconsistent. I could get it to crop the Flash movie properly, but only with overflow:auto, which gives me some unwanted scrollbars.

What's the best way to do this? Thanks so much! :)

duncanhall
March 19th, 2007, 02:03 PM
I don't fully understand what it is you are trying to achieve, but it sounds like it's probably best done inside Flash itself. Can you elaborate on what you're trying to do?

ZenBlender
March 19th, 2007, 02:35 PM
I can't do it inside of Flash because the size of the window reserved for Flash does not change once it is loaded. I am looking for a way to dynamically (i.e. after loading) adjust the visible area of the Flash movie. Let's say the movie is 700x500 pixels but I want to only display a 500x500 pixel region of it initially -- the Flash movie will only use 500x500 of the embedding page's content area. Then, through javascript/css I would adjust this visible area to the full 700x500 so the entire movie is visible without having to reload.