Stop IPhone Playing Music When My App Starts?

Jan 14, 2012

I have produced an app for iOS but when it loads the music from the iPhone doesn't stop.
 
I have read on forums that if an app contains sounds that the iPod will fade out but it doesn't for me.  I have tried loading the sounds dynamically (these sounds don't play at all if the iPod is playing) and embedding them into the movie.  Nothing seems to work sadly.  I have ensured that I have all the recent updates for flash and the air packager and I can't find a solution to this anywhere.

View 1 Replies


Similar Posts:


Actionscript 2.0 :: Stop Music Playing In One Swf When Another Swf Starts?

Oct 26, 2010

On my main SWF Home File i have 2 swf files are loaded into my (main home swf) and everything is runing smooth BUT the problem is when i want to watch the video the music is still playing i have to click on the button to stop music playing.

what i want is when i click on the video to play i want automatically the music to stop playing with out me clicking the mp3 button to stop the music playing.

NOTEKeep in mind i have 2 SWF files that are loaded in to the main swf file ...Home SWF is the main file

MP3 SWF << Loads on Home SWF
Video SWF << Loads on Home SWF

All i want is when the video is playing automatically stop the music and when the video is finish the music automatically continuing from where it was left.

View 1 Replies

ActionScript 2.0 :: Music To Continue Playing But The GetURL Function Seems To Stop The Music

Dec 13, 2005

When the movies performs the getURL action, I want the music to continue playing, but the getURL function seems to stop the music at frame 152 (where the getURL action is placed), when I wanted the music to continue to frame 257 (the end of the movie). I hope I've explained this clearly

View 3 Replies

Professional :: Stop Background Music When Flv Starts AS2?

Apr 7, 2011

I have a flash game that I have videos between some, but not all questions.I would like to have background music that would play during the questions then mute, or turn off when the video is played, then turn back on when video is completed.If possible, but not required, a mute button could be created that would mute the music and would overide it turning back on as well.In other words the person takes the quiz, when the video plays it shuts off the music and starts it back up when video ends. And if possible, if they select to mute the music before the video plays it will not restart after the video completes.I did this in actionscript 2. The questions are on frames 1-50, the videos are on frames 100-110.I have it set up when a question is answered it goes to the video then back to the next frame for questions when it completes.

View 1 Replies

ActionScript 2.0 :: Stop Website Music / When Clip Starts To Play

May 18, 2010

when you play the short clips the sound of the site keeps playing in the background and the sound of the video plays over the top. Is there anyway to stop the website music when the clip starts to play and when stop or the clip finishes the website sound starts to play again. So you know what I mean the website is URL...

View 1 Replies

Stop Music Playing On My Website?

Apr 30, 2010

I've agreed to helping a friend out to make a few changes to her website.

One of the things I need to do is make the music turn off when you click 'musicff'. It doesn't work at the minute and for the life of me I can't seem to figure it out. Below is the coding on one of the frames [code]...

View 14 Replies

ActionScript 3.0 :: How To Stop Music Playing Automatically

Jul 9, 2009

I've used a example mp3 lpayer built in flash to put on my website. I've tweaked it so that it fits my design and it seems to work ok. The problem is the music starts playing automatically where ideally i want it to play when the user hits the play button.

Below is the actionscript, can any1 tell me how to stop it playing as soon as the flah file loads?

ActionScript Code:
// Flash MP3 Player XML
// Developed by [url]www.flashmo.com[/url]
import mx.transitions.Tween;
import mx.transitions.easing.*;

[code]....

View 2 Replies

ActionScript 3.0 :: Stop Music Playing Automatically?

Oct 27, 2009

i am trying to stop the music playing straight away, and instead only when the button is clicked.

Code:
//Stop at this frame
stop();
//Create a new sound object

[code]....

View 2 Replies

ActionScript 3.0 :: Stop Music Playing Straight Away?

Nov 2, 2009

i am trying to stop the music playing straight away, but instead only when the button is clicked.

Code:
stop();
//Stop at this frame
var music:Sound = new Sound()

[Code].....

View 6 Replies

ActionScript 2.0 :: Stop Music From Playing OnLoad?

Jun 23, 2010

I have a pretty easy question for you Flash gurus regarding a script I am using toplay MP3s via an XML file. The example I found does the job just fine, but it plays the 1st song right away when it loads. I would like to stop the song from playing on load and let the user activate it by pushing the play button instead.[code]...

View 2 Replies

