﻿<?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="Stop_Sound-dialog" category="Sound" name="Sound stoppen">
	<!--class="movieclip, frame, button"-->
		
		<properties>
			<property id="sound_identifier"/> 
			<property id="sound_name"/>
		</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="Stop_Sound-dialog" title="Sound stoppen" buttons="accept, cancel">
			<grid>
			  <columns>
			    <column>				 
				  <rows>
					<row align="center">
				      <vbox>
					    <label value="Geben Sie die Verknüpfungs-ID des zu stoppenden Sounds in der Bibliothek ein:"/> 
					    <textbox literal="true" id="sound_name" tabindex="1" required="true" requiredname="Soundname"/>
					  </vbox>
					</row>
					<row align="center">
				      <vbox>
					    <label value="Geben Sie den Namen der zu stoppenden Soundinstanz ein:                      "/> 
						<textbox id="sound_identifier" tabindex="2" 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[
	//Stop Sound Behavior
	_global.Behaviors.Sound.$sound_identifier$.stop($sound_name$);
]]>
		</actionscript>
	</behavior_definition>
</flash_behavior>