List Info

Thread: Bug in Pixioc ChannelListenerExpert?




Bug in Pixioc ChannelListenerExpert?
user name
2008-02-21 06:50:38
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,undefi
ned);

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
Pixlibosflash.org
http://osflash.org/mailman/listinfo/pixlib_osflash.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )