Re: [Flashcoders] Runtime error

2006-05-17 Thread Ejoe Latrik

Is it shoutcast stream or icecast stream?
Flash plugin don't work with shoutcast.

Ejoe

Asai a écrit :
Right, I don't know if this is the best advice by any means, but when 
a situation like that happens in the IDE and if it doesn't run in 
certain copies of IE, you may want to reconsider using that particular 
IP.  It may be less of a headache in the short term and in the long 
run. I tested it and, yeah, it just crashed Flash completely.  There 
may be other work arounds.  Again, I would advise finding a more 
specific URL for that stream if at all possible, but I'm no expert.


At 10:09 AM 5/16/2006, you wrote:
We were told by Live365 that that is the best IP to use and that it 
resolves
to a single stream. The exported movie plays in Firefox, but the 
problem of
testing the movie in the IDE still happens and it doesn't play in all 
the
copies of IE we are running.  The commented out code you can see 
shows the

previous URL for use.

On 6/16/06, Asai [EMAIL PROTECTED] wrote:


It seems the problem is that where you're using this code:

  radio.loadSound(http://216.235.91.30:80,true);

is what is crashing it.  You've got to be more specific about what it
is you're wanting to load, like http://216.235.91.30:80/yourSound.mp3

Flash can't load an entire IP. ;-)

At 09:22 AM 5/16/2006, you wrote:
Thanks, Asai. We just tried to test in another copy of Flash and still
got
that crash. Here's my code. Something may have changed that we 
can't see:


System.security.allowDomain(http://216.235.91.30;);
//System.security.allowDomain(http://www.live365.com/;);
var up:Boolean = false;
var reloadInt:Number;
function createLoaderText(output){
_root.createEmptyMovieClip(loader_mc,1000);
loader_mc.createTextField(p_txt,1100,60,6,160,20);
loader_mc.p_txt.text = output;
var loadingFmt:TextFormat = new TextFormat();
loadingFmt.font = My Font;
loadingFmt.color = 0xFF9900;
loadingFmt.bold = true;
loader_mc.p_txt.embedFonts = true;
loader_mc.p_txt.setTextFormat(loadingFmt);
loader_mc.onEnterFrame = function(){
if(up == false){
this.p_txt._alpha -= 5;
if(this.p_txt._alpha = 0){
up = true;
}
}else{
this.p_txt._alpha += 5;
if(this.p_txt._alpha = 100){
up = false;
}
}
}
}
var radio:Sound = new Sound();
var volume:Number = 50;
var marker:MovieClip = volume_mc.slider_mc;
var volTrackFactor = volume_mc.track_mc._width/100;
var stopped:Boolean = false;
var trackLoaded:Boolean;
vumeter_mc.stop();
function playRadio(){
radio.stop();
delete radio;
if(!loader_mc){
createLoaderText(loading);
}
mute_mc.gotoAndStop(1);
volume_mc.slider_mc._x = volume_mc.track_mc._x +
volume_mc.track_mc._width/2 - 10;
stopped = false;
radio = new Sound();
radio.setVolume(volume);
radio.loadSound(http://216.235.91.30:80
,true);//http://216.235.91.30:80
OR http://www.live365.com/play/signonsandiego/pro
stop1_btn.enabled = true;
stop1_btn._alpha = 100;
play1_btn.enabled = false;
play1_btn._alpha = 30;
var lastPosition = 0;
vumeter_mc.onEnterFrame = function(){
if(radio.position  1  stopped==false  radio.position 
lastPosition){
lastPosition = radio.position;
clearInterval(reloadInt);
loader_mc.removeMovieClip();
vumeter_mc.play();
}else{
if(!loader_mc){
createLoaderText(buffering);
}
vumeter_mc.gotoAndStop(1);
}
}
reload();
}
function stopPlay(){
delete vumeter_mc.onEnterFrame;
clearInterval(reloadInt);
loader_mc.removeMovieClip();
mute_mc.gotoAndStop(1);
vumeter_mc.gotoAndStop(1);
stopped = true;
radio.stop();
play1_btn.enabled = true;
play1_btn._alpha = 100;
stop1_btn.enabled = false;
stop1_btn._alpha = 30;
}
play1_btn.onRelease = playRadio;
stop1_btn.onRelease = stopPlay;
marker.onPress = function ():Void {
this.startDrag(false, 0, this._y, volume_mc.track_mc._width-10,
this._y);
this.onMouseMove = function():Void {
mute_mc.gotoAndStop(1);
volume = Math.floor(this._x/volTrackFactor);
radio.setVolume(volume);
updateAfterEvent();
}
}
marker.onRollOver = function(){
marker.gotoAndStop(2);
}
marker.onRollOut = function(){
marker.gotoAndStop(1);
}
marker.onRelease = marker.onReleaseOutside = function():Void {
this.stopDrag();
delete this.onMouseMove;
}
var mute:Boolean = false;
mute_mc.onRollOver = function(){
mute_mc.gotoAndStop(2);
}
mute_mc.onRollOut = function(){
if(mute){
mute_mc.gotoAndPlay(3);
}else{
mute_mc.gotoAndStop(1);
}
}
mute_mc.onRelease = function(){
if(mute==true){
mute_mc.gotoAndStop(1);
mute = false;
marker._x = volume_mc.track_mc._x +
(volume_mc.track_mc._width/(100/volume));
radio.setVolume(volume);
   

Re: [Flashcoders] Runtime error

2006-05-17 Thread Ejoe Latrik
the code below works on my computer (xp sp1 - centrino 1.6Ghz - 512Mo 
RAM - Flash MX 2004 IDE )


radio = new Sound();
radio.setVolume(100);
radio.loadSound(http://216.235.91.30:80,true);


Maybe it's a probleme with the onEnterFrame function(infinite loop or 
something?)


Ejoe

Asai a écrit :
Right, I don't know if this is the best advice by any means, but when 
a situation like that happens in the IDE and if it doesn't run in 
certain copies of IE, you may want to reconsider using that particular 
IP.  It may be less of a headache in the short term and in the long 
run. I tested it and, yeah, it just crashed Flash completely.  There 
may be other work arounds.  Again, I would advise finding a more 
specific URL for that stream if at all possible, but I'm no expert.


At 10:09 AM 5/16/2006, you wrote:
We were told by Live365 that that is the best IP to use and that it 
resolves
to a single stream. The exported movie plays in Firefox, but the 
problem of
testing the movie in the IDE still happens and it doesn't play in all 
the
copies of IE we are running.  The commented out code you can see 
shows the

previous URL for use.

On 6/16/06, Asai [EMAIL PROTECTED] wrote:


It seems the problem is that where you're using this code:

  radio.loadSound(http://216.235.91.30:80,true);

is what is crashing it.  You've got to be more specific about what it
is you're wanting to load, like http://216.235.91.30:80/yourSound.mp3

Flash can't load an entire IP. ;-)

At 09:22 AM 5/16/2006, you wrote:
Thanks, Asai. We just tried to test in another copy of Flash and still
got
that crash. Here's my code. Something may have changed that we 
can't see:


System.security.allowDomain(http://216.235.91.30;);
//System.security.allowDomain(http://www.live365.com/;);
var up:Boolean = false;
var reloadInt:Number;
function createLoaderText(output){
_root.createEmptyMovieClip(loader_mc,1000);
loader_mc.createTextField(p_txt,1100,60,6,160,20);
loader_mc.p_txt.text = output;
var loadingFmt:TextFormat = new TextFormat();
loadingFmt.font = My Font;
loadingFmt.color = 0xFF9900;
loadingFmt.bold = true;
loader_mc.p_txt.embedFonts = true;
loader_mc.p_txt.setTextFormat(loadingFmt);
loader_mc.onEnterFrame = function(){
if(up == false){
this.p_txt._alpha -= 5;
if(this.p_txt._alpha = 0){
up = true;
}
}else{
this.p_txt._alpha += 5;
if(this.p_txt._alpha = 100){
up = false;
}
}
}
}
var radio:Sound = new Sound();
var volume:Number = 50;
var marker:MovieClip = volume_mc.slider_mc;
var volTrackFactor = volume_mc.track_mc._width/100;
var stopped:Boolean = false;
var trackLoaded:Boolean;
vumeter_mc.stop();
function playRadio(){
radio.stop();
delete radio;
if(!loader_mc){
createLoaderText(loading);
}
mute_mc.gotoAndStop(1);
volume_mc.slider_mc._x = volume_mc.track_mc._x +
volume_mc.track_mc._width/2 - 10;
stopped = false;
radio = new Sound();
radio.setVolume(volume);
radio.loadSound(http://216.235.91.30:80
,true);//http://216.235.91.30:80
OR http://www.live365.com/play/signonsandiego/pro
stop1_btn.enabled = true;
stop1_btn._alpha = 100;
play1_btn.enabled = false;
play1_btn._alpha = 30;
var lastPosition = 0;
vumeter_mc.onEnterFrame = function(){
if(radio.position  1  stopped==false  radio.position 
lastPosition){
lastPosition = radio.position;
clearInterval(reloadInt);
loader_mc.removeMovieClip();
vumeter_mc.play();
}else{
if(!loader_mc){
createLoaderText(buffering);
}
vumeter_mc.gotoAndStop(1);
}
}
reload();
}
function stopPlay(){
delete vumeter_mc.onEnterFrame;
clearInterval(reloadInt);
loader_mc.removeMovieClip();
mute_mc.gotoAndStop(1);
vumeter_mc.gotoAndStop(1);
stopped = true;
radio.stop();
play1_btn.enabled = true;
play1_btn._alpha = 100;
stop1_btn.enabled = false;
stop1_btn._alpha = 30;
}
play1_btn.onRelease = playRadio;
stop1_btn.onRelease = stopPlay;
marker.onPress = function ():Void {
this.startDrag(false, 0, this._y, volume_mc.track_mc._width-10,
this._y);
this.onMouseMove = function():Void {
mute_mc.gotoAndStop(1);
volume = Math.floor(this._x/volTrackFactor);
radio.setVolume(volume);
updateAfterEvent();
}
}
marker.onRollOver = function(){
marker.gotoAndStop(2);
}
marker.onRollOut = function(){
marker.gotoAndStop(1);
}
marker.onRelease = marker.onReleaseOutside = function():Void {
this.stopDrag();
delete this.onMouseMove;
}
var mute:Boolean = false;
mute_mc.onRollOver = function(){
mute_mc.gotoAndStop(2);
}
mute_mc.onRollOut = function(){
if(mute){
mute_mc.gotoAndPlay(3);
}else{
mute_mc.gotoAndStop(1);
}
}
mute_mc.onRelease = function(){

Re: [Flashcoders] Runtime error

2006-05-16 Thread Asai
Nothing I've heard of, but that's not saying much.  Why don't you 
post the code?


At 09:10 AM 5/16/2006, you wrote:

Hello all,
I googled this, but could not find anything that would be of help. I am
trying to fix this MP3 player that I put up here recently, but now I am
getting a runtime error: The application has requested the runtime to
terminate in an unusual way.
What in the world is this? If you need me to post the code, I will, but just
wondered if it was something that you may have heard of. Thanks in advance
for any tips/directions to help.

--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
www.mindarc.com

---

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

---
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


---asai 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Runtime error

2006-05-16 Thread Jonathan Berry

Thanks, Asai. We just tried to test in another copy of Flash and still got
that crash. Here's my code. Something may have changed that we can't see:

System.security.allowDomain(http://216.235.91.30;);
//System.security.allowDomain(http://www.live365.com/;);
var up:Boolean = false;
var reloadInt:Number;
function createLoaderText(output){
   _root.createEmptyMovieClip(loader_mc,1000);
   loader_mc.createTextField(p_txt,1100,60,6,160,20);
   loader_mc.p_txt.text = output;
   var loadingFmt:TextFormat = new TextFormat();
   loadingFmt.font = My Font;
   loadingFmt.color = 0xFF9900;
   loadingFmt.bold = true;
   loader_mc.p_txt.embedFonts = true;
   loader_mc.p_txt.setTextFormat(loadingFmt);
   loader_mc.onEnterFrame = function(){
   if(up == false){
   this.p_txt._alpha -= 5;
   if(this.p_txt._alpha = 0){
   up = true;
   }
   }else{
   this.p_txt._alpha += 5;
   if(this.p_txt._alpha = 100){
   up = false;
   }
   }
   }
}
var radio:Sound = new Sound();
var volume:Number = 50;
var marker:MovieClip = volume_mc.slider_mc;
var volTrackFactor = volume_mc.track_mc._width/100;
var stopped:Boolean = false;
var trackLoaded:Boolean;
vumeter_mc.stop();
function playRadio(){
   radio.stop();
   delete radio;
   if(!loader_mc){
   createLoaderText(loading);
   }
   mute_mc.gotoAndStop(1);
   volume_mc.slider_mc._x = volume_mc.track_mc._x +
volume_mc.track_mc._width/2 - 10;
   stopped = false;
   radio = new Sound();
   radio.setVolume(volume);
   radio.loadSound(http://216.235.91.30:80,true);//http://216.235.91.30:80
OR http://www.live365.com/play/signonsandiego/pro
   stop1_btn.enabled = true;
   stop1_btn._alpha = 100;
   play1_btn.enabled = false;
   play1_btn._alpha = 30;
   var lastPosition = 0;
   vumeter_mc.onEnterFrame = function(){
   if(radio.position  1  stopped==false  radio.position 
lastPosition){
   lastPosition = radio.position;
   clearInterval(reloadInt);
   loader_mc.removeMovieClip();
   vumeter_mc.play();
   }else{
   if(!loader_mc){
   createLoaderText(buffering);
   }
   vumeter_mc.gotoAndStop(1);
   }
   }
   reload();
}
function stopPlay(){
   delete vumeter_mc.onEnterFrame;
   clearInterval(reloadInt);
   loader_mc.removeMovieClip();
   mute_mc.gotoAndStop(1);
   vumeter_mc.gotoAndStop(1);
   stopped = true;
   radio.stop();
   play1_btn.enabled = true;
   play1_btn._alpha = 100;
   stop1_btn.enabled = false;
   stop1_btn._alpha = 30;
}
play1_btn.onRelease = playRadio;
stop1_btn.onRelease = stopPlay;
marker.onPress = function ():Void {
   this.startDrag(false, 0, this._y, volume_mc.track_mc._width-10,
this._y);
   this.onMouseMove = function():Void {
   mute_mc.gotoAndStop(1);
   volume = Math.floor(this._x/volTrackFactor);
   radio.setVolume(volume);
   updateAfterEvent();
   }
}
marker.onRollOver = function(){
   marker.gotoAndStop(2);
}
marker.onRollOut = function(){
   marker.gotoAndStop(1);
}
marker.onRelease = marker.onReleaseOutside = function():Void {
   this.stopDrag();
   delete this.onMouseMove;
}
var mute:Boolean = false;
mute_mc.onRollOver = function(){
   mute_mc.gotoAndStop(2);
}
mute_mc.onRollOut = function(){
   if(mute){
   mute_mc.gotoAndPlay(3);
   }else{
   mute_mc.gotoAndStop(1);
   }
}
mute_mc.onRelease = function(){
   if(mute==true){
   mute_mc.gotoAndStop(1);
   mute = false;
   marker._x = volume_mc.track_mc._x +
(volume_mc.track_mc._width/(100/volume));
   radio.setVolume(volume);
   }else{
   mute_mc.gotoAndPlay(3);
   mute = true;
   radio.setVolume(0);
   marker._x = volume_mc.track_mc._x;
   }
}
playRadio();
function reload(){
   reloadInt = setInterval(function(){if(radio.position  1){stopPlay();
playRadio();}},6000);
}
stop();

On 6/16/06, Asai [EMAIL PROTECTED] wrote:


Nothing I've heard of, but that's not saying much.  Why don't you
post the code?



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Runtime error

2006-05-16 Thread Asai

It seems the problem is that where you're using this code:

 radio.loadSound(http://216.235.91.30:80,true);

is what is crashing it.  You've got to be more specific about what it 
is you're wanting to load, like http://216.235.91.30:80/yourSound.mp3


Flash can't load an entire IP. ;-)

At 09:22 AM 5/16/2006, you wrote:

Thanks, Asai. We just tried to test in another copy of Flash and still got
that crash. Here's my code. Something may have changed that we can't see:

System.security.allowDomain(http://216.235.91.30;);
//System.security.allowDomain(http://www.live365.com/;);
var up:Boolean = false;
var reloadInt:Number;
function createLoaderText(output){
   _root.createEmptyMovieClip(loader_mc,1000);
   loader_mc.createTextField(p_txt,1100,60,6,160,20);
   loader_mc.p_txt.text = output;
   var loadingFmt:TextFormat = new TextFormat();
   loadingFmt.font = My Font;
   loadingFmt.color = 0xFF9900;
   loadingFmt.bold = true;
   loader_mc.p_txt.embedFonts = true;
   loader_mc.p_txt.setTextFormat(loadingFmt);
   loader_mc.onEnterFrame = function(){
   if(up == false){
   this.p_txt._alpha -= 5;
   if(this.p_txt._alpha = 0){
   up = true;
   }
   }else{
   this.p_txt._alpha += 5;
   if(this.p_txt._alpha = 100){
   up = false;
   }
   }
   }
}
var radio:Sound = new Sound();
var volume:Number = 50;
var marker:MovieClip = volume_mc.slider_mc;
var volTrackFactor = volume_mc.track_mc._width/100;
var stopped:Boolean = false;
var trackLoaded:Boolean;
vumeter_mc.stop();
function playRadio(){
   radio.stop();
   delete radio;
   if(!loader_mc){
   createLoaderText(loading);
   }
   mute_mc.gotoAndStop(1);
   volume_mc.slider_mc._x = volume_mc.track_mc._x +
volume_mc.track_mc._width/2 - 10;
   stopped = false;
   radio = new Sound();
   radio.setVolume(volume);
   radio.loadSound(http://216.235.91.30:80,true);//http://216.235.91.30:80
OR http://www.live365.com/play/signonsandiego/pro
   stop1_btn.enabled = true;
   stop1_btn._alpha = 100;
   play1_btn.enabled = false;
   play1_btn._alpha = 30;
   var lastPosition = 0;
   vumeter_mc.onEnterFrame = function(){
   if(radio.position  1  stopped==false  radio.position 
lastPosition){
   lastPosition = radio.position;
   clearInterval(reloadInt);
   loader_mc.removeMovieClip();
   vumeter_mc.play();
   }else{
   if(!loader_mc){
   createLoaderText(buffering);
   }
   vumeter_mc.gotoAndStop(1);
   }
   }
   reload();
}
function stopPlay(){
   delete vumeter_mc.onEnterFrame;
   clearInterval(reloadInt);
   loader_mc.removeMovieClip();
   mute_mc.gotoAndStop(1);
   vumeter_mc.gotoAndStop(1);
   stopped = true;
   radio.stop();
   play1_btn.enabled = true;
   play1_btn._alpha = 100;
   stop1_btn.enabled = false;
   stop1_btn._alpha = 30;
}
play1_btn.onRelease = playRadio;
stop1_btn.onRelease = stopPlay;
marker.onPress = function ():Void {
   this.startDrag(false, 0, this._y, volume_mc.track_mc._width-10,
this._y);
   this.onMouseMove = function():Void {
   mute_mc.gotoAndStop(1);
   volume = Math.floor(this._x/volTrackFactor);
   radio.setVolume(volume);
   updateAfterEvent();
   }
}
marker.onRollOver = function(){
   marker.gotoAndStop(2);
}
marker.onRollOut = function(){
   marker.gotoAndStop(1);
}
marker.onRelease = marker.onReleaseOutside = function():Void {
   this.stopDrag();
   delete this.onMouseMove;
}
var mute:Boolean = false;
mute_mc.onRollOver = function(){
   mute_mc.gotoAndStop(2);
}
mute_mc.onRollOut = function(){
   if(mute){
   mute_mc.gotoAndPlay(3);
   }else{
   mute_mc.gotoAndStop(1);
   }
}
mute_mc.onRelease = function(){
   if(mute==true){
   mute_mc.gotoAndStop(1);
   mute = false;
   marker._x = volume_mc.track_mc._x +
(volume_mc.track_mc._width/(100/volume));
   radio.setVolume(volume);
   }else{
   mute_mc.gotoAndPlay(3);
   mute = true;
   radio.setVolume(0);
   marker._x = volume_mc.track_mc._x;
   }
}
playRadio();
function reload(){
   reloadInt = setInterval(function(){if(radio.position  1){stopPlay();
playRadio();}},6000);
}
stop();

On 6/16/06, Asai [EMAIL PROTECTED] wrote:


Nothing I've heard of, but that's not saying much.  Why don't you
post the code?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


---asai 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] Runtime error

2006-05-16 Thread Jonathan Berry

We were told by Live365 that that is the best IP to use and that it resolves
to a single stream. The exported movie plays in Firefox, but the problem of
testing the movie in the IDE still happens and it doesn't play in all the
copies of IE we are running.  The commented out code you can see shows the
previous URL for use.

On 6/16/06, Asai [EMAIL PROTECTED] wrote:


It seems the problem is that where you're using this code:

  radio.loadSound(http://216.235.91.30:80,true);

is what is crashing it.  You've got to be more specific about what it
is you're wanting to load, like http://216.235.91.30:80/yourSound.mp3

Flash can't load an entire IP. ;-)

At 09:22 AM 5/16/2006, you wrote:
Thanks, Asai. We just tried to test in another copy of Flash and still
got
that crash. Here's my code. Something may have changed that we can't see:

System.security.allowDomain(http://216.235.91.30;);
//System.security.allowDomain(http://www.live365.com/;);
var up:Boolean = false;
var reloadInt:Number;
function createLoaderText(output){
_root.createEmptyMovieClip(loader_mc,1000);
loader_mc.createTextField(p_txt,1100,60,6,160,20);
loader_mc.p_txt.text = output;
var loadingFmt:TextFormat = new TextFormat();
loadingFmt.font = My Font;
loadingFmt.color = 0xFF9900;
loadingFmt.bold = true;
loader_mc.p_txt.embedFonts = true;
loader_mc.p_txt.setTextFormat(loadingFmt);
loader_mc.onEnterFrame = function(){
if(up == false){
this.p_txt._alpha -= 5;
if(this.p_txt._alpha = 0){
up = true;
}
}else{
this.p_txt._alpha += 5;
if(this.p_txt._alpha = 100){
up = false;
}
}
}
}
var radio:Sound = new Sound();
var volume:Number = 50;
var marker:MovieClip = volume_mc.slider_mc;
var volTrackFactor = volume_mc.track_mc._width/100;
var stopped:Boolean = false;
var trackLoaded:Boolean;
vumeter_mc.stop();
function playRadio(){
radio.stop();
delete radio;
if(!loader_mc){
createLoaderText(loading);
}
mute_mc.gotoAndStop(1);
volume_mc.slider_mc._x = volume_mc.track_mc._x +
volume_mc.track_mc._width/2 - 10;
stopped = false;
radio = new Sound();
radio.setVolume(volume);
radio.loadSound(http://216.235.91.30:80
,true);//http://216.235.91.30:80
OR http://www.live365.com/play/signonsandiego/pro
stop1_btn.enabled = true;
stop1_btn._alpha = 100;
play1_btn.enabled = false;
play1_btn._alpha = 30;
var lastPosition = 0;
vumeter_mc.onEnterFrame = function(){
if(radio.position  1  stopped==false  radio.position 
lastPosition){
lastPosition = radio.position;
clearInterval(reloadInt);
loader_mc.removeMovieClip();
vumeter_mc.play();
}else{
if(!loader_mc){
createLoaderText(buffering);
}
vumeter_mc.gotoAndStop(1);
}
}
reload();
}
function stopPlay(){
delete vumeter_mc.onEnterFrame;
clearInterval(reloadInt);
loader_mc.removeMovieClip();
mute_mc.gotoAndStop(1);
vumeter_mc.gotoAndStop(1);
stopped = true;
radio.stop();
play1_btn.enabled = true;
play1_btn._alpha = 100;
stop1_btn.enabled = false;
stop1_btn._alpha = 30;
}
play1_btn.onRelease = playRadio;
stop1_btn.onRelease = stopPlay;
marker.onPress = function ():Void {
this.startDrag(false, 0, this._y, volume_mc.track_mc._width-10,
this._y);
this.onMouseMove = function():Void {
mute_mc.gotoAndStop(1);
volume = Math.floor(this._x/volTrackFactor);
radio.setVolume(volume);
updateAfterEvent();
}
}
marker.onRollOver = function(){
marker.gotoAndStop(2);
}
marker.onRollOut = function(){
marker.gotoAndStop(1);
}
marker.onRelease = marker.onReleaseOutside = function():Void {
this.stopDrag();
delete this.onMouseMove;
}
var mute:Boolean = false;
mute_mc.onRollOver = function(){
mute_mc.gotoAndStop(2);
}
mute_mc.onRollOut = function(){
if(mute){
mute_mc.gotoAndPlay(3);
}else{
mute_mc.gotoAndStop(1);
}
}
mute_mc.onRelease = function(){
if(mute==true){
mute_mc.gotoAndStop(1);
mute = false;
marker._x = volume_mc.track_mc._x +
(volume_mc.track_mc._width/(100/volume));
radio.setVolume(volume);
}else{
mute_mc.gotoAndPlay(3);
mute = true;
radio.setVolume(0);
marker._x = volume_mc.track_mc._x;
}
}
playRadio();
function reload(){
reloadInt = setInterval(function(){if(radio.position  1){stopPlay();
playRadio();}},6000);
}
stop();

On 6/16/06, Asai [EMAIL PROTECTED] wrote:

Nothing I've heard of, but that's not saying much.  Why don't you
post the code?

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf 

Re: [Flashcoders] Runtime error

2006-05-16 Thread Asai
Right, I don't know if this is the best advice by any means, but when 
a situation like that happens in the IDE and if it doesn't run in 
certain copies of IE, you may want to reconsider using that 
particular IP.  It may be less of a headache in the short term and in 
the long run. I tested it and, yeah, it just crashed Flash 
completely.  There may be other work arounds.  Again, I would advise 
finding a more specific URL for that stream if at all possible, but 
I'm no expert.


At 10:09 AM 5/16/2006, you wrote:

We were told by Live365 that that is the best IP to use and that it resolves
to a single stream. The exported movie plays in Firefox, but the problem of
testing the movie in the IDE still happens and it doesn't play in all the
copies of IE we are running.  The commented out code you can see shows the
previous URL for use.

On 6/16/06, Asai [EMAIL PROTECTED] wrote:


It seems the problem is that where you're using this code:

  radio.loadSound(http://216.235.91.30:80,true);

is what is crashing it.  You've got to be more specific about what it
is you're wanting to load, like http://216.235.91.30:80/yourSound.mp3

Flash can't load an entire IP. ;-)

At 09:22 AM 5/16/2006, you wrote:
Thanks, Asai. We just tried to test in another copy of Flash and still
got
that crash. Here's my code. Something may have changed that we can't see:

System.security.allowDomain(http://216.235.91.30;);
//System.security.allowDomain(http://www.live365.com/;);
var up:Boolean = false;
var reloadInt:Number;
function createLoaderText(output){
_root.createEmptyMovieClip(loader_mc,1000);
loader_mc.createTextField(p_txt,1100,60,6,160,20);
loader_mc.p_txt.text = output;
var loadingFmt:TextFormat = new TextFormat();
loadingFmt.font = My Font;
loadingFmt.color = 0xFF9900;
loadingFmt.bold = true;
loader_mc.p_txt.embedFonts = true;
loader_mc.p_txt.setTextFormat(loadingFmt);
loader_mc.onEnterFrame = function(){
if(up == false){
this.p_txt._alpha -= 5;
if(this.p_txt._alpha = 0){
up = true;
}
}else{
this.p_txt._alpha += 5;
if(this.p_txt._alpha = 100){
up = false;
}
}
}
}
var radio:Sound = new Sound();
var volume:Number = 50;
var marker:MovieClip = volume_mc.slider_mc;
var volTrackFactor = volume_mc.track_mc._width/100;
var stopped:Boolean = false;
var trackLoaded:Boolean;
vumeter_mc.stop();
function playRadio(){
radio.stop();
delete radio;
if(!loader_mc){
createLoaderText(loading);
}
mute_mc.gotoAndStop(1);
volume_mc.slider_mc._x = volume_mc.track_mc._x +
volume_mc.track_mc._width/2 - 10;
stopped = false;
radio = new Sound();
radio.setVolume(volume);
radio.loadSound(http://216.235.91.30:80
,true);//http://216.235.91.30:80
OR http://www.live365.com/play/signonsandiego/pro
stop1_btn.enabled = true;
stop1_btn._alpha = 100;
play1_btn.enabled = false;
play1_btn._alpha = 30;
var lastPosition = 0;
vumeter_mc.onEnterFrame = function(){
if(radio.position  1  stopped==false  radio.position 
lastPosition){
lastPosition = radio.position;
clearInterval(reloadInt);
loader_mc.removeMovieClip();
vumeter_mc.play();
}else{
if(!loader_mc){
createLoaderText(buffering);
}
vumeter_mc.gotoAndStop(1);
}
}
reload();
}
function stopPlay(){
delete vumeter_mc.onEnterFrame;
clearInterval(reloadInt);
loader_mc.removeMovieClip();
mute_mc.gotoAndStop(1);
vumeter_mc.gotoAndStop(1);
stopped = true;
radio.stop();
play1_btn.enabled = true;
play1_btn._alpha = 100;
stop1_btn.enabled = false;
stop1_btn._alpha = 30;
}
play1_btn.onRelease = playRadio;
stop1_btn.onRelease = stopPlay;
marker.onPress = function ():Void {
this.startDrag(false, 0, this._y, volume_mc.track_mc._width-10,
this._y);
this.onMouseMove = function():Void {
mute_mc.gotoAndStop(1);
volume = Math.floor(this._x/volTrackFactor);
radio.setVolume(volume);
updateAfterEvent();
}
}
marker.onRollOver = function(){
marker.gotoAndStop(2);
}
marker.onRollOut = function(){
marker.gotoAndStop(1);
}
marker.onRelease = marker.onReleaseOutside = function():Void {
this.stopDrag();
delete this.onMouseMove;
}
var mute:Boolean = false;
mute_mc.onRollOver = function(){
mute_mc.gotoAndStop(2);
}
mute_mc.onRollOut = function(){
if(mute){
mute_mc.gotoAndPlay(3);
}else{
mute_mc.gotoAndStop(1);
}
}
mute_mc.onRelease = function(){
if(mute==true){
mute_mc.gotoAndStop(1);
mute = false;
marker._x = volume_mc.track_mc._x +
(volume_mc.track_mc._width/(100/volume));
radio.setVolume(volume);
}else{
mute_mc.gotoAndPlay(3);
mute = true;
radio.setVolume(0);
marker._x =