<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- <!DOCTYPE Movie SYSTEM "dtd/RVML.dtd"> -->
<Movie version='6' width='600' height='300' rate='1' backgroundColor='white' compressed='No'
    xmlns="http://www.kineticfusion.org/RVML/2.0">
    <Title>
        ActionScript on the Timeline
    </Title>
    <Desc>
        Illustrates how to define global functions on the timeline and the scope of global
        functions. The cube() function defined in frame 3 is unavailable when the timeline
        first reached frame 2 however once it has been defined in frame 3 it becomes available 
        in frame 2 in the next iteration.
    </Desc>
    <Repository repositoryType='File' repositoryBase='/temp' repositoryName='exampleResources'>
    </Repository>
    <Definitions>
        <!-- Font for the Header text -->
        <FontDefinition id='Arial' fontName='Arial' fontStyle="(bold)" fontRange='defined' />
        <!-- Symbol for the  Header text -->
        <EditField id='headingField' bounds='bounds(-2.0, -2.0, 400.0, 16.0)' 
            fieldName='heading' fontID='Arial' fontSize='12.0' alignment='centre' 
            charLimit='0' color='navy' properties='(systemFont)' />
    </Definitions>
    
    <Timeline>
        <Frame >
            <Place name="headingField" depth="2" x="100" y="200"/>
            <FrameActions><![CDATA[
function square( a)
{
return a * a;
}
heading="Square(123) = " + square(123);
]]></FrameActions>
        </Frame>
        <Frame >
            <FrameActions><![CDATA[
// This should be undefined as the function is not defined for another frame
heading="cube(256) = " + cube(256);
]]></FrameActions>
        </Frame>
        <Frame >
            <FrameActions><![CDATA[
function cube( a)
{
return a * a * a;
}
heading="Square(256) = " + square(256);
]]></FrameActions>
        </Frame>
        <Frame >
            <FrameActions><![CDATA[
heading="cube(16) = " + cube(16);
]]></FrameActions>
        </Frame>
    </Timeline>
</Movie>