Skip to main content
Participant
August 15, 2015
Question

"AudioPlaybackMode" is not recognized in my as3 code

  • August 15, 2015
  • 1 reply
  • 387 views

When I write the code:

import flash.media.AudioPlaybackMode;

SoundMixer.audioPlaybackMode = AudioPlaybackMode.AMBIENT;

"AudioPlaybackMode" is not highlighted... Im running Air !8 in Flash CS6 on a mac.

When I install the app on my iPhone and iPad...this code works. But  when i try and open the swf on my desktop the app crashes...I get Error#1065:Variable flash.media::AudioPlaybackMode is not defined

I have a feeling this is the cause for my app to be rejected from apple...

Anybody else have this problem? How can I fix this?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
August 15, 2015

whenever you get an apple reject, make sure you're using the latest air sdk.

as of today, you should be using air 18.0.0.199.  Archived Adobe AIR SDK versions

LizzylooAuthor
Participant
August 15, 2015

Im using the air  18.0.0.199....maybe i didn't install properly....thank you for your quick response .....