wElCOmE2sUn.Wii.place [wiitahack at gmail dot com]
Visualizzazione post con etichetta flash. Mostra tutti i post
Visualizzazione post con etichetta flash. Mostra tutti i post

22/01/07

Codice Macromedia Flash per Wiimote button events


Wiimote button events (keypress) per Macoromedia Flash


Quasimondo, ha postato (link)un sourcecode che consente di registyrare eventi keypress dal WiiMote nella appicazioni flash nel Wii Web Browser.
testualmente e in inglese:

Now how does this work? Since all direct Javascript to Flash communication is either impossible or too slow I'm using an indirect method: I use the Stage.onResize event of one Flash file as a trigger and communication device. When a keypress is received by the Opera browser I scale the layer which contains a sender swf to a width that is equal to the detected key code. This triggers a resize event inside the sender swf which reads out its new width and sends that number via LocalConnection to the main swf. There it is processed by a Wiimote class which can then be similary used like a Key object.


Sviluppatori flash che vogliono scaricare il codice..... QUI