﻿<?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="Play_Sound-dialog" category="Sound" name="Sound abspielen">
	<!--class="movieclip, frame, button"-->
		
		<properties>
			<property id="sound_identifier"/> 
		</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="Play_Sound-dialog" title="Sound abspielen" buttons="accept, cancel">
			<grid>
			  <columns>
			    <column>				 
				  <rows>
					<row align="center">
				      <vbox>
					    <label value="Geben Sie den Namen der abzuspielenden Soundinstanz ein:                      "/> 
						<textbox id="sound_identifier" tabindex="1" required="true" requiredname="Soundbezeichner"/>
					  </vbox>
					</row>
				  </rows>
			    </column>				 
			  </columns>
			</grid>
		</dialog>
		<actionscript>
		
		<!-- Inside the CDATA section is where you place the Actionscript to be displayed in the AS panel-->
		
<![CDATA[
	// Play Sound Behavior
	_global.Behaviors.Sound.$sound_identifier$.start(0,1);
	// End Play Sound Behavior
]]>
		</actionscript>
	</behavior_definition>
</flash_behavior>