Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorspike4real
    • CommentTimeSep 18th 2007
     
    Hi There!!

    is there a way i can have my website to be less than 100% size (if the user has a low resolution) but a max size of 100%?
    So no matter how high the resolution, it will only display flash of its original size?

    Dan.
    • CommentAuthorphilip
    • CommentTimeSep 18th 2007
     
    • CommentAuthorspike4real
    • CommentTimeSep 18th 2007
     
    thanks for pointing that our philip but i'm still having issues. I'm trying to create a site which stays 100% is the max size the movie goes to but if the movie can't be viewed at that size, it scales it down. I've tried various scripts both in java & actionscript.

    for example...

    if(screen.width < 1024 && screen.height < 768){
    var so = new SWFObject("panaceaweb.swf", "sotester", "766", "640", "9", "#393939");
    } else {
    var so = new SWFObject("panaceaweb.swf", "sotester", "100%", "100%", "9", "#393939");
    }
    • CommentAuthorphilip
    • CommentTimeSep 18th 2007
     
    100% does NOT equal the max size of the SWF. it means it will scale the SWF to fill the browser.

    for instance, if your SWF was created to be 550p x 400px, and the browser is currently about 1000px wide by 600 px tall, using "100%" will make your SWF scale to 600px tall. this is the default behavior. is this what you're trying to do, or are you trying to prevent it from going past the original dimensions (550 x 400 in my example)?
    • CommentAuthorspike4real
    • CommentTimeSep 18th 2007
     
    sorry, yes i meant i'm trying to prevent going past original dimensions.
    • CommentAuthorspike4real
    • CommentTimeSep 22nd 2007
     
    any ideas?
    • CommentAuthorphilip
    • CommentTimeSep 22nd 2007
     
    the answers are in the post i linked to: http://blog.deconcept.com/swfobject/forum/discussion/580/

    you should be able to modify the examples there to suit your particular case. remember that most javascript solutions only work when the SWF first loads and will be useless if the browser is resized after the SWF loads.

    generally speaking, i think this sort of scaling behavior should be controlled in your flash file via actionscript (Stage.width, etc.), and with the SWF set to 100% with scale set to noScale.

    - philip
    • CommentAuthorzhangsisi
    • CommentTimeOct 1st 2007
     
    www.ConnectAsia.info/en/lang104082about_sisi11
  1.  
    what the hell was that link for?