A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Please Help! resize flash if screen resolution is lower than 1024

Threaded View

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Posts
    2

    Unhappy Please Help! resize flash if screen resolution is lower than 1024

    Grrr...

    So the idea is simple, if our visitor’s screen resolution is smaller than 1024, we want to have a flash that resizes, if it’s 1024 or higher, we want to give him our intended size with a noscale.

    I have found the following script on line:

    Just in front of the javascript embbed of flash, you add:

    if(screen.width < 1020)
    {
    var myScale = 'showall';
    }
    else
    {
    var myScale = 'noscale';
    }

    then within the Adobe’s embed, change the line

    ’scale’, ‘noscale’, (or whatever else)

    to

    ’scale’, myScale,


    but i can't seem to get it working, my opinion is that i use this script in a wrong place?
    Last edited by gravitysub0; 10-09-2007 at 05:19 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center