Graphics Flex



    
        
            [Embed(source="logo.jpg")]
            private var sunAsset:Class;
            [Embed(source="logo.jpg")]
            private var moonAsset:Class;
            private function init(  ):void
            {
                sunImage.source = sunAsset;
            }
            private function showMoon(  ):void
            {
                sunImage.source = moonAsset;
            }