I am developing an as3 application intended to be published with AIR.
I use the 4.6 version of Flex SDK with the flash builder plugin for eclipse.
I can launch/debug my app via eclipse without any problems. I export a valid version of the app and get my air installer. When I install and launch my app, I get a blank screen...
I don't know how to debug this. It seems that I miss something in the publication configuration but I don't know what.
I have been searching the web for hours and didn't find any solution, hope somebody can help me here !
Thanks for any help.
It simply was a real as3 error that didn't show up on debug mode...
When allowing the debug mode on the AIR application I learned that the property mouseChildren cannot be set on SimpleButton.
I got the same problem with my app and I finally found a way to display the error in the package app:
You just have to add a file named debug into your app/META-INF/AIR folder.
For detailed information see Adobe Cookbook.
Related
I'm trying to develop flex app using Adobe Flash Builder 4.6, small multicast conferencing solution. But I have lots of troubles to run this app. Basically I run app in safari (via flash builder), everything work fine, just I expected. I export app and run it again, just like before works great (in browser on file:// .... /multicast.html).
Problem occurs when I try to run it on any server. Like, on python -
python -m SimpleHTTPServer 8080
or rails webrick or any another.
if I open a browser and type localhost:8080/multicast.html, it will run app but as3 throw an exception with this:
Error: Error #2154: The NetStream Object is invalid. This may be due to a failed NetConnection.
at flash.net::NetStream/invoke()
at flash.net::NetStream/attachCamera()
at multicast/setupStream()
at multicast/netStatus()
source: http://pastebin.com/wyhzXveC
I decided to completely uninstall chrome and install again to avoid flash debugger, which is installed in safari. So far, no luck.
Any suggestions, tips, anything?
Thanks!
I found it! I did not realize, that stream.attachCamera(cam); needs to wait after netStream will be successfully connected to a server.
Thanks #LDMediaServices!
I am trying to remote debug with FDB over USB and after I've compiled the app with amxmlc, I got the following errors:
No definitions matching so.cuo.platform admob.* could be found
Type was not found or was not a compile-time constant: IntroScreen_mc
...
My app uses admob extension, also in FlashDevelop after I compile the app there are no errors. I am using SDK 4.0 and all my swc libraries have been imported. I think there is something wrong with the paths but I don't know where to look.
Yes ,it a path error.
you not pack the ane lib realy ,you just packed the swc,so it work well when pack,but fail when run application.
how to fix?
right click your project in flash builder ,then set package option of ios or android.check up the check box under package option.
I've been working with libgdx for 2 days, and I'm starting to get the hang of it.
I'm comfortable with deployment on Android and desktop, but I've got no clue about how to run/debug or deploy the HTML5 version.
When I run as web application, the link gives me an http error 404.
I did what they say on the libgdx wiki, but that ain't working, so, help would be welcome.
BTW, the app's working fine on Android and desktop.
This worked for me:
In Eclipse -- right click on the *-html project. Select "Google" -> "GWT Compile". This will perform a GWT compile on the project, it can take a while so be patient. Once this is completed, I was able to copy the expanded war directory into my tomcat webapps directory. Tomcat was already running, it picked up the change and deployed the game, I was able to load it via localhost:8080/war/ I later renamed the directory (the one in the webapps folder) to something more appropriate for my project.
Good luck.
I ran into this problem for over an hour before realizing that when I selected "run as web application" and eclipse asked me to point to the war directory, I was silly enough to have been selecting the root directory of the project.
Once I went back and pointed to the actual war folder, it ran without issue. Silly I know, but might not be a bad idea to check, esp if anyone is setting this up at 1 am like I am lol.
According to the current date (December 2014), Libgdx now uses gradle and deploying using the mikeys's answer might not work for you. Follow the following guide for the best solution for this problem:
https://github.com/libgdx/libgdx/wiki/Gradle-on-the-Commandline
It's a bit difficult to deploy the app correctly. In the wiki of Libgdx (in google code) you can find in one of the first entries how to deploy and debug the app. The easiest way is to install and configure a Tomcat server, do the steps of the wiki and that's all. If you don't want deploy the app, only test it, you can do it directly from eclipse with the embedded server jetty included on the GWT Sdk. Hope this helps you.
I'm having major issues with my Flash Debug Player. For a while now it hasn't been able to launch properly, or at least so it seems. Whenever I visit a site with the debug player enabled I just get the sad puzzle piece and a message saying that Macromedia Flash Player has crashed. It's the same thing with ADL, I can only run it with the -nodebug flag.
It works just fine if I install the regular Flash Player or use the one built into Chrome.
If I'm not mistaken, this might have begun to happen when I installed the Flashbug debugger in Firefox.
I've done the following:
tried installing an older version of the debug player
uninstalled flash and AIR completely before installing a new version
made sure there is a flashlog.txt file
I've edited my mm.cfg to look like this:
ErrorReportingEnable=1
TraceOutputFileEnable=1
Nothing is written to flashlog.txt when I try using the debug player, or ADL, and it works with the regular player and ADL with -nodbug enabled, so I'm guessing something happens with the logging part of the player. When running ADL i get "Bus error: 10" in the terminal.
Could anyone give me a hint, or any ideas at all on how to fix this? Could there be some hidden configuration file somewhere that isn't removed when I uninstall to do a fresh install or something?
Please can you tell me what version you are running. The error appears when you try to debug a project from Flex or Flash Builder? I Had similar when trying to debug projects in Flash Builder with Firefox, the solution (for me) was to uninstall flash player with this program and then install again a correct version, in this case try with the version 9 or 10.
I hope it will be helpful
I am trying a simple code for event handling. I applied break point on a line of action script code of event. I want to see the debug window to check which event is generated. It does not show me any error but whenever i click the debug button i get the following problem
The Flash Builder debugger failed to connect to the running application.
Ensure that:
For in-browser applications, you are running the debugger version of Flash Player.
For network debugging on a mobile device, you have a reliable network connection to the device, and port 7935 is open on your machine's firewall.
My project runs correctly in browser showing the desired output but it shows me launching failed dialog with above error. Please help
One other thing you can try which worked for me when the above didn't - in Flex Compiler in Properties for the project, untick Generate HTML wrapper file, apply that, then tick it again and apply again. Seems to clean/reset the project in some way, which 'clean project' doesn't.
Try to shutdown "adl.exe" in taskmanager, It seens the old adl.exe occupied port 7935 that flashplayer can't creat new one.
That's how I solved it.
It happens many a time, but you can solve it in 4 ways
1) Clean the project and try.
2) Close flex builder and reopen it. try it, If that doesn't work than go for 3 option
3) Change your workspace and import that project in it or best is create new one and make the changes in it, Sometimes the workspace get corrupted and so it happens...
4) If above 3 option that doesn't work than reinstall your Flex builder, make sure that you uninstall flex builder properly.
I had exactly that symptom. Blank browser window, a freeze at 57% for 2 minutes and the same error message.
The problem was an error in my javascript. As usual, it just silently aborts whatever it is doing. As a result, the SWF was never started and the debugger failed to connect to the running program.
So, if the browser window remains blank it is probably a javascript error. Display the javascript console to see what is going on.
When I faced this issue what I had to do is re-install the adobe flash debugger version for firefox and Flash could successfully run in debug mode
Reason for the error : The firefox updates the flash builder version which for some reason doesn't work with the Adobe Flash Builder 4.6
You can follow below steps and get the flash application run in the debugger mode :
1) Go to https://www.adobe.com/support/flashplayer/debug_downloads.html
2) Download : [Download the Flash Player content debugger for Firefox - NPAPI][1]
3) Install the downloaded executable and install it over whatever version of Adobe Flash
builder that you have .
4) Restart the Flash Builder and run the application in debugger mode and check if it
works.