Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
Thanks Karl, the player script you suggested worked for me Thanks Sidney for suggesting shared Objects, that resolved my other issue of maintaining player play/pause state. Regards Rajiv On Sat, Jun 6, 2009 at 4:52 PM, Karl DeSaulniers k...@designdrumm.comwrote: Would it be out of the question to have the audio player open in it's own window? Or have your HTML pages load in an Iframe and have the audio player sitting outside that Iframe? Then you stay at one page while still loading your other HTML and your player stays put. :) Just a thought. There is a way to send a variable in the URL too. Something like: http://website.com/page.html?variable=value Then have a script that reads that value back to the player. I think this may be the hard way though. GL Karl Sent from losPhone On Jun 6, 2009, at 12:30 AM, Rajiv Seth (Pixeldust) pixels.ra...@gmail.com wrote: Hi Karl, Thanks a lot for help. I am using AS2.0 only. But this solves half of the problem. Suppose if I navigate away from this page to some other page having same player embedded. Now how player will recognize that user has paused it in previous page? That means I have to send some variable out to web page when user pauses it. Any idea? On Fri, Jun 5, 2009 at 5:44 PM, Karl DeSaulniers k...@designdrumm.com wrote: That is AS2 and goes inside your flash file along with the button to play and pause.. BTW Not sure how or if it works with AS3 if that is what your programing with. Someone may be able to make a conversion? Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jun 5, 2009, at 6:59 AM, Rajiv Seth (Pixeldust) wrote: Hi, I need to create a simple flash audio player with play, pause (and/or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
Would it be out of the question to have the audio player open in it's own window? Or have your HTML pages load in an Iframe and have the audio player sitting outside that Iframe? Then you stay at one page while still loading your other HTML and your player stays put. :) Just a thought. There is a way to send a variable in the URL too. Something like: http://website.com/page.html?variable=value Then have a script that reads that value back to the player. I think this may be the hard way though. GL Karl Sent from losPhone On Jun 6, 2009, at 12:30 AM, Rajiv Seth (Pixeldust) pixels.ra...@gmail.com wrote: Hi Karl, Thanks a lot for help. I am using AS2.0 only. But this solves half of the problem. Suppose if I navigate away from this page to some other page having same player embedded. Now how player will recognize that user has paused it in previous page? That means I have to send some variable out to web page when user pauses it. Any idea? On Fri, Jun 5, 2009 at 5:44 PM, Karl DeSaulniers k...@designdrumm.comwrote: That is AS2 and goes inside your flash file along with the button to play and pause.. BTW Not sure how or if it works with AS3 if that is what your programing with. Someone may be able to make a conversion? Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jun 5, 2009, at 6:59 AM, Rajiv Seth (Pixeldust) wrote: Hi, I need to create a simple flash audio player with play, pause (and/ or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Audio Player play/pause state: PLEASE HELP
Hi, I need to create a simple flash audio player with play, pause (and/or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
Here you go.. :) //var loopTune:Sound = new Sound(); You can change this variable to what ever you have as the new Sound() var soundPosition:Number = 0; function stopPlaying() { loopTune.stop(); musicPlays = false; return (musicPlays); } function startPlaying() { if (musicPlays == false) { musicPlays = true; loopTune.start(soundPosition, 0); } return (musicPlays); } function pausePlaying() { if (this.loopTune.position 0) { soundPosition = loopTune.position / 1000; } stopPlaying(); } /*- Start/Stop Song Button Script -*/ function playStop() { if (musicPlays == true) { pausePlaying(); } else if (musicPlays == false) { startPlaying(); } } HTH Karl DeSaulniers Design Drumm http://designdrumm.com On Jun 5, 2009, at 6:59 AM, Rajiv Seth (Pixeldust) wrote: Hi, I need to create a simple flash audio player with play, pause (and/ or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
Hi Rajiv, Take a close look at the SharedObject, this is basicaaly a Flash cookie written on the users side and you can read it out when ever you need. Hope this helps, Sid On Jun 5, 2009, at 1:59 PM, Rajiv Seth (Pixeldust) wrote: Hi, I need to create a simple flash audio player with play, pause (and/ or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
That is AS2 and goes inside your flash file along with the button to play and pause.. BTW Not sure how or if it works with AS3 if that is what your programing with. Someone may be able to make a conversion? Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jun 5, 2009, at 6:59 AM, Rajiv Seth (Pixeldust) wrote: Hi, I need to create a simple flash audio player with play, pause (and/ or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
Thanks Sid, Can you give any example to use SharedObject. I have not used it before. Rajiv On Fri, Jun 5, 2009 at 5:44 PM, Sidney de Koning sid...@funky-monkey.nlwrote: Hi Rajiv, Take a close look at the SharedObject, this is basicaaly a Flash cookie written on the users side and you can read it out when ever you need. Hope this helps, Sid On Jun 5, 2009, at 1:59 PM, Rajiv Seth (Pixeldust) wrote: Hi, I need to create a simple flash audio player with play, pause (and/or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Sidney de Koning - be a geek, in rockstar style! Flash / AIR Developer @ www.funky-monkey.nl Technical Writer @ www.insideria.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Audio Player play/pause state: PLEASE HELP
Hi Karl, Thanks a lot for help. I am using AS2.0 only. But this solves half of the problem. Suppose if I navigate away from this page to some other page having same player embedded. Now how player will recognize that user has paused it in previous page? That means I have to send some variable out to web page when user pauses it. Any idea? On Fri, Jun 5, 2009 at 5:44 PM, Karl DeSaulniers k...@designdrumm.comwrote: That is AS2 and goes inside your flash file along with the button to play and pause.. BTW Not sure how or if it works with AS3 if that is what your programing with. Someone may be able to make a conversion? Best, Karl DeSaulniers Design Drumm http://designdrumm.com On Jun 5, 2009, at 6:59 AM, Rajiv Seth (Pixeldust) wrote: Hi, I need to create a simple flash audio player with play, pause (and/or volume control). It will be added to a web page. Now the problem is if a user pauses the player, I need to retain its paused state between web pages untill he decides to play it again. And if he plays it and navigates to some other page using simple anchor (non flash), then audio should automatically play untill he pauses it. My idea is to store play/pause state in some variable (or XML), so that state can be maintained. BUT I do not know how to do it. CAN ANYONE HELP? Rajiv ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders