ExperimentsErik Loyer : Eloquent interactive media

Swing

Experiments index
By Erik Loyer
June 2007

Waggle your way through words with the Wiimote.

Requirements. Windows XP, Adobe Flash 9, the WiiFlash Server, and a single Wiimote connected to your computer via Bluetooth. 

Tips for connecting the Wiimote are available.

  • Launch Swing (Wiimote version; download this file to your computer and then drag into a browser)
  • Launch Swing (mouse version)

Wiimote version instructions. Enter your text and hit the Home button on the remote.  Then, hold the Wiimote sideways, with the D-pad on the left and facing upwards, and twist it back and forth like a steering wheel to advance through syllables.  Roll the Wiimote towards you to make the text grow larger, and away from you to make it shrink.  Up and Down on the D-pad (technically Left and Right, as you’re holding the Wiimote sideways) will step manually through syllables; the 2 button will cause the current text fragment to fade out.

Mouse version instructions. Enter your text and click “Accept lyrics”. Slide the mouse back and forth to advance through syllables. Hit any key to bring the text entry screen back up.

Page 2 of 2 pages  <  1 2

It works great and the error message disapeared!
Congratulation for your job and thank you very much for the code.
I don’t know flex; I downloaded the trial version but I didn’t succeed in doing a swf file…
But I opened the “as” files with a text editor and I’m trying to transform your code to drive a car.
I’ll keep you informed and I hope to post it soon…

Posted by on 07/05 at 09:58 AM

Thanks!

it’s amazing.  using only a simple candle or lighter it works pretty good .. but it feels wrong. :*

i think of buying the nyko sensor bar.
What do you mean it didn’t work? i mean my candle worked… (at least the pointer)

-----
Do you know a “setkeys” program for wiimote?”
or at least for flash (AS 2)

thanks

Posted by yogi on 07/05 at 05:25 PM

yogi, glad you had some luck with the candles! The Nyko works for me with my Wii console, but not with WiiFlash for some reason.  I’m not exactly sure what you mean by a “setkeys” program, perhaps it’s this?

Posted by on 07/05 at 09:23 PM

I am trying this experiment, and whenever I drag the SWF into a browser, I get the following error:

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation: file:///C:/Projects/eberhardt.ca/www/Swing_wiimote.swf cannot load data from 127.0.0.1:19028.
at org.wiiflash::WiiSocket$iinit()
at org.wiiflash::WiiSocket$/getInstance()
at org.wiiflash::Wiimote$iinit()
at Swing$iinit()

I have tried both Firefox and IE, and have the latest Flash Player installed.  I have tried both WiiFlash Server 0.2 and 0.3 without any success.  I have managed to get the Wiimote to connect, and the server does show that it’s connected.

If I’m running a local apache server, and I load the SWF as http://127.0.0.1/Swing_wiimote.swf then it works, but not if it’s using the file:// protocol.

Thoughts?  I’d love to get this working as a more stable application.

James

Posted by James Eberhardt on 07/07 at 12:49 AM

James, for some bizarre reason I find that dragging the swf into a browser only works for me if it’s located in a folder on the desktop called “WiiFlash Examples”. I suspect this has got to be something weird with my machine, but it’s worth a try. You might also try adjusting the security settings within IE to see if there’s a way to overcome the security problem (though this obviously isn’t ideal). You could also take this up with the guys at WiiFlash directly and see if they can offer any assistance. Hope this is helpful…

Posted by on 07/07 at 06:02 AM

James,

I think it comes from the player 9,
just go to this page :

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

Once there, just add you hard disk where your swf are located (for example c:) and then say “always authorize”.

It should resolve your problem. Good luck

Posted by on 07/09 at 07:27 AM

that’s brilliant, Thomas, solves my problem (and hopefully James’ as well)--I will add this to the Wiimote connection tips page. Thanks!

Posted by on 07/09 at 08:16 AM

Thanks Thomas, solved the problem for me.

Normally, I thought that the dialogue box for this problem came up and automatically prompted to allow the connection.  Maybe I’m remembering incorrectly or the functionality has changed.

Also, Erik’s instructions say to drag the SWF file into a browser, but I also wanted to report that it works if you open it up the standalone player.

I also want to report that this doesn’t seem to work with WiiFlash Server 0.3 Beta.  The first word shows up, and then everything disappears.  Pressing “Home” does return me to the menu.  It works as expected in WiiFlash Server 0.2.

Great stuff!  Now that I’ve got it working, I hope to find time to work on some of my own experiments.

James

Posted by James Eberhardt on 07/09 at 10:04 AM

Page 2 of 2 pages  <  1 2

Add your comment: