flexbuilder

How can I debug an Actionscript project in Flex builder?

牧云@^-^@ 提交于 2020-01-06 06:50:28
问题 I am trying to use Flex builder for the first time in years. I haven't used the "Run Application" option before, and when I do that now it tells me "Errors exist in required projects" and whether I should proceed. I would like to debug those errors. Does anyone know how I can do that? PS: When I click the "Debug" button, it does exactly the same thing. I don't see error output in the console views. 回答1: Ensure the Problems view is open (Window -> Show View -> Problems). That will show you

Serialize circular object networks using writeObject / readObject

怎甘沉沦 提交于 2020-01-04 07:35:10
问题 I'm about to implement public function writeExternal( output:IDataOutput ):void {...} public function readExternal( input:IDataInput ):void {...} to make a set of object serializable. Although I'm pretty sure, that I implemented all correctly, readExternal(..) at a certain point complains about too few data left to read: RangeError: Error #2006: The supplied index is out of bounds. at flash.filesystem::FileStream/readObject() I wonder, if I have a circular object network like A = { left -> B,

Connecting any database directly from flex

徘徊边缘 提交于 2020-01-02 19:37:10
问题 Is it possible to connect any database from flex directly? 回答1: Not unless you use Adobe AIR for desktop at which time you'd be using the SQLLite api's to create/connect to a sqlite database file. http://livedocs.adobe.com/flex/3/html/help.html?content=SQL_01.html Anything else is going to require a back end service to handle such transactions. 回答2: You can use asSQL as mentioned by michael, or use the Adobe Air runtime. However, this must be said about using this library: It is EXTREMELY

How open pdf in Air for Android/Black berry

无人久伴 提交于 2020-01-01 17:09:56
问题 I want to open pdf in Air for Android/Black berry. How i do that? I use AIR 2.6 and IDE is Flash Builder 4.5. 回答1: StageWebView. http://help.adobe.com/en_US/as3/dev/WS901d38e593cd1bac3ef1d28412ac57b094b-8000.html Example copied from the link above: package { import flash.display.MovieClip; import flash.media.StageWebView; import flash.geom.Rectangle; public class StageWebViewExample extends MovieClip{ var webView:StageWebView = new StageWebView(); public function StageWebViewExample() {

How open pdf in Air for Android/Black berry

╄→гoц情女王★ 提交于 2020-01-01 17:09:12
问题 I want to open pdf in Air for Android/Black berry. How i do that? I use AIR 2.6 and IDE is Flash Builder 4.5. 回答1: StageWebView. http://help.adobe.com/en_US/as3/dev/WS901d38e593cd1bac3ef1d28412ac57b094b-8000.html Example copied from the link above: package { import flash.display.MovieClip; import flash.media.StageWebView; import flash.geom.Rectangle; public class StageWebViewExample extends MovieClip{ var webView:StageWebView = new StageWebView(); public function StageWebViewExample() {

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

Modules and Panels issue

只谈情不闲聊 提交于 2019-12-25 04:55:26
问题 I have the following problem. In my application I have several modules and each of them have components CollapsableTitleWindow (extends Panel). After opening the window it is added to the container which is in the main application (CollapsableTitleWindowContainer). In these windows you can open another window (and so on). Now, what is the problem. When I change (reload) any module and I want to open a new window (sub window) with the already loaded window I get this error: TypeError: Error

how to use mxml component in another actionscript

岁酱吖の 提交于 2019-12-25 00:13:18
问题 how to use mxml component in another mxml component actionscript code for ex. in my main mxml file private var warningMessage:Warning;//this is variable if (!_controller.flashVars.chatSession || _controller.flashVars.chatSession == "") { warningMessage.includeInLayout = true; warningMessage.visible = true; } else { _controller.flashVars.showWarningMessage = "2"; } private var warningMessage:Warning; (warning is external custom component) warningMessage.visible=true (and i want use it like

Runtime Shared Libraries

戏子无情 提交于 2019-12-24 22:00:01
问题 What is RSL and what is the use of RSL? Have any sample example , Please shared me,. Thanks, Ravi 回答1: Runtime shared libraries RSLs are just SWF files whose code is used as a shared library between different application SWF files. There are two kinds of RSLs, signed and unsigned. Signed RSLs are libraries that are signed by Adobe and may be stored in the Flash Player Cache, which can be accessed by applications from any domain. This means if your application is using a signed RSL, the RSL

override public function initialize() error in flex

天涯浪子 提交于 2019-12-24 17:29:26
问题 i want to know what i should put befor .mx_internal override public function initialize() : void { var target:DialogButtons; var watcherSetupUtilClass:Object; .mx_internal::setDocumentDescriptor(_documentDescriptor_); var bindings:* = _DialogButtons_bindingsSetup(); var watchers:Array; target; if (_watcherSetupUtil == null) { watcherSetupUtilClass = getDefinitionByName("_components_DialogButtonsWatcherSetupUtil"); var obj1:* = watcherSetupUtilClass; obj1.watcherSetupUtilClass["init"](null); }