/*
 * D2F
 * Copyright (C) SatisKia. All rights reserved.
 */

#include "_Global.h"

class _MovieClip
{
	var _clip:MovieClip;
	var _depth:Number;
	var _owner:MovieClip;
	var _owner_depth:Number;

	function _MovieClip()
	{
		_clip = null;
		_owner = null;
	}

	function attach( owner:_MovieClip, id:String, name:String ):Void
	{
		_owner = owner._clip;
		_owner_depth = owner._depth;
		_depth = _owner.getNextHighestDepth();
		_clip = _owner.attachMovie( id, name, _depth );
		_clip._visible = false;
	}

	function getString( id:String ):String
	{
		return _clip[id].text;
	}
}
