Skip to main content
Participant
May 8, 2011 7:18 PM UTC
Question

NativeApplication.nativeApplication.systemIdleMode

When I use:

NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;

I get:

Scene 1, Layer 'Layer 1', Frame 1, Line 1 1120: Access of undefined property NativeApplication.

Scene 1, Layer 'Layer 1', Frame 1, Line 1 1120: Access of undefined property SystemIdleMode.

Where is the problem?

Thank you!

This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

Participant
Dec 18, 2014 12:29 PM UTC

import following

import flash.desktop.NativeApplication;

import flash.desktop.SystemIdleMode;

Translate
Participant
Jan 22, 2015 7:23 PM UTC

I'm using Air 13.0 and when I go to import either of those, they're missing from the package.

The only classes that appear in flash.desktop are related to Clipboard.

Any idea why they wouldn't be there?

Translate
User Unknow
Legend
Jan 22, 2015 8:07 PM UTC

1) Do you use Flash Professional or not? Give full app version please

2) Update your AIR SDK from this page http://labs.adobe.com/downloads/air.html

Translate