dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: when played in flash cs3, fine when in browser: buggy

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    418

    when played in flash cs3, fine when in browser: buggy

    Hello,

    When I play my game in flash cs3 everything is fine, but when i play it in firefox, by throwing the .swf onto firefox, strange things happen. the screen size becomes distorded, and some objects are misplaced, what is causing this?
    I program in AS3 only.

  2. #2
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,227
    Use html page to embed swf, dont open it directly in browser.

    For as3 you could try to set the stage scalemode too:
    stage.scaleMode = StageScaleMode.NO_SCALE;

  3. #3
    Senior Member
    Join Date
    Jul 2008
    Posts
    418
    ko the scaleMode works. but how do I open it in a html page?
    I program in AS3 only.

  4. #4
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    its the opposite here,- I use the debug standalone player (v9) and its compared to firefox directly swf about 20-30% slower. In the past I had other expierences in which case the standalone (debug and regular) were always faster as the html Opera/Firefox version.

    I also assume that it is perhaps because of the scaleMode or perhaps some onResizeEvent that would fire a event and re-position things (liquid layout stuff). Maybe post a screenshot

  5. #5
    Hype over content... Squize's Avatar
    Join Date
    Apr 2001
    Location
    Lost forever in a happy crowd...
    Posts
    5,928
    "how do I open it in a html page? "

    It's an option in the publish settings in Flash. Tick the box and Flash will save the html for you and you can just test it in that ( You should never test a swf directly in the browser window, always in it's own html ).

    Squize.

  6. #6
    Senior Member
    Join Date
    Jul 2008
    Posts
    418
    Quote Originally Posted by Squize View Post
    "how do I open it in a html page? "

    It's an option in the publish settings in Flash. Tick the box and Flash will save the html for you and you can just test it in that ( You should never test a swf directly in the browser window, always in it's own html ).

    Squize.
    ok this works now. things are a bit slower though. not in fps thats higher than the standalone, but objects just move slower on screen.
    I program in AS3 only.

  7. #7
    Hype over content... Squize's Avatar
    Join Date
    Apr 2001
    Location
    Lost forever in a happy crowd...
    Posts
    5,928
    Yeah you'll get a loss of speed when running in the browser, that's why you should test a project in html through out it's lifetime so you have no nasty surprises right at the end.
    ( It's been covered to death here why it runs slower, so if you're at all interested have a search ).

    To be blunt, things like this are far more important than sponsorship deals or encryption, and whilst you're learning it should be more where your focus is rather than the money at the end.

    Squize.

  8. #8
    Senior Member
    Join Date
    Jul 2008
    Posts
    418
    well, i just said: the fps is higher than on the standalone, but everything moves slower. not on a lower fps. so that it runs slower on a html, what does it have to do with this?
    I program in AS3 only.

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