cmcginnis
01-30-2003, 03:31 PM
Lets say that I have a large application with many resources and I want to put them in a separate file and include it. For example:
Instead of this:
<canvas title="Example 1" id="Example1" debug="false">
<resource name="vertLine" src="resources/vert_line.swf"/>
<resource name="horizLine" src="resources/horiz_line.swf"/>
<view name="line" visible="true" resource="horizLine"/>
</canvas>
Do this:
<canvas title="Example 1" id="Example1" debug="false">
<include href="resources.lzx"/>
<view name="line" visible="true" resource="horizLine"/>
</canvas>
But when I try and view the page I get the "root element must be well formed" error message. It works when I wrap the resources with a <library> tag, but the documentation for the tag say that I should never use the library tag in a user program. So what should I do?
Also, if I set the include type to "xml" I get a warning saying that it is not needed, even though its documented that the attribute can be set, and it is including a lzx file.
Thanks
Chris
Instead of this:
<canvas title="Example 1" id="Example1" debug="false">
<resource name="vertLine" src="resources/vert_line.swf"/>
<resource name="horizLine" src="resources/horiz_line.swf"/>
<view name="line" visible="true" resource="horizLine"/>
</canvas>
Do this:
<canvas title="Example 1" id="Example1" debug="false">
<include href="resources.lzx"/>
<view name="line" visible="true" resource="horizLine"/>
</canvas>
But when I try and view the page I get the "root element must be well formed" error message. It works when I wrap the resources with a <library> tag, but the documentation for the tag say that I should never use the library tag in a user program. So what should I do?
Also, if I set the include type to "xml" I get a warning saying that it is not needed, even though its documented that the attribute can be set, and it is including a lzx file.
Thanks
Chris