variable(s)
private var item:Sprite;
[Bindable] private var drawing:Boolean = false;
[Bindable] private var mode:uint = 0;
private var beginX:Number = 0;
private var beginY:Number = 0;
private var hold:UIComponent = null;
private function init():void {
if (Application.application.parameters.config) {
config = Application.application.parameters.config;
}
urlLoader.addEventListener(Event.COMPLETE,loaded);
urlLoader.load(new URLRequest(config));
}
private function loaded(e:Event):void{
xml = new XML(e.target.data);
button = xml..button.@text;
message = xml..button.@panel;
hello = xml..button;
if (xml..video.@source) { video.source = xml..video.@source; }
if (xml..video.@volume) { video.volume = xml..video.@volume; }
//if (xml..video.@width) { video.width = xml..video.@width; }
//if (xml..video.@height) { video.height = video.height * xml..video.@height; }
//video.volume = xml..video.@volume;
//source = xml..video.@source;
//note.text = video.source + " " + video.volume + " " + video.height;
//video.source = source;
video.play();
//trace(xml);
video.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
video.addEventListener(MouseEvent.MOUSE_UP, onMouseUp)
video.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
}
private function handler ( event:MouseEvent ):void
{
//field.text = hello;
}