在試圖要把程式範例放上Blogger的blog時,查訪了不少方法都不是能很快速簡易的上手.我又不想在這花太多的時間. 後來找到這個網站還蠻好用的, 網址如下:


http://tools.devshed.com/webmaster-tools/syntax-highlighting/
詳細的使用,我想有在寫程式的人大概都知道麼用,真有人不知道的再來問我吧.我再來提示.

不過在這我碰到一個問題,我恰巧是用到http://btemplates.com/ 網站的lunax 面版.底色恰巧也是黑色.就會變得程式碼完全看不到要標示起來,只好把轉好的html片段再丟進notepad++ 去給它置換把所有的黑色的字置換成白色的字,就這樣暫時算搞定收工

不過我還是很不滿. 因為行號經過了notepad++ 的加工變得有若干行內縮了,應該是讓它自動換行的影響.

  1. <?xml version="1.0"?>
  2. <!-- http://blog.flexexamples.com/2010/04/29/rewinding-a-video-when-changing-the-selected-item-in-the-mx-accordion-container-in-flex-4/ -->
  3. <s:Application name="Spark_NavigatorContent_hide_test"
  4.         xmlns:fx="http://ns.adobe.com/mxml/2009"
  5.         xmlns:s="library://ns.adobe.com/flex/spark"
  6.         xmlns:mx="library://ns.adobe.com/flex/mx">
  7.  
  8.     <mx:Accordion id="acc"
  9.             left="40" right="40" top="40" bottom="40">
  10.         <s:NavigatorContent label="Video 1"
  11.  
                  width="100%" height="100%"
  12.                 hide="vidPlay1.seek(0);">
  13.             <s:VideoPlayer id="vidPlay1"
  14.                     source="http://helpexamples.com/flash/video/water.flv"
  15.          
              autoPlay="false"
  16.                     left="0" right="0" top="0" bottom="0" />
  17.         </s:NavigatorContent>
  18.         <s:NavigatorContent label="Video 2"
  19.                 width="100%" height="100%"
  20.                 hide="vidPlay2.seek(0);">
  21.             <s:VideoPlayer id="vidPlay2"
  22.  
                      source="http://helpexamples.com/flash/video/clouds.flv"
  23.                     autoPlay="false"
  24.                     left="0" right="0" top="0" bottom="0" />
  25.         </s:NavigatorContent>
  26.  
          <s:NavigatorContent label="Video 3"
  27.                 width="100%" height="100%"
  28.                 hide="vidPlay3.seek(0);">
  29.             <s:VideoPlayer id="vidPlay3"
  30.                     source="http://helpexamples.com/flash/video/cuepoints.flv"
  31.                     autoPlay="false"
  32.                     left="0" right="0" top="0" bottom="0" />
  33.         </s:NavigatorContent>
  34.         <s:NavigatorContent label="Video
    4"
  35.                 width="100%" height="100%"
  36.                 hide="vidPlay4.seek(0);">
  37.  
              <s:VideoPlayer id="vidPlay4"
  38.                     source="http://helpexamples.com/flash/video/caption_video.flv"
  39.                     autoPlay="false"
  40.  
                      left="0" right="0" top="0" bottom="0" />
  41.         </s:NavigatorContent>
  42.     </mx:Accordion>
  43.  
  44. </s:Application>

0 張貼意見:

張貼留言

Copyright 2010 Yita電腦調校日誌
Lunax Free Premium Blogger™ template by Introblogger