Inspect A Singleton In The Flex Debugger?
May 28, 2009I'm storing my model data in a Singleton called ModelLocator. This is pretty common...
Can I look at this data in the debugger?
[Edited - Title changed]
I'm storing my model data in a Singleton called ModelLocator. This is pretty common...
Can I look at this data in the debugger?
[Edited - Title changed]
I'm trying to get Flex and OpenX working together. I can get the ads to work when I view the site on a Mac using Firefox or Safari. But, if I use a PC with IE, I get error #1090 which is an XML parser failure.
Apparently, there is malformed XML. How do I check the XML that OpenX produces? What's the best way to find the nasty node?
I'm debugging a problem and I've got: o = URLUtil.stringToObject(browserManager.fragment); When I try to put an alert on the var o, I get [object] [object]. How do I find out its value?
View 3 RepliesIs there any tool available for Flex applications that acts similar to Web Developer or Firebug toolbar to inspect UI elements? Basically in a complex hierarchy of UI controls allowing you to browse the elements and see properties such as x and y coordinates, width, height, id.I'm interested in tools that would allow you to do this at runtime, since most of the properties are dynamic.
View 3 RepliesHow does one inspect the HTTP traffic in Adobe Air? Obviously because it's running outside of a browser you can't use firebug .
View 4 RepliesIs there a way to inspect HTTPS traffic from Flex applications compiled to SWF files?I'm trying to use Fiddler for this, have added DO_NOT_TRUST_FiddlerRoot to my Trusted RootCertification Authorities so my IE now can access other HTML sites that would normally complain about untrusted certificate. However, the HTTPS traffic from the SWF file still doesn't appear in Fiddler and, in fact, the Flex app wouldn't work (HTTPS with a self-signed certificate is not supported by Flex apps I believe). Is there a way around it?Update: To be clear, I am interested in the traffic between the SWF file running under Flash Player and the server (typically, Flex components like HTTPService will be used for this). The SWF file itself can be served via HTTP or HTTPS, it doesn't really matter.Clarification 2: Don't assume that the source code is available for the SWF file. If it was, Flash Builder 4's Network Monitor could be used.
View 3 RepliesIn every language there are a lot of tool to inspect the interface exposed by the compiled file, then what is the best tool for Flex swf file? I am debugging my code but the invoke always failed, I am writing my callee like below in my mcml file:
public function playVideo():void
{
svid.play();[code]............
And in another mcml I am using SWFLoader to load it and call it, but it always failed.
The popular debugging tool "Kap Inspect" [URL] Kap+Inspect Does this work with normal flash applications that have been built with Flash CS4 (and not Flex)? Their tutorials focus mainly on flex and mxml, etc.
View 2 RepliesI have a doubt,.... How would you create a Singleton class in Flex...
Is there any convention like the class name should eb Singleton or it should extend any other class.
How many Singleton class can a project have?
Can anyone say the real time usage of a Singleton class?
I am planning to keep my components label texts in a Singleton class... Is it a good approach.
I know singleton class is not supporting in Flex.Because it does not access private constructor. But i want to make a class is singleton class.
View 2 RepliesI know actionscript does not allowed private contstructor at any time and But if i want to write a sinlgleton class in action script So how to implement it in actionscript.
Can anyone provide an sample example of a singleton pattern in actionscript?
I know actionscript does not allowed private contstructor at any time and But if i want to write a sinlgleton class in action script So how to implement it in actionscript.
Can anyone provide an sample example of a singleton pattern in actionscript?
I have a ManagerClass with a Singleton implementation inside, I get the instance by calling ManagerClass.getInstance().
Can I get that same instance by just having the class name as a string? I have tried something like:
var theInstance:* = getDefinitionByName("ManagerClass").getInstance as Class;
theInstance.doTrace(); // I get a 1009 error here
is there any documentation on the FlexBuilder "expressions" tab, and what expressions it can accept?As far as I can tell, it can show the value of variables, but that's it: comparisons, function and method calls all fail: [code]this is specific to FB3 Flex Builder. Apparently FB4 Flash Builder is slightly less incompetent.
View 2 RepliesI've tried everything, firewalls, reinstalling etc etc. I can't get the debugger to connect no matter what I do.
I'm just writing a simple Air application, with Flex and Actionscript. But any type of debugging on any type of application doesn't work. I get this message
The Flash Builder debugger failed to connect to the running application.
Then often when I try again, I get this message
Unrecognized Windows Sockets error: 0: JVM_Bind
Running the program without debugging works fine.
If I changed used in one of my project sdk to current sdk4 beta, set breakpoint and stop on them every occurrences of mx.* packages are labeled "[no source]". Is known any trick to fix this issue?
View 1 RepliesI'm working on a large-size dual AS3/Flex project (some parts are pure AS3, other parts are Flex), and I'm experiencing a lot of Flash Debugger crashes.
These crashes aren't completely random - it seems like I can get them to occur with greater consistency when I perform certain actions in my app. However, at the same time, they aren't consistently repeatable - sometimes a set of actions causes my app to crash, and other times, the same steps execute fine without a crash.
I have two questions (carefully worded to remove my personal bias
[Code]...
I've started getting the following when I try to run FB4 projects:
/Library/Internet Plug-Ins/Flash Player.plugin
Flash Builder cannot locate the required debugger version of Adobe Flash Player. You might need to install the debugger version of the Flash Player or reinstall Flash Builder.
I've installed the debugger version of the Flash Player. Didn't work. I've reinstalled Flash Builder. Didn't work. I tried using Safari instead of Firefox. Didn't work.
When I go to Macintosh HD/Library/Internet Plug-Ins/ in the finder, I can see Flash Player.plugin right there. But when I go to Username/Library/Internet Plug-Ins the entire folder is blank. So I tried copying Flash Player.plugin to the latter folder. Didn't work.
Mac questions (I'm new to mac): Which of these is really the root? Is it normal that there should be duplicate directories like this, with non-duplicate contents??
In FB I opened Windows --> preferences --> Flash Builder --> Profiler --> Player/Browser and browsed to /Applications/Adobe Flash CS5/Players/Debug/Flash Player Debugger.app
What does Flash Player Debugger.app have to do with Flash Player.plugin?
I cant pass the query string while using the debugger or else i cant debug when there is a query string. how to use the bothAm using a web application in flex using php for ex : [URL]
View 2 RepliesI recently upgraded to IntelliJ 11 and the version 10 debugger used to allow for E4X / XML debugging. I was able to expand the children and inspect elements/attributes of XML but now I can't get that to work. Has something changed/broken?
View 2 RepliesI am working with a project that is developed in the flash environment, but I love the flex/eclipse debugger in that i can throw a breakpoint in and inspect the vars that are present. Is there a way that I can debug flash in the flex environment?
I have (of course) googled the subject and found that there are several posts on the topic but they are incomplete, missing images, or not working in my environment.
An existing (though incomplete) FLEX3 project was given to us to finish (always a nightmare).It is quite small but highly abstracted (contains well over 150 files to support only about 10 page views). I'm attempting to trace a single mouseclick event through this maze.
Is there a way to print out an actionscript trace and/or component flow using the debugger (or any other tool that anyone knows of)? The flash.txt file appears worthless since it doesn't contain ActionScript calls and/or component flows.
Using Flex Builder 3 : I have been getting this problem in every single debug launch for past few hours. I used to get this earlier too, but once in a while, not with every debug launch. I found out that flex debugger uses a certain 7395 port but I can't figure out how to change it?
View 9 Replieswhen I debug a flex application in the properties of display objects i also see variables that start with a dollar sign, like: $alpha, $width, $x, etc.. what are they? are they different from the "normal" alpha, width, x properties?
View 1 RepliesAbobe seems to only list the most recent debugger version, even though I can target previous players in build.
View 3 RepliesAs developers at De Monsters we werent totally happy with the current Flash, Flex or AIR debuggers out there. So we decided to create our own debugger called De MonsterDebugger. Today weve got a great new version that we want to share with the community for free.
[Code]...
I am using the Flex Builder 3 debugger almost every day and it's starting to be a real pain that the 'Variables' tab in the 'Flex Debugging' view doesn't show local variables, only 'this' is displayed.
Also I can not add Watch Expressions for local variables.
Am I forgetting something here or is the debugger just very limited?
If I build my mxml file to an .air application, NativeDragEvent works like a charm. However, I would like to be able to debug this feature from Flashbuilder. From Flashbuilder, the NativeDragEvents are not called.
View 1 RepliesMy air program freezes after running for some time without any error. The app will freeze (non responsive) and the debugger will claim the program has terminated with status 0.
View 1 RepliesI am building an Android application using Flex Hero. When I run the application I can package it fine on my mobile and run it on the device, however, as soon as I want to run in debug mode on the device, the device gives me a message like: "Can't connect to debugger (192.168.1.12). Enter IP-address or hostname". The device is connected with a USB to the PC and USB debugging is enabled on the device. I have tried to shut down the computer's firewall, but no result.
View 1 Replies