arthur-debert/BulkLoader

120 - get function not working properly to addEventListener

arthur-debert opened this issue · 2 comments

What steps will reproduce the problem?

attempting to add an eventListener using the get method

bulkLoaderInstance.add(myurl,myid)
bulkLoaderInstance.get(myid).addEventListener(BulkLoaderProgress.COMPLETE,myfunction)

When executed a type coercion Error arises

What is the expected output? What do you see instead?
I get errors saying that there is a type coer cannot convert BulkProgressEvent to Event

What version of the product are you using? On what operating system?
most current downloaded today fresh copy and errors persist
OSX 10.6
Flex Builder 3 IDE

Please provide any additional information below.


Original link: http://code.google.com/p/bulk-loader/issues/detail?id=120

debert - 2010-06-28 00:00:00
None

Hello

I just added last version to my project and I keep getting that error mentioned above:

Type Coercion failed: cannot convert Function to br.com.stimuli.loading.loadingtypes.LoadingItem.
at br.com.stimuli.loading::BulkLoader/_getNextItemToLoad()[D:\work\crilance\www\assets\dw_player\br\com\stimuli\loading\BulkLoader.as:789]

It appears that _items are sent or set as Function at some point....
I tried to debug but I can't understand why is htat happening, _items appears as an empty array and then populated with my items...