apache-flex

How to pass “Null” (a real surname!) to a SOAP web service in ActionScript 3

风流意气都作罢 提交于 2019-12-28 04:37:05
问题 We have an employee whose surname is Null. Our employee lookup application is killed when that last name is used as the search term (which happens to be quite often now). The error received (thanks Fiddler!) is: <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.MissingArgumentException : The SEARCHSTRING parameter to the getFacultyNames function is required but was not passed in.]</faultstring> Cute,

Accessing browser cookies from Flex

◇◆丶佛笑我妖孽 提交于 2019-12-28 04:23:13
问题 I'm building a Flex widget for a private vBulletin site, and the Flex widget needs to access an XML file on the vBulletin server in order to display data. For security reasons, the XML URL will need to have the value in the bbsessionhash cookie passed along in the URL request from Flex. The Flex widget will be embedded in the private area that the user has logged into, so the Flex request will be coming from the same website the cookie is from. Is there any way to access the cookies directly

HIghlight row in red border in AdvancedDataGrid in Flex 4

我的梦境 提交于 2019-12-25 18:28:50
问题 I want to highlight the row in red border in AdvancedDataGrid without selecting the row. My selected item is different from the highlight row. Please see the following image : My selected index is where Territory is Nevada but my highlighted row is different(in Red Border) based on some condition. So please tell me how can i implement it. 回答1: You will have to extend mx.controls.advancedDataGridClasses.AdvancedDataGridGroupItemRenderer and add the condition + visuals to add the red border

AS3 debugger stops responding while trying to load image into sprite using Loader

六眼飞鱼酱① 提交于 2019-12-25 17:27:16
问题 I'm trying to create a simple Menu in AS3. There is a sprite called startButton , which when pressed will call the function startGame , and that's it! But, not so easy. I'm using flashdevelop IDE so I'm trying to call a loader to get a .png image file for the spite startButton . But, it doesn't work. There are no error messages, the debugger just does not respond. Any help? Here is the code for both files Main code: package { //Other Files import Menu; import flash.display.Bitmap; import

FLEX/AS3 How to open docx/odt file

时光总嘲笑我的痴心妄想 提交于 2019-12-25 17:18:19
问题 I have function that create docx or odt file. I need automaticly to open this file in microsoft/libre office, right after creation complete. How to coding this in flex/as3 ? protected function create003(docType:String, patientID:String):void { create003Result.token = nhealthReports.create003(docType, patientID); } protected function getFormModuleDataResult_resultHandler(event:ResultEvent):void { var pathToFile:String; pathToFile=create003Result.lastResult; // this is path to created file //

Data filtering for XML. Flex

谁说胖子不能爱 提交于 2019-12-25 16:49:18
问题 I am trying to filter xml data but right now I there are no data appearing in the list. Am I doing something wrongly? Sorry guys I am still new to this website too. Pardon me If I posted the wrong way. This is the error. TypeError: Error #1034: Type Coercion failed: cannot convert mx.collections::ArrayCollection@51443c1 to XMLList. xmlns:s="library://ns.adobe.com/flex/spark" title="Malls" creationComplete="malls.send()"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value

Actionscript Arrays of Objects?

荒凉一梦 提交于 2019-12-25 16:40:53
问题 I have a class named TextLink. The text is meant to be clicked on and it should dispatch an event (which I'm not too concerned about yet)... currently it just prints out a message. The class takes an x, y, and a string to set the text. Dead simple... But it crashes the browser. Instance calls in main: package { import flash.display.Sprite; import nav.text.TextLink; public class test_array_of_objects extends Sprite { public function test_array_of_objects() { var ary:Array = new Array(5); var i

Create Windows/Macintosh Projector from Flash Builder 4

孤街浪徒 提交于 2019-12-25 16:24:32
问题 Am I able to publish a Windows/Macintosh projector from Flash Builder 4? I would like a solution that stays within the IDE, rather than having to open FlashPlayer.exe and export the EXE/App. 回答1: You can display your swf in the standalone flash player, and then create the projector from there (file -> create projector). http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa.exe 回答2: Closing this question...doesn't seem possible. I'm sticking with Flash CS5 to publish

Load image of size greater than 2880 in Bitmap

别等时光非礼了梦想. 提交于 2019-12-25 15:56:34
问题 I am using bitmap to load the image, if the image size is more than 2880 h/w I am getting an error. BitmapData src = new BitmapData(canvasToPrint.width,canvasToPrint.height)(canvasToPrint.width, canvasToPrint.height); src.draw(_designArea); // -- encode the jpg var quality:int = 115; var jpg:JPEGEncoder = new JPEGEncoder(quality); var byteArray:ByteArray = jpg.encode(src); if canvasToPrint.width > 2880 or canvasToPrint.width > 2880 I will get below error at line 1 Error : invalid Bitmap To

Load image of size greater than 2880 in Bitmap

做~自己de王妃 提交于 2019-12-25 15:55:42
问题 I am using bitmap to load the image, if the image size is more than 2880 h/w I am getting an error. BitmapData src = new BitmapData(canvasToPrint.width,canvasToPrint.height)(canvasToPrint.width, canvasToPrint.height); src.draw(_designArea); // -- encode the jpg var quality:int = 115; var jpg:JPEGEncoder = new JPEGEncoder(quality); var byteArray:ByteArray = jpg.encode(src); if canvasToPrint.width > 2880 or canvasToPrint.width > 2880 I will get below error at line 1 Error : invalid Bitmap To