<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- <!DOCTYPE Movie SYSTEM "http://www.KinesisSoftware.com/dtd/rvml.dtd"> -->
<Movie version='6' width='600' height='500' rate='12' backgroundColor='white' compressed='No'
    xmlns="http://www.kineticfusion.org/RVML/2.0">
    <Title>
        Font Manipulation Examples
    </Title>
    <Desc>
        Illustrates how font resource definitions can be optimized for the purpose of
        restricting input to limited glyphs and how to implement similar functionality 
        in ActionScript.
    </Desc>
    <Repository repositoryType='File' repositoryBase='/temp' repositoryName='exampleResources'>
        <Font id='ArialItalicBold' fontName='Arial' fontStyle="(italic, bold)" 
            resourceLocation="Unknown" fontRange='defined' />
        <!-- In combination with StandardDigits permit only "Test0123456789" -->
        <Font id='Arial' fontName='Arial' resourceLocation="Arial.swf" fontRange="['0'-'9']" />
        <!-- In combination with RestrictedDigits permit only "0123456789" -->
        <Font id='ArialDigits' fontName='Arial1' resourceLocation="Arial.swf" fontRange="['0'-'9']" />
        <!-- In combination with RestrictedUpper permit only "A-Z" -->
        <Font id='ArialUpper' fontName='Arial2' resourceLocation="Arial.swf" fontRange="['A'-'Z']" />
    </Repository>
    <Definitions>
        <EditField id='StandardDigits' bounds='bounds(-2,-2, 100, 34)' fieldName='' 
            fontID='Arial' fontSize='20' alignment='left' charLimit='8' color='black' 
            properties='(border, selectable, editable)'>
            <InitialText>Test</InitialText>
        </EditField>
        <EditField id='RestrictedDigitsV5' bounds='bounds(-2,-2, 100, 34)' fieldName='' 
            fontID='ArialDigits' fontSize='20' alignment='left' charLimit='8' color='black' 
            properties='(border, selectable, editable)'>
            <InitialText>4567</InitialText>
        </EditField>
        <EditField id='RestrictedDigitsV6' bounds='bounds(-2,-2, 100, 34)' fieldName='' 
            fontID='Arial' fontSize='20' alignment='left' charLimit='8' color='black' 
            properties='(border, selectable, editable)'>
            <InitialText>4567</InitialText>
        </EditField>
        <!-- One way to restrict input in versions < 6 is to create a separate font
            for the restricted range -->
        <EditField id='RestrictedUpper' bounds='bounds(-2,-2, 100, 34)' fieldName='' 
            fontID='ArialUpper' fontSize='20' alignment='left' charLimit='6' color='black' 
            properties='(border, selectable, editable)'>
            <InitialText>TEST</InitialText>
        </EditField>
        <!-- Use a font symbol that doesn't exist -->
        <EditField id='SystemItalicBold' bounds='bounds(-2,-2, 100, 34)' fieldName='' 
            fontID='ArialItalicBold' fontSize='20' alignment='left' charLimit='6' color='black' 
            properties='(systemFont, border, selectable, editable)'>
            <InitialText>TEST</InitialText>
        </EditField>
    </Definitions>
    <Timeline>
        <Frame>
            <!-- This will allow all digits and the characters "Test" -->
            <Place name="StandardDigits" depth="2"   x="200" y="30"/>
            <Place name="RestrictedDigitsV5" depth="3"   x="200" y="90"/>
            <Place name="RestrictedDigitsV6" depth="4" instanceName="edit"  x="200" y="150"/>
            <Place name="RestrictedUpper" depth="5"   x="200" y="210"/>
            <Place name="SystemItalicBold" depth="6"   x="200" y="270"/>
            <!-- For version 6 and higher this is the easiest way to restrict input-->
            <FrameActions>edit.restrict="0-5";</FrameActions>
        </Frame>
    </Timeline>
</Movie>