Changeset 1532

Show
Ignore:
Timestamp:
11/15/07 03:02:37 (6 years ago)
Author:
tekisuke
Message:

lang/actionscript/flmml/:
addEventListenerの使い方が間違ってるのかもしれないので書き方を変えてみる。

Location:
lang/actionscript/flmml/trunk/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/actionscript/flmml/trunk/src/com/txt_nifty/sketch/flmml/FlMML.as

    r1276 r1532  
    77        public function FlMML() { 
    88            m_mml = new MML(); 
     9            var self:FlMML = this; 
    910            m_mml.addEventListener(MMLEvent.COMPILE_COMPLETE, function(e:MMLEvent):void { 
    10                     dispatchEvent(new MMLEvent(MMLEvent.COMPILE_COMPLETE)); 
     11                    self.dispatchEvent(new MMLEvent(MMLEvent.COMPILE_COMPLETE)); 
    1112                }); 
    1213        } 
  • lang/actionscript/flmml/trunk/src/flmml.mxml

    r1417 r1532  
    1212              if (input.text == "") input.text="l8 cdefgab<c"; 
    1313 
    14 //              player.addEventListener("compileComplete", setWarnings); 
     14              player.addEventListener("compileComplete", setWarnings); 
    1515            } 
    1616