Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adjusting flash movie size

Status
Not open for further replies.

WakePro

Programmer
Oct 27, 2002
23
CA
I have embedded a flash movie into a html file, what i want to do is when that html file is open in a browser, I want the flash movie to automatically adjust its size when ever the browser window changes. This means that if i adjust it manually with my mouse, the flash movie will adjust so that the whole move is still viewable on the screen after the browser screen has been adjusted. if there are any action scripts that will do this please help.

Thanks
 
Just set the width and height parameters of the object and embed tags in your html to 100%.
 
When I set the width and height to 100% and try and view the page in a browser, the flash portion of it doesnt show up. but when i set the height and width to the same as the flash swf file it shows up. Is there something else i have to do. The size of the flash movie is in pixels, should i change this? If you could help that would be great.
 
Use the Flash Publish feature to output the html in which your movie is embedded. Under the html tab in the Dimensions dropdown box select Percent. It should work!
 
Ok I thank you greatly for your help but im still getting nothing showing up when i view the html file because by default it sets the demensions to the size of the stage in the flash file. If i copy and paste my original code into the generated html file that flash makes, the picture dissapears. Am i doing something wrong in flash or would there be something in the html file?

thanks again for your help.
 
Can you just give me a direct link to your movie? And to your movie but through your html? Is it uploaded on some web space?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top