arthur-debert/BulkLoader

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

arthur-debert opened this issue · 1 comments

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_door.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/workspace/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 link: http://code.google.com/p/bulk-loader/issues/detail?id=107

debert - 2009-10-22 00:00:00
None