ActionScript 3.0 :: When Clicking To Go To Another Section / Stop Music From Playing

Nov 19, 2010

This is the code I'm using with mp3 sound. I looking for some code when I click off, the music stops playing.[code]

View 3 Replies

Actionscript 2.0 :: Music To Stop Playing When Entering A New Scene?

Jan 3, 2009

here is a slightly modified version of a mp3 player that i want to stop playing when you go to another scene. i tried making the back button call the same function that pauses the music when you hit the pause button butp.s. the code for the back button is on the button

var s:Sound = new Sound();
s.onSoundComplete = playSong;
s.setVolume(75);

[code]....

View 1 Replies

Actionscript 3.0 :: Stop The Music From Playing When You Exit That Frame?

Jan 22, 2009

i am building a flash web site using the goto and stop method, with each "page" of the website being a different frame. on one page i have a music player, and it all works fine, and if you press stop before leaving that "page" or frame it all works well.the problem i've run into is if you go to another frame while the music player is still playing the music continues playing and when you go back to the frame the music player is on and press stop it doesnt do anything and if you press play it will start playing the song again with both songs playing over eachother.how to stop the music from playing when you exit that frame. here's the code for the music player:

Code: Select all//Music Player
var musicReq:URLRequest;
var music:Sound = new Sound();[code]..............

View 1 Replies

ActionScript 2.0 :: Stop Music Playing In Audio Player Automatically?

Jun 20, 2010

I'm by no means up on my AS at all and this MP3 player I've had for a while and just readjusted to suit my needs.

One thing i really want to change is the fact the music starts automatically. I changed line 38 from True to False which does indeed stop the music playing on load but instead i get "Loading" and it doesn't do anything after that. Hitting play won't work.[code]...

View 5 Replies

ActionScript 2.0 :: Stop Music Playing Audio Player Automatically?

Jun 19, 2010

I'm by no means up on my AS at all and this MP3 player i've had for a while and just readjusted to suit my needs.

One thing i really want to change is the fact the music starts automatically. I changed line 38 from True to False which does indeed stop the music playing on load but instead i get "Loading" and it doesn't do anything after that. Hitting play won't work.

Code:
stop();
playlist = new XML();
playlist.ignoreWhite = true;

[Code].....

View 3 Replies

Iphone :: Screen Lock & Sound Stop IPhone Dev (FLASH CS5.5)

Jun 29, 2011

I'm trying to create iphone apps using Flash CS5.5 and I have a doubt... I just created a simple app which plays a long sound (more than 5 min).

When the phone auto-locks, my sounds stop. If I unlock the phone, my audio resumes...

How could I do to avoid the lock, or dont interrupt the sound when the device auto-lock?

View 1 Replies

ActionScript 2.0 :: Music Separate From Flash File / Still Have Start Stop Music Buttons?

Oct 11, 2009

I want a site to have background music, but when I attach the music to the file it makes it quite large ...3 meg and the site is slow to load. Is there any way of having the music separate from the flash file and still have start stop music buttons?

View 2 Replies

Movie Clips And Background Music - Unable To Stop Music At The End Of The Animation?

Apr 30, 2011

I'm working on an animation where I have my "dog" fighting the evil vacuum cleaner. I got most of it to work the way I want it to.

