Changeset 1276

Show
Ignore:
Timestamp:
03/07/10 10:21:32 (5 months ago)
Author:
dreisch
Message:

-fixed #1105

Location:
flash_player/trunk/src/org/korsakow/player
Files:
1 added
6 modified

Legend:

Unmodified
Added
Removed
  • flash_player/trunk/src/org/korsakow/player/engine/Engine.as

    r1271 r1276  
    125125                        addEventListener(EnvironmentEvent.SNU_BEGIN_PLAYING, onSnuBeginPlaying); 
    126126                        addEventListener(EnvironmentEvent.SNU_FINISH_PLAYING, onSnuFinishPlaying); 
    127                         addEventListener(EnvironmentEvent.SNU_TIME_UPDATE, onSnuTimeUpdate); 
    128                          
    129127                         
    130128                        dispatchEvent(new EnvironmentEvent(EnvironmentEvent.INITIALIZED)); 
     
    147145                        removeEventListener(EnvironmentEvent.SNU_BEGIN_PLAYING, onSnuBeginPlaying); 
    148146                        removeEventListener(EnvironmentEvent.SNU_FINISH_PLAYING, onSnuFinishPlaying); 
    149                         removeEventListener(EnvironmentEvent.SNU_TIME_UPDATE, onSnuTimeUpdate); 
    150147                } 
    151148                public function showErrorDialog(message:String, title:String):void 
     
    309306                        return _currentSnuTime; 
    310307                } 
     308                public function set currentSnuTime(time:uint):void 
     309                { 
     310                        _currentSnuTime = time; 
     311                } 
    311312                public function get currentSnuTimeOffset():uint 
    312313                { 
     
    665666                protected function onSnuFinishPlaying(event:EnvironmentEvent):void 
    666667                { 
    667                 } 
    668                 protected function onSnuTimeUpdate(event:EnvironmentEvent):void 
    669                 { 
    670                         if (_currentInterfacaMainMedia) 
    671                                 _currentSnuTime = _currentInterfacaMainMedia.playTime; 
    672668                } 
    673669                protected function togglePauseScreen(event:MediaEvent):void 
  • flash_player/trunk/src/org/korsakow/player/engine/action/ExecuteSnuAction.as

    r1260 r1276  
    234234                protected function onMainMediaTime(event:MediaEvent=null):void 
    235235                { 
     236                        if (_engine.currentMainMedia) 
     237                                _engine.currentSnuTime = _engine.currentMainMedia.playTime; 
    236238                        _engine.snuEventContext.dispatchEvent(new EnvironmentEvent(EnvironmentEvent.SNU_TIME_UPDATE)); 
    237239                        _engine.dispatchEvent(new EnvironmentEvent(EnvironmentEvent.SNU_TIME_UPDATE)); 
  • flash_player/trunk/src/org/korsakow/player/engine/rules/RequireKeywordsRule.as

    r255 r1276  
    11package org.korsakow.player.engine.rules 
    22{ 
    3 import __AS3__.vec.Vector; 
    4  
     3import org.korsakow.debug.Debug; 
    54import org.korsakow.domain.Rule; 
    65import org.korsakow.domain.RuleType; 
     
    1716        override public function execute(env:IEnvironment):void 
    1817        { 
     18                Debug.log("RequireKeywordsRule.execute; keywords=", keywords); 
    1919                // we give each snu without the keyword a score of 0 
    2020                var snusWithoutKeyword:Vector.<ISnu> = new Vector.<ISnu>; // an array of snu vectors 
  • flash_player/trunk/src/org/korsakow/player/engine/rules/SearchRule.as

    r1244 r1276  
    106106                                        continue; 
    107107                                var score:Score = env.getSnuScore(snu); 
    108                                 Debug.log("\tSearchRule.links", '#'+i, snu.id, '('+snu.name+')', score.score, '('+snu.rating+')'); 
    109                                 availableLinks[linksCounter].snu = candidates[i]; 
     108                                var chosenLink:ISnuLink = availableLinks[linksCounter]; 
     109                                Debug.log("\tSearchRule.links", 'available#'+i, 'index#'+chosenLink.model['index'], snu.id, '('+snu.name+')', score.score, '('+snu.rating+')'); 
     110                                chosenLink.snu = candidates[i]; 
    110111                                linksCounter++; 
    111112                                ++maxlinkscount; 
  • flash_player/trunk/src/org/korsakow/player/widget/MultiMediaArea.mxml

    r1263 r1276  
    155155                super.initializeWidget(env); 
    156156                playMedia(_mediaId); 
    157                 Debug.log("MediaArea.init", visible, _media?_media.name:'', _media?_media.filename:''); 
     157                Debug.log("MediaArea.init", 'id#'+(this), visible, _media?_media.name:'', _media?_media.filename:''); 
    158158        } 
    159159        override public function destroyWidget(env:IEnvironment):void 
  • flash_player/trunk/src/org/korsakow/player/widget/VideoArea.mxml

    r1272 r1276  
    216216        { 
    217217                ScalingPolicy.apply(scalingPolicy, video, this.width, this.height); 
    218                 trace('VideoArea.scaling', this.width, this.height, video.width, video.height); 
    219218        } 
    220219        override public function destroyWidget(env:IEnvironment):void