A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How to Stop Resizing

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    4

    How to Stop Resizing

    Hello!

    My name is Robbie Lee and I make flash games for a living and recently I've encountered an issue that I was hoping one of you could help me with.

    In some of my games I use sprites made from jpg, gif or bitmap ect. which look nice when viewed at the correct size (550x400) but when I release the games webmasters often post them at incorrect sizes which causes the pixel based images to distort or look ugly which reflects poorly on my talents.

    I want to know if there is anyway that I can code it so that the swf cannot be resized and always displays at 550x400 even if it's put in a window that is larger then that.

    I use ActionScript 2 and Adobe Flash CS3 Professional.

    Here is an example of one of my games in the correct size: http://www.kongregate.com/games/Wildtwilight/tct-rpg

    And here is a distorted one: http://www.funny-games.biz/tct-rpg.html (yuck)

    Please let me know if there is anything I can do.

    Thank you for your time! =)

  2. #2
    Member
    Join Date
    Nov 2009
    Posts
    43

  3. #3
    Junior Member
    Join Date
    Nov 2009
    Posts
    4
    Quote Originally Posted by Creephun View Post
    Hi!

    Thanks, I've given it a look and from what I understand I need to set 'Stage.scaleMode' to 'noScale'

    I've put "Stage.scaleMode = noScale;" on the first frame however it doesn't appear to have done much, I'm still able to change the size of the .swf with HTML which I don't want to allow to happen.

    I am beginning to wonder if HTML simply overrides the flash file's setting, if so then I guess there is little I can do. =(

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