Bug in Pixioc ChannelListenerExpert?

View: New views
1 Messages — Rating Filter:   Alert me  

Parent Message unknown Bug in Pixioc ChannelListenerExpert?

by Derek McKenna :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there I'm trying to use pixioc (-r6) project for the first time.

I am compiling with FlashCS3 (yes I know ^^) but I haven't got my  
build script to handle multiple swfs builds yet (i use textmate).

I was having some trouble getting one plugin to listen to another so  
I've starting debugging various things and I'm seeing some strange  
things happening with many calls to

ApplicationBroadcaster.getChannelDispatcher(undefined,undefined);

so anyway I've stripped my app context down to just 1 plugin (with no  
channel) and still get this call happening many times.

After some more digging I've tracked it down to this method in the  
ChannelListenerExpert:


        public function buildChannelListener( listenerID : String,  
channel ) : Void
        {
                if ( typeof(channel.attribute.channel) == "string" )
                {
                        _aChannelListener.push( _buildChannelListener( listenerID,  
channel.attribute ) );
                                               
                } else
                {
                        var l : Number = channel.length;
                        for ( var i : Number = 0; i < l; i++ )  
_aChannelListener.push( _buildChannelListener( listenerID,  
channel[i].attribute) );
                }
        }

So tracing shows the listenerID = my plug in name and the channel =  
com.bourre.ioc.events.PixiocSystemChannel

The second part of the if statement is executing with the length is  
coming up as 41 which is of course the length of  
'com.bourre.ioc.events.PixiocSystemChannel' so I think because it's  
not Array Flash is coercing the type of object into String to get  
length rather than just give undefined. Or am i missing something else?

Cheers!
-d

_______________________________________________
Pixlib mailing list
Pixlib@...
http://osflash.org/mailman/listinfo/pixlib_osflash.org
LightInTheBox - Buy quality products at wholesale price!