Debugging with the projector AS3 Flash projector - actionscript-3

I'm working on a Flash game that runs fine when testing through Flash professional, but once it's exported to a projector, it won't run on either PC or Mac.
I've got a PC (Windows 7) and it basically closes the window with a white screen as soon as the projector opens. FWIW, it used to work on a projector until recently when I implemented some new functionality including stage web view, DesktopFacebook API integration etc.
How do I debug this problem with the projector? Has anyone run into issues like this before?

you can use Monster Debugger
it should be able to solve your problem

You can use Vizzy. It will give you access to all traces and error messages (no code changes required). Or, as AyoubKaanich suggests, you may use a proper debugger.
You must install the projector in debug version first.

Thanks for the responses. It actually turned out that Flash was looking for the StageWebView class which isn't available to the standalone projector-- it compiled and ran fine in Flash Pro because I had it set up to test as an Air Desktop app. When I built the projector it didn't throw a compile error at publish time but just refused to load after.
I ended up diagnosing this problem by running the SWF in the debugger projector, which I probably should have just done from the beginning...

Related

Flash - Air app tests fine but publishes broken

I have an issue with an air desktop app I'm working on currently. When I test the movie within flash, it all works the way it's supposed to, but when I publish it for Air desktop as an exe executable, install and run it, it acts as if there is absolutely no AS3 at all... I have no idea what is going on here.
Anybody have any idea what could be happening?
Files- https://www.mediafire.com/?ai45gcam69ganxa

as3, starting game with adl on mac os, no visual on desktop, context3d error on mobile

Situation
~~~~~~~~
I'm using the following line to compile my project:
amxmlc -debug=true -librarypath+=./vendors/starling.swc -output=build/Main.swf -swf-version=13 src/Main.as
The projects works fine in a browser.
Packaging using a self signed certificate with air, then installing the game works also well.
Problem
~~~~~~~
I can't run my game simply using adl in the two following situations:
with desktop profile:
adl Game-config.xml (-profile=desktop)
Game starts, trace works fine, no errors in logs BUT no visual, not even a window to display a canvas.
and with mobile profile:
adl -profile mobileDevice -screensize 720 Game-config.xml
This time I get a window and the canvas, but an error (in the canvas) from stage3D:
Context3D error: Error #2008: Parameter profile must be one of the accepted values.
Error looked like I didn't allow mobile profile so I added in Game-config.xml:
<supportedProfiles>desktop mobileDevice</supportedProfiles>
Same error.
I searched and tried adl options, but didn't had success.
I also spend some time looking config file documentation and tweaked it but had again no result.
Perhaps you need to have two separate configs, one for desktop and another for mobile.
I guess I'm doomed to use adobe flash projector.
I simply don't get it, Now it works.
I used the same command than the day I posted, I have exact same version of air framework, exact same configuration (Game-app.xml) ...
Maybe it was an auto update of adobe or smth ...
Or maybe the god of mighty reboot ...
I heard that if you reboot seven time you can get any wish comes true.

How to set Flash Player window location in Flash project as3?

I have 2 monitors on my computer, also am writing a program on AS3 that is exported to standalone SWF. My task is to make my app fullscreen on 2nd screen. How can I do this?
I tried converting my project to AIR project. It is possible there by using nativeWindow property of Stage. (setting x coordinate so that it appears in second screen and then call fullscreen). It works in Flash, but when I'm running compiled swf outside Flash, my app crashes (nativeWindow property not found).
So please do help me to solve my problem. I am disappointed, have been looking for solution for already 3 days...
You have to stick with your AIR application and use it as it is supposed to: run the .air file. You can't launch an AIR swf alone because it will miss all the AIR runtime including the NativeWindow you are insterested in.
To be clear, you can't manipulate windows from a swf launched with the Flash Player.
Another solution would be to execute your swf from a web browser and use javascript called through ExternalInterface to move the windows. But it may be quite painful in comparison with AIR.

Using Bluetooth ANE for Android

I'm relatively new to flash, air and AS3 so I'm sorry if this comes of as a beginners question. I have made an application in AIR to run on windows and communicate with my atmega8 chip through serial communication via serproxy.
Now I want to port that application to android to perform the same basic functions but communicate to the atmega8 via bluetooth. So I created a new Air for android file in Flash CS6 copied my code from my previous application excluding the communication through sockets part and created an apk which ran on an android phone:). It did everything except the communication as expected.
Now I have been trying to implement the as3breeze.com/bluetooth-ane and use it to communicate but I'm not too sure how to go about the whole thing. I have imported the ane through actionscript settings and have implemented the classes but when I try to test I get this error.
The content cannot be loaded because there was a problem loading an extension: Error: Extension namespace is invalid for C:\Users\AppData\Local\Temp\Tmp_ANE_File_Unzipped_Packages\AndroidBluetooth.ane
So after some searching I found posts talking about as3 sdk and flash builder. Do I really need all these things or can I make my bluetooth app work some how with just flash cs6? Also what exactly does my error mean and how can I solve it. Thanks in advance for any help. I have been searching so a solution to this for days and I either get an explanation that does not work or I lack the knowledge to understand.
The path that can't be accessed makes me believe you haven't extracted the ANE (basically you're trying to access a temporary directory). Try extracting the ANE file to somewhere, like My Documents or wherever your flash project is, and include (in the actionscript settings) that path instead.
Hope it helps.

What are the things need to taken care while working with flash playeres?

I have been working since a long time on a particular flash(Action Script 3.0) project and did all the test and development under the Flash itself(tested by Ctrl+Enter) . But It should be compatible with the browser, so i exported all these to my localhost, and its working fine.
But unexpectedly I got many more errors from swf player. I don't know why flash player on the browser behaves like this. All functions are working fine in Flash but when I export to swf its not working correctly...
The browser in the authoring environment is much more lenient with it's sandbox, you're likely running into security issues.