bennyxqg / bulk-loader

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

An error is caught by the unloadAndStop check in ImageItem::destroy() in FP10 compiled with Flex_SDK_0_Pure #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The application must be compiled with the Flex SDK Pure SDK (the NON
FP10 version) and then run in the FP10 runtime.

What is the expected output? What do you see instead?
An exception is caught internally with the following stacktrace:

[BulkLoader] Error while removing item from key:LoadingItem url:
../../../../diablo_static/versioned/flash/assets/world/items/decor/doors/brown_d
oor.swf,
type:movieclip, status: finished ReferenceError: Error #1069: Property
unloadAndStop not found on flash.display.Loader and there is no default value.
    at
br.com.stimuli.loading.loadingtypes::ImageItem/destroy()[/projects/diablo_as3/wo
rkspace/utils_as3/src/br/com/stimuli/loading/loadingtypes/ImageItem.as:134]

What version of the product are you using? On what operating system?
Bulkloader r.306
Flex SDK 0 Pure (NOT the FP10 version)
Flash Player 10 runtime.

Please provide any additional information below.
The issue can be fixed by changing the destroy() method to include:

if (loader.hasOwnProperty("unloadAndStop") && loader["unloadAndStop"] is
Function) {
                loader["unloadAndStop"](true);
}

Original issue reported on code.google.com by johnreev...@googlemail.com on 22 Oct 2009 at 11:07

GoogleCodeExporter commented 9 years ago
Hi John.

Thanks a lot for the detailed report.
I've committed the fix on revision 307, that should do it.

Regards
Arthur

Original comment by debert on 23 Oct 2009 at 2:07