Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

"AudioPlaybackMode" is not recognized in my as3 code

New Here ,
Aug 15, 2015 Aug 15, 2015

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.

Screen Shot 2015-08-15 at 10.16.13 AM.png

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?

TOPICS
ActionScript
372
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 15, 2015 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 15, 2015 Aug 15, 2015

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 15, 2015 Aug 15, 2015
LATEST

I uninstalled Air 18.0.0.199 and reinstalled it....i followed the directions on uninstall and install from the link u sent me...still flash file does not recognize "AudioPlaybackMode" in my flash file. I even reinstalled and updated my flash program....I just don't see why i can't use the AudioPlaybackMode feature..

Im going crazy!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines