Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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 ÖпÉÄܵ¼ÖÂÄÚ´æй¶µÄµØ·½

Flex ÖпÉÄܵ¼ÖÂÄÚ´æй¶µÄµØ·½
ÊÕ¼¯Á˲»ÉٵĻᵼÖÂÄÚ´æ鶵ÄÇé¿ö£º
ʼþ¼àÌý£º
¶Ô¸¸¼¶¶ÔÏó¼ÓÁ˼àÌýº¯Êý£¬»áÔì³ÉÄÚ´æй¶£¬Àý£º
override protected function mouseDownHandler(…):void
{
systemManager.addEventListener(“mouseUp”, mouseUpHandler);
......
½â¾ö£º
ÔÚÏú»Ù¶ÔÏóµÄʱºò£ ......

¹ØÓÚflexºÍspring+hibernateÕûºÏweb.xmlµÄ´íÎó

flexºÍspring+hibernateÕûºÏÍê³Éºóweb.XML³öÏÖÈçÏ´íÎó
The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,reso ......

flex ÓÅ»¯¼¼ÇÉ ÊÕ¼¯[ÌáÉýÐÔÄÜ]

1¡¢µ±´´½¨Ò»¸öÊý×éµÄʱºò±ÜÃâÓÃnew²Ù×÷·û,Óà var a:Array = [];¶ø²»ÓÃvar a:Array = new Array();
2¡¢¿ìËٵĸ´ÖÆÒ»¸öÊý×飺
var copy : Array = sourceArray.concat ();
3¡¢ÉèÖÃÒ»¸öÊý×éµÄÖµÊǷdz£Ã¦µÄ£º
employees.push ( employee ); employees[2] = employee;
4¡¢´ÓÒ»¸öÊý×éÖÐÈ¡µÃÖµµÄËÙ¶ÈÊÇÉèÖÃÒ»¸öÊý×éÖµµÄÁ½±¶ ......

FLEX TitleWindowÖ®¼äÊý¾Ý´«ÊäµÄʾÀý


ÔÚFlexÀһ°ãµÄµ¯³ö´°¿Ú£¨³ýÁËAlertÒÔÍ⣩¶¼¿ÉÒÔÓÃTitleWindow×é¼þÍê³É£¬Ö÷´°¿ÚºÍTitleWindowµÄÊý¾Ý´«Êä¿ÉÒÔÓÃÒÔÏ·½·¨
¼ÙÉèTitleWindowµÄʵÀýÎļþΪtitleWin.mxml£¬ÔòÒªÔÚApplicationÖÐÓÃPopUpManager´´½¨Ò»¸ötitleWinµÄÒýÓÃ
private var popWin:titleWin = titleWin(PopUpManager.createPopUp(this,titleWin,true) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