WiiFlash Demo Problem

I have been learning ActionScript 3.0 for my next project, and I tried WiiFlash two days ago. WiiFlash is an additional library/tool for Adobe Flash (ActionScript) so you can use your Wii Remote. You can download it from their website http://wiiflash.bytearray.org/

On my first try, the demo didn’t work 😐

I ran the WiiFlash server 0.4.3 and it’s able to connect to my Wii Remote. When I executed the SWF file (Wiimote Demo.swf), the demo didn’t show any Wiimote’s data. I think the demo cannot connect to the WiiFlash server.

So I opened the FLA file (Wiimote Demo.fla), try to build and run it.

It worked!

The demo showed the Wiimote’s data. So the problem only occurs when you try to execute the SWF directly.

I tried using Flash player debug version and get a message something related to security. I figured out that’s because the SWF file is running from the local file but it’s trying to access the network. This is restricted according to the Flash sandbox security policy but luckily you can set the permission manually.

Using the Flash authoring tool, go to the Publish Settings (see figure below). On the bottom of the window, you can see the Local playback Security. By default, it is set to access local files only. Set it to Access network only, build the SWF file, and now your SWF file can connect to the local WiiFlash server 🙂

image

note: I need to know whether this method still allow your SWF file to access local file..

6 thoughts on “WiiFlash Demo Problem

  1. Pingback: Wii Flash Development Resources Collection | diamondTearz

  2. from what I know, the answer to your question is NO. There are sometimes (on some devices) special directories where you can do both local and remote files.

  3. Thank you SO MUCH! Yours was the first link I clicked on in my search for the explanation of this behavior. I hadn’t even considered whether it might be a sandbox issue yet, so you saved me a LOT of time!

    🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.