Код: Выделить всё
emu
Click to load the SWF!
var embed = document.querySelector("#gameWin")
function runSWF() {
// flash emu load
var file = document.querySelector("#flash")
if (file && file.files[0]) {
swfobject.embedSWF(URL.createObjectURL(file.files[0]), "gameWin", "640", "480", "9.0.0")
} else {
alert("You forgot to input your SWF!!")
}
}
Я пытаюсь получить заголовок/имя SWF-файла (не «tboiwotlv1666.swf», например «The Binding of Isaac: Wrath Of The Lamb») и установите его в качестве заголовка, например
Код: Выделить всё
function runSWF(){
if (file && file.files[0]) {
swfobject.embedSWF(URL.createObjectURL(file.files[0]), "gameWin", "640", "480", "9.0.0")
document.title = "???" // Make the title of the flash (like the actual one) format as emu - "Title name"
} else {
alert("You forgot to input your SWF!!")
}
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... le-with-js