Results 1 to 7 of 7

Thread: can swf detect screen resolution?

  1. #1
    Join Date
    Jan 2008
    Location
    Near Chicago
    Posts
    247
    Thanks
    105
    Thanked 2 Times in 2 Posts

    Default can swf detect screen resolution?

    and the question that follows is from there would I need to develop alternate swfs for each detected resolution or is there an easy way for it to automatically resize ?

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Depends on how you want to implement it. For a full screen idea, if Using Flash 8 (or even Flash 9) check out this tutorial

    If full screen isn't what you are after, let me know.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Quote Originally Posted by evan View Post
    and the question that follows is from there would I need to develop alternate swfs for each detected resolution or is there an easy way for it to automatically resize ?
    By resolution, do you mean the size of the stage? Flash can definetely detect that. And by using listeners on the stage's size, you can realign objects relatively.

    So, for example, if you want a particular movieclip to remain centered on the stage even after the user resizes, you could do that.

    Here is a tutorial on it from gotoAndLearn(). It's in AS2 but the same logic applies to AS3. There are just some syntactic changes (dropping the underscore before property names, for example).

  4. #4
    Join Date
    Jun 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello
    My question is along the same lines. I have designed the following :
    www.greenpatch.co.uk/testing. It is a liquid layout. As you can see, I have three swf and I would like them to resize relatively according to the browser size. If you could give me some advice on how to achieve this, I would really appreciate it.
    Thank you very much in advance.
    PS I tried the above link but its a 404

  5. #5
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    here is the link medyman was trying to link to
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@ /\/\@|{
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  6. #6
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    The correct URL for the link above is http://gotoandlearn.com/play?id=31.
    That's only a technique for full-browser flash however.

    For what you're looking to do, just defining the height/width by percentages should do the trick. Otherwise, you'll have to do it via JS.

  7. #7
    Join Date
    Aug 2007
    Location
    Harrisburg, PA
    Posts
    131
    Thanks
    6
    Thanked 9 Times in 9 Posts

    Default

    http://flashsourcecode.com/
    heres an example of this in as3 yo can view a demo and download the source files.

Bookmarks

Posting Permissions

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