Flash - Air app tests fine but publishes broken - actionscript-3

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

Related

Library assets not compiling when publishing for AIR

Yesterday I started messing around with Adobe Scout. It gave me a message that said that my function times are not accurate because I'm running a debug mode (in a file that is compiling as an AIR app) and to try compiling a published version first. Thus began my foray into the exciting world of AIR certificates and Windows Installer packages. I made certificate, published it, opened the published package, installed it, opened the resulting file, and found... fanfare ... a rectangle object I draw with AS3 and nothing else. When I test the movie (debug version) in AIR, it has the rectangle as well as a 20x20 map of tiles that are created at runtime from a bitmap that is blitted into 16x16 tiles.
Huh? Do I need to do something special when publishing for AIR to embed the library item? Anyone have this issue publishing to AIR where library assets are unavailable at runtime?
Of course I'll post code if anyone thinks they would like to see it, but it all works fine in flash player, fine (albeit slow) in Adobe AIR for Desktop (when testing), just missing library assets when published and installed via Windows installer.
update
for that matter, when I publish a swf for playback on the web or flash player, a similar thing: just a colored background (per my .fla file settings) but no rectangle and no blitted bmp tiles. Could I be executing code before something is loaded, and when it is in a debug mode, the setup takes longer, so things have time to get loaded before trying to execute? I've tried to avoid this, but maybe failed?
So, apparently making an .exe file or AIR app doesn't stand alone from the library components. Their is probably a way to embed them in the project, but for my purposes, I found that just making sure that the .exe and necessary .png files are in the same source file solved the issue. The problem was that my .exe file was automatically getting compiled and saved into a different folder, so I thought that folder must have all the needed files in it.
So, the bottom line is just that an .exe or AIR file, when published, won't automatically have the needed files in the right places. It still needs to point to the correct file location for those files.

making Desktop Flash AS3 Air application without installing AIR

Well the title say it all.
So far i've been using flash IDE and publish it as AIR to make desktop app. But the down side of this is that users have to install adobe AIR in their computer before they can use this app.
So:
1. Is there a way to make desktop app without users installing adobe AIR using Flash IDE (coz AS3 is my favorite lang so far).
2. Is there another language or software I can learn, so when ever I make desktop app or perhaps mobile app users can just install it in their devices whithout having to install anything else.
I need all the insights I can get, So thanx in advance to all you guys :)
Since FlashBuilder 4.6 and Flash Professional CS6 you should be able to export your release build as "Signed application with captive runtime". If you choose so, the user will not need to install the AIR runtime.
MDM Zinc as .exe file! or else. http://www.multidmedia.com/ also for desktop Apps.
regards aktell
Users cannot use AIR apps without having AIR installed.
But do you really need AIR functionalities? Because you can publish .exe files with Flash, which simply embed Flash Player inside. If you target Windows platforms and you don't need anything special from AIR - this is a good choice.
Other than that - there are a lot of languages that can publish desktop apps, just browse around. .NET is one of the most used ones.

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.

Debugging with the projector AS3 Flash projector

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...

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.