1172: Definition flash:system could not be found.!

Hey Guys,

I’m trying to call a video on youtube from a custom class.

Here’s the class:

package {
    import flash.display.Loader;
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.net.URLRequest;
    import flash.system;
    import flash.system.Security;
    
    //
    /**
     * ...
     * @author RobMacy
     */
    public class TutorialPlay extends MovieClip 
    {
        
        


        var my_player:Object;
        var my_loader:Loader = new Loader();
        


        public function TutorialPlay():void
        {
            Security.allowDomain("www.youtube.com");
            my_loader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3")); 
            my_loader.contentLoaderInfo.addEventListener(Event.INIT, onLoaderInit);
    
        }
        
        function onLoaderInit(e:Event):void
        {
            addChild(my_loader); 
            my_player = my_loader.content;
            my_player.addEventListener("onReady", onPlayerReady); 
        }
        
        function onPlayerReady(e:Event):void
        {
            my_player.setSize(640, 360);
            my_player.loadVideoById("8BN83gpXc_Q",0);
        } 
    }
    
}

Im getting:

“1172: Definition flash:system could not be found” for this line

import flash.system;

the next line

import flash.system.Security;

shows the active colors and I select flash.system from a tree.

What am I doing wrong???