Hello All,

Well after way to much time with app I think I have finally found out what
the problem is
and now am asking any of you Flexperts if you have run into what I am about
to explain.

First of all, My problem stems from this function:

public function connectComponents():void
  {
   Logger.debug( "MAIN:connectComponents" );
   // Simple User shared object and event handling
   SharedObject.defaultObjectEncoding  = flash.net.ObjectEncoding.AMF3;
   users_so = SharedObject.getRemote("users_so", nc.uri, true);
   users_so.addEventListener( NetStatusEvent.NET_STATUS, netStatusHandler
);
   users_so.addEventListener( SyncEvent.SYNC, usersSyncHandler );
   users_so.client = this;
   Logger.debug( "This is the users_so.client : "+ users_so.client );
   users_so.connect( nc );
  }

public function usersSyncHandler( event:SyncEvent ):void
  {
   Logger.debug( "MAIN:usersSyncHandler" + event.target.data );
   var results:Object = event.target.data;
   var usersArray:Array = new Array();
   for( var a:String in results ) {
    var obj:Object = new Object();
    obj.name = results[ a ];
    obj.identifier = a;
   Logger.debug( "obj.name = "+ a );
    usersArray.push( obj );
   }
   Logger.debug("UsersArray " + usersArray);
   dpUsers = new ArrayCollection( usersArray );
   Logger.debug( "dpUser :"+ dpUsers );
  }

Seems that I have my nc.client = this defined which returns FlexVideoMain0.
The ID returns 0.

I stumble across this today where it seems like ListCollectionView.as in
Flex 2.01 has some problems.

http://www.mail-archive.com/[EMAIL PROTECTED]/msg64870.html

Seems like when my app reaches ListCollectionView.as the logger throws  this
message

resourceOutOfBounds = "Index '{0}' specified is out of bounds." : String

At this point I am not sure if the above function ( for( var a:String in
results) is not converting the
object into a string or if the problem discuss regarding the
ListCollectionView comes into to play here.

Quote"
It seems that there is a problem with the ListCollectionView class when
using it with an ArrayCollection. Using the addItemAt method produces an
index out of bounds error when an item is added with an index that is
beyond the length of the collection.

However, the Flex Reference states that:

"If the list is shorter than the specified index, it will grow to
accommodate the new item."

Anyone using Flex builder 2.01 run into this problem and if so is there a
way
around this?

One thing I can say without a doubt. RED5 is performing without problems.
I am getting all the info from the Flex Client up to the error shown.

Thanks,

Lenny




The following is from my Flex Builder 2.01 variables screen.

this = mx.collections.ArrayCollection (@3ebefa1)
autoUpdateCounter = 0 : Number
eventDispatcher = null
filterFunction = null
_filterFunction = null
length = 0 : Number
list = null
_list = null
localIndex = null
packageResources = collections_properties (@3e37149)
 bundleName = "collections" : String
 content = Object (@3dd8301)
pendingUpdates = null
resourceBookmarkNotFound = "Bookmark is not from this view." : String
resourceIncorrectAddition = "Attempt to add an item already in the view." :
String
resourceInvalidIndex = "Invalid index: '{0}'." : String
resourceItemNotFound = "Cannot find when view is not sorted." : String
resourceOutOfBounds = "Index '{0}' specified is out of bounds." : String
resourceUnknownProperty = "Unknown Property: '{0}'." : String
revision = 0 : Number
sort = null
_sort = null
source = null
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to