mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-26 12:51:21 +00:00
Fixed #2175 Removing DefineButtonSound, warning about incorrect sound character type in FLA export
This commit is contained in:
@@ -1811,8 +1811,15 @@ public class XFLConverter {
|
||||
"index", Integer.toString(frame - 1),
|
||||
"keyMode", Integer.toString(KEY_MODE_NORMAL)});
|
||||
if (soundChar > 0) {
|
||||
DefineSoundTag sound = (DefineSoundTag) swf.getCharacter(soundChar);
|
||||
convertSoundUsage(symbolStr, sound, soundInfo);
|
||||
CharacterTag soundCharTag = swf.getCharacter(soundChar);
|
||||
if (soundCharTag == null) {
|
||||
logger.log(Level.WARNING, "Sound tag (ID={0}) was not found", soundChar);
|
||||
} else if (soundCharTag instanceof DefineSoundTag) {
|
||||
DefineSoundTag sound = (DefineSoundTag) soundCharTag;
|
||||
convertSoundUsage(symbolStr, sound, soundInfo);
|
||||
} else {
|
||||
logger.log(Level.WARNING, "Tag (ID={0}) expected to be DefineSound, {1} found. It is referenced from DefineButtonSound({2}).", new Object[] {soundChar, soundCharTag.getClass().getSimpleName(), defineButtonSound.buttonId});
|
||||
}
|
||||
}
|
||||
symbolStr.writeStartElement("elements");
|
||||
symbolStr.writeEndElement(); //elements
|
||||
|
||||
Reference in New Issue
Block a user