1) I have movie clips entitled pepper_mc (where my dog is supposed to be walking), swirl (where a swirly-type symbol is supposed to spin over the dead vacuum's head), and vacuum_mc (where the evil vacuum is supposed to have a swinging arm (called vacuumarm_mc) that I created using the bone tool). When I add them to the stage and test them, the animations within the movie clips don't happen.

2) I have background music that I'd like to stop playing at the end of the animation, but I'm not sure how to do that. (using the stop(); actionscript doesn't help).Where am I going wrong? I'm using Flash Pro CS5.

Here's the file --> Pepper and the Vacuum of DOOM!

View 1 Replies

ActionScript 1/2 :: When File Loads In The Browser - Music Immediately Plays And Loops Until Click A Button To Stop The Music

Mar 30, 2009

I downloaded a flash template and have modified it to suit our company but there is something that I can't do. When the file loads in the browser, music immediately plays and loops until you click a button to stop the music. On our video page, we have video
that we need to play that has sound in it. How do I get the background music to stop when my video plays without having to go up and stop the music manually. The videos are loaded via an external XML document and there are no buttons in the FLA file to link code to. the website is [URL]

View 4 Replies

ActionScript 2.0 :: Music Is On Loop But Starts Over Itself When Change Frame?

Apr 30, 2009

[URL]

I followed it exactly and the button worked fine with the music,

but then i stated to add keyframes, it works fine carys on playing on every keyframe i go to, but the problem is when i go back to the first keyframe the music still goes on which is good, but its starts again over the one thats already playing!

View 2 Replies

ActionScript 3.0 :: Stop Class File From Automatically Starting And How To Stop It After It Starts?

Oct 13, 2011

How do I stop a class file from automatically inserting itself into the .fla file. I want to insert it manually into a frame, and then tell it to stop after I leave the frame.The following is the code included in my .as file.

ActionScript Code:
package {
import flash.display.*;
import flash.events.*;[code].........

View 3 Replies

Flash :: Write An Application That Plays Music In The Background On IOS Using Adobe Packager For IPhone?

Feb 2, 2011

I would like my application to be able to remain running while the user goes and uses another application. (It will be playing music) Additionally, how to communicate w/ Cocoa Touch from this environment?

If you think this is not possible, which platforms are capable of this (other than the obj-c mac x-code route, which I am trying to avoid)?

View 1 Replies

ActionScript 3.0 :: SWF Starts Playing Before Getting Loaded?

Jul 19, 2011

I'm using the following script to load external swf's in to a main swf, but when I simulate download, the sound of the external swf starts playing before it is completely loaded, i.e, when the percentage in the bandwidth profiler reaches about 60% the sound of the swf being loaded can be heard, and when the percent reaches 100, it continues playing and the content of the external swf are now visible.

var myLoader1:Loader = new Loader();
addChild(myLoader1);
var myRequest1:URLRequest = new URLRequest("myMovie.swf");
myLoader1.load(myRequest1);

[Code]....

View 9 Replies

IDE :: File Starts Playing At Last Frame Of Mc?

Nov 2, 2009

Weird problem going on right now. And I seriously don't know what this is about.

On my main timeline (new document)

I create a text. I convert that text to an image. I drag that image on my main timeline at frame 1.

Then I set opacity to 0%. Create a keyframe at frame 50. Then I Tween it. And at frame 50, I set opactity back to 100%.

When I test the movie (ctrl enter) it just doesnt show the tween AT ALL. It goes straight to the last frame.

When I just go to frame 1, and press enter. It does work like it's supposed to.

View 3 Replies

ActionScript 3.0 :: Hiding A Preview Once Video Starts Playing?

Mar 26, 2010

I am trying to hide a preview that I inserted with some AS3. The preview works and I use this code to create it.

var preview:Loader = new Loader ();loadPreview (preview, "gotgame.png");
addChild(movie_flv);
function loadPreview (loader:Loader, previewFile:String) :void {var u:URLRequest = new

[code]......

View 1 Replies

ActionScript 3.0 :: Bulkloader Starts Playing Swf Even Loading Not Finished?

Apr 28, 2010

i am loading some external swfs with the bulkloader. The strange thing, they start playing in the background ( i can hear the sound) without even having added them to the stage.

Here is my code:

ActionScript Code:
public function init():void
{
bLoader = new BulkLoader("bLoader");

[Code].....

View 0 Replies

ActionScript 2.0 :: Mc To Move Onto Frame 2 When An Imported Mp3 Starts Playing

Jul 16, 2003

i want a mc to move onto frame 2 when an imported mp3 starts playing. i've found :

[Code]...

View 7 Replies

Php :: Stop A Player When Another Starts?

Mar 23, 2011

I have multiple players on the same page (flash as3), but I would like, that when a player is playing, stops, when another player begins to play...

View 2 Replies

Actionscript 3 :: Flash : Loading Bar Not Finished When Movie Starts Playing?

Mar 24, 2010

I'm using the same code I always use for preloading another swf but it's not working this time. The problem this time is that when the loading bar gets to 16% every time you can hear the movie I'm loading playing in the background. I can just add a stop to the first frame of the movie I'm loading ("trial_1.swf") but how do I tell it to go to the second frame once it has loaded?

Here's my code:

var myrequest:URLRequest=new URLRequest ("trial_1.swf");
var myloader:Loader = new Loader();
myloader.load(myrequest);

[code]....

View 1 Replies

ActionScript 3.0 :: When Click The Next Button The Current Track Keeps Playing While The Next One Starts

Apr 9, 2009

I'm making a mp3 player using flash. when i test the movie it starts playing fine but when i click the next button the current track keeps playing while the next one starts. plus the stop button it's not working. here is the code.

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved