Instantly share code, notes, and snippets.
Created
January 19, 2025 11:52
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save mouseos/a88e46056cacd236f8287383c1c8e391 to your computer and use it in GitHub Desktop.
ポケットチャレンジDXのアップデーター
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
movie 'D:\Android\pocket_challenge_dx\DXupdate\mainmenu.swf' { | |
// flash 8, total frames: 11, frame rate: 15 fps, 320x240 px, compressed | |
metadata <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/"> <xmp:CreatorTool>Adobe Flash Professional CS5</xmp:CreatorTool> <xmp:CreateDate>2011-04-19T14:53+09:00</xmp:CreateDate> <xmp:MetadataDate>2013-09-19T16:27:29+09:00</xmp:MetadataDate> <xmp:ModifyDate>2013-09-19T16:27:29+09:00</xmp:ModifyDate> </rdf:Description> <rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/"> <dc:format>application/x-shockwave-flash</dc:format> </rdf:Description> <rdf:Description rdf:about="" xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#"> <xmpMM:DerivedFrom rdf:parseType="Resource"> <stRef:instanceID>xmp.iid:E023C4F0FC20E3119951EE82E78D2F4F</stRef:instanceID> <stRef:documentID>xmp.did:74E5E19D496AE0119C1A90EB2D6CEAA9</stRef:documentID> <stRef:originalDocumentID>xmp.did:74E5E19D496AE0119C1A90EB2D6CEAA9</stRef:originalDocumentID> </xmpMM:DerivedFrom> <xmpMM:DocumentID>xmp.did:E123C4F0FC20E3119951EE82E78D2F4F</xmpMM:DocumentID> <xmpMM:InstanceID>xmp.iid:E123C4F0FC20E3119951EE82E78D2F4F</xmpMM:InstanceID> <xmpMM:OriginalDocumentID>xmp.did:74E5E19D496AE0119C1A90EB2D6CEAA9</xmpMM:OriginalDocumentID> </rdf:Description> </rdf:RDF> | |
frame 1 { | |
function LoadDll() { | |
var v1; | |
if (loadDllID != 0) { | |
return loadDllID; | |
} | |
v1 = 'A:\\lib\\func.dll'; | |
loadDllID = FSCommand2('bxcLoadDll', v1); | |
return loadDllID; | |
} | |
function FreeDll(dll) {} | |
function RunFunc(dll, fun, param, retVarName) { | |
return FSCommand2('bxcRunFunc', dll, fun, param, retVarName); | |
} | |
function getCLibFunction(apiName, paramData) { | |
var v2 = loadDllID; | |
if (v2 != 0) { | |
_root.ret = ''; | |
RunFunc(v2, apiName, paramData, '_root.ret'); | |
return _root.ret; | |
} | |
_root.ret = ''; | |
return _root.ret; | |
} | |
var loadDllID = 0; | |
var m_BtnState_is = false; | |
_root.LoadDll(); | |
var retStr = _root.getCLibFunction('clibJudgeUpdatableTo6th', ''); | |
var checkResult = Number(retStr); | |
switch (checkResult) { | |
case 0: | |
_root.gotoAndStop('UPDATE_1'); | |
break; | |
case 1: | |
_root.gotoAndStop('CID_ILLEGAL'); | |
break; | |
case 2: | |
_root.gotoAndStop('ALREADY_UPDATED'); | |
break; | |
case 3: | |
_root.gotoAndStop('LOW_BATTERY'); | |
break; | |
case 4: | |
_root.gotoAndStop('UPDATE_COMPLETE'); | |
break; | |
default: | |
_root.gotoAndStop('UPDATE_1'); | |
} | |
_root.getCLibFunction('clibStopLed', ''); | |
stop(); | |
} | |
frame 4 { | |
stop(); | |
_root.getCLibFunction('clibSetVolume', '4'); | |
doneSe.gotoAndStop('label_play'); | |
} | |
movieClip 10 { | |
frame 1 { | |
stop(); | |
} | |
frame 2 { | |
stop(); | |
play(); | |
} | |
frame 15 { | |
stop(); | |
stopAllSounds(); | |
_root.getCLibFunction('clibSetVolume', '2'); | |
} | |
} | |
frame 7 { | |
_root.ok_button.onPress = function () { | |
_root.ok_button.gotoAndStop('ON'); | |
m_BtnState_is = true; | |
}; | |
_root.ok_button.onRelease = function () { | |
if (m_BtnState_is == true) { | |
_root.ok_button.gotoAndStop('OFF'); | |
_root.gotoAndStop('UPDATE_2'); | |
m_BtnState_is = false; | |
} | |
}; | |
_root.ok_button.onDragOut = function () { | |
_root.ok_button.gotoAndStop('OFF'); | |
m_BtnState_is = false; | |
}; | |
} | |
movieClip 21 { | |
frame 1 { | |
stop(); | |
} | |
} | |
frame 8 { | |
_root.yes_button.onPress = function () { | |
_root.yes_button.gotoAndStop('ON'); | |
m_BtnState_is = true; | |
}; | |
_root.yes_button.onRelease = function () { | |
if (m_BtnState_is == true) { | |
_root.yes_button.gotoAndStop('OFF'); | |
_root.gotoAndStop('UPDATE_3'); | |
m_BtnState_is = false; | |
} | |
}; | |
_root.yes_button.onDragOut = function () { | |
_root.yes_button.gotoAndStop('OFF'); | |
m_BtnState_is = false; | |
}; | |
_root.no_button.onPress = function () { | |
_root.no_button.gotoAndStop('ON'); | |
m_BtnState_is = true; | |
}; | |
_root.no_button.onRelease = function () { | |
if (m_BtnState_is == true) { | |
_root.no_button.gotoAndStop('OFF'); | |
_root.gotoAndStop('REMOVE_SD'); | |
m_BtnState_is = false; | |
} | |
}; | |
_root.no_button.onDragOut = function () { | |
_root.no_button.gotoAndStop('OFF'); | |
m_BtnState_is = false; | |
}; | |
} | |
movieClip 28 { | |
frame 1 { | |
stop(); | |
} | |
} | |
movieClip 33 { | |
frame 1 { | |
stop(); | |
} | |
} | |
frame 9 { | |
_root.yes_button2.onPress = function () { | |
_root.yes_button2.gotoAndStop('ON'); | |
m_BtnState_is = true; | |
}; | |
_root.yes_button2.onRelease = function () { | |
if (m_BtnState_is == true) { | |
_root.yes_button2.gotoAndStop('OFF'); | |
_root.gotoAndStop('UPDATING'); | |
m_BtnState_is = false; | |
} | |
}; | |
_root.yes_button2.onDragOut = function () { | |
_root.yes_button2.gotoAndStop('OFF'); | |
m_BtnState_is = false; | |
}; | |
_root.no_button2.onPress = function () { | |
_root.no_button2.gotoAndStop('ON'); | |
m_BtnState_is = true; | |
}; | |
_root.no_button2.onRelease = function () { | |
if (m_BtnState_is == true) { | |
_root.no_button2.gotoAndStop('OFF'); | |
_root.gotoAndStop('REMOVE_SD'); | |
m_BtnState_is = false; | |
} | |
}; | |
_root.no_button2.onDragOut = function () { | |
_root.no_button2.gotoAndStop('OFF'); | |
m_BtnState_is = false; | |
}; | |
} | |
frame 10 { | |
var retStr = _root.getCLibFunction('clibRunUpdatingTo6th', ''); | |
var resultVar = parseInt(retStr, 10); | |
_root.gotoAndStop('UPDATE_2'); | |
if (resultVar != 0) { | |
_root.gotoAndStop('INTERRUPTED'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment