 / / 
 
 / /   ( c )   2 0 0 6   U l e a d   S y s t e m s ,   I n c .     A l l   r i g h t s   r e s e r v e d . 
 
 / / 
 
 
 
 / * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 	 S c a l e   m a i n   v i d e o 
 
 	 
 
 	 B a s e d   o n   H D - D V D   s p e c   v 1 . 0   W i n D V D   v 8 . 0 
 
 
 
 	 A u t h o r   :   W i l l i a m   Y a n g ,   U l e a d   S y s t e m 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * / 
 
 
 
 / /   T i t l e   S c a l e   I n f o 
 
 f u n c t i o n   T i t l e S c a l e I n f o ( n N u m ,   n D e n ) 
 
 { 
 
         t h i s . m _ n N u m   =   n N u m ; 
 
         t h i s . m _ n D e n   =   n D e n ; 
 
 } 
 
 
 
 f u n c t i o n   C S c a l e V i d e o ( ) 
 
 {         
 
         t h i s . m _ n X   =   0 ; 
 
         t h i s . m _ n Y   =   0 ; 
 
         t h i s . m _ n N u m e r a t o r   =   1 ; 
 
         t h i s . m _ n D e n o m i n a t o r   =   1 ; 
 
         t h i s . m _ n c r o p X   =   0 ; 
 
         t h i s . m _ n c r o p Y   =   0 ; 
 
         t h i s . m _ n c r o p W i d t h   =   1 9 2 0 ; 
 
         t h i s . m _ n c r o p H e i g h t   =   1 0 8 0 ; 
 
         
 
         / /   T i t l e s   S c a l e   I n f o ,   i n d e x   0   =   M a i n   M e n u   T i t l e   S c a l e   I n f o 
 
         t h i s . m _ t i t l e S c a l e I n f o s   =   n e w   A r r a y ( ) ; 
 
 } ; 
 
 
 
 C S c a l e V i d e o . p r o t o t y p e . f n S e t I n f o   =   f u n c t i o n ( n X ,   n Y ,   n N u m e r a t o r ,   n D e n o m i n a t o r ,   n C r o p X ,   n C r o p Y ,   n C r o p H ,   n C r o p W ) 
 
 { 
 
         t h i s . m _ n X   =   n X ; 
 
         t h i s . m _ n Y   =   n Y ; 
 
         t h i s . m _ n N u m e r a t o r   =   n N u m e r a t o r ; 
 
         t h i s . m _ n D e n o m i n a t o r   =   n D e n o m i n a t o r ; 
 
         t h i s . m _ n c r o p X   =   n C r o p X ; 
 
         t h i s . m _ n c r o p Y   =   n C r o p Y ; 
 
         t h i s . m _ n c r o p H e i g h t   =   n C r o p H ; 
 
         t h i s . m _ n c r o p W i d t h   =   n C r o p W ; 
 
 } ; 
 
 
 
 C S c a l e V i d e o . p r o t o t y p e . f n S c a l e V i d e o   =   f u n c t i o n ( ) 
 
 { 
 
         v a r   s c a l e   =   P l a y e r . c r e a t e V i d e o S c a l e ( t h i s . m _ n N u m e r a t o r ,   t h i s . m _ n D e n o m i n a t o r ) ; 
 
 
         / / P l a y e r . v i d e o . m a i n . s e t O u t e r F r a m e C o l o r ( 1 6 ,   1 2 8 ,   1 2 8 ) ; 
 
         P l a y e r . v i d e o . m a i n . c h a n g e L a y o u t ( t h i s . m _ n X ,   t h i s . m _ n Y ,   s c a l e ,   t h i s . m _ n c r o p X ,   t h i s . m _ n c r o p Y ,   t h i s . m _ n c r o p W i d t h ,   t h i s . m _ n c r o p H e i g h t ,   " 0 0 : 0 0 : 0 0 : 0 0 " ) ; 
 
 } ; 
 
 
 
 C S c a l e V i d e o . p r o t o t y p e . f n S c a l e V i d e o E v t   =   f u n c t i o n ( e v t ) 
 
 { 
 
         / /   2 0 0 6 1 2 2 2   :   S c o t t   C h e n ,   f i x ,   n o t   t o   d o   s c a l e   f o r c e 
 
         / / t h i s . f n S c a l e V i d e o ( ) ; 
 
         t h i s . f n H a n d l e K e y D o w n ( e v t ) ; 
 
 } ; 
 
 
 
 C S c a l e V i d e o . p r o t o t y p e . f n R e s t o r e V i d e o   =   f u n c t i o n ( ) 
 
 { 
 
         v a r   s c a l e   =   P l a y e r . c r e a t e V i d e o S c a l e ( 1 ,   1 ) ; 
 
         / / P l a y e r . v i d e o . m a i n . s e t O u t e r F r a m e C o l o r ( 1 6 ,   1 2 8 ,   1 2 8 ) ; 
 
         P l a y e r . v i d e o . m a i n . c h a n g e L a y o u t ( 0 ,   0 ,   s c a l e ,   0 ,   0 ,   1 9 2 0 ,   1 0 8 0 ,   " 0 0 : 0 0 : 0 0 : 0 0 " ) ; 
 
 } ; 
 
 
 
 C S c a l e V i d e o . p r o t o t y p e . f n H a n d l e K e y D o w n   =   f u n c t i o n ( e v t ) 
 
 { 
 
         v a r   L 0 _ H o l d e r   =   d o c u m e n t . g e t E l e m e n t B y I d ( " L 0 _ P P _ M E N U _ H O L D E R _ 1 " ) ; 
 
         v a r   D i s p l a y   =   L 0 _ H o l d e r . s t y l e . g e t P r o p e r t y ( " v i s i b i l i t y " ) ; 
 
         i f ( D i s p l a y   = =   " v i s i b l e " ) 
 
         { 
 
                 / /   G e t   c u r r e n t   t i t l e 
 
                 v a r   c u r r e n t T i t l e I n x   =   P l a y e r . p l a y l i s t . c u r r e n t T i t l e . a t t r i b u t e s . t i t l e N u m b e r   -   1 ; 
 
                 / /   -   C h e c k   s i z e 
 
                 i f   ( c u r r e n t T i t l e I n x   <   t h i s . m _ t i t l e S c a l e I n f o s . l e n g t h ) 
 
                 { 
 
                         / /   C h a n g e   s c a l e   i n f o 
 
                         t h i s . m _ n N u m e r a t o r   =   t h i s . m _ t i t l e S c a l e I n f o s [ c u r r e n t T i t l e I n x ] . m _ n N u m ; 
 
                         t h i s . m _ n D e n o m i n a t o r   =   t h i s . m _ t i t l e S c a l e I n f o s [ c u r r e n t T i t l e I n x ] . m _ n D e n ;                 
 
                 } 
 
                 
 
                 t h i s . f n S c a l e V i d e o ( ) ; 
 
         } 
 
         e l s e 
 
         { 
 
                 t h i s . f n R e s t o r e V i d e o ( ) ; 
 
         } 
 
 } ; 
 
 
 
 C S c a l e V i d e o . p r o t o t y p e . f n A d d T i t l e S c a l e I n f o   =   f u n c t i o n ( t i t l e S c a l e I n f o ) 
 
 { 
 
         t h i s . m _ t i t l e S c a l e I n f o s . p u s h ( t i t l e S c a l e I n f o ) ; 
 
 }