apache-flex

strange Error 1006: %function_name% is not a function

瘦欲@ 提交于 2019-12-13 03:20:33
问题 I encounter the following error: Error 1006: %function_name% is not a function We have 2 util classes in out project named as ArrayUtils . All functions in them are public static . Another developer added function %function_name% to one of ArrayUtils . I use this method in my code. I recompiled whole application. It compiles OK and IDE (IntelliJ IDEA) detects this method normally (imports are correct). But at runtime I got mentioned above error. The most strange thing is that this code works

Getting next record in SQLite database for mobile application

China☆狼群 提交于 2019-12-13 03:11:58
问题 I have a mobile application that uses an sqlite database. I cannot seem to figure out how to access the next record when the user presses the 'next' button. My database is using 'id' as primary key with autoincrement as integer. private function nextMoveRPart(event:EffectEvent):void { var cardNumber:int = parseInt(cardNumberLabel.text); stmt.sqlConnection = conn; conn.open(File.applicationStorageDirectory.resolvePath("FlashCards.db")); stmt.text = "SELECT * FROM cardItems WHERE id = ?" + "AND

The 'Passive' connection '<appname>' access to protected services is denied

余生颓废 提交于 2019-12-13 02:59:52
问题 I'm developing a flex mobile iOS application using air sdk 15.app freezes when it display the webview and start communication between servers.it's works fine when I deploy the application directly to the device through the flash builder.the error occurs when I install the app creating the ipa(installed using iTunes) <Error>: HID: The 'Passive' connection '<appname>' access to protected services is denied. I have tried many things like changing ios sdk version and disabling ANE's but not

Flex DateChooser events for individual days?

a 夏天 提交于 2019-12-13 02:55:09
问题 I'm using a DateChooser, and want to show different information in a tooltip as the user rolls over each day. Is there an event that fires as I'm rolling around the calendar that will tell me what day I'm currently over? 回答1: It's a little complicated. You're going to need to use the mx_internal namespace. The grid portion of the DateChooser component is a CalenderLayout component in DateChooser.as. mx_internal var dataGrid:CalenderLayout; CalenderLayout.as has the mouseMoveHandler. In the

flex actionscript not uploading file to PHP page HELP!

南楼画角 提交于 2019-12-13 02:54:58
问题 please help! I am using actionscript 3 with flex sdk 3.5 and PHP to allow a user to upload a file -that is my goal. However, when I check my server directory for the file... NOTHING is there! For some reason SOMETHING is going wrong, even though the actionscript alerts a successful upload (and I have even tried all the event listeners for uploading errors and none are triggered). I have also tested the PHP script and it uploads SUCCESSFULLY when receiving a file from another PHP page (so i'm

XML Caching issue in FLex

烈酒焚心 提交于 2019-12-13 02:45:13
问题 private function loadGallery():void { theSend.url = "http://localhost/userMana/file.xml"; theSend.send(); } I am calling this XML in Flex Tree and its works fine, but when after an update in XML it does not update back in my TREE unless i compile my flex builder again. 回答1: I usually do this by appending the time to the XML url: var now:Date = new Date(); theSend.url = "http://localhost/userMana/file.xml?" + now.getTime(); theSend.send(); non-cached every time. 回答2: You could try flushing

The property still has the old value in validateProperties

一世执手 提交于 2019-12-13 02:43:49
问题 I have a custom renderer (inherits from AdvancedDataGridItemRenderer ), and I'm overriding validateProperties and using the value of the width property, but I'm getting the old value every time! Isn't validateProperties supposed to execute after the properties were committed (I'm calling super)? Here's my code: public override function validateProperties():void { super.validateProperties(); if ((AdvancedDataGrid(listData.owner).columns[listData.columnIndex]. showDataTips)&&(textWidth>width))

RegExpValidator never matches

ぃ、小莉子 提交于 2019-12-13 02:43:36
问题 I've got a class that's meant to validate input fields to make sure the value is always a decimal. I've tested the regex here: http://livedocs.adobe.com/flex/3/html/help.html?content=validators_7.html, and it looks like it does the right thing, but in my app, I can't seem to get it to match to a number format. Class Definition: public class DecimalValidator { //------------------------------- ATTRIBUTES public var isDecimalValidator:RegExpValidator; //-------------------------------

Weird Behaviour-CheckBoxes as ItemRenderer within Flex DataGrid - FLEX 3

十年热恋 提交于 2019-12-13 02:28:49
问题 I'm having this weird behaviour in a datagridColumn which I've customized to have its cells rendered as checkBoxes rather than the dafault itemRenderer (i.e. strings). The relevant code is as follows: <mx:DataGridColumn sortable="false" textAlign="center" headerText="" width="20" dataField="colCB"> <mx:itemRenderer> <mx:Component> <mx:CheckBox selected="true"> <mx:Script> <![CDATA[ import mx.controls.Alert; public function change():void{ //TODO } ]]> </mx:Script> </mx:CheckBox> </mx:Component

XML, TypeError: Error #1088: The markup in

拈花ヽ惹草 提交于 2019-12-13 02:26:36
问题 Can anyone see whats wrong with either the code to grab the XML or the XML file itself? It looks well formed to me and I don't see the cause of the error: A TypeError has occured: TypeError: Error #1088: The markup in the document following the root element must be well-formed. var file:String = 'config.xml'; var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest(file); loader.load(request); loader.addEventListener("complete", onComplete); loader.addEventListener(