[WiiFlash] WiiFlash server 0.3 Crash Everytime is connected by flex not by Flash cs3

gino dsa gino8080 at gmail.com
Fri Sep 14 14:12:31 PDT 2007


Hi all there

i'm really excited about wiiFlash it's great,

Tried all the examples from the WIIFLASH API,all the .fla on flash cs3 works
great!
the server always recognize the wiimote (and the nunchuk if connected)
sometimes it crash also on flash, or start rumbling like mad, but in general
it's Great!

the problems is:
I always got the WiiFlash Server 0.3 crashing when called by Flex,
both on local and online tests (like the example on sleepydesign),

I got the crashing window with these error informations:

EventType : clr20r3     P1 : wiiflash server 0.3.exe     P2 : 0.0.0.0
P3 : 4649bdf2     P4 : mscorlib     P5 : 2.0.0.0     P6 : 461eee3d     P7 :
e0
P8 : 16     P9 : system.argumentoutofrange

This is the code i used, but anyway i think is a window problem or maybe
something with the
.net 3 stuff, don't know i really want to know!!
because I already tried all the example code from other sources:

//begin code

<?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
> layout="absolute" creationComplete="initApp()">
>     <mx:Script>
>         <![CDATA[
>              [Bindable]
>
            public var roll:Number;
>               [Bindable]
>             public var yaw:Number;
>             import flash.display.Sprite;
>             import org.wiiflash.*;
>             import org.wiiflash.events.*;
>             import flash.events.Event;
>
>
>             public var myWiimote:Wiimote;
>
>
>             public function initApp():void
>             {
>
>              function onAPressed (pEvt:ButtonEvent) :void {
>             myWiimote.leds = 1;
>              }
>
>                 myWiimote = new Wiimote();
>                 myWiimote.connect();
>                 myWiimote.addEventListener(Event.CONNECT, onConnect);
>                 myWiimote.addEventListener(ButtonEvent.B_PRESS, onBPress);
>
>
>                 function onConnect():void
>                 {
>                     Alert.show("Wiimote connected :-)")
>                     trace("Wiimote connected :-)");
>                 }
>                 function onBPress(evt:ButtonEvent):void
>                 {
>                     Alert.show("B Button" + evt.state);
>                     myWiimote.rumble = true;
>                     myWiimote.rumbleTimeout = 150;
>                     getPosition();
>                 }
>                 function getPosition():void
>                 {
>                     roll = myWiimote.roll ;
>                     yaw = myWiimote.yaw;
>                 }
>   }
>
>         ]]>
>     </mx:Script>
>
    <mx:VBox x="26" y="29" height="100%" width="344">
>         <mx:Text text="Wiimote position:" fontSize="15"/>
>         <mx:Text id="roll_txt" fontSize="18" text="Roll: {roll}"/>
>         <mx:Text id="yaw_txt" fontSize="18" text="Yaw: {yaw}"/>
>         <mx:Image source="c:\winter.jpg" width="200" height="150"
> rotation="{roll}" horizontalCenter="0"/>
>     </mx:VBox>
> </mx:Application>
>


//end code

i'm running flex 2 and wiiserver 0.3  on Windows XP , with Blusoleil drivers
3.2.2.8

cya soon!
MagicEmotion




----------------------------------------------------------
 WiiFlash mailing list
WiiFlash at osflash.org
http://osflash.org/mailman
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/wiiflash_osflash.org/attachments/20070914/551826f6/attachment.html 


More information about the WiiFlash mailing list