2.5 SDK getting started: air.trace() not working
I don't know where to turn. I´ve followed the steps on this tutorial and air.trace doesn't work.
I'm using Windows Vista and the command prompt to run the debugger. It starts the app but air.trace sends nothing to the command window.
I've tried running cmd with admin privileges with no results. If I make a javascript alert {{ alert(air.trace) }} it correctly says it's a function and testing a basic send-something-to-clipboard snippet works fine.
Here's my code:
<html>
<head>
<title>Hello World</title>
<script type="text/javascript" src="air/AIRAliases.js"></script>
<script type="text/javascript">
function init(){
// this works
var copy = "A string to copy to the system clipboard.";
air.Clipboard.generalClipboard.clear();
air.Clipboard.generalClipboard.setData(air.ClipboardFormats.TEXT_FORMAT, copy);
// this doesn't
air.trace("anybody there?");
</script>
</head>
<body onLoad="init()">
<h1>hello world?</h1>
</body>
</html>
Any ideas?
Hi all,
I'm running Vista, and using the command prompt but don't get any messages from air.trace(). I'm using AIRSDK 2.5 and call my hello world application from the command prompt with " adl HelloWorld-app.xml " I get a window of correct dimensions with " Hello World " as expected, but no console message. What am I doing wrong please? I've been looking for about 2 hours now at how to get the air.trace messages but neither those nor the introspector statements work.
Thank you,
James
The 4 files are in:
C:\AIRHelloWorld
The 4 files are:
HelloWorld-app.xml
HelloWorld.html
AIRAliases.js
AIRIntrospector.js
My code for HelloWorld-app.xml and HelloWorld.html is below. AIRAliases.js and AIRIntrospector.js are copied straight from AIRSDK
HelloWorld-app.xml
<!-- Tutorial at: http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ecc.html -->
<application xmlns="http://ns.adobe.com/air/application/2.5">
<id>examples.html.HelloWorld</id>
<versionNumber>0.1</versionNumber>
<filename>HelloWorld</filename>
<initialWindow>
<content>HelloWorld.html</content>
<visible>true</visible>
<width>240</width>
<height>320</height>
</initialWindow>
</application>
<!-- To RUN AND TEST the application get a console window (type cmd into search box of Windows vista)
type:
cd c:\AIRHelloWorld
When you have it in the directory of "c:\AIRHelloWorld" then type:
adl HelloWorld-app.xml
You'll get a window showing the app and also apparently the console window displays the
message resulting from the air.trace() call in the html, but I never see this -->
HelloWorld.html
<html>
<head>
<title>Hello World</title>
<!-- In the <head> section of the HTML, import the AIRAliases.js file: -->
<script src="AIRAliases.js" type="text/javascript"></script>
<script type="text/javascript" src="AIRIntrospector.js"></script>
<!-- JavaScript function to handle the onLoad event: -->
<script type="text/javascript">
function appLoad(){
air.trace("Hello World - debug comment"); /*The appLoad() function simply calls
the air.trace() function. The trace message print to the command
console when you run the application using ADL. Trace statements
can be very useful for debugging.*/
air.Introspector.Console.log("Hello World - Introspector debug comment");
</script>
</head>
<body on load="appLoad()">
<h1>Hello World</h1>
</body>
</html>
Similar Messages
-
Air.trace() not working
Hi all,
Someone had a similar problem here: http://forums.adobe.com/thread/750219?tstart=0 They managed to solve it, I started adding to post but thought it best to start a brand new post.
I've tried what they've suggested and made a file called mm.cfg in my %HomeDrive%%HomePath% directory (c:\users\james) the contents of which are:
ErrorReportingEnable=1
TraceOutputFileEnable=1
TraceOutputFileName=c:\logs\flashlogs.txt
MaxWarnings=50
but I still don't get a log file from air.trace(). Though in C:\Users\James\AppData\Roaming\Macromedia\Flash Player there's a file flashlog.txt with:
Warning: Not a known player download type, app:/HelloWorld.html
I'm running Vista and I'm using AIRSDK 2.5. I call my hello world application from the command prompt with " adl HelloWorld-app.xml " I get a window of correct dimensions with " Hello World! " as expected, but no console message. What am I doing wrong please? I've been looking for about a day now at how to get the air.trace messages but neither those nor the introspector statements work.
Thank you!!
James
The 4 files are in:
C:\AIRHelloWorld
The 4 files are:
HelloWorld-app.xml
HelloWorld.html
AIRAliases.js
AIRIntrospector.js
My code for HelloWorld-app.xml and HelloWorld.html is below. AIRAliases.js and AIRIntrospector.js are copied straight from AIRSDK
HelloWorld-app.xml
<!-- Tutorial at: http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7ecc.html -->
<application xmlns="http://ns.adobe.com/air/application/2.5">
<id>examples.html.HelloWorld</id>
<versionNumber>0.1</versionNumber>
<filename>HelloWorld</filename>
<initialWindow>
<content>HelloWorld.html</content>
<visible>true</visible>
<width>240</width>
<height>320</height>
</initialWindow>
</application>
<!-- To RUN AND TEST the application get a console window (type cmd into search box of Windows vista)
type:
cd c:\AIRHelloWorld
When you have it in the directory of "c:\AIRHelloWorld" then type:
adl HelloWorld-app.xml
You'll get a window showing the app and also apparently the console window displays the
message resulting from the air.trace() call in the html, but I never see this -->
HelloWorld.html
<html>
<head>
<title>Hello World</title>
<!-- In the <head> section of the HTML, import the AIRAliases.js file: -->
<script src="AIRAliases.js" type="text/javascript"></script>
<script type="text/javascript" src="AIRIntrospector.js"></script>
<!-- JavaScript function to handle the onLoad event: -->
<script type="text/javascript">
function appLoad(){
air.trace("Hello World - debug comment"); /*The appLoad() function simply calls
the air.trace() function. The trace message print to the command
console when you run the application using ADL. Trace statements
can be very useful for debugging.*/
air.Introspector.Console.log("Hello World - Introspector debug comment");
</script>
</head>
<body on load="appLoad()">
<h1>Hello World!</h1>
</body>
</html>Hi Chris, on sdk 2.5, actually, also the Introspector doesn't seem to work. Tried:
<html>
<head>
<title>Source Viewer Sample</title>
<script type="text/javascript" src="js/AIRAliases.js"></script>
<script type="text/javascript" src="js/AIRIntrospector.js"></script>
<script type="text/javascript">
function logBtn()
var button1 = document.getElementById("btn1");
air.Introspector.Console.log(button1);
</script>
</head>
<body>
<p>Click to view the button object in the Console.</p>
<input type="button" id="btn1"
onclick="logBtn()"
value="Log" />
</body>
</html>
UPDATE: I didn't realize it was a different window that appears behind. It works then! -
My iMessage for my Macbook Air is not working. I have updated everything. My system is running on OS X Yosemite Version 10.10. When I go to send a message, it says no delivered with a next to it. I have tried serval different options on trying to get it to work to include logging out of iCloud and checking my date and time and updating FlashPlayer. I have done about everything I can think of. Any help would be greatly appreciate!
Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
I suggest that no response is made to this duplicate thread. -
Hi
Just getting up and running
Mac OS X 10.9. Adoe AIR 3.9. All working fine except air.trace() not outputting anything to the console.
Bit of googling meant I created a mm.config in ~ with the line:
ErrorReportingEnable=1
but still no joy.
Any other tips for getting this to work or is it just now broken and/or unsupported?
Are HTML apps wrapped in AIR now legacy technology?I have the same question... I've been trying to get an Adobe AIR HTML app going, but there appears to be no IDE that supports debugging an HTML/JS AIR App, and fdb, which is supposed to be able to debug HTML/JS AIR apps, does not.
Is HTML/JS still a supported way of developing Adobe AIR apps? If so, then why aren't issues like this getting some attention?
-Josh -
The select/start button is not working on my Vita?
as title, anybody face the problems???
actually, my vita (wifi) freezed last week, PS button blue light, cannot shut down.
after hold down power button, enter to Safe Mode, and done everything (restore, restart, rebuild, format m.card).
now, PS button alive, working, but select / start button still not working!!
HELP HELP HELP.......Here Is the Solution see on pictures This Fault Is Caused With Shorted Right Top Button When This shows conductivity few ohm this interfere with the signal line on the pcb.to test it disconnect this button from the socket by lifting up the small lock on amphenol socket.measure the 2 tracks on the foil if its conductive.in most cases will be leave it disconnected turn on the psp vita with some games and test if the start button respond 99% it will be working ok.if yesthen turn off the unit disconnect the main battery to avoid shortage to the motherboard.peel gently off the top right button and replace with new oneiff you cannot get parts then separate the 2 foil and clean the ferrite pad's.cut a thin foil with 2 hole same size as the button conductive pad's this will create bigger gap between these conductive touch pad's and the foil. Warning !!! This guide is for advanced component level engineers not for beginners require esd protection.
-
Hi, my MacBook Air is not working anymore if it's not connected with the power cable. It's pretty new so I can't imagine that the battery is dead already. Why can't I use my MacBook Air without the power cable even though I charged it for hours?
Please take the Mac to Apple store to have it checked out.
Genius Bar reservation
http://www.apple.com/retail/geniusbar/
Best. -
Windows 8.1 - Upgrade from 8, Start Button Does Not Work
I cannot find a fix for my 8.1 start button.
It works when I move the task bar to the top, right or left but not at the bottom. I ran all windows updates and there are no missing/unknown drivers in device manager. No errors in the event log. I've restarted multiple times and created a new local profile.
I've also tried:
Copy WinX folder under C:\Users\Default\AppData\Local\Microsoft\Windows into C:\Users\[your user name]\AppData\Local\Microsoft\Windows.
dism /online /cleanup-image /restorehealth
Any ideas? I would prefer not to do a clean install. Thanks in advance.
HP Touchsmart 23 series
i5-3475S 2.90GHz
16GB RAM
1TB HDDCould you please describe a little more detailed about “Start Button does not work”? What is the symptom?
Yes, when the taskbar is at the bottom of the screen, I cannot left click on the start button. The machine is also a touch-screen, which does work when I touch the start button. If I move the task bar to the left, right or top; the start button does work.
And what is the kind of the account, Domain? Local? Or both?
This is local machine.
It still doesn’t work in a new account?
Same issue happens with a new account.
What happens if you use win + "X"?
Win + "X" works fine; displays options.
Regarding to the “doesn’t work, both for screen touch and mouse?
Left-click via the mouse does not work. Touch works fine.
Can you try to copy the WinX folder from a working PC to your PC for a test?
I do not have another Windows 8.1 machine available to me. -
On my Mac Book Pro My password at the start up is not working on restart
Hi
My password at the start up is not working on restart
But if i close the cover and re-open it he ask for my passwordChanging or resetting an account password
-
I am getting frustrated with Apple not working with Flash Player on some of my favorite web sites! Is there another alternative to watching these site options on my I-pad?
Flash is not, and probably never will be, supported on the iPad : http://www.apple.com/hotnews/thoughts-on-flash/ . Plus it would be up to Adobe to make a version of their flash player that works on iOS devices - something which they have never managed to do and which they have now given up on trying to do.
Browser apps such as Skyfire, iSwifter and Puffin 'work' on some sites, but judging by their reviews not all sites. Also some websites, especially news sites, have their own apps in the App Store, so your could try checking there for your sites (and there is the built-in YouTube app). -
I spill all my coffee on my new MacBook Air, its not working anymore, what should i do ? I have to buy a new one coz its pricy to fix it.
Liquid spills, why your MacBook chassis is a one-way valve for spills
After a substantial spill many people will turn their notebook upside down and shake it, not only does this not work, but it spreads liquid havoc throughout your machine and makes things often as bad as possible.
The keyboard itself acts like a one way valve in the case of a substantial liquid spill. While liquid pours into the bottom chassis easy, it does not come out easily at all, and in the case of any spill, most of it will not come out by turning it upside down. Disconnect all power and contact Apple for diagnostics and repair.
Do not attempt to, after a spill, ‘dry out your MacBook’ and test it
After a spill most people invariably try to “dry out” their notebook by various methods, including hair dryers and otherwise. This both does not work, and after a substantial spill of any magnitude, even if the liquid was water, residue is left behind.
There are additionally many very tight places inside your notebook where liquids will linger for a very long time, and cause corrosion or worse.
Immediately unplug your notebook and contact Apple for in shop diagnostics and parts replacement.
In the case of very minor spills people will “dry out” their notebook and feel success that their notebook is working ok, however invariably in nearly all instances after 4-14 days an error / fault pops up and is usually followed by more.
In case of a spill, damage estimates are impossible,.....anything can be fixed, without question.......the question is cost.
contact Apple for in shop diagnostics and cost estimation ....possible parts replacement. -
Trace not working when create air app in flash cs6
hi
when i compile air app in flash cs6 , trace function dont workk and flash cs6 dispatch error with this title: test movie lunch failed, please help meyeah, that happened to me, is not a compilation error is a popup that says "test lunch movie failed". I usually happened when the machine is saturated memory, and does not work well until after restart
-
Air.trace not tracing anything (HTML/JS)?
i am starting flash and learning from a tutorial. so i have my HTML like:
<html>
<head>
<script src="AIRAliases.js" type="text/javascript"></script>
<script type="text/javascript">
function loadHandler() {
air.trace("Message");
</script>
</head>
<body onload="loadHandler()">
<p>Hello World</p>
</body>
</html>
the program runs but nothing is traced in the cmd. AIRAliases.js exists btw. i ran
adl HelloWorld.xml
my descriptor fileIt works in my end.
What if you use window.runtime.trace directly, instead of air? Does it work? -
Trace not working in air / as3
Hi, this may be something obvious but after installing adobe
air, trace no longer works to my output window.
I've checked the publish settings and 'omit traces' is
unchecked.
thanksHi Trigon_15
Same thing happend to me, suddenly trace stopt working, some sort of bug i believe
how it occured i don't know, if added a new SDK, all worked perfect, 2 days later, it just
stopped tracing.
How i solved it?
i've added the compiler argument (-compiler.debug=true) to the Compiler options of the project.
In my case it's tracing again
Hopes it will help you to!
Regards,
Marc
ps. i'm using Flash Builder 4 with Flex SDK 4.1 -
I can not get apple air play to run from my iTunes to my WiFi reciever.
I have spent money on 3 different apps looking for a solution.
None have worked. Can I get a refund?
Do I need apple Tv to work Air Play?About AirPlay and Airplay Mirroring
AirPlay Mirroring requires a second-generation Apple TV or later, and is supported on the following Mac models: iMac (Mid 2011 or newer), Mac mini (Mid 2011 or newer), MacBook Air (Mid 2011 or newer), and MacBook Pro (Early 2011 or newer). For non-qualifying Macs you can try using Air Parrot.
Several Apple Articles Regarding AirPlay
Apple TV (2nd and 3rd gen)- How to use AirPlay Mirroring
How to set up and configure AirPort Express for AirPlay and iTunes
iTunes- Troubleshooting AirPlay and AirPlay Mirroring
iTunes- Using AirPlay
Apple TV (2nd and 3rd gen)- Understanding AirPlay settings
About AirPlay Mirroring in OS X Mountain Lion
iTunes 10- About playing music with AirPlay
Troubleshooting AirPlay and AirPlay Mirroring
Using AirPlay
Thanks to the $15 Beamer, AirPlay streaming is still possible on Macs that do not support Airplay and mirroring.
Other solutions are the Air Parrot, StreamToMe, and AirServer. -
i need help to use my new iphone 5,i have an iphone 4 and want to get started on my new phone but can't
my sister usually help me but she is away and now am stalkios how to backup http://support.apple.com/kb/HT1766 see link detail instructions to move content from old phone to new phone.
Maybe you are looking for
-
I think I have a 1st gen ATV. The other evening I got the ubiquitous "Error-HDCP content etc, try again" message. When I logged back in later, the Movies tab was gone from the menu screen as was Netflix under the Internet tab. I have tried reset,
-
hi, I tried to my best to call java beans from JSP page but it generate error that "unable to load class....", please help me that in which directory jsp file and bean *.class file reside, currently my setting are as follows. Note: I am using tomcat
-
Two problems with recent kernels - KMS resolution and fan speed
Two issues have arisen since kernel26-2.6.32-6. One is that that the boot process and all consoles only use approx. two-thirds of the screen, with the correct console font - as if the resolution is being detected as 800x600 rather than 1440x900. Th
-
Getting the IP Address/host ID of a unix machine
Hi, In my java program I am using this code to get the IP Address of a windows machine. InetAddress inetAdd = InetAddress.getLocalHost(); String host_Name_IP = inetAdd.toString();I want to know if the same thing works in the unix machine also. If no
-
E-recruitment - Table does not contain visible columns
Guys, I am currently working on the e-recruitment. I had came across this Table does not contain visible columns in the all the tab in Application Entry, Preselection, Selection, Offer face... Is it a configuration or is it a portal error?