ÔÚFLEXÖеÄstageÒÔ¼°È«ÆÁÏà¹ØÄÚÈÝ
ÏÖÔÚÎÒÃÇÏÈ¿´¿´´úÂë,ÏÂÃæµÄ´úÂë×°ÔÚcreationCompleteʼþÖе÷ÓÃinit()À´Æô¶¯È«ÆÁ.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="init()"
>
<mx:Script>
<![CDATA[
private function init():void{
stage.displayState = StageDisplayState.FULL_SCREEN;
}
]]>
</mx:Script>
</mx:Application>
ÏÖÔÚ±£´æÔËÐÐÒ»ÏÂswf,È´ÓÐTypeError..ÏêϸÐÅÏ¢ÈçÏÂ
view plain
copy to clipboard
print
?
Main Thread (Suspended: TypeError: Error #1009: ÎÞ·¨·ÃÎʿնÔÏóÒýÓõÄÊôÐÔ»ò·½·¨¡£)
swf_fullscreen/init
swf_fullscreen/___swf_fullscreen_Application1_creationComplete
flash.events::EventDispatcher/dispatchEventFunction [no source]
flash.events::EventDispatcher/dispatchEvent [no source]
mx.core::UIComponent/dispatchEvent
mx.core::UIComponent/set initialized
mx.managers::LayoutManager/doPhasedInstantiation
Function/http://adobe.com/AS3/2006/builtin::apply [no source]
mx.core::UIComponent/callLaterDispatcher2
mx.core::UIComponent/callLaterDispatcher
Main Thread (Suspended: TypeError: Error #1009: ÎÞ·¨·ÃÎʿնÔÏóÒýÓõÄÊôÐÔ»ò·½·¨¡£) swf_fullscreen/init swf_fullscreen/___swf_fullscreen_Application1_creationComplete flash.events::EventDispatcher/dispatchEventFunction [no source] flash.events::EventDispatcher/dispatchEvent [no source] mx.core::UIComponent/dispatchEvent mx.core::UIComponent/set
Ïà¹ØÎĵµ£º
¼¸ÖÖµ¼º½Ñ¡Ï
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:ButtonBar dataProvider="myPages">
</mx:ButtonBar>
<mx:ToggleButtonBar dataProvider="myPages">
</mx:ToggleButto ......
1.ÔÚ<Object>ºÍ<embed>ÖÐÉèÖÃflashVars²ÎÊý
£¬ÀýÈ磺
<object
id=’mySwf’ classid=’clsid:D27CDB6E-AE6D-11cf-96B8-444553540000′
codebase=’http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab’
height=’100%’ width=’10 ......
Flexʼþ»úÖÆ
Flexʼþ»úÖÆÊǹ۲ìÕßģʽ£¬¼´Ê×ÏÈҪע²áʼþ£¬Ê¼þ·Ö·¢ºóͨ¹ýʼþÏìÓ¦º¯Êý½øÐд¦Àí¡£
ÀýÈçÔÚAS3ÖУº
button.addEventListener(“click”,onClick);//Ïòbutton×¢²áÒ»¸öclickʼþ
internal function onClick(evt:MouseEvent):void{txt.text=“click a button!”;}//ʼþÏìÓ¦º¯Êý
ÄÇÃ ......
Flash/FlexÒ²Ö§³Ö»ùÓÚSocketµÄÍøÂçÁ¬½Ó £¬·þÎñÆ÷¶Ë¿ÉÒÔÊÇC++,VB,C#,JavaµÈÈÎÒ»ÓïÑÔ¿ª·¢¡£¼àÌýÒ»¸öÍøÂç¶Ë¿Ú±ã¿ÉÒÔ½ÓÊÕµ½Flash/Flex¿ª·¢µÄ¿Í»§¶ËµÄÁ¬½Ó¡£
ActionScript 3.0ÌṩÁËͨ¹ýSocketÁ¬½ÓµÄ·½Ê½Óë·þÎñÆ÷¶ËͨÐÅ¡£ÕâµãÊdz¬Ô½´«Í³B/S½á¹¹µÄÖØÒªÌØÕ÷¡£ÕâÑùʹµÃÍø ......
ÎÒ¸öÈ˾õµÃÕâ¸ö×Ô¶¨Òåʱ¼ä·â×°ÐԺܺ㬵«ÊÇÓе㸴ÔÓ£¬²»½¨Òé¼òµ¥±à³ÌÖÐʹÓÃ
´´½¨Ò»¸öMXML×é¼þ£¬½¨×Ô¶¨Òåʼþ
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
private function clickHandler():void{
// var m ......