Changeset 15


Ignore:
Timestamp:
06/23/08 12:32:11 (5 years ago)
Author:
jeroen
Message:

small captions fix

Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/as3/com/jeroenwijering/models/YoutubeModel.as

    r13 r15  
    4242                outgoing = new LocalConnection(); 
    4343                outgoing.allowDomain('*'); 
     44                outgoing.allowInsecureDomain('*'); 
    4445                outgoing.addEventListener(StatusEvent.STATUS,onLocalConnectionStatusChange); 
    4546                inbound = new LocalConnection(); 
    4647                inbound.allowDomain('*'); 
     48                inbound.allowInsecureDomain('*'); 
    4749                inbound.addEventListener(StatusEvent.STATUS,onLocalConnectionStatusChange); 
    4850                inbound.client = this; 
  • trunk/as3/com/jeroenwijering/player/Player.as

    r14 r15  
    5858                plugins:undefined, 
    5959                state:undefined, 
    60                 version:'4.0 r13', 
     60                version:'4.0 r15', 
    6161                width:400 
    6262        }; 
  • trunk/as3/com/jeroenwijering/views/CaptionsView.as

    r14 r15  
    4242                view.addControllerListener(ControllerEvent.CAPTION,captionHandler); 
    4343                view.addControllerListener(ControllerEvent.ITEM,itemHandler); 
    44                 view.addControllerListener(ControllerEvent.PLAYLIST,itemHandler); 
    4544                view.addControllerListener(ControllerEvent.RESIZE,resizeHandler); 
    4645                view.addModelListener(ModelEvent.ERROR,errorHandler); 
  • trunk/as3/com/jeroenwijering/views/PlaylistView.as

    r14 r15  
    124124        /** Switch the currently active item */ 
    125125        private function itemHandler(evt:ControllerEvent) { 
    126                 var idx = evt.data.index; 
     126                var idx = view.config['item']; 
    127127                if(!isNaN(active)) { 
    128128                        buttons[active].c.gotoAndPlay('out'); 
    129129                } 
    130                 buttons[idx].c.gotoAndPlay('active'); 
     130                if(buttons[idx]) { 
     131                        buttons[idx].c.gotoAndPlay('active'); 
     132                } 
    131133                active = idx; 
    132134        }; 
Note: See TracChangeset for help on using the changeset viewer.