/[flash]/E_viewer.sc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /E_viewer.sc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8 by dpavlin, Fri Feb 22 15:06:50 2008 UTC revision 9 by dpavlin, Fri Feb 22 16:42:24 2008 UTC
# Line 8  Line 8 
8    
9          .font comic filename="fonts/comic.swf"          .font comic filename="fonts/comic.swf"
10    
11            .box menu_background width=130 height=60 color=navy fill=gray line=0
12            .box page_progress_bar width=110 height=10 color=gray fill=white line=2
13            .box page_current_page width=10 height=10 color=black fill=gray line=2
14    
15          .box button_idle width=20 height=60 color=blue fill=salmon line=5          .box button_idle width=20 height=60 color=blue fill=salmon line=5
16          .box button_hover width=20 height=60 color=red fill=salmon line=6          .box button_hover width=20 height=60 color=red fill=salmon line=6
17          .box button_pressed width=20 height=60 color=gray fill=salmon line=5          .box button_pressed width=20 height=60 color=gray fill=salmon line=5
         .box menu_background width=130 height=50 color=navy fill=gray line=0  
18          .box border_left width=10 height=300 color=gray fill=gray line=3          .box border_left width=10 height=300 color=gray fill=gray line=3
19    
20          .edittext info text="info" color=black size=100% width=60 height=60 align=center border=none noselect variable=infoText          .edittext info text="info" color=black size=100% width=60 height=60 align=center border=none noselect variable=infoText
# Line 132  Line 135 
135          .put viewport          .put viewport
136  #       .put menu_left  #       .put menu_left
137    
138    .sprite page_bar
139    .frame 1
140            .put page_progress_bar x=0 y=0
141            .put page_current_page x=0 y=0
142            .stop
143    .frame 100
144            .change page_current_page x=100
145    .end
146    
147  .sprite C_menu  .sprite C_menu
148    
149          .put menu_background x=5 y=5 alpha=90%          .put menu_background x=5 y=5 alpha=90%
# Line 139  Line 151 
151          .put prev pin=center x=70 y=30 scale=40% alpha=50% rotate=180          .put prev pin=center x=70 y=30 scale=40% alpha=50% rotate=180
152          .put next pin=center x=110 y=30 scale=40% alpha=50% rotate=0          .put next pin=center x=110 y=30 scale=40% alpha=50% rotate=0
153    
154            .put page_bar x=15 y=50
155  .end  .end
156    
157  # change this animation for show/hide effect of menu  # change this animation for show/hide effect of menu
# Line 192  Line 205 
205          };          };
206                    
207          function updateInfo() {          function updateInfo() {
208            _root.menu.infoText = String(_root.viewport._currentframe) + " / " + String(_root.viewport._totalframes);                  var page = _root.viewport._currentframe;
209                    var total = _root.viewport._totalframes;
210    
211                    var pos = Math.floor(
212                            ( page - 1 ) / ( total - 1 ) * 100
213                    );
214    
215                    if ( pos == 0 ) pos = 1;
216    
217                    _root.menu.infoText = String(page) + " / " + String(total)
218                            + "\r" + String(pos)
219                            ;
220                    _root.menu.C_menu.page_bar.gotoAndStop( pos );
221          };          };
222    
223          updateInfo();          updateInfo();

Legend:
Removed from v.8  
changed lines
  Added in v.9

  ViewVC Help
Powered by ViewVC 1.1.26