air

Android 2.2 and falshplayer 10.1 development help

Hi Folks, I have read that recent version of Android(2.2) supports Adobe flash(10.1) files(.swf), bascially i want to open swf file in android emulator using through eclipse for development purpose. I have seen some coding on internet to open swg file(like shown below) but unable to open so. ComponentName toLaunch = new ComponentName(...

AS3: Singleton class vs LocalConnection class

Hi: I have a Main class loading 2 SWF (loader and viewer, also with document classes). They need to share a double buffer with content, of course, filled by loader and showed by viewer I was thinking to use the LocalConnection class but after a suggestion from PatrickS now I'm evaluating the possibility of a Singleton Class. I've never...

Saving a file in Flex Air

Hi there, I'm trying to copy my SQLite file that is used in my Air app to user's selected directory using var fileSaveDest:FileReference = new FileReference(); fileSaveDest.save(dbWorkedFile,'Inventory.DB'); dbWorkedFile is a File dbWorkedFile = File.documentsDirectory.resolvePath("Inventory.db"); I tried this but the saved file i...

how to set flex html container htmlLoader.placeLoadStringContentInApplicationSandbox to true via action script dynamically

I am creating html container on run time and want to set htmlLoader.placeLoadStringContentInApplicationSandbox to true via action script how can i write code? If i am creating any html container in my mxml code and writting code like below "htmlContainerID.htmlLoader.placeLoadStringContentInApplicationSandbox = true;" it is working...

Flash with android

Hi, I am able to make apk file containing flash file and can run on device b y using adobe instructions. Can anyone tell me how can i integrate this flash based apk project with my own project or how can i use swf file in my project? Thanks KB ...

What is the right solution for dragging elements in container with vertical scrolling?

I have container (VBox). It contains certain child elements (for example, other Vbox). Container has vertical scrollbar. When I start dragging certain child, verticall scrolling is not working, why? I resolved this problem using container's dragOver event. But in Flex 4 I use VGroup as container, and there is not maxVerticalScrollPosi...

flex air app - Get User's AD domain

Hi, Using Flex 4 / Air 2.0.3 Is it possible to get the active directory domain name associated with the logged on user? This page (http://stackoverflow.com/questions/1376/get-the-current-logged-in-os-user-in-adobe-air) shows the user name can be inferred from the user directory folder name, however is there a way to get the domain nam...

Using AIR to add desktop GUIs

Suppose I develop an application with the logic as a CLI program that can be compiled to various platforms. To add a GUI, I could develop native versions separately for each platform or I could use a cross-platform tool like Tcl/Tk, wxLua, or PyGTK. Some people, like Bruce Eckel and James Ward, promote Flash/Flex on Adobe AIR for this. ...

Adobe AIR: Controls flipped (mirrored) in certain build environments

I'm having an issue where certain controls are flipped, depending on the machine that I'm building my project on. On my development machine, when I build it, everything is okay. However, when I build it on our build server, some things are flipped. It seems to be things that are on a higher layer - for instance, options in the select con...

Can you write to a socket from disk without loading the data in question into memory first?

Using the Socket API in AIR to write a large file to a server, is there a way to do this without reading the file into application memory first? I am using FileStream to store the data in a bytearray and then writing that bytearray to the server through the socket but can I just have something like a file descriptor that references that ...

How to have an uninstaller along with launcher of my flex application.

Hi, When I create a native installer and run it, it installs the application with myApp.exe (launcher) in my Program Files/myApp/ folder. I would also like to have the installer put an uninstaller for my application (say uninstall_myApp.exe or something) in the same folder. Is there any way to create such an installer. Thanks.. ...

adobe air and window.close()

Hi all. I have a simple task to do but I reall don't know how to do this. I created Full screen Adobe Air application which does window.location='http://example.com to external page just in a tag. The problem is that I can't close Air application from that page using window.close(); - just doesn't work. If I load http://example.com into ...

Creating .as files with Adobe AIR

Is it possible to write text using Adobe AIR so that I can save it as an actionscript class file? I want to generate my own classes using air, I just have not found anything that explains how I can save say a text file as a .as file. ...

Check remote file availability with AIR

Hello, I was wondering if there's a remote file availability check using Flex-AIR. Not a local file. Example: For displaying a image place holder instead of a broken image icon. image.source = imageUrl + "/__default.gif"; Thanks. ...

Flash builder 4 does not show export to native installer option??

Hi, i am using Flash-builder 4 and developed an application to capture screen image and save on desktop. But when i click the export button , the flex builder shows me the option to export to file only as shown below http://web.s4spk.com/irfan/exporttest/index.html I have downloaded latest air sdk and overwrite file in sdk4.0.0 , now ...

Adobe native Air app works on windows7 but not on windowsXP??

Well i have an adobe air app that captures screen and saves image on desktop. The App works fine on windows 7 but it just does not work on windowsXp.. The App use native windows exe that was built in C# using Visual Studio 2010. Its video tutorial and code is given at http://www.gotoandlearn.com/ The app just does not work on windows ...

Adobe AIR NativeProcess - UAC problems when trying to run update installers.

Hi, I'm Adam. I'm trying to use Adobe AIR 2's NativeProcess API to emulate the ApplicationUpdater but I'm encountering problems when I try to run the downloaded AppUpdater.exe file on computers with UAC (User Account Control) enabled. When run without UAC enabled, the AppUpdater opens as usual and displays the standard Adobe replace di...

How to reset the Flex HTML control's history

I am using the flex HTML component and I would like to clear the history of the control when it is taken off screen, so that when it comes back on again the history is reset. The only thing I can think of at the moment is to set the HTML control to a new HTML control, although this is a bit of a pain. Thanks ...

Flex 4 How to create an Encrypted SQLite Database

Hello! How can I create and use an encrypted SQLite database for an AIR application, please? Thank you. ...

AIR installer to install 3rd party app

Say I've got a working AIR app that needs to also bundle a driver (licensing okay) for some hardware that the app uses. Anyone know if its possible to launch the driver installer at the end of the app install? I'm not finding good documentation on this and im wondering if there is a standard pre-install / post-install script I can crea...