laurelの自由自在♪てくてくブログ

laurelの自由自在♪てくてくブログ

楽しいこと大好き!日々の出来事、夢中なこと、考えてること、とにかく自由!

Amebaでブログを始めよう!

うわーーーーーーー爆弾


ネットがつながらない!!メラメラ


windows SP3をうっかりインストールしたからか、そのせいで昨日75件もアップデートがあった等等

原因が思う限り、検索に検索しましたが、SP3は結構前に出てるものらしいので

その点は、解決してるだろうと・・・。得意げ


ふと、ネットワーク接続診断がピンピロリ-ンって立ち上がったので、診断しました。

「ルーターの電源を落として再起動してみよ」っておいwグー

何か怖いことが起こるような・・・


もうちょっと冷静になれよ自分!


ってことで、「ワイヤレスネットワーク 限定または接続なし」のキーワードでG先生にきいてみたしょぼん


http://oshiete.goo.ne.jp/qa/5097842.html


goo先生を紹介してくれた!にひひ


WEPキーを入力しなおしたら、あら不思議、ネット接続できちゃった音譜




//変数定義
var sndCh:SoundChannel;
var snd:Sound = new Sound();
snd.load(new URLRequest("sample.mp3"));

//イベント処理
play_btn.addEventListener(MouseEvent.CLICK, xPlayClick);
stop_btn.addEventListener(MouseEvent.CLICK, xStopClick);
on_btn.addEventListener(MouseEvent.CLICK, xOnClick);
off_btn.addEventListener(MouseEvent.CLICK, xOffClick);

//イベントハンドラ定義
function xPlayClick(evt:MouseEvent):void {
  if (sndCh == null){
      sndCh = snd.play(0, 1000);
  }
}

function xStopClick(evt:MouseEvent):void {
   if (sndCh != null){
      sndCh.stop();
      sndCh = null;
}
}

function xOnClick(evt:MouseEvent):void {
   if (sndCh != null){
   var sndTr:SoundTransform = new SoundTransform();
   sndTr.volume = 1;
   sndCh.soundTransform = sndTr;
}
}
function xOffClick(evt:MouseEvent):void {
   if (sndCh != null){
   var sndTr:SoundTransform = new SoundTransform();
   sndTr.volume = 0;
   sndCh.soundTransform = sndTr;
}
}
var sndCh:SoundChannel;
var snd:Sound = new Music();
var pause_point:Number = 0;

play_btn.addEventListener(MouseEvent.CLICK, xPlay);
pause_btn.addEventListener(MouseEvent.CLICK, xPause);
stop_btn.addEventListener(MouseEvent.CLICK, xStop);

function xPlay(evt:MouseEvent):void {
   if(sndCh == null ){
       sndCh = snd.play(pause_point);
       sndCh.addEventListener(Event.SOUND_COMPLETE,my_chan_comp);//再生終了後指示
}
}
//無限ループ再生
function my_chan_comp(e:Event):void {
    trace("再生終了");
    sndCh = snd.play();//再生
   sndCh.addEventListener(Event.SOUND_COMPLETE,my_chan_comp);//再生が終了後指示
}

function xPause(evt:MouseEvent):void{
   if(sndCh != null){
      pause_point = sndCh.position;
      sndCh.stop();
      sndCh = null;
    }
}
function xStop(evt:MouseEvent):void{
    if(sndCh != null){
      sndCh.stop();
      sndCh = null;
    }
    pause_point = 0;
}
var sndCh:SoundChannel;
var snd:Sound = new Music();
var pause_point:Number = 0;

play_btn.addEventListener(MouseEvent.CLICK, xPlay);
pause_btn.addEventListener(MouseEvent.CLICK, xPause);
stop_btn.addEventListener(MouseEvent.CLICK, xStop);

function xPlay(evt:MouseEvent):void {
    if(sndCh == null ){
       sndCh = snd.play(pause_point);
   }
}

function xPause(evt:MouseEvent):void{
    if(sndCh != null){
       pause_point = sndCh.position;
       sndCh.stop();
       sndCh = null;
   }
}

function xStop(evt:MouseEvent):void{
    if(sndCh != null){
       sndCh.stop();
       sndCh = null;
    }
    pause_point = 0;
}