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

hello i need help in sound adding for flash application project i will explain : i making app for iPad and i need two sounds for background use for when i click its able to turn on/off its about background sound and dubbing sound. my project is a children

New Here ,
Jun 28, 2015 Jun 28, 2015

hello i need help in sound adding for flash application project i will explain : i making app for iPad and i need two sounds for background use for when i click its able to turn on/off its about background sound and dubbing sound. my project is a children book for iPad if anyone can please help me in how i making the sound work as i want Thank you

TOPICS
ActionScript
322
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 ,
Jun 28, 2015 Jun 28, 2015

add a sound file to your library and assign it a class name, eg BG_Sound1.

you can then use:

var bg_Sound1:BG_Sound1 = new BG_Sound1();

var bg_Sound1_sc:SoundChannel;

toggle_bgSound1.addEventListener(MouseEvent.MOUSE_DOWN,bgSound1F);

function bgSound!F(e:MouseEvent):void{

if(!bg_Sound1_sc){

bg_Sound1_sc = bg_Sound1.play();

} else {

bg_Sound1_sc.stop();

bg_Sound1_sc = null;

}

}

likewise for your 2nd sound.

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 ,
Jun 28, 2015 Jun 28, 2015

its works for an i pad ? because i tried to do what u sent and did not work

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 ,
Jun 29, 2015 Jun 29, 2015
LATEST

did you test in flash pro first?

and for stopping your sound see your other thread.

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 ,
Jun 28, 2015 Jun 28, 2015

i have 2 scene in the firsts one i have sound and when i get to the second scene i want the sound from scene 1 to stop how can i do that ?

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
Enthusiast ,
Jun 29, 2015 Jun 29, 2015

Scenes are awful and you should never use them. What kglad said will work across all devices...

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