Air 1.5 debug from flex 3
With the update of flex to 3.2.0 is not possible to debug an
application. When start a debug session the application start but
the breakpoint don't works. Closed the application, flex notify the
error to establishing a debug session. I'm working on Mac OSX
10.5.5.
This is the simple code:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
private function init():void {
trace('init!');
]]>
</mx:Script>
</mx:WindowedApplication>
Starting the debug session the application start but the
trace command has no output in console panel and if I put a
breakpoint on row 6 the application don't stop!
This is the result output at the end of the application:
Process terminated without establishing connection to
debugger.
Command:
"/Applications/Adobe Flex Builder 3/sdks/3.2.0/bin/adl"
-runtime "/Applications/Adobe Flex Builder
3/sdks/3.2.0/runtimes/air/mac" "/Users/sbaldizz/Documents/Flex
Builder 3/bbb/bin-debug/bbb-app.xml"
"/Users/sbaldizz/Documents/Flex Builder 3/bbb/bin-debug"
Output from command:
init!
I'm also having this problem. Changed the NS to 1.5, set the
htmlPlayer to 10.0.0, updated FB, ensured the SDK was at 3.2,
installed the FP 10 debugger AX plugin as well as the mozilla
plugin.
Still can't debug. I am dead in the water, lost two days of
work, and would have preferred to just use AIR 1.1 if I had of
known, but the autoupdate screwed my program up.
Similar Messages
-
How to execute adobe air app & pass argument from Flex ?
Helo everyone,
May i ask a question, How to execute adobe air app & pass argument from Flex ?
Thanks in advanced.
Jacky Ho.Hello Jacky,
You can find an example here
http://spreadingfunkyness.com/passing-parameters-to-adobe-air-at-startup/ -
How to Call a AIR application from Flex Application
Hi,
I have Used AIR (Desktop application) in Flex Builder to Upload a File from a local path and save it it a server path.
I need to Call this AIR(Desktop application) from my Flex Application.... i.e
I am using a link button to send a event using Script and Forward that Desktop application from Flex Screen
But it doesnot load that (Desktop application) in Screen. Only Balnk screen is loaded from path
Here is the code
AIR(Desktop application)
<?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="openBrowseWindow();">
<mx:HTTPService id="urlpath" showBusyCursor="true" useProxy="false" method="
POST" url="http://localhost:8080/nat/FlexAction.do?method=UrlPath"result="pathresult(event)"
fault="faultHandler(event)"
>
</mx:HTTPService>
<mx:Script>
<![CDATA[
import mx.events.FileEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.utils.ObjectUtil;
import mx.controls.Alert;
private
var openFile:File = new File()
private
function openBrowseWindow():void{openFile.addEventListener(Event.SELECT, onOpenFileComplete);
openFile.addEventListener(Event.OPEN, load);
openFile.browse();
private
function load():void{Alert.show(
"load");
var imageTypes:FileFilter = new FileFilter("Images (*.jpg, *.jpeg, *.gif, *.png)", "*.jpg; *.jpeg; *.gif; *.png");
//var textTypes:FileFilter = new FileFilter("Text Files (*.txt, *.rtf)", "*.txt; *.rtf");
var allTypes:Array = new Array(imageTypes);openFile.browse(allTypes);
private
function faultHandler(event:FaultEvent):void {
//Alert.show("Fault")Alert.show(ObjectUtil.toString(event.fault));
private
function pathresult(event:ResultEvent):void{Alert.show(
"res")
//Alert.show(ObjectUtil.toString(event.result));}private
function onOpenFileComplete(event:Event):void{
//mx.controls.Alert.show("event: "+event.target.nativePath +"UR!!!");
var pPath = event.target.nativePath;
var parameters:Object = {FlexActionType:"PATH",path:pPath};
// Alert.show("Image Selected from Path : "+pPath); urlpath.send(parameters);
//Alert.show("Passed.."+parameters);}
]]>
</mx:Script>
<mx:Button click="openBrowseWindow();onOpenFileComplete(event)" name="Upload" label="Upload" x="120.5" y="10"/>
Here is Mxml Code for Flex Application
<?xml version="1.0" encoding="utf-8"?><mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="http://ns.adobe.com/air/application/1.0.M4" >
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function Upload():void{
// CursorManager.setBusyCursor();
//var url:String = "HomeAction.do?method=onLoad";
//var url:String = "assets/Air.swf";
var url1:URLRequest = new URLRequest("assets/Air.swf");navigateToURL(url1,
"_self");
// CursorManager.removeBusyCursor(); }
]]>
</mx:Script>
<mx:LinkButton id="up" click="Upload()" x="295" y="215" label="UpLoad"/>
In this code i forward using s url to Open tat Desktop application but a blank screen appears with out the proper output...
Please Help me in this to forward AIR from Flex Screen..
Thanks in Advance
With Regards
Gopinath.A
Software Developer
First Internet Systems Pvt. Ltd.,
Chennaitry this
http://www.leonardofranca.com/index.php/2009/09/17/launching-an-installed-air-application- from-the-browser/
regards
Leonardo França
Adobe Certified Expert Flex 3 with AIR
Adobe Certified Expert Rich Internet Application Specialist v1.0
Adobe Certified Expert Flash CS3 Professional
Certified Professional Adobe Flex 2 Developer
Adobe Certified Professional Flash MX 2004 Developer
http://www.leonardofranca.com
http://twitter/leofederal
Manager AUGDF - Adobe User Group do Distrito Federal
http://www.augdf.com.br
http://twitter/augdf -
Hi.
My Application scenario it's apparently easy.
1) I have written AIR application where I have inside MovieClip/Component or something simlar.
2) Through my AIR application i draw on my MovieClip/Component some circles and add image.
3) I get this MovieClip/Component and generate te external .swf file. Now You can grab that .swf file and put anywhere You want.
And Point 3 it's really problematic. How I can generate .SWF file from Flex AIR? Or maybe other ideas how I can realize that scenario??
Cheers.Send information to the server so it can compile the SWF
-
Integrating Bazeds-spring from Flex Adobe air application?
Hi
I have seen that from Flex Adobe Air platform using the old integration model (without spring) with Blazeds we can successfully communicate from AIR to the server side.
I have got the project working fine with FLEX-SPRING-BLAZEDS on a simple flex application. However, I would like to know if the same can be done with the new way of defining channels in Server side with the Blazeds-Spring combination from AIR. If yes could you please direct me to the changes in configuration required in the flex side of the Air application.
Thanks,
NaveenAIR does not support running applications from a CD-ROM;
that's both a technical and a licensing limitation.
You can redistribute both AIR and your application via
CD-ROM, thus enabling off-line install, if you agree to a
redistribution license. See
http://www.adobe.com/products/air/runtime_distribution1.html
for details.
Oliver Goldman | Adobe AIR Engineering -
Detect CD drive from Flex-AIR desktop application???
Can we detect CD drive from Flex-AIR destop application even though there is no CD or Blank CD inside the drive?
AIR 2.0 supports native code integration.
http://labs.adobe.com/technologies/air2/
This may be useful in hooking into native CD/DVD writing capabilities. -
Building from flex builder vs ant task
I have a flex application written using flex builder. When I
build it and run it using flex builder, or create an air file from
flex builder and run that, then my application works just fine.
However, I would like people without copies of flexBuilder
installed to be able to build my application, so I am using the
flex ant task (flex-mxmlc) to build my application. As far as I can
tell I have the same configuration, and the same libraries included
in the ant task. However, when I run the air file generated by the
ant task nothing happens. If you look in the task manager, you can
see that the application is running, but the main window for the
application never appears.
I tried running the swf through a debug version of flash to
get some log output, and I am getting a bunch of exceptions, the
first of which is:
VerifyError: Error #1014: Class flash.display::NativeWindow
could not be found.
at flash.display::MovieClip/nextFrame()
at mx.managers::SystemManager/deferredNextFrame()
at
mx.managers::SystemManager/preloader_initProgressHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/timerHandler()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
It seems like it might not be finding the main flex library
(flexlib.swc), is that where that class would be? In my ant task I
have an include-libraries tag that points to that file.
Anyone have any ideas?I experienced a similar problem (although the class that
could not be found was different for me). Googling around I found
someone who had a similar problem and claimed that using the
flexlib.swc library was the culprit.
The root of the problem is that the Flex SDK that comes
bundled with the Flex Builder has libraries (under frameworks/libs)
that are NOT included in plain free Flex SDK that you and I are
presumably using on our build machines.
When flexlib.swc is linked in, it causes certain classes to
be required at runtime. Apparently when you compile these classes
are linked in if available, but when they are not the compilation
still succeeds. Only you get a VerifyError when you run the thing.
What worked for me was to copy all the additional .swc files
found in my Flex Builder SDK's frameworks/libs directory to the
same directory on my build machine. Also you will need to copy the
additional files under frameworks/locale/en_US.
Rebuild and clear your browser's cache and it should then
work. -
How to send xml to javascript from flex?
Hello,
I am using Flex Builder......I read blogs and wonderful tutorials on adobe website. But I found that I can only have data from Flex to script placed within main.template.html file.....when i tried to get same data by in my other .html or .aspx page, it did not work. Another thing I noticed in following tutorial
http://blog.flexexamples.com/2008/03/09/calling-javascript-functions-from-your-flex-applic ations-using-the-externalinterface-api/
is that we placed <iframe> in our html page to host flex object instead of using <object> tag etc.
Please just let me know how to do very same thing as defined in tutorial but by hosting out flex object using <object><embed> tags etc and how to get data into our .html or .aspx page rather putting javascript (to receive data) in main.template.html file generated by Flex Builder...???Thanks for replying,
Now I am facing another problem....I have added a script tag in index.template.html file that also contains other useful code used in my aspx page. I wanted to have that reply on my aspx page. So I placed all the script in a Core.js file and also the recieving method from flex in same Core.js file. I thought this way i will be able to access data coming from flex project to my aspx page. But something strange is happening, when i run .html file in bin-debug folder it fires receiving method placed in Core.js........but when I host that flex project .html file in my aspx page, it is not firing method. And also not firing when I run .html in bin-release folder....what am I doing wrong? -
Completely different AMF request packets for same remote service call from Flex to PHP using ZendAMF
I was trying to debug why one of the remote-services in our Flex application was failing randomly. What I found was interesting. Completely different AMF request packets were sent for same remote service call from Flex to PHP.
When the service call succeeds the AMF request packet looks like the following:
POST /video/flex/bin-debug/gateway.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Cookie: PHPSESSID=j6u30i8uu6c3cvp8f4kipcpf05
Referer: http://localhost/video/flex/bin-debug/main.swf/[[DYNAMIC]]/5
Content-type: application/x-amf
C ontent-length: 305
Flex Message (flex.messaging.messages.RemotingMessage) operation = getMemberFromEvent clientId = 2F997CD0-7D08-8D09-1A9B-0000422676C8 destination = MembereventService messageId = B46AB58D-2241-83F0-41E4-9FE745565492 timestamp = 0 timeToLive = 0 body = [ 280 ] hdr(DSId) = nil
And when the service fails the AMF request packet looks like this:
ServiceRequest: getMemberFromEvent; RemoteService; getMemberFromEvent
(mx.messaging.messages::RemotingMessage)#0
body = (Array)#1
[0] 250
clientId = "1AA4FAAB-AEA5-8109-4B0D-000002B3A9A1"
destination = "MembereventService"
headers = (Object)#2
DSEndpoint = (null)
DSId = "nil"
messageId = "2F92E6C0-FE92-A09B-B150-9FE2F28D9738"
operation = "getMemberFromEvent"
source = "MembereventService"
timestamp = 0
timeToLive = 0
Also, following is the error message on Flex when the service fails:
{Fault code=Channel.Call.Failed, Fault string=error, Fault detail=NetConnection.Call.Failed: HTTP: Failed, Destination=MembereventService}
We are using Swiz as the micro-architecture for Flex development and Zend AMF for remoting between Flex and PHP.
Any ideas what is wrong here, what is causing Flex to send different request packets for the same service & what I can do to fix it?Hi, I know that your post is almost 5 years ago, but have you found the solution to this issue?
Thanks. -
[svn] 3292: Update Download text and link from Flex 2 to Flex 3.
Revision: 3292
Author: [email protected]
Date: 2008-09-22 08:49:21 -0700 (Mon, 22 Sep 2008)
Log Message:
Update Download text and link from Flex 2 to Flex 3.
Modified Paths:
flex/sdk/branches/3.0.x/frameworks/javascript/FABridge/samples/srcview/SourceIndex.xmlI haven't done any charts, so I can't be much specific help,
but start with the MigrationGuide, here:
http://download.macromedia.com/pub/documentation/en/flex/2/flex2_migrationguide.zip
Then run the example and debug it.
You might also be able to find updated examples here:
http://www.adobe.com/devnet/flex/
Tracy -
If its possible to generate report from flex.Please help me
Hi,
thanks for your reply. I tried with alive pdf, but source
code only AIR files. can we use this in web based flex?. How we can
format the report like html code? I just see in alivepdf, its only
linebyline display, not multiple columns? pls advise.
thanks alot
Subhash -
Processing ArrayCollection or XML in PHP from Flex
I know this is a Flex forum, but after I use HTTPService with
POST and an ArrayCollection or XML object as the parameter, anybody
have the PHP code I would use to grab the parameter on the server
side?
Once I have grabbed it and put it in a PHP variable I can
figure out the rest.
Thanks!One caveat for POST ing XML from AIR is that there is a bug
and it submits as GET instead. Work-around I had to use was to
upload XML file instead and then parse it.... otherwise from FLEX
If you POST the XML as a parameter like so
var params:Object = new Object()
params.postText = myXML
myHTTPService.send(params)
and your XML is something like.....
<root>
<record><data>mydata</data></record>
</root>
then the PHP script looks something like.........
foreach($_POST AS $key => $value) { ${$key} = $value; }
if(isset($postText)){
//echo $postText;
$xml = new SimpleXMLElement($postText, LIBXML_NOCDATA);
$record = $xml->record;
// use first record to capture column names into array
foreach($record[0]->record->children() as $col){
$colNames[] = $col->getName();
// then for each column , record get the values
foreach($record->record as $row){
foreach($colNames as $column){
$values[] = $row->$column;
//do something with the record
else{
exit;
//get record level element name;
$act = $xml->act;
$table = $xml->table;
$record = $xml->records;
// get column names -
I'd like to generate pdf files from Flex. How is this done? How much does it cost? How flexible is it?
http://lucamezzalira.com/2009/02/28/create-pdf-in-runtime-with-actionscript-3-alivepdf-zin c-or-air-flex-or-flash/ checkout this link..can be done freely
-
I was wondering, is there any way to call native code from Flex?
Currently, we're writing browser plugins in order to call native code from a Flex application. However, it would be nice to be able to call native code directly from Flex, so that we could write it only per-platform, as opposed to currently per-platform-per-browser.In general, the sandbox does not allow you to access native code from Flex.
I believe you can use Merapi, but perhaps only for AIR:
http://www.merapiproject.net/
You might be able to code around the Flex sandbox, but it would be a ton of work.
If this post answers your question or helps, please mark it as such. -
Run .bat file from Flex
Hi,
I'd like to execute a .bat file from Flex. I thought this piece of code should work but no luck
fscommand("Exec", "C:\\Sandbox\\doSomething.bat");
Can someone please point me in the right direction?
Thanks in advance,Sandbox does not allow external apps to be run in Flex apps. AIR 2.0 may have this.
If this post answered your question or helped, please mark it as such.
Maybe you are looking for
-
I have 2 STO's which are appearing on ME2N report at the top Both orders were cancelled by us and the quantities reduced to 0 Pallets. The shipments have been completed at the plant and according to us they have been received at the other plant. The
-
Record Management Examples?
Hello, I want to write a webservice which checks a folder in my content database if there are any files older then xx days. If so the webservice should move these files into some kind of archive.... But i dont know how to start because i found no doc
-
How to Create Charts with the variable value
Hi, I have to create a crystal report in which i have given variable under "Facility:". I have kept two variables under facility of which one is like you can select one or more values and other one u can select only one value and i mentioned it as ma
-
Invoice date different from GL date
I have several invoices where the GL Date is different from the Invoice Date. For example, the Invoice Date is 10-JUN-2002 and the GL Date is 01-JUL-2002. In all the invoices from another month, the Invoice Date is equal to GL Date. Anyone knows how
-
Pages has crashed on me, several times in fact. I can actually crash it at will. but it doesn't mean lost work, and i find that very odd. i am running on an intel mac mini, a few months old, not the latest core 2 machines, and Pages will crash each a