Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-23-2007, 01:42 AM   #1
Registered User
Join Date: Sep 2007
Posts: 30
Default Laggy in when running in browser?

I have a game that runs at 60 fps. When I run it in a web browser, it drops all the way to either 45 or 30 fps (average). I tried changing the mode to Opaque. At first, I was glad! It runs 60 fps, no lag. But then I tried using WASD to move...nothing happened. I can click and everything, but keyboard input won't work. It works when running in Flash Player and not the browser, but once it's in the browser, no keyboard input. I'm in a situation. What can I do to not have lag but allow keyboard input?
Venomblood is offline   Reply With Quote
Old 09-23-2007, 01:52 AM   #2
Super Moderator
CyanBlue's Avatar
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666

Howdy and Welcome...

I don't think you can have SWF running at 60fps if run in a web browser, period... The Flash Player for the web browser is whole lot less powerful than the debug Flash Player...

I don't know why the keyboard input does not get registered though...
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 09-23-2007, 02:52 AM   #3
Registered User
Join Date: Sep 2007
Posts: 30

Well, when I run it in opaque mode, the keyboard doesn't receive input, but it runs at 60 fps fine, even in browser. What do you suggest I change it too. Note that I would have to spend a LONG time changing all my animations, speeds, timers, etc.
Venomblood is offline   Reply With Quote
Old 09-23-2007, 03:07 AM   #4
Banned by AS.org Staff
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,073

Don't see why the opaque mode would make any difference in the actual framerate and/or keyboard input?

Does the movie and keyboard have focus?

Do you have a link to this?
atomic is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Controlling Browser Window via Flash Javascript buttons [via 'get url' statement]. cheeky_monkey ActionScript 1.0 (and below) 7 01-20-2009 02:30 PM
Full Browser Liquid Layout: overlapping elements? rf1017 ActionScript 2.0 3 08-24-2007 09:54 PM
How to launch browser in specific position from Flash pointer ActionScript 2.0 0 04-30-2007 12:42 PM
[AS2] Help with a game.. game is running slow in browser.. kosfsh Gaming and Game Development 1 10-31-2006 04:07 PM
FLV playback pauses when scrolling browser window kris_mcl Components 3 07-17-2006 05:38 PM

All times are GMT. The time now is 06:51 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.