Announcements
The Scaleform forum is now read-only. Please head to the Gamedev site for product support.
Scaleform Forum (Read Only)
Scaleform enables developers to leverage the power of the Adobe® Flash® tool set to create powerful user interface environments for video games.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unity swf play audio question

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Anonymous
678 Views, 4 Replies

Unity swf play audio question

I add an audio into flash for button toggle,like this picture,

 

In pc and Mac,i can listen the audio when button down.

 

But in the iOS(iphone、iPad),i can't  listen the audio.

 

Can help me the question? thanksaudio.jpg

4 REPLIES 4
Message 2 of 5
adam.petrone
in reply to: Anonymous

Hello wesleyhuang,

 

This is a bit of a problem on iOS. We haven't found a solution to this yet.

If you look in the debugging output when running, you'll probably see something similar to this, which is where it fails on init.

 

 

Error: FMOD error: (60) Error initializing output device. . No sound will be playing.

We'll have to resolve this in a future update.

Message 3 of 5
Anonymous
in reply to: adam.petrone

Thank you,

Hope can use the fix soon~

Smiley LOL

Message 4 of 5
adam.petrone
in reply to: Anonymous

As an alternative, you can forward events to Unity and trigger sounds there.

 

 

Message 5 of 5
Anonymous
in reply to: Anonymous

We had FLAs with audio on the timeline as well. We removed the audio. Set the export name in Flash. Then created a keyframe on the timeline

with a single line of AS3 code to start the sound.

 

If you label that keyframe and if you use a new layer then it is relative easy to see where the sounds are. This works on Android, you can keep the sound inside the SWF so you don't have to load it from SWF (as MP3) or by Unity.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report