-
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?
-
Senior Member
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;
-
ko the scaleMode works. but how do I open it in a html page?
-
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
-
Hype over content...
"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.
-
Originally Posted by Squize
"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.
-
Hype over content...
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.
-
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|