﻿<?xml version="1.0"?>

<!-- **************************************************************************** -->
<!-- Copyright 2003 Macromedia, Inc. All Rights Reserved.                         -->
<!-- The following is Sample Code and is subject to all restrictions on           -->
<!-- such code as contained in the End User License Agreement accompanying        -->
<!-- this product.                                                                -->
<!-- **************************************************************************** -->

<flash_behavior version="1.0">

<!--Below is where and how we define the behavior and its parameters-->

	<behavior_definition dialogID="Load External Movieclip-dialog" category="Movieclip" name="Externen Movieclip laden" class="movieclip, frame, button">
		<properties>
			<property id="clip" default=""/> 
			<property id="target" default="this"/>
		</properties>

<!--The dialog window is tied to the controls below by its id-->
<!--This controls generate the dialog using the XML to UI functionality-->

		<dialog id="Load External Movieclip-dialog" title="Externen Movieclip laden" buttons="accept, cancel">
			<grid>
			  <columns>
			    <column>				 
				  <rows>
					<row align="center">
				      <vbox>
						<label value="Geben Sie die URL der zu ladenden .swf-Datei ein:"/> 
						<textbox literal="true" id="clip" required="true" size="45" requiredname="Clip"/>
					  </vbox>
					</row>
				  </rows>
				  <rows>
					<row align="center">
				      <vbox>
						<label value=""/> 
						<label value=""/>
					  </vbox>
					</row>
				  </rows>
				  <rows>
					<row align="center">
				      <vbox>
						<label value="Wählen Sie den Movieclip aus, oder geben Sie die Stufe ein, in die Ihre .swf geladen werden soll:"/> 
						<targetlist id="target" class="movieclip"/>
					  </vbox>
					</row>
				  </rows>
			    </column>				 
			  </columns>
			</grid>
	     </dialog>

<!-- Inside the CDATA section is where you place the Actionscript to be displayed in the AS panel-->

<actionscript>
<![CDATA[
	//load Movie Behavior
	if($target$ == Number($target$)){
		loadMovieNum($clip$,$target$);
	} else {
		$target$.loadMovie($clip$);
	}
	//End Behavior
]]>
</actionscript>
</behavior_definition>

</flash_behavior>