以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 HTML/XHTML/Ajax/Web 2.0/Web 3.0 』  (http://bbs.xml.org.cn/list.asp?boardid=22)
----  3d效果页面,高手过招flash+xml,不看后悔,上演示, [讨论][求助]  (http://bbs.xml.org.cn/dispbbs.asp?boardid=22&rootid=&id=121564)


--  作者:z359cn
--  发布时间:9/17/2011 10:43:00 PM

--  3d效果页面,高手过招flash+xml,不看后悔,上演示, [讨论][求助]

按此在新窗口浏览图片
看不到效果自己外链吧http://1.s3.envato.com/files/1545434/preview.swf
可惜不能播放外链媒体文件
<?xml version="1.0" encoding="utf-8" ?>
<root>
       <Global>
           <!--the radius of the rotate wall circle,
             it is recommand to set the value to be around or bigger than the screen stage width,
             at least to be bigger than the half stage width
             -->
              <radius>1150</radius>
        
        <!--the y position of the rotate wall compared with the center position,
        this value is for you to adjust the wall vertically-->
        <offY>0</offY>

              <!--the image row number-->
              <rownum>3</rownum>
              <!--the image column number,
              for the infinit roate effect to running perfect,it is important to
              set the colnum*unitwidth to be bigger than your expected max stage width-->
              <colnum>6</colnum>
              
              <!--the roate arc step for the wall, the positive number to rotate anti-clockwise,
                  the negatvie number to rotate clockwise,it is recommand to set the value
                  between 0.0001 to 0.0005,or between -0.0001 to -0.0005-->
              <rotateArcSpeed>0.0002</rotateArcSpeed>
              
              <!--The LOGO on the up left corner,set to "" if you no need this-->
              <logo res="imgs/logo.png" link="http://www.activeden.net" offx='10' offy='10'/>
              
              <bgcolor>0x000000</bgcolor><!--the whole background color for the gallery-->
              <bgalpha>1</bgalpha><!--the whole background alpha for the gallery-->
              <highlight>
                     <!--the color of the highlight mask layer-->
                     <maskcolor>0x000000</maskcolor>
                     <!--the alpha of the highlight mask layer-->
                     <maskalpha>0.7</maskalpha>
              </highlight>
              <tooltip>1</tooltip><!--tooltip on/off 0ff,1n-->
              <Units>
                     <bg>
                            <bgcolor>0xeeeeee</bgcolor>
                            <bg_highlight_color>0x0098ff</bg_highlight_color>
                            <extended><!--the extended part for the bg around the image icon-->
                                   <width>6</width>
                                   <height>6</height>
                            </extended>
                     </bg>
                     
                     <!--the unit's width and height-->
                     <width>180</width>
                     <height>135</height>
                     
                     <!--the width len bewteen two icon images-->
                     <w_tween>10</w_tween>
                     <!--the height len bewteen two icon images-->
                     <h_tween>25</h_tween>                     
                     <!--the unit pop up depth(recommand:0-100)-->
                     <offz>50</offz>
                     
              </Units>

              <!--define the gradient fill type of the shadow,reference to the Graphics.beginGradientFill method-->
              <Shadow>
                  <!--1pen shadow for the buttom row, 0:close shadow for the buttom row-->
                     <on>1</on>
                     <!--for white bg:0xffffff,0xffffff-->
                  <colors>0x000000,0x000000</colors>
                  <!--for white bg:1,0-->
                  <alphas>1,0.5</alphas>
                  <!--for white bg:50,255-->
                  <ratios>0,255</ratios>
              </Shadow>
              
              <!--the mask width set for the whole stage set,
                  if screen be bigger than this size, the outer range will not been seen,
                  to the consideration of the showing efficiency,it best to be less than 1280 pixel in width-->
              <MaskWidth>1024</MaskWidth>
       </Global>
       <!--media unit-->
       <Units>
              <!--the image node sample-->
              <unit>
                     <!--the media icon image-->
                     <icon>imgs/1_m.jpg</icon>
                     <!--the media resource,auto judge resource type by its suffix-->
                     <media_res>imgs/1_b.jpg</media_res>
                     <!--title-->
                     <title><![CDATA[图像节点示例]]> </title>
                     <!--information-->
                     <information><![CDATA[The row number and column number of the gallery's images could be set through the XML.<br/>The Envato <a href='http://envato.com/' target='_blank'><font color='#99ff00' size='14'>Envato Marketplaces</font></a> are ActiveDen, AudioJungle, CodeCanyon, ThemeForest, GraphicRiver, VideoHive, 3DOcean, CodeCanyon and the Tuts+ Marketplace.<br/>They are a set of interconnected sites that allow anyone to buy or sell all sorts of digital products, ranging from website templates, to tutorials, to royalty free stock graphics. When you create an account on one, it will work on any of them!<br/>Our mission is to help people to earn and to learn, online.<br/>We operate marketplaces where hundreds of thousands of people buy and sell digital goods every day, and a network of educational blogs where millions learn creative skills.<br/><br/>The Envato Marketplaces allow anyone to buy or sell digital goods like WordPress themes, background music, After Effects project files, Flash templates and much more.]]> </information>
                     <!--link-->
                     <link>http://www.activeden.net</link>              
              </unit>
              <!--the swf node sample-->
              <unit>
                     <icon>imgs/swf_1_s.jpg</icon>
                     <media_res>http://player.56.com/v_NjI3NTQ2OTE.swf</media_res>
                     <title><![CDATA[SWF节点示例]]> </title>
                     <information><![CDATA[The width and height of the grid unit icon could be defined through XML.<br/>The Envato <a href='http://envato.com/' target='_blank'><font color='#99ff00' size='14'>Envato Marketplaces</font></a> are ActiveDen, AudioJungle, CodeCanyon, ThemeForest, GraphicRiver, VideoHive, 3DOcean, CodeCanyon and the Tuts+ Marketplace.]]> </information>
                     <link>http://www.activeden.net</link>
              </unit>

              <!--the video node sample-->
              <unit>
                     <icon>imgs/video_1_s.jpg</icon>
              <media_res>http://202.108.39.103:554/57?.flv</media_res>
                     <title><![CDATA[电影简介]]> </title>
                     <information><![CDATA[Auto Play:On,Loop:Off.<br/>Try out the draggable feature.<br/>Observe the playing progress,a smooth solution instead of NetStream.time.<br/>The author of this great preview video is <a href='http://videohive.net/user/dorde' target='_blank'><font color='#0098ff'>Dorde</font></a>.]]></information>
                     <link>http://videohive.net/item/movie-intro/121951</link>
                     <!--optional arguments-->
                     <!--the desire video width&height limit,the video will be fill to the width and height limit, ommit this,will use the default video size-->
                     <width>700</width>
                     <height>400</height>
                     <autoPlay>1</autoPlay><!--0:not auto play,1:auto play,default:1-->
                     <loop>0</loop><!--0:not loop,1:loop,default:0-->
                     <bgcolor>0xf6efd3</bgcolor><!--the bgcolor for the player tool bar bg-->
              </unit>
              <!--the audio node sample-->
              <unit>
                     <icon>imgs/audio_1_s.jpg</icon>
                     <media_res>http://202.198.0.21/zhongyao/xiaohan/up/dj/2005122045000141.mp3</media_res>
                     <title><![CDATA[音效卡名称]]> </title>
                     <information><![CDATA[Auto Play:On,Loop:Off. Use a swf as back ground.<br/>The author of this great preview audio is <a href='http://videohive.net/user/Slats' target='_blank'><font color='#0098ff'>Slats</font></a>.]]> </information>
                     <link>http://activeden.net/item/electronica-theme/9601</link>
                     <!--the desire audio face image width&height limit,the audio face image will be fill to the width and height limit,ommit this,will use the default size limit(600*450)-->
                     <faceimage>swfs/swf_2.swf</faceimage>
                     <width>590</width>
                     <height>300</height>
                     <autoPlay>1</autoPlay><!--0:not auto play,1:auto play,default:1-->
                     <loop>0</loop><!--0:not loop,1:loop,default:0-->
                     <bgcolor>0xc9d8e3</bgcolor><!--the bgcolor for the player tool bar bg-->              
              </unit>              
              <unit>
                     <icon>imgs/video_2_s.jpg</icon>
                     <media_res>http://www.lb50.cn/LIveUrl/TYUrl.Asp?1485.flv</media_res>
                     <title><![CDATA[电影简介]]> </title>
                     <information><![CDATA[Auto Play:On,Loop:On.<br/>The author of this great preview video is <a href='http://videohive.net/user/dorde' target='_blank'><font color='#0098ff'>Dorde</font></a>.]]></information>
                     <link>http://videohive.net/item/end-titles-moonlight-music/61039</link>
                     <autoPlay>1</autoPlay><!--0:not auto play,1:auto play,default:1-->
                     <loop>1</loop><!--0:not loop,1:loop,default:0-->
              </unit>
              <unit>
                     <icon>imgs/2_m.jpg</icon>
                     <media_res>imgs/2_b.jpg</media_res>
                     <title><![CDATA[图片标题]]> </title>
                     <information><![CDATA[The Gallery's Rotate Speed and Rotate Range could be set through XML.]]> </information>
                     <link>http://www.activeden.net</link>
              </unit>
              <unit>
                     <icon>imgs/3_m.jpg</icon>
                     <media_res>imgs/3_b.jpg</media_res>
                     <title><![CDATA[图片标题]]> </title>
                     <information><![CDATA[The between length of two icon's could also be set through XML.<br/>The Envato Marketplaces are ActiveDen, AudioJungle, CodeCanyon, ThemeForest, GraphicRiver, VideoHive, 3DOcean, CodeCanyon and the Tuts+ Marketplace. ]]> </information>
                     <link>http://www.activeden.net</link>
              </unit>
              
              <unit>
                     <icon>imgs/video_2_s.jpg</icon>
                     <media_res>videos/video_2.flv</media_res>
                     <title><![CDATA[Video Title]]> </title>
                     <information><![CDATA[Auto Play:Off,Loop:On.<br/>The author of this great preview video is <a href='http://videohive.net/user/dorde' target='_blank'><font color='#0098ff'>Dorde</font></a>.]]></information>
                     <link>http://videohive.net/item/end-titles-moonlight-music/61039</link>
                     <autoPlay>0</autoPlay><!--0:not auto play,1:auto play,default:1-->
                     <loop>1</loop><!--0:not loop,1:loop,default:0-->
              </unit>              
              <unit>
                     <icon>imgs/4_m.jpg</icon>
                     <media_res>imgs/4_b.jpg</media_res>
                     <title><![CDATA[图片标题]]> </title>
                     <information><![CDATA[The border size and its normal color and highlight could be set through the xml.]]> </information>
                     <link>http://www.activeden.net</link>
              </unit>
              <unit>
                     <icon>imgs/swf_1_s.jpg</icon>
                     <media_res>swfs/swf_1.swf</media_res>
                     <title><![CDATA[The Swf Size Set Sample]]> </title>
                     <information><![CDATA[The swf size could be set through xml,the swf will be zoom to the size limit,and keep the ratio.]]> </information>
                     <link>http://www.activeden.net</link>
                     <!--optional arguments-->
                     <!--the swf width&height limit,the swf will be zoom to this size limit,but keep the ratio-->
                     <width>650</width>
                     <height>400</height>
              </unit>

              <unit>
                     <icon>imgs/video_1_s.jpg</icon>
                     <media_res>videos/video_1.flv</media_res>
                     <title><![CDATA[Movie Intro]]> </title>
                     <information><![CDATA[Auto Play:On,Loop:Off.<br/>The width and height of the playing video could be set through xml.<br/>The author of this great preview video is <a href='http://videohive.net/user/dorde' target='_blank'><font color='#0098ff'>Dorde</font></a>.]]></information>
                     <link>http://videohive.net/item/movie-intro/121951</link>
                     <!--optional arguments-->
                     <!--the desire video width&height limit,the video will be fill to the width and height limit, ommit this,will use the default video size-->
                     <width>600</width>
                     <height>400</height>
                     <autoPlay>1</autoPlay><!--0:not auto play,1:auto play,default:1-->
                     <loop>0</loop><!--0:not loop,1:loop,default:0-->
                     <bgcolor>0xf6efd3</bgcolor><!--the bgcolor for the player tool bar bg-->
              </unit>
              <unit>
                     <icon>imgs/7_m.jpg</icon>
                     <media_res>imgs/7_b.jpg</media_res>
                     <title><![CDATA[图片标题]]> </title>
                     <information><![CDATA[Textfield's scrollbar will be shown when there are too many words.<br/>The Envato <a href='http://envato.com/' target='_blank'><font color='#99ff00' size='14'>Envato Marketplaces</font></a> are ActiveDen, AudioJungle, CodeCanyon, ThemeForest, GraphicRiver, VideoHive, 3DOcean, CodeCanyon and the Tuts+ Marketplace.<br/>They are a set of interconnected sites that allow anyone to buy or sell all sorts of digital products, ranging from website templates, to tutorials, to royalty free stock graphics. When you create an account on one, it will work on any of them!<br/>Our mission is to help people to earn and to learn, online.<br/>We operate marketplaces where hundreds of thousands of people buy and sell digital goods every day, and a network of educational blogs where millions learn creative skills.<br/><br/>The Envato Marketplaces allow anyone to buy or sell digital goods like WordPress themes, background music, After Effects project files, Flash templates and much more.]]> </information>
                     <link>http://www.activeden.net</link>
              </unit>
              <unit>
                     <icon>imgs/1_m.jpg</icon>
                     <media_res>imgs/1_b.jpg</media_res>
                     <title><![CDATA[The Image Size Set Sample]]> </title>
                     <information><![CDATA[The image size could be set through xml,the image will be zoom to the size limit,and keep the ratio.<br/>]]> </information>
                     <link>http://www.activeden.net</link>
                     <!--optional arguments-->
                     <!--the image width&height limit,the image will be zoom to this size limit,but keep the ratio-->
                     <width>600</width>
                     <height>450</height>
              </unit>
              <unit>
                     <icon>imgs/2_m.jpg</icon>
                     <media_res>imgs/2_b.jpg</media_res>
                     <title><![CDATA[图片标题]]> </title>
                     <information><![CDATA[The Envato Marketplaces are ActiveDen, AudioJungle, CodeCanyon, ThemeForest, GraphicRiver, VideoHive, 3DOcean, CodeCanyon and the Tuts+ Marketplace. They are a set of interconnected sites that allow anyone to buy or sell all sorts of digital products, ranging from website templates, to tutorials, to royalty free stock graphics. When you create an account on one, it will work on any of them! ]]> </information>
                     <link>http://www.activeden.net</link>
              </unit>
              <!--the video node sample-->
              <unit>
                     <icon>imgs/video_1_s.jpg</icon>
                     <media_res>videos/video_1.flv</media_res>
                     <title><![CDATA[Movie Intro]]> </title>
                     <information><![CDATA[Auto Play:On,Loop:Off.<br/>Try out the draggable feature.<br/>Observe the playing progress,a smooth solution instead of NetStream.time.<br/>The author of this great preview video is <a href='http://videohive.net/user/dorde' target='_blank'><font color='#0098ff'>Dorde</font></a>.]]></information>
                     <link>http://videohive.net/item/movie-intro/121951</link>
                     <!--optional arguments-->
                     <!--the desire video width&height limit,the video will be fill to the width and height limit, ommit this,will use the default video size-->
                     <width>700</width>
                     <height>400</height>
                     <autoPlay>1</autoPlay><!--0:not auto play,1:auto play,default:1-->
                     <loop>0</loop><!--0:not loop,1:loop,default:0-->
                     <bgcolor>0xf6efd3</bgcolor><!--the bgcolor for the player tool bar bg-->
              </unit>              
              <unit>
                     <icon>imgs/video_2_s.jpg</icon>
                     <media_res>videos/video_2.flv</media_res>
                     <title><![CDATA[Video Title]]> </title>
                     <information><![CDATA[Auto Play:On,Loop:On.<br/>The author of this great preview video is <a href='http://videohive.net/user/dorde' target='_blank'><font color='#0098ff'>Dorde</font></a>.]]></information>
                     <link>http://videohive.net/item/end-titles-moonlight-music/61039</link>
                     <autoPlay>1</autoPlay><!--0:not auto play,1:auto play,default:1-->
                     <loop>1</loop><!--0:not loop,1:loop,default:0-->
              </unit>

              <!--the image node sample-->
              <unit>
                     <!--the media icon image-->
                     <icon>imgs/1_m.jpg</icon>
                     <!--the media resource,auto judge resource type by its suffix-->
                     <media_res>imgs/1_b.jpg</media_res>
                     <!--title-->
                     <title><![CDATA[The Image Node Sample]]> </title>
                     <!--information-->
                     <information><![CDATA[The row number and column number of the gallery's images could be set through the XML.<br/>The Envato <a href='http://envato.com/' target='_blank'><font color='#99ff00' size='14'>Envato Marketplaces</font></a> are ActiveDen, AudioJungle, CodeCanyon, ThemeForest, GraphicRiver, VideoHive, 3DOcean, CodeCanyon and the Tuts+ Marketplace.<br/>They are a set of interconnected sites that allow anyone to buy or sell all sorts of digital products, ranging from website templates, to tutorials, to royalty free stock graphics. When you create an account on one, it will work on any of them!<br/>Our mission is to help people to earn and to learn, online.<br/>We operate marketplaces where hundreds of thousands of people buy and sell digital goods every day, and a network of educational blogs where millions learn creative skills.<br/><br/>The Envato Marketplaces allow anyone to buy or sell digital goods like WordPress themes, background music, After Effects project files, Flash templates and much more.]]> </information>
                     <!--link-->
                     <link>http://www.activeden.net</link>              
              </unit>
              
              <!--the swf node sample-->
              <unit>
                     <icon>imgs/swf_1_s.jpg</icon>
                     <media_res>swfs/swf_1.swf</media_res>
                     <title><![CDATA[The Swf Node Sample]]> </title>
                     <information><![CDATA[The width and height of the grid unit icon could be defined through XML.<br/>The Envato <a href='http://envato.com/' target='_blank'><font color='#99ff00' size='14'>Envato Marketplaces</font></a> are ActiveDen, AudioJungle, CodeCanyon, ThemeForest, GraphicRiver, VideoHive, 3DOcean, CodeCanyon and the Tuts+ Marketplace.]]> </information>
                     <link>http://www.activeden.net</link>
              </unit>

              <unit>
                     <icon>imgs/audio_1_s.jpg</icon>
                     <media_res>audios/audio_1.mp3</media_res>
                     <title><![CDATA[Audio Title]]> </title>
                     <information><![CDATA[Auto Play:On,Loop:Off. Use a swf as back ground.<br/>The author of this great preview audio is <a href='http://videohive.net/user/Slats' target='_blank'><font color='#0098ff'>Slats</font></a>.]]> </information>
                     <link>http://activeden.net/item/electronica-theme/9601</link>
                     <!--the desire audio face image width&height limit,the audio face image will be fill to the width and height limit,ommit this,will use the default size limit(600*450)-->
                     <faceimage>swfs/swf_2.swf</faceimage>
                     <width>590</width>
                     <height>300</height>
                     <autoPlay>1</autoPlay><!--0:not auto play,1:auto play,default:1-->
                     <loop>0</loop><!--0:not loop,1:loop,default:0-->
                     <bgcolor>0xc9d8e3</bgcolor><!--the bgcolor for the player tool bar bg-->              
              </unit>       
              
              <unit>
                     <icon>imgs/2_m.jpg</icon>
                     <media_res>imgs/2_b.jpg</media_res>
                     <title><![CDATA[The Image Title]]> </title>
                     <information><![CDATA[The Gallery's Rotate Speed and Rotate Range could be set through XML.]]> </information>
                     <link>http://www.activeden.net</link>
              </unit>
              
              <unit>
                     <icon>imgs/4_m.jpg</icon>
                     <media_res>imgs/4_b.jpg</media_res>
                     <title><![CDATA[The Image Title]]> </title>
                     <information><![CDATA[The border size and its normal color and highlight could be set through the xml.]]> </information>
                     <link>http://www.activeden.net</link>
              </unit>
       </Units>
</root>



--  作者:z359cn
--  发布时间:9/17/2011 10:47:00 PM

--  
<unit>
                        <icon>imgs/swf_1_s.jpg</icon>
                        <media_res>v_NjI3NTQ2OTE.swf</media_res>
                        <title><![CDATA[SWF节点示例]]> </title>
                        <information><![CDATA[The width and height of the grid unit icon could be defined through XML.<br/>The Envato <a href='http://envato.com/' target='_blank'><font color='#99ff00' size='14'>Envato Marketplaces</font></a> are ActiveDen, AudioJungle, CodeCanyon, ThemeForest, GraphicRiver, VideoHive, 3DOcean, CodeCanyon and the Tuts+ Marketplace.]]> </information>
                        <link></link>
                </unit>

                <!--the video node sample-->
                <unit>
                        <icon>imgs/video_1_s.jpg</icon>
                <media_res>57?.flv</media_res>
                        <title><![CDATA[电影简介]]> </title>
                        <information><![CDATA[Auto Play:On,Loop:Off.<br/>Try out the draggable feature.<br/>Observe the playing progress,a smooth solution instead of NetStream.time.<br/>The author of this great preview video is <a href='http://videohive.net/user/dorde' target='_blank'><font color='#0098ff'>Dorde</font></a>.]]></information>

红色地方为何不能外链呀?


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
359.375ms