<?xml version="1.0" encoding="UTF-8"?>
<rmml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="L:\collaborative-nir\program\Cscl3DWS\rmml\RMML.xsd">
	<composition  name="cHint">
		<script>
			this.owner=null;
			this.fnRollOver = null;
			this.fnRollOut = null;

			function setOwner(ow)
			{
				this.owner = ow;
				if( this.owner.onRollOver != undefined)
					this.fnRollOver = this.owner.onRollOver;
				this.owner.onRollOver = function()
				{
					trace("############ ert");
					waiter_seq.rewindAndPlay();
					if( fnRollOver != null)
						fnRollOver();
				}
				if( this.owner.onRollOut != undefined)
					this.fnRollOut = this.owner.onRollOut;
				this.owner.onRollOut = function()
				{
					waiter_seq.stop();
					fireEvent("scene.main_viewport.onHideHint");
					if( fnRollOut != null)
						fnRollOut();
				}
			}
		</script>
		<sequencer name="waiter_seq">
			<script>
				1000;
			</script>
			<script>
trace("this.owner.name="+this.owner.name);
trace("this.owner.hint="+this.owner.hint);
				Event.hint = this.owner.hint;
				Event.x = scene.xMouse + scene.x;
				Event.y = scene.yMouse + scene.y;
				Event.object = null;
				fireEvent("scene.main_viewport.onShowHint");
			</script>
		</sequencer>
	</composition>

	<image name="CHintImage">
		<script >
			this.myHint = new Composition();
			this.myHint._class="cHint";
			this.myHint.parent = scene;
			this.myHint.setOwner(this);
		</script>
	</image>
	<button name="CHintButton">
		<script>
			this.myHint = new Composition();
			this.myHint._class="cHint";
			this.myHint.parent = scene;
			this.myHint.setOwner(this);
		</script>
	</button>
	<animation name="CHintAnim">
		<script>
			this.myHint = new Composition();
			this.myHint._class="cHint";
			this.myHint.parent = scene;
			this.myHint.setOwner(this);
		</script>
	</animation>
	<text name="CHintText">
		<script>
			this.myHint = new Composition();
			this.myHint._class="cHint";
			this.myHint.parent = scene;
			this.myHint.setOwner(this);
		</script>
	</text>
</rmml>