Adobe air打开ipad Photo并将图像加载到movieClip

时间:2012-03-30 02:58:32

标签: actionscript-3 air

有没有办法让文件参考在ipad下工作?

文件参考适用于flash和andriod平板电脑,但不适用于ipad。

/**
        * uploadNewBackground
        *
        * Sets up the position for the panel container and add Event Listener to 
        * all the buttons for different categories and also container a listener
        * for the zoom in and out function
        */      
        private function uploadNewBackground(e:MouseEvent):void{
            var imageFileTypes:FileFilter = new FileFilter("Images (*.jpg, *.png)", "*.jpg;*.png"); 

            _file = new FileReference();
            _file.browse([imageFileTypes]);
            _file.addEventListener(Event.SELECT, selectFile);
        }

1 个答案:

答案 0 :(得分:2)