Flash OBJECTºÍEMBED±êÇ©Ïê½â
Flash OBJECTºÍEMBED±êÇ©
Ò»¡¢½éÉÜ£º
ÎÒÃÇÒªÔÚÍøÒ³ÖÐÕý³£ÏÔʾflashÄÚÈÝ£¬ÄÇôҳÃæÖбØÐëÒªÓÐÖ¸¶¨flash·¾¶µÄ±êÇ©¡£Ò²¾ÍÊÇOBJECTºÍEMBED±êÇ©¡£OBJECT±êÇ©ÊÇÓÃÓÚwindowsƽ̨µÄIEä¯ÀÀÆ÷µÄ£¬¶øEMBEDÊÇÓÃÓÚwindowsºÍMacintoshƽ̨ϵÄNetscape Navigatorä¯ÀÀÆ÷ÒÔ¼°Macintoshƽ̨ϵÄIEä¯ÀÀÆ÷¡£windowsƽ̨µÄIEÀûÓÃActivex¿Ø¼þÀ´²¥·Åflash¶øÆäËüµÄä¯ÀÀÆ÷ÔòʹÓÃNetscape²å¼þ¼¼ÊõÀ´²¥·Åflash¡£
ÏÂÃæÊǼòµ¥µÄÍøÒ³ÖвåÈëflashµÄ´úÂëʾÀý£º
Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="550" HEIGHT="400" id="myMovieName">
<PARAM NAME=movie VALUE="myFlashMovie.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="http://www.doflash.net/"/support/flash/ts/documents/myFlashMovie.swf"" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400"
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"
P ......
ÔÚPowerPoint»ÃµÆƬÖвåÈëFlash·½·¨Ò»
¡¡¡¡½«À©Õ¹ÃûΪ. SWFµÄFlash¶¯»Îļþ²åÈëPPT
¡¡¡¡---²åÈëÒ»¸öÓÉÎļþ´´½¨µÄ¶ÔÏó
¡¡¡¡---ÔÚ“¶¯×÷ÉèÖÔÖеē¶ÔÏó¶¯×÷”Ñ¡ÏîÖÐÑ¡Ôñ“¼¤»îÄÚÈÝ”
¡¡¡¡ÔÚPowerPoint»ÃµÆƬÖвåÈëFlash·½·¨¶þ
¡¡¡¡ÀûÓÃActive X¿Ø¼þ²åÈ붯»
¡¡¡¡---Ñ¡Ôñ“ÊÓͼ”£>“¹¤¾ßÀ¸”£>“¿Ø¼þ¹¤¾ßÏä”
¡¡¡¡---µã»÷“ÆäËü¹¤¾ßͼ±ê”£¬´ÓÏÂÀÁбíÖÐÑ¡Ôñ“ShockWave Flash Object”Ñ¡ÏÊó±ê±ä³É“£«”ÐÎ×´£¬½«ÆäÍ϶¯¼´³öÏÖFlash¿Ø¼þͼÐΡ£
¡¡¡¡---µ¥»÷“¿Ø¼þ¹¤¾ßÏä”ÉϵēÊôÐÔ”°´Å¥£¬´ò¿ªÊôÐÔ¶Ô»°¿ò¡£
¡¡¡¡---Ñ¡Ôñ“×Ô¶¨Ò唣¬µ¥»÷“ä¯ÀÀ”°´Å¥£¬ÔÚµ¯³öµÄ¶Ô»°¿òÖеēMovie URL”ÖÐÊäÈë. swfÎļþ·¾¶¼°Ãû³Æ£¬²¢µ÷Õû“play”£¬“quality”£¬“loop”µÈÆäËüÊôÐÔ¡£
¡¡ÔÚPowerPoint»ÃµÆƬÖвåÈëFlash·½·¨Èý
¡¡¡¡½«FlashÉú³ÉµÄ. exe¶¯»Îļþ²åÈëPPT
¡¡¡¡1¡¢ÏȲåÈëһͼƬ
¡¡¡¡2¡¢¸ÃͼƬ“¶¯×÷ÉèÖÔÖеēµ¥»÷Êó±ê”Ñ¡ÏîÖÐÑ¡Ôñ“ÔËÐгÌÐò&rd ......
subject of application domain of flash and air.
ÔÚflash»òflexÖУ¬³ÌÐò¼ÓÔØÍⲿswfÎļþ£¬¸ÃÎļþµÄ³ÌÐòÓòĬÈÏΪÖ÷³Ì ÐòÓòµÄÒ»¸ö×ÓÓòÖС£±ÈÈçÄãʹÓÃA.swf¼ÓÔØB.swfÎļþ£¬B±»¼ÓÔغ󣬳ÉΪA³ÌÐòÓòµÄÒ»¸ö×ÓÓò£¬×ÓÓòÊÇÉêÃ÷ÀàµÄʱ£¬²»Äܸ²¸Ç¸¸ÀàÒÑÉêÃ÷ÀࣺÈç¹ûAÖж¨ ÒåÁËÀàcom.sogou.MapÀ࣬ͬʱBÖÐÒ²¶¨ÒåÁËcom.sogou.MapÀ࣬µ«Êǵ±B¼ÓÈëµ½AµÄ³ÌÐòÓòʱ£¬Ïȼì²éA³ÌÐòÓòÖÐÊÇ·ñÒÑ´æÔÚÒ»¸öÀà¡£ Èç¹û´æÔÚ£¬ÔòʹÓøÃÒÑ´æÔÚÀ࣬·ñÔòÉêÃ÷ÊôÓÚB×Ó³ÌÐòÓòµÄÀà¡£µ±È»Ò²¿ÉÒÔ½«B²»¼ÓÔص½Ä¬ÈÏÓòÖУ¬¶øÊÇн¨Ò»¸öÓò£º
var loader:Loader = new Loader();
var context:LoaderContext = new LoaderContext();
context.applicationDomain = new ApplicationDomain();
loader.load(new URLRequest(”B.swf”), context);
ͬʱ£¬A¿ÉÒÔʹÓÃB³ÌÐòÓòÖеÄÀࣺ
var bDomain:ApplicationDomain = loader.contentLoaderInfo.applicationDomain;
if (bDomain.hasDefinition(”com.sogou.map::JustForB”)) {
//ÅжÏÒ»¸ö³ÌÐòÓòÖÐÊÇ·ñÒѶ¨ÒåÒ»¸öÀà
var bc:class = bDomain.getDefinition(”com.sogou.map::JustForB”) as class;
var bcInst:Object = new bc();
}
È»º ......
subject of application domain of flash and air.
ÔÚflash»òflexÖУ¬³ÌÐò¼ÓÔØÍⲿswfÎļþ£¬¸ÃÎļþµÄ³ÌÐòÓòĬÈÏΪÖ÷³Ì ÐòÓòµÄÒ»¸ö×ÓÓòÖС£±ÈÈçÄãʹÓÃA.swf¼ÓÔØB.swfÎļþ£¬B±»¼ÓÔغ󣬳ÉΪA³ÌÐòÓòµÄÒ»¸ö×ÓÓò£¬×ÓÓòÊÇÉêÃ÷ÀàµÄʱ£¬²»Äܸ²¸Ç¸¸ÀàÒÑÉêÃ÷ÀࣺÈç¹ûAÖж¨ ÒåÁËÀàcom.sogou.MapÀ࣬ͬʱBÖÐÒ²¶¨ÒåÁËcom.sogou.MapÀ࣬µ«Êǵ±B¼ÓÈëµ½AµÄ³ÌÐòÓòʱ£¬Ïȼì²éA³ÌÐòÓòÖÐÊÇ·ñÒÑ´æÔÚÒ»¸öÀà¡£ Èç¹û´æÔÚ£¬ÔòʹÓøÃÒÑ´æÔÚÀ࣬·ñÔòÉêÃ÷ÊôÓÚB×Ó³ÌÐòÓòµÄÀà¡£µ±È»Ò²¿ÉÒÔ½«B²»¼ÓÔص½Ä¬ÈÏÓòÖУ¬¶øÊÇн¨Ò»¸öÓò£º
var loader:Loader = new Loader();
var context:LoaderContext = new LoaderContext();
context.applicationDomain = new ApplicationDomain();
loader.load(new URLRequest(”B.swf”), context);
ͬʱ£¬A¿ÉÒÔʹÓÃB³ÌÐòÓòÖеÄÀࣺ
var bDomain:ApplicationDomain = loader.contentLoaderInfo.applicationDomain;
if (bDomain.hasDefinition(”com.sogou.map::JustForB”)) {
//ÅжÏÒ»¸ö³ÌÐòÓòÖÐÊÇ·ñÒѶ¨ÒåÒ»¸öÀà
var bc:class = bDomain.getDefinition(”com.sogou.map::JustForB”) as class;
var bcInst:Object = new bc();
}
È»º ......
½ñÌì¸üÐÂÎÒÃǹ«Ë¾µÄÍøÕ¾Ê×Ò³Óöµ½Á˵ãÎÊÌ⣬ÐÂ×°µÄdreamweaver cs3 ×öºÃµÄÒ³ÃæÉÏ´«ºó·¢ÏÖǶÈëµÄ*.swfÎļþÎÞ·¨ÏÔʾ£¨¸Ð¾õ¾ÍÏñ²»´æÔÚÒ»Ñù£©¡£ÎÒÅųýÁËËùÓпÉÄܳöÏÖÎÊÌâµÄµØ·½£¨±ÈÈçÁ´½ÓµØÖ·¡¢Ïà¶ÔºÍ¾ø¶Ô·¾¶¡¢ÎļþÃûµÈ£©£¬×îºó¶à·½²éÕÒÖÕÓÚ·¢ÏÖ£¬ÔÀ´ÊÇdreamweaver cs3 µÄ°æ±¾ÎÊÌâ¡£Õ⻹ÊÇÎÒµÄͬÊ´ӰٶÈÉÏËѵ½µÄ½â¾ö°ì·¨¡£
ÔÀ´dreamweaver cs3 ÔÙ²åÈë*.swfÎļþµÄʱºò»á±ÈÔÀ´¶àÒ»¶Î´úÂë ·Ç³£¹îÒì¡£ÎҺþÃûÓÐŪ¹ýÍøÕ¾ÁËÕâЩб仯ûÓз¢ÏÖ¡£
È¥µôÏÂÃæ±êºìµÄ²¿·Ö£¬Ò³Ãæ¾Í¿ÉÒÔÕý³£ÏÔʾÁË¡£
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0','height','430','width','770','src','index','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','menu','false','movie','index' ); //end AC code
</script>
<noscript>Ê¡ÂÔµÄFLASHÄÚÈÝ´úÂ루±£Áô£© </noscript>
¿ÉÒÔÊÔÊÔ°ÑÇ°ÃæµÄ<noscript>ºÍºóÃæµÄ</noscript>È¥µô£¬Ó¦¸Ã¾Í¿ÉÒÔ ......
½ñÌì¸üÐÂÎÒÃǹ«Ë¾µÄÍøÕ¾Ê×Ò³Óöµ½Á˵ãÎÊÌ⣬ÐÂ×°µÄdreamweaver cs3 ×öºÃµÄÒ³ÃæÉÏ´«ºó·¢ÏÖǶÈëµÄ*.swfÎļþÎÞ·¨ÏÔʾ£¨¸Ð¾õ¾ÍÏñ²»´æÔÚÒ»Ñù£©¡£ÎÒÅųýÁËËùÓпÉÄܳöÏÖÎÊÌâµÄµØ·½£¨±ÈÈçÁ´½ÓµØÖ·¡¢Ïà¶ÔºÍ¾ø¶Ô·¾¶¡¢ÎļþÃûµÈ£©£¬×îºó¶à·½²éÕÒÖÕÓÚ·¢ÏÖ£¬ÔÀ´ÊÇdreamweaver cs3 µÄ°æ±¾ÎÊÌâ¡£Õ⻹ÊÇÎÒµÄͬÊ´ӰٶÈÉÏËѵ½µÄ½â¾ö°ì·¨¡£
ÔÀ´dreamweaver cs3 ÔÙ²åÈë*.swfÎļþµÄʱºò»á±ÈÔÀ´¶àÒ»¶Î´úÂë ·Ç³£¹îÒì¡£ÎҺþÃûÓÐŪ¹ýÍøÕ¾ÁËÕâЩб仯ûÓз¢ÏÖ¡£
È¥µôÏÂÃæ±êºìµÄ²¿·Ö£¬Ò³Ãæ¾Í¿ÉÒÔÕý³£ÏÔʾÁË¡£
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0','height','430','width','770','src','index','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','menu','false','movie','index' ); //end AC code
</script>
<noscript>Ê¡ÂÔµÄFLASHÄÚÈÝ´úÂ루±£Áô£© </noscript>
¿ÉÒÔÊÔÊÔ°ÑÇ°ÃæµÄ<noscript>ºÍºóÃæµÄ</noscript>È¥µô£¬Ó¦¸Ã¾Í¿ÉÒÔ ......
´ó¼Ò¶¼ÖªµÀSTM32µÄCPUʱÖÓƵÂÊ¿ÉÒÔ´ïµ½72MHz£¬ÒÔºó»¹»á¸ü¿ì£¬µ«ÊÇÓÉÓÚ°ëµ¼ÌåÖÆÔ칤ÒÕµÄÏÞÖÆ£¬´æ·Å³ÌÐòµÄFlash´æ´¢Æ÷²»¿ÉÄÜ´ïµ½Õâô¸ßµÄ¹¤×÷ƵÂÊ£¬ÕâÑùµ±CPUÖ±½Ó·ÃÎÊFlash´æ´¢Æ÷ʱ±ØÐë²åÈëµÈ´ýÖÜÆÚÒԵõ½ÕýÈ·µÄ½á¹û¡£
ÎÊÌâÊÇÔÚFlashµÄËٶȱÈCPUÂýµÄÇé¿öÏ£¬ÊDz»ÊÇ¿ÉÒÔ¼òµ¥µØ˵STM32ÔÚÖ´ÐÐFlashÖеijÌÐòʱÿÌõÖ¸ÁÐèÒª²åÈëµÈ´ýÖÜÆÚÄØ£¿µÈ´ýÖÜÆڵIJåÈë¶Ô³ÌÐòµÄÖ´Ðе½µ×Óжà´óµÄÓ°Ï죿Çë¿´ÏÂÃæµÄ·ÖÎö£º
Ê×ÏÈ£¬STM32µÄÄÚ²¿FlashÊÇ×éÖ¯³É64λ¿í¶È£¬¼´Ã¿´Î¿ÉÒÔ¶Á³ö64λ£»ÔÚFlashÓëCPUµÄÈ¡Ö¸¶ÓÁÐÖ®¼äÓÐÁ½¸ö»º³åÆ÷£¬ÓÃÓÚÔÝ´æFlashÖÐÈ¡³öµÄÖ¸Á¼ûÏÂͼ¡£
Æä´Î£¬STM32µÄÖ¸ÁîÓÐ16λµÄÒ²ÓÐ32λµÄ£¬Ö¸ÁîÊÇ´ÓͼÖÐÂÌÉ«µÄ»º³åÆ÷È¡³ö£»µ±ÂÌÉ«»º³åÆ÷±ä¿Õʱ£¬»ÆÉ«»º³åÆ÷ÖеÄÄÚÈݻᱻ¸´ÖƵ½ÂÌÉ«»º³åÆ÷ÖУ»ÕâÑùÈ¡Ö¸Óë¶ÁÈ¡Flash»¥²»¸ÉÈÅ¡£
ÕýÒòΪSTM32µÄÖ¸ÁîÓв»Í¬³¤¶È£¬ËùÒÔ³ÌÐòÖ´ÐеĵȴýÖÜÆÚÓë³ÌÐòµÄÄÚÈÝÓйء£
ͼһÊǼٶ¨ËùÓÐÖ¸ÁÊÇ16λµÄÖ¸Á
1£©Ê±¿Ìt0ʱ»ÆÉ«»º³åÆ÷ºÍÂÌÉ«»º³åÆ÷¶¼Îª¿Õ£¬´ËʱCPUµÈ´ý3¸öÖÜÆں󣬵½Ê±¿Ìt1ʱ²ÅÄܶÁµ½Ö¸Á
2£©Ê±¿Ìt1ʱÂÌÉ«»º³åÆ÷±»ÌîÂú£¬»ÆÉ«»º³åÆ÷ÈÔΪ¿Õ£¬Flash¿ØÖÆÆ÷¼ÌÐø¶ÁÈ¡ºóÐøÖ¸Á
3£©Ê±¿Ìt2ʱÂÌÉ«»º³åÆ÷»¹ÓÐÁ½¸ö×Ö½Ú£¬»ÆÉ«»º³åÆ÷±»ÌîÂú£»´Ë ......
ÔÚ×ÖµäÖеÄ˵Ã÷²»¹»³ä·ÖÈôó¼ÒÈ¥Àí½â£¬ËùÒÔ¿ªÊ¼»¹ÊÇÒªÖظ´ËµÃ÷һϡ£Matrix¾ØÕó¾ÍÏñ¸öÊý×飬ÅÅÁз½Ê½ÊÇÒÔÁÐÓëÐÐ×é
³É¡£ÔÚflash 8ÖÐËùÌṩµÄÊÇ3 x 3¾ØÕó£¬3x3µÄ¾ØÕó¿ÉÒÔ¶¨Òå³öÒ»¸ö3D¼ÆË㣬µ«ÔÚFlash 8ÖÐÖ»¹©2DµÄ¼ÆË㣬¼´ x ºÍ y
µÄ¼ÆË㣬ÄÇôÎÒÃÇÀ´¿´¿´Õâ¸ö¾ØÕóµÄ¶¨Òå
ÒÔÉϵÄÿ¸ö×Öĸ¶¼Óи÷×ÔµÄÔËÓÃÒâÒ壬·Ö±ðÊÇ£º
a = ¿ØÖÆ X µÄ¿í¶È
b = ¿ØÖÆ Y µÄÇãб
c = ¿ØÖÆ X µÄÇãб
d = ¿ØÖÆ Y µÄ¸ß¶È
tx = ¿ØÖÆ X ×ø±êλÖÃ
ty = ¿ØÖÆ Y ×ø±êλÖÃ
½ÓÏÂÀ´¾ÍÊÇÈçºÎÔÚMatrixº¯ÊýÖж¨Ò壬ÆäʵºÜ¼òµ¥¡£Ê×ÏÈ»ãÈë Matrix µÄ·â°ü£¬È»ºó¾Í¿ÉÒÔ¿ªÊ¼¶¨Òå
import flash.geom.Matrix; //µ¼ÈëÀà°ü
var myMatrix:Matrix = new Matrix(a, b, c, d, tx, ty);
//¿ªÊ¼¶¨ÒåMatrixÀà
µ±ÖеÄa, b, c, d, tx, ty¿ÉÒÔÖ±½Ó¶¨Òå¡£ÔÙÀ´ÎÒÃÇ°ÑÕâ¶ÎÒýÈëÀý×Ó£¬ÒÔÖ¤Ã÷¼°°ïÖúÁ˽âÒÔÉϸ÷¸ö²ÎÊýµÄÔËÓá£
¡¡¡¡²½Öè
1
£º
ÔÚ³¡¾°ÉϽ¨Á¢Ò»¸öMC£¬¼´»
¸ö·½Ðκó°´F8Ñ¡ÔñMovieClip£¨Ó°Æ¬£©£¬¶¨ÒåʵÀýÃûΪmc
¡¡¡¡²½Öè
2
£º
µ½³ ......