Kênh 360 Công Nghệ Kênh 360 Công Nghệ

Trang chủ - Thiết kế web - Thiết kế web - Ứng dụng swfobject để thể hiện Flash media: video, music, flash, flv

Ứng dụng swfobject để thể hiện Flash media: video, music, flash, flv

Tìm hiểu về SWFobject:
http://code.google.com/p/swfobject/

Document:
http://code.google.com/p/swfobject/wiki/documentation

FAQ:
http://code.google.com/p/swfobject/wiki/faq

Discussion:
http://groups.google.com/group/swfobject


Và ứng dụng đối với Youtube: sing play and playlist play.

Tham khảo tại: http://code.google.com/apis/youtube/overview.html
Sử dụng swfobject: http://code.google.com/apis/youtube/flash_api_reference.html

Chi tiết các ví dụ cụ thể về swfobject: http://pipwerks.com/lab/swfobject/
Ứng dụng cụ thể: Load các movie mà không phải load lại cả trang web.

Tìm hiểu tổng thể:
Các trình duyệt hỗ trợ xử lý Flash thế nào: http://www.swffix.org/testsuite/

Flash Embedding Cage Match - Cấu trúc câu lệnh triệu gọi cho Flash: http://www.alistapart.com/articles/flashembedcagematch/

How can you use HTML to configure your Flash content?

You can add the following often-used optional attributes http://www.w3schools.com/tags/tag_object.asp to the object element:

* id
* name
* class
* align

You can use the following optional Flash specific param elements http://www.adobe.com/cfusion/knowle...ase/index.cfm?id=tn_12701 :

* play
* loop
* menu
* quality
* scale
* salign
* wmode
* bgcolor
* base
* swliveconnect
* flashvars
* devicefont http://www.adobe.com/cfusion/knowle...ase/index.cfm?id=tn_13331
* allowscriptaccess http://www.adobe.com/cfusion/knowle...ase/index.cfm?id=tn_16494 and http://www.adobe.com/go/kb402975
* seamlesstabbing http://www.adobe.com/support/docume...layer/7/releasenotes.html
* allowfullscreen http://www.adobe.com/devnet/flashpl...les/full_screen_mode.html
* allownetworking http://livedocs.adobe.com/flash/9.0/main/00001079.html
Lỗi xung đột với mootools: http://forum.mootools.net/viewtopic.php?id=6193

Loading a SWF using an 'onclick' event
Định nghĩa và triệu gọi swfobject 

<script type="text/javascript" src="/scripts/swfobject.js"></script> 
<script type="text/javascript"> 
function loadSWF(url)
swfobject.embedSWF(url, "flashcontent", "550", "400", "7"); 

}

</script>


Mã code để thay thế trong thân (body) nội dung HTML: 
<p><a href="/lab/_common/sample.swf" onclick="loadSWF(this.href); return false;"> 
Click here to load the SWF! 
</a></p>

Ref: http://pipwerks.com/lab/swfobject/load-onclick/2.0/index.html


Sửa lỗi xung đột với mootools: 
window.addEvent('load'function()
    if ( $('video') ){ 
        var movie = new SWFObject("/video/flvplayer.swf","single","366","204","7"); 
        movie.addParam("allowfullscreen","true"); 
        movie.addVariable("file","/reklamefilm.flv"); 
        movie.addVariable("image","/preview.jpg"); 
        movie.addVariable("width","366"); 
        movie.addVariable("height","204"); 
        movie.addVariable("backcolor","0x585a62"); 
        movie.addVariable("frontcolor","0xffffff"); 
        movie.addVariable("lightcolor","0xcccccc"); 
        movie.write("video"); 
    }
 
});
Theo xahoihoctap.net


Tin liên quan:
Tin mới hơn:
Tin cũ hơn:

Lần cập nhật cuối ( Thứ sáu, 08 Tháng 5 2009 11:38 )  

Kênh 360 công nghệ

  • Nổi bật
  • Tin mới
  • Game mới
  • PrestaShop Guide
  • PrestaShop

Có thể bạn quan tâm

Download nhiều nhất

11/12
Download PES 2011 - FIFA 11
693
18/12
binkw32 dll
175
18/12
TeamViewerQS
49
English French German Japanese Korean