It depends on the purpose of the compilation: I am going to assume that you are compiling CPP (Windows EXE). In this case, you should simply use the following:
import flash.system.System;
I canβt check right now, so I donβt know what effect this will have on Flash (i.e. you may need to wrap it in a conditional compilation flag for cpp), but I know that it will not work for iOS.
source share