ÔÚWPF¹¤³ÌÖвåÈëFlash¶ÔÏó
ÈçºÎÔÚ WPF ÖÐǶÈë Flash (ActiveX)
±³¾°
×î½üÒ»¸ö Partner Ï£Íû½«ÒÔÇ°µÄ Flash ǶÈëµ½Ò»¸öÈ«Ð嵀 WPF Ó¦ÓÃÖУ¬½« WPF ÔÚ .NET 3.0 Ï·ḻµÄÓû§ÌåÑéºÍ Flash ¶¯»Ïà½áºÏ£¬¸üºÃµØ·þÎñÓÚÆäÓû§¡£
ǶÈë Flash Ï൱ÓÚǶÈëÒ»¸ö ActiveX ¿Ø¼þ£¬ÔÚǶÈë¹ý³ÌÖÐÒ²ÓÐһЩ±È½Ï Tricky µÄµØ·½ÐèҪעÒ⣬ÏÂÃæ¾ÍÔÚ WPF Application ÖÐǶÈë Flash ¿Ø¼þµÄ²½Öè½øÐмòҪ˵Ã÷£¬²¢½«Óöµ½µÄһЩÐèҪעÒâµÄÎÊÌâ½øÐÐÌáʾ¡£
¿ª·¢»·¾³
Visual Studio 2008 Beta1 (Code name: Orcas), Windows Vista, Flash Player 9,
·½·¨
1. ½¨Á¢ WPF Application¡£
Ê×ÏÈ£¬½¨Á¢Ò»¸öÃûΪ FlashinWPF µÄ WPF Application
2. ÉèÖÃ Window ÊôÐÔ¡£
ÔÚ XAML ÖÐÐÞ¸Ä Window µÄÊôÐÔ£¬¼ÓÈë Loaded ʼþ£¬ÉèÖÃĬÈÏ Grid µÄ x:Name ±êʾΪ "FlashGrid" ¸ü¸Äºó´úÂëÈçÏ£º
<Window x:Class="FlashinWPF.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Flash in WPF" Loaded="WindowLoaded" Height="500" Width="600">
<Grid x:Name="FlashGrid">
</Grid>
</Window>
3. ½¨Á¢ Windows Forms Control Library
WPF Application ×÷Ϊһ¸öÕ¹ÏÖ²ãµÄÏîÄ¿£¬²»ÄÜ×ÔÉí²åÈë COM Component£¬ËùÒÔÐèÒª½èÖú Windows Form ÒýÈë ActiveX ¿Ø¼þ¡£
4. ²åÈë Shockwave Flash Object
ÔÚ Toolbox Öеã»÷ÓÒ¼ü£¬Ñ¡Ôñ"Choose Items..." Ìí¼Ó COM Components
Tricky Point: ÔÚ COM ComponentÖл¹ÓÐÒ»¸ö Macromedia Flash Factory Object ͬÑùÁ´½Óµ½C:\Windows\System32\Macromed\Flash\Flash9c.ocx ÖУ¬µ«ÔÚÕâÀﲻҪѡÔñÕâ¸ö Component, ·ñÔò»á³öÏÖ“Failed to import the ActiveX control” ¿ÉÒÔÀûÓà regsvr32.exe Flash9c.ocx ÔÚÃüÁîÐÐÖÐ×¢²á Flash9c.ocx ¿Ø¼þ¡£»á³öÏÖÈçÏÂ×¢²á³É¹¦Ìáʾ£º
5. ´´½¨ Flash Object
Ìí¼ÓÒ»¸ö Shockwave Flash Object ºó»á×Ô¶¯ÔÚ Flash Control µÄÏîÄ¿ÖÐÔö¼ÓÒ»¸öÃûΪAxShockwaveFlashObjects µÄ¶ÔÏó¡£
ÔÚ UserControl1.Designer.cs ÖлáĬÈÏÌí¼Ó axShockwaveFlash1 ¶ÔÏó¡£
private AxShockwaveFlashObjects.AxShockwaveFlash axShockwaveFlash1;
6. ±àÒë Flash Control
7. ÔÚ FlashinWPF ÖÐÔö¼Ó Reference
Ïà¹ØÎĵµ£º
À´Ô´£ºhttp://www.laogu.com/wz_687.htm
NORºÍNANDÊÇÏÖÔÚÊг¡ÉÏÁ½ÖÖÖ÷ÒªµÄ·ÇÒ×ʧÉÁ´æ¼¼Êõ¡£IntelÓÚ1988ÄêÊ×ÏÈ¿ª·¢³öNOR flash¼¼Êõ,³¹µ×¸Ä±äÁËÔÏÈÓÉEPROMºÍEEPROMһͳÌìϵľÖÃæ¡£½ô½Ó×Å,1989Äê,¶«Ö¥¹«Ë¾·¢±íÁËNAND flash½á¹¹,Ç¿µ÷½µµÍÿ±ÈÌصijɱ¾,¸ü¸ßµÄÐÔÄÜ,²¢ÇÒÏó´ÅÅÌÒ»Ñù¿ÉÒÔͨ¹ý½Ó¿ÚÇáËÉÉý¼¶¡£µ«ÊǾ¹ýÁËÊ®¶àÄêÖ®ºó ......
FLASHÇý¶¯ÔÚǶÈëʽϵͳÖÐÓÐמÙ×ãÇáÖصÄλÖ㬶øÄ¿Ç°Êг¡ÉÏNAND FLASHµÄ¼Û¸ñÓÖÒª±ãÒËÓëNOR
FLASH,Ëæ×ÅÔ½À´Ô½¶àµÄƽ̨֧³Ö´ÓNAND FLASHÖÐÆô¶¯£¬ÕÆÎÕNAND
flashµÄÇý¶¯±àдÓÐ×ÅÖØÒªµÄÏÖʵÒâÒ壬ÓÉÓÚÄÚºËÒѾÍê³ÉÁ˴󲿷ֵŤ×÷£¬Êµ¼Ê¹¤×÷Öд󲿷ֹ¤³Ìʦ¶ÔNAND
FLASHÇý¶¯Ö»ÊǼòµ¥µÄÐ޸ģ¬¶ÔÆ乤×÷ÔÀí²¢²»Ì«Çå³þ£¬ÏÂÃæÎÒà ......
<embed id="focus_flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://image2.sina.com.cn/bj/zonghe/pixviewer.swf" width="180" height="200" type="application/x-shockwave-flash" wmode="opaque" bgcolor="#FDD248" flashvars="pics=http://static8.photo.sina.com.cn/orignal/4569dfb ......
×î½üºÜÇ¿ÉνÇî×Öµ±Í·£¬ÊÖÉϵÄÊÂÇ黹ÓкܶàºÜ¶àûÍê³É£¬Éú»î·ÑÒ²Ôã¸âµÃºÜ£¬°Ñ×î½üµÄʵÑ鹤×÷×ܽáһ϶¼ÊÇһЩС´´×÷¡£Ö»ÊÇһЩ×Ô¼ºµÄÍæÒâ.ÈÕºó»á¼ÌÐøÍêÉÆÕâ¸ö°æ±¾Í¼°¸¡£
¸Ã°æ±¾Îª £º vesion 1.0
ÖÁÓÚ¿ª·¢´úºÅ£¿ ²»Ì«Çå³þ¸ÄʲôÃû ºÇºÇ
°üÀ¨£¬´´½¨Ì«¼«£¬´´½¨½££¬´´½¨ÉÈÐΣ¬ÐÄÐÎÏߣ¬Ãµ¹åÏߣ¬¼òµ¥Ê÷£¬µÈËÙ ......