문제

I want to make my adobe air application that uses some data like (xml, png, ...) works only if the CD ROM exist ! means after installation the user must put the CD and run the app from the icon on desktop ! is it possible with flash/as3 ? thank you

도움이 되었습니까?

해결책

you can do a little trick, at the launch of the app you can search for a file on that cdrom and show an alert if you don't find it. Here a simple way of getting all drives of the user computer:

var list:Array = File.getRootDirectories();

the list array contain File objects relative of all drives in the computer, afeter that you can search for a file inside the root of the drive or somewhere else.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top