PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/cocktail/nativeElement/as3/NativeElementPathManager.hx

http://github.com/silexlabs/Cocktail
Haxe | 41 lines | 15 code | 4 blank | 22 comment | 0 complexity | f9bc6b0b361cda59a801e501897b5894 MD5 | raw file
 1/*This file is part of Silex - see http://projects.silexlabs.org/?/silex
 2
 3Silex is Š 2010-2011 Silex Labs and is released under the GPL License:
 4
 5This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (GPL) as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 
 6
 7This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 8
 9To read the license please visit http://www.gnu.org/copyleft/gpl.html
10*/
11package cocktail.nativeElement.as3;
12
13import flash.Lib;
14import cocktail.nativeElement.abstract.AbstractNativeElementPathManager;
15import cocktail.nativeElement.NativeElement;
16
17/**
18 * This is the flash AVM2 implementation for the path manager. 
19 * It returns the flash Stage
20 * 
21 * @author Yannick DOMINGUEZ
22 */
23class NativeElementPathManager extends AbstractNativeElementPathManager
24{
25	/**
26	 * class contructor
27	 */
28	public function new() 
29	{
30		super();
31	}
32	
33	/**
34	 * Returns a reference to the Flash Stage
35	 */
36	override public function getRoot():NativeElement
37	{
38		return Lib.current.stage;
39	}
40	
41}