bennyxqg / bulk-loader

Automatically exported from code.google.com/p/bulk-loader
0 stars 0 forks source link

get function not working properly to addEventListener #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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,myfunc
tion)

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 issue reported on code.google.com by cpsou...@gmail.com on 28 Jun 2010 at 11:37

GoogleCodeExporter commented 9 years ago
Hi CpSounds.

As documented (wiki and else where)[1] you listen to the normal event types 
(ProgressEvent.PROGRESS or BulkLoader.PROGRESS_EVENT :
bulkLoaderInstance.get(myid).addEventListener(BulkLoaderProgress.COMPLETE,myfunc
tion)
bulkLoaderInstance.get(myid).addEventListener(Event.COMPLETE,myfunction)

[1] http://code.google.com/p/bulk-loader/wiki/HowToUseEvents

Original comment by debert on 29 Jun 2010 at 12:00