flex AIR ¼ÓÔØpdfÎļþ
Ç°¼¸ÌìÒ»Ö±±»ÎªÊ²Ã´ÎÒµÄpdfÎļþÎÞ·¨ÔÚair³ÌÐòÖÐÏÔʾ³öÀ´·³×Å.
ÔÚ¼¸¸ö²»Í¬µÄÂÛ̳·¢ÁËÌû×Ó,¿ÉÊǻشðµÄÈËÁÈÁÈÎÞ¼¸, ÎÒ¶¼»³ÒÉÊDz»ÊÇÎÒµÄÎÊÌâÌ«¼òµ¥ÁË,´ó¼Ò¶¼Ã»ÓÐÈ¥»Ø´ðµÄÓûÍû, ±Ï¾¹ÎҲŽӴ¥flex.
½ñÌìÔçÉÏÖÕÓÚÏë³öÁË´ð°¸:
ÔÀ´±ØÐëÔÚÕýÈ·°²×°ÁËair³ÌÐòÖ®ºó²ÅÄܼÓÔØpdfÎļþ.
ÎҵijÌÐòûÓдí,´íÔÚÎÒÊÇÔÚFlex builderÏÂÔËÐеÄ.
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="initApp()" currentState="page1">
<mx:states>
<mx:State name="page1">
<mx:AddChild position="lastChild">
<mx:HTML x="123" y="74" id="container" width="600" height="400"/>
</mx:AddChild>
</mx:State>
</mx:states>
<mx:Script>
<!--[CDATA[
import flash.html.HTMLPDFCapability; //use HTMLPDFCapability
import flash.html.HTMLLoader; //use HTMLLoader
import mx.controls.Alert; //use Alert
public function initApp():void
{
//check Adobe Reader 8.1 or above capability
if(HTMLLoader.pdfCapability==HTMLPDFCapability.STATUS_OK)
{
var pdf:HTMLLoader = new HTMLLoader(); //HTML Control
var request:URLRequest = new URLRequest("c:/pdf/generated.pdf");//URLRequest example
pdf.height = 400; //set pdf height
pdf.width = 600; //set pdf width
pdf.load(request); //load pdf
container.addChild(pdf); //put pdf in HTML container
}
else
Alert.show("pdf cant display, not Adobe Reader 8.1 and above version");
}
]]
Ïà¹ØÎĵµ£º
Flex ÖпÉÄܵ¼ÖÂÄÚ´æй¶µÄµØ·½
ÊÕ¼¯Á˲»ÉٵĻᵼÖÂÄÚ´æ鶵ÄÇé¿ö£º
ʼþ¼àÌý£º
¶Ô¸¸¼¶¶ÔÏó¼ÓÁ˼àÌýº¯Êý£¬»áÔì³ÉÄÚ´æй¶£¬Àý£º
override protected function mouseDownHandler(…):void
{
systemManager.addEventListener(“mouseUp”, mouseUpHandler);
......
½â¾ö£º
ÔÚÏú»Ù¶ÔÏóµÄʱºò£ ......
ת£ºhttp://www.k-zone.cn/zblog/post/flex-flash-player-gc.html
Flex±à³Ì×¢ÒâÖ®ÐÔÄÜÓÅ»¯¡¢À¬»ø»ØÊÕµÄһЩ×ܽá
×Ô´Ó¿ªÊ¼×öFlex¡¢ActionScript 3.0µÄÏîÄ¿£¬ÎÒ¾ÍÒ»Ö±ÓëÀ¬»ø»ØÊÕ¡¢ÐÔÄÜÓÅ»¯ÕâЩÎÊÌâ´ò½»µÀ£¬Òò´ËÒ²×ܽáÁËһЩÓÅ»¯µÄ·½°¸£¬Í¬Ê±ÔÚһЩQQȺÖÐÒ²µÃµ½ÁËһЩ“¸ßÈË”µÄÖ¸µã£¬Òò´Ë½«´ËÄÚÈݼǼһÏ¡£
ÒÔÏ ......
FLEX--·ÂGoogleÁªÏë¿òЧ¹û--ÏÖÔںöàµØ·½¶¼Óõ½ÁËÕâÑùµÄЧ¹û,µ±È»,ÏÖÔÚGoogleÏÂÏßÁË,²»ÈÃÓÃÁË,µ«ÊǸúÍøÉÏ˵µÄÒ»Ñù,Ïë°ì·¨,Ëü»¹ÊÇÄܳöÀ´µÄ
Ê×ÏÈÊÇʼþÔ´£¬Ò²¾ÍÊǴӺζøÆð£¬ÈçϵÄÒ»¸öÊäÈë¿ò£º
¸´ÖÆ´úÂë ´úÂëÈçÏÂ:
<mx:FormItem label="¼¯ÍÅ¿Í»§:" width="42%">
<!--change1-->
<mx:TextInput id="txt ......
ArrayCollection¾³£×öComboBox¿Ø¼þµÄ¼¯ºÏ»¹ÓÐDataGridµÄ¼¯ºÏ£¬Òª×¢ÒâËüµÄ¸ñʽ¡£dataµÄÊôÐÔÀïÃæÈç¹ûÊÇÊý×Ö²»ÐèҪ˫ÒýºÅ£¬ÈôÊÇ×Ö·û´®¾Í±ØÐë¼Ó£¬¶øÇÒÐèÒªÌáÇ°×÷var¶¨Òå
public var outgoing:String;
  ......
flex ×°Ôضà¸ömodule³öÏÖ: Ç¿ÖÆת»»ÀàÐÍʧ°Ü,³öÏÖijЩÀ಻ÄÜת»»
ÀýÈ磺
ÎÞ·¨½« mx.managers::PopUpManagerImpl@7155ac1 ת»»Îª mx.managers.IPopUpManager¡£
½â¾ö·½·¨ÊÇÔÚApplication¼ÓÈëÒýÓÃ
1.
import
mx.managers.DragManager;
private
var dragManager : DragManager;
2. ......