<?xml version="1.0"?>
<!DOCTYPE sequence SYSTEM "sidewalkdtd">
<sequence
    name="checker-flip.xml"
    source="flip0*.png">
    <img
        regx="400"
        regy="300"
        name="checker-flip.png"
        w="0"
        h="0">
    </img>
    <framelist>
        <frame
            regx="73"
            regy="73"
            x="0"
            y="0"
            w="147"
            h="147"
            name="">
        </frame>
        <frame
            regx="70"
            regy="74"
            x="147"
            y="0"
            w="139"
            h="148"
            name="">
        </frame>
        <frame
            regx="63"
            regy="74"
            x="286"
            y="0"
            w="120"
            h="147"
            name="">
        </frame>
        <frame
            regx="47"
            regy="75"
            x="406"
            y="0"
            w="88"
            h="148"
            name="">
        </frame>
        <frame
            regx="17"
            regy="75"
            x="494"
            y="0"
            w="34"
            h="150"
            name="">
        </frame>
        <frame
            regx="12"
            regy="75"
            x="528"
            y="0"
            w="22"
            h="150"
            name="">
        </frame>
        <frame
            regx="17"
            regy="75"
            x="550"
            y="0"
            w="35"
            h="150"
            name="">
        </frame>
        <frame
            regx="31"
            regy="75"
            x="585"
            y="0"
            w="73"
            h="150"
            name="">
        </frame>
        <frame
            regx="52"
            regy="74"
            x="658"
            y="0"
            w="109"
            h="148"
            name="">
        </frame>
        <frame
            regx="64"
            regy="74"
            x="767"
            y="0"
            w="135"
            h="148"
            name="">
        </frame>
        <frame
            regx="74"
            regy="74"
            x="902"
            y="0"
            w="148"
            h="148"
            name="">
        </frame>
    </framelist>
    <script
        luascript="FIRST_FRAME=1&#10;LAST_FRAME=11&#10;DELAY_TIME = 32&#10;&#10;function GoToRed()&#10;    gCurFrame = FIRST_FRAME&#10;    gTargetFrame=LAST_FRAME&#10;    gStep=1&#10;    DoAnim1()&#10;end&#10;&#10;function GoToBlue()&#10;    gCurFrame = LAST_FRAME&#10;    gTargetFrame=FIRST_FRAME&#10;    gStep=-1&#10;    DoAnim1()&#10;end&#10;&#10;function clamp(num, low, high)&#10;    if num &lt; low then&#10;        num = low&#10;    elseif num &gt; high then&#10;        num = high&#10;    end&#10;    return num&#10;end&#10;&#10;function DoAnim1()&#10;    delay(DELAY_TIME);&#10;    while gCurFrame ~= gTargetFrame do&#10;        frames{gCurFrame}&#10;        gCurFrame = clamp(gCurFrame+gStep, FIRST_FRAME, LAST_FRAME)&#10;    end&#10;    frames{gTargetFrame}&#10;end&#10;&#10;">
    </script>
</sequence>
