Skip to content
miguelmoraleda edited this page Aug 4, 2012 · 24 revisions

Welcome to the xml2swf wiki!

What is xml2swf

xml2swf is an open source experiment library that allow you to create swf files. That is very usefull to create assets libraries. At the moment the lib is in a very beta version, only support the creation of one MovieClip inside your SWF. I start this project after to try out swfmill but I get problems trying to use the linkeage name for as3.

Features

Create a SWF with a MovieClip into. You can set a list of images to create your animation in the MovieClip and you can set a linkage name for the Clip.

Goals

- Multiples movieclip in the SWF
- Support fonts, sounds and videos.

XML description

That is the format of xml that the library take as input to create a new SWF, the format at the moment is not so friendly, but the idea is to improve that. All the imagesData tag could be mixeable into the clip sintaxis.

<movie>
	<library>
		<imagesData>
			<images>
				<characterId>1</characterId>
				<source>assets/image1.png</source>
				<format><JPEG3>90</JPEG3></format>
			</images>
			<images>
				<characterId>2</characterId>
				<source>assets/image2.png</source>
				<format><JPEG3>90</JPEG3></format>
			</images>
		</imagesData>
		<clip>
			<class>main.notemixer.test.testImage</class>
			<frames>
				<place>
					<id>1</id>
					<x>0</x>
					<y>0</y>
				</place>
				<place>
					<id>2</id>
					<x>0</x>
					<y>0</y>
				</place>
			</frames>
		</clip>
	</library>
</movie>

Clone this wiki locally