﻿<?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">

<behavior_definition category="Bildschirm" screenModeOnly="true" name="Gehe zu letzter Folie">
  
  <actionscript>
    <![CDATA[
	  // GoTo Last Screen behavior
      var screen = null;
      var target = this;
      while((screen == null) && (target != undefined) && (target != null))
      {
        if(target instanceof mx.screens.Screen)
        {
          screen = target;
        }
        else
        {
          target = target._parent;
        }
      }
      if(screen instanceof mx.screens.Slide)
      {
        screen.rootSlide.gotoLastSlide();
      }
	  // End GoTo Last Screen behavior
    ]]>
  </actionscript>
  
</behavior_definition>

</flash_behavior>
