-
Notifications
You must be signed in to change notification settings - Fork 0
AS3toAS1
Yoshihiro Yamazaki edited this page Jul 4, 2025
·
8 revisions
AS3 と AS1 とで Stack の扱いはほぼ同じ。積み順が逆の事はある。 命令に必要なデータはあらかじめ Stack に載せて命令はそれを pop して利用する。
local_0 等のスコープや。namespace が AS3 だけの機能。 global を使う縛りをかければ AS1 に変換はできる。はず。。 AS3 は型があるが、AS1 は型がない(自動で切り替わるコンテナ)
分岐命令のオフセットが、命令の翻訳やそれらの命令長の違いにより AS3 => AS1 で変化するので、再計算がいる。
=> SetVariable
initproperty と setproperty は動作は同じ。const だと initproperty が使われがち。
=> 本来は findpropstict + getproperty だが、tellTarget 的な意味合いで使うようだ。
callpropvoid kind:9(Multiname),name=gotoAndPlay nArgs=1
=> GotoFrame2(Code:0x9F) (Reserved)=0 SceneBiasFlag=0 PlayFlag=1
=> GetURL
https://stackoverflow.com/questions/15580069/geturl-in-as3-how-to