Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Editing/adding actionscript as bytecode

New Here ,
Mar 25, 2016 Mar 25, 2016

I have a problem with an actionscript as bytecode of a modified version of the swf file. I want to add a moving shadowlayer with the help of a tileable texture. So my idea to create to frames, the first one include the old frame, the second one moves the x-coordinate and after that jumps back the first frame (with the new coodinates). But cause the swf file was edited (very similar, but i cant use regular decompiler), I have to write the bytecode. Does anybody have an idea how to realize this moving shadow layer?

Heres the part of the code (the actionscript include only the gotoframe part):

<sprite id="10">

     <frames>

          <frame id="0">

               <placeobject depth="1" character="7" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="0.000000" ty="0.000000" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">

                    <poflags value="HasCharacter|HasMatrix|HasName"/>

                    <poname name="Shadow1"/>

               </placeobject>

          </frame>

          <frame id="1">

               <placeobject depth="1" character="-1" rotm00="1.000000" rotm01="0.000000" rotm10="0.000000" rotm11="1.000000" tx="0.000000" ty="0.000000" red="255" green="255" blue="255" alpha="255" ratio="0.000000" clipdepth="-1" unknown="0">

                    <poflags value="HasMatrix|Move"/>

               </placeobject>

          </frame>

          <frame id="3">

               <action>

               <gotoframe frame="1"/>

               <end/>

               </action>

          </frame>

     </frames>

</sprite>

TOPICS
ActionScript
357
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2016 Mar 26, 2016

that's xml, not bytecode.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2016 Mar 26, 2016
LATEST

Yeah, I know, sorry for the vague description. We wrote a tool to convert the total modified swf into a xml, so the bytecode too. I can post the total non converted file, but i think the xml version is better to read.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines