Activity › Forums › Web Design (WordPress, Joomla, etc.) › Fill web browser with swf
-
Fill web browser with swf
Posted by Hoss Sarbaz on May 29, 2008 at 5:04 pmI’m stuck on stupid. How the heck can I make my swf fill the browser to behave like this webpage:
See how it fits the whole browser and scales only on the right….
Please help thanks!
Fernando Mol replied 17 years, 11 months ago 3 Members · 8 Replies -
8 Replies
-
Curtis Thompson
May 29, 2008 at 8:04 pmhello…
the super-easiest way to achieve this is to view the source of that page and swap out the bits you don’t need and put your movie in the flash render tags…
(not trying to sound flippant – i mean i could explain it and document it, but what the heck? you have a working example right there to learn from)
sitruc
-
Hoss Sarbaz
May 29, 2008 at 8:42 pmBeleive me I tore the source code apart trying to figure. Like I said on this one I’m Stuck on stupid!. I’m assuming it’s a javascript code in the page source or coding in the “.js” file.
When I did as you say I got different variations but not the exact same thing….don’t know what doing worng…
-
Curtis Thompson
May 29, 2008 at 8:48 pmhello…
all you should have to do is replace their flash movie with the path to yours, but here’s a 3rd party tutorial:
https://www.broculos.net/tutorials/how_to_make_a_flash_animation_truly_fullscreen/20080314/en
sitruc
-
Hoss Sarbaz
May 29, 2008 at 10:32 pmThanks Curtis!
The tutorials helped but showed how to scale width and height to 100% for exact fit to fill the browser, which scales width and height.
The url I mentioned doesn’t scale it just moves the flash element on the right horizontally withou scaling as you manually adjust the browser window size with the mouse.
Correct me if I’m wrong but I think it maybe some php and javascript on server side.
-
Curtis Thompson
May 29, 2008 at 10:37 pmhello…
the preservation of the height of the green bar or whatever horizontal bar is being shown is controlled in the flash movie. the embed tag for the movie specifies width 100% and height 100%:
var flashMovie = new FlashObject(“launch.swf”, “flashMovie”, “100%”, “100%”, “8,0,0,0”, “#F7F9ED”);
no php involved. it is scaling both width and height but in the flash code itself they say to not scale the bar vertically and always have it 100% wide in the canvas…
sitruc
-
Hoss Sarbaz
May 30, 2008 at 12:15 amHere is my code. The browser comes up as a blank page!
What am I doing wrong? The paths to the .js file and the swf are correct. I’m using dreamweaver CS3 on G5.
Untitled Document
-
Curtis Thompson
May 30, 2008 at 1:39 amhello…
hard to say – have you tried it using their flash file? maybe your flash file is not set up correctly…
also post a url – inline code is hard to debug…
sitruc
-
Fernando Mol
May 30, 2008 at 3:20 amThere is a way to control the relative position of an object with actionscript. Just do not remember exactly what command is.
Reply to this Discussion! Login or Sign Up