<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!-- <!DOCTYPE Movie SYSTEM 'dtd/RVML.dtd'> --> <Movie version='6' width='278' height='208' rate='30' backgroundColor='white' compressed='Yes' xmlns="http://www.kineticfusion.org/RVML/2.0"> <Title> ActionScriptSettings Example </Title> <Desc> Illustrates how to use customize the ActionScript settings for a particular movie. </Desc> <ActionScriptSettings> <!-- Define class path for AS 2.0 classes --> <ClassPath>C:\temp\systemclasses</ClassPath> <!-- Override classes in systemclasses with those in the exampleResources\classes subdirectory --> <ClassPath>C:\temp\exampleResources\classes</ClassPath> <!-- Add an extra include path that is searched before default include paths --> <IncludePath>C:\temp\include</IncludePath> <!-- Explicitly include class TestClass1 --> <IncludeClass name='FieldHolder' /> <!-- Source of class shown below: class FieldHolder{ private var myField; public function FieldHolder( field) { myField = field; } public function setFieldValue(value):Void { myField.text = value; } } --> <!-- Disable logging of reference to cached classes --> <ASProperty name='logCachedClasses' value='No' /> <!-- Enable logging of all output classes in load order--> <ASProperty name='logLoadedClasses' value='Yes' /> <!-- Disable logging of reference toreference to parsed classes --> <ASProperty name='logParsedClasses' value='No' /> <!-- Disable all semantic warning messages --> <ASProperty name='enableWarningMessages' value='No' /> <!-- Optimize all functions for Player 6.0.65 --> <ASProperty name='optimizeFunctions' value='Yes' /> <!-- Do not return a value from 'set' property methods --> <ASProperty name='setterReturnsValue' value='No' /> <!-- Use precompiled classes where valid and available --> <ASProperty name='useCachedClasses' value='Yes' /> <!-- Check all RVML scripts for class references --> <ASProperty name='analyzeScriptsAsAS2' value='Yes' /> </ActionScriptSettings> <Definitions> <!-- Font for the Header text --> <FontDefinition id='Arial' fontName='Arial' fontStyle="(bold)" fontRange='defined' /> <!-- Symbol for the Header text --> <EditField id='labelField' bounds='bounds(-2.0, 100.0, 278.0, 120.0)' fontID='Arial' fontSize='12.0' alignment='centre' charLimit='0' color='navy' properties='(systemFont)' /> </Definitions> <Timeline> <Frame> <Place name="labelField" depth="2" instanceName="labelField"/> <FrameActions><![CDATA[ // Create a dynamic instance of a class - not pretty but illustrates // how to dynamically include a class var instance = new (eval("FieldHolder"))( labelField); instance.setFieldValue("Hello"); ]]></FrameActions> </Frame> </Timeline> </Movie>