On 3/8/16, 3:37 AM, "kinjal patel" <[email protected]> wrote:
>Hello, > > How to detect device using FlexJS. We don't have this in FlexJS yet. Would you like to be the person to write it? > >Could not find file for class: flash.system.Capabilities >File not found: flash.system.Capabilities I am hoping there will not be a need for any flash.*.* classes in a FlexJS application so you can use "import flash." as a clue that your code still has some Flash dependency. Folks writing components will need to use "import flash.*.* in order to implement an API against the Flash Player, but application writers should be abstracted from Flash by FlexJS components. Regarding device detection and other things in flash.system.Capabiiities. My current plan (and it doesn't have to be this way) is to create org.apache.flex.utils.* classes to wrap up chunks of functionality from Capabilities. So there would some day be an I18nUtils.as in the Core project in org/apache/flex/utils to wrap Capabilities.language, a ScreenUtils.as to wrap up the screen properties, etc. Would you like to try writing DeviceUtils.as? We'll be happy to help. -Alex
