Skip to content

GAFSoundData dispose error #42

@ryopei

Description

@ryopei

When trying to dispose GAFBundle, the following error occurred.

[Fault] exception, information=TypeError: Error #1034: Type Coercion failed: cannot convert Object@2dac32fbee81 to flash.media.Sound.

The _sounds variable of GAFSoundData may contain Object, but since it is not considered in the dipose method, please correct it.

   gaf_internal function dispose(): void {
        for each (var item:* in this._sounds)
        {
            if (item is Sound) {
                (item as Sound).close();
            }
            else {
                for each(var sound:Sound in item) {
                    sound.close();
                }
            }
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions