|
|
|
|
thread starter
Well I got the 2.7 update and immediately started writing flash tools to figure out what flash sees
well for any flash programmers out there I made a quick flash test program and the only keys flash sees are the arrow keys.
their key.getCodes are 38 for up
37 and 39 for left and right
40 for down
The really odd thing is that getAscii returns nothing. So far I have not got a game to read the buttons which may be because of a lack of ascii codes. I'll experiment more today and start posting my flash testing files
The X is tracked as a mouse button.down but it ignores the rest of the buttons, which is to be expected.
With this info in hand if I can modify any games to reconize these keys they will work on the PSP although the codes don't map to keyboard keys so it won't work on a computer. +
Replies
So you are saying that flash games, unless very simple, will either really need to be PSP or PC specific as the control sets are different?
+
No. you have 4 keys and a mouse with a button so you have enough to do a decent game. flash 6 is pretty capable.
The problem is that the psp buttons don't map to the keyboard in any way so a game has to be made for the psp or to the pc.
i am thinking that if I code the game right I might be able to have it fill the screen. Then detect if it has shrunk to 272x480 at which point it switches the keys it uses. that way a game can be coded for both. I'm still in the getting the keys to work stage. Will post more later.
+
I was checking out one of my favorite puzzle games - Hapland - and it didnt really perform that well. Performance is very limited by memory on the PSP (I believe). Games may need to be very streamlined or something in the way of performance.
Is there any way to change the "quality" option like you can for older PC's? Or is this something that will have to be done in the flash file itself.
+
in flash you can set the quality. You can also set the quality on the webpage holding the swf file. you can set it to low or medium. I think in the end some games will need to be tweaked to make them work right
+
BigJay said: "in flash you can set the quality. You can also set the quality on the webpage holding the swf file. you can set it to low or medium. I think in the end some games will need to be tweaked to make them work right"
So when you say about setting the Flash Settings, you mean on PC, or on PSP? If on PSP, how? ^^;
I also noticed that some flash, Anything from StickPage expecially, plays really slowlike. Even when downloaded directly to the memstick.
This makes me sad... loledited: Apr 25 2006
+
I keep getting the "not enough memory" message whenever I run anything with the flash player.
+
Yeah... Not as "wonderful" as I was hoping...
+
In the original flash thread, I had mentioned a few pages worth of details o how to get flash files to perform much better. After some messing around, the psp cannot play SWF files that are larger than around 1mb (last night said 2). As well, throwing the files that DO work onto the memory sticks common folder, allows the flash files to perform much better AND formats them automatically for the psp screen (doesn't stretch the aspect ration, it just shrinks/enlarges the maximum viewing scale to the middle of the psp).
+
open the webpage that has the flash file. you can use notepad/textedit...what ever. in the page you will find this code. look for the bold and change quality to low. large flash files may still not play right.
<a href="http://www.oddcast.com/sitepal?&affId=36734&bannerId=0&promotionId=4956">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="150" height="30" />
<param name="movie" value="thatGame.swf" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
<embed src="thatGame.swf" menu="false" quality="high" bgcolor="#FFFFFF" width="150" height="30" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_P rod_Version=ShockwaveFlash">
</embed>
</object>
remember that both quality setting should be changed. not sure which the browser uses.
I got the arrow keys working finally. I'm now thinking about how to use this. I could try to code some games to use the keys, not my usual thing or try to make a swf loader that remaps the psp keys to the expected arrow keys so that I can play some of my favorite games
+
I'm new to making flash, and I was wondering, BigJay, what kinds of flash are you using to try and figure out the key.get codes? I want to be able to try and figure out this problem with the buttons, as well. And besides, I wanna get good at making flash stuff.....Anyway, can you help me out, just a bit?
+
var keyListener = new Object();
keyListener.onKeyDown = function() {
cod = Key.getCode();
//do whatever you want with the keycode variable 'cod' here
};
Key.addListener(keyListener);edited: Apr 25 2006
+
i dont understand anything of wut ursaying and im sure dtakuya doesnt either so canm some one make this much eaier on us plz
+
only the x button is a mouse... if you want to use it in a game, just put a large button over your movie with the X button action
the other buttons are assigned to the browser...
maybe when we get flash lite...? (standalone)
+
Tren said: "i dont understand anything of wut ursaying and im sure dtakuya doesnt either so canm some one make this much eaier on us plz"
well, do you know another language to write actionscript?
If he makes flash I'm sure he will, this is the easiest way.. just put this in the firstframe of your movie
the 'cod ' variable is the keycode, below that put in whatever code you need for when that key is pressed....edited: Apr 25 2006
+
register / login
|
PSP411 | Top
PSP411.com is not an official site affiliated with Sony in any way.
Content and graphics Copyright 2004-2009 PSP411.com
All rights reserved. | Contact | RSS
|