Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all 21156 articles
Browse latest View live

[AIR/Desktop] StageWebView doesnt load remote URLs when rendermode is direct

$
0
0

Hey there,

 

Im porting an CS6-AIR-App from IOS to Desktop, in the IOS-App, i use rendermode GPU, everything works fine.

In the Desktop-App im using renderMode "direct" (no GPU mode selectable in CS6).

 

Some strange behavior came up.

 

If rendermode is "auto" (or cpu), StageWebView loads local and remote html, but the App is slow, not an option.

If rendermode is "direct", StageWebView loads local, but not remote html, though the App is fast now.

 

My Fallback is to use HTMLLoader and it works with both rendermodes for both local/remote urls.

 

Question: is there any drawback using HTMLLoader instead of StageWebView (e.g missing hardware accelaration)?

Anyway, It would be nice to know whats going on and why StageWebView doesnt work.

 

Using: captive/included runtime Air 3.5+3.6, Flash CS6, OSX 10.7.5.

 

thanks,

V.


.swf converting to .ipa for ipad using adt

$
0
0

Hi Respected,

 

My goal is converting .swf file for mobile version .ipa. (I have .swf file with me which is some third person developed).

 

For this i got info from adobe is , adt jar will help to do it. So for trying that utility i created simple desktop application using adobe flash builder 4.5 .Its simle app i have taken out .swf file and .xml file from it and i have provisional files and .p12 file also.

 

I have following run.bat to use adt:

set JAVA="C:\Program Files\Java\jre6\bin\java"

set ADT="C:\Program Files\Adobe\Adobe Flash Builder 4.5\sdks\4.5.1\lib\adt.jar"

set TARGET=ipa-test

set PROV_FILE="C:\Documents and Settings\swapnil.wadaganve\Desktop\certificate\cert\Distribution_profile_mACT_23OCT.mobil eprovision"

set CERT_FILE="C:\Documents and Settings\swapnil.wadaganve\Desktop\certificate\cert\Certificates_mACT.p12"

set PASSWORD=rahul

set OUTPUT_IPA=TestSWF.ipa

set APP_DESC_FILE=TestSWF-app.xml

set SCR_FILES="C:\Documents and Settings\swapnil.wadaganve\Desktop\swf-ipa\TestSWF.swf"

%JAVA% -jar %ADT% -package -target ipa-test -provisioning-profile %PROV_FILE% -storetype pkcs12 -keystore %CERT_FILE%-storepass %PASSWORD% %OUTPUT_IPA% %APP_DESC_FILE% %SRC_FILES%

 

But it is not converting .ipa file it is saying TestSWF-app.xml is not valid airi or air file.

My .xml file is simple as ,

 

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<application xmlns="http://ns.adobe.com/air/application/2.6">

 

          <id>com.hcl.mact</id>

          <filename>TestSWF</filename>

          <name>TestSWF</name>

          <versionNumber>0.0.0</versionNumber>

          <initialWindow>

                    <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>

                    <autoOrients>false</autoOrients>

        <fullScreen>false</fullScreen>

        <visible>false</visible>

    </initialWindow>

</application>

 

Thanks,

MAdhu

remove adobe air

$
0
0
Can anyone PLEASE help me to remove adobe air from my system. I am using windows xp and have tried add/remove programs but that doesn't work.

AIR application installer not working on Linux x86-64

$
0
0
I've installed AIR on my i586 Linux system and got an application installed w/o any issues.
Now I've tried the same on my x86-64 Linux system but the installer (invoked from Firefox) just does nothing (visible) and calling it on the commandline fails like this:

#> Adobe\ AIR\ Application\ Installer alcon.air
sh: pactl: command not found
unexpected error: ArgumentError: Error #2004

sql server 2005 Database connectivity with Adobe AIR

$
0
0
Hi,

I have developed a sample application using flex connecting with SqlServer 2005 through ASP.NET and Webservices.Its working fine.
Am trying to develope the same application using ADOBE AIR, connecting with SqlServer 2005 through ASP.NET and Webservices , but am getting an error "Unable to load WSDL, If currently online, please verify the URI and/or format of the WSDL(../dfd.asmx?wsdl).

Can any one help me how to connect the sql server 2005 with ADOBE AIR.


Thanks.

contains an invalid value when using ADT in command line

$
0
0
I am trying to build my air project using ADT using the command line. Whenever I run the command with the .xml file and path to all related files I get the following error:

emcfiles\application.xml(47): error 302: Root content main.html is missing from package
emcfiles\application.xml(56): error 105: application.icon.image16x16 contains an invalid value
emcfiles\application.xml(57): error 105: application.icon.image32x32 contains an invalid value
emcfiles\application.xml(58): error 105: application.icon.image48x48 contains an invalid value
emcfiles\application.xml(59): error 105: application.icon.image128x128 contains an invalid value

Here is the offending part of the application.xml file:

<content>main.html</content>

<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>false</visible>
</initialWindow>
<installFolder>EMC Cx</installFolder>
<programMenuFolder>EMC Cx</programMenuFolder>
<icon>
<image16x16>images\icons\building.png</image16x16>
<image32x32>ext-air\resources\icons\extlogo32.png</image32x32>
<image48x48>ext-air\resources\icons\extlogo48.png</image48x48>
<image128x128>ext-air\resources\icons\extlogo128.png</image128x128>
</icon>
<fileTypes></fileTypes>
</application>

I'm not an XML expert by any means so I may be missing something really obvious but whats the invaild value? This is on a windows machine so the \ should be correct.

Can't find Adobe AIR

$
0
0
Hi,

I'm new to Adobe Air
I've installed this (http://airdownload.adobe.com/air/win/download/latest/AdobeAIRInstaller.exe), I tried to make my first "Hello world" app >http://filchiprogrammer.wordpress.com/2008/03/12/creating-a-sample-hello-world-adobe-air-a pplication-with-html-and-javascript/

I've set the correct path for the bins (I restarted windows, because windows needs to restart for anything)

The command adl tells me :
Adobe AIR could not be found
Use "-runtime <dir>" to specify the location of the runtime

Even if i specify the path wehe adobe air is :
adl -runtime C:\Program Files\Adobe AIR\Versions\1.0


Please help me. I really want to know more about Air.

Thanks in advance

AIR application installation error (Windows)

$
0
0
Hi,

We’ve bumped into troubles while developing AIR application. The problem is in installation AIR application under Windows by a user without administrator privileges. When installing application user selects installation folder he has permission to write to. And after installation begins it ends with error #0: Some error occurred...
In the installation troubleshooting it is written that installation of AIR application *may* require administrator privileges when installing to a location user has no rights to write to but we do.
Is there any way to install AIR application by an unprivileged user?

Dynamic forms in AIR/Flex

$
0
0

OK, this is another of those "Is AIR the right tool for the job" questions. And I have zero previous exposure to Flash/Flex, just doing a fast forward through all available information, to reach an assessment.

 

The app in question is mainly a vanilla database client (server component exists and has a ReSToid HTTP interface). It involves task lists, forms, all the ususal stuff and is glueing together a bunch of other (pre-existing) apps on the client  which are to be spawned from the glue app.

 

In contrast to the legacy app which is to be replaced, the database structure shall be customizable per customer site and consequently have custom edit forms.

 

Now, how to implement custom, dynamic forms in AIR/Flex? It seems logical to store the forms together with custom table in the database, but in which format? It is impossible to just store MXML forms, as Flex is a compiled language and I didn't find a hook to pull in extra MXML from an external source.

 

Is there a Flex component turning an XML description of a form into a form on the screen, as mx:FlexNativeMenu can turn XML into a menu?

 

Or am I looking into the wrong direction? It seems an AIR/Ajax soulution would be able to just pull the custom form in HTML from an external source and use it. But AIR/Flex is looking to be the friendlier and more productive environment....

External SQL Server and AIR

$
0
0

Hi,


I am very new to AIR.  I am trying to figure out how to connect to an external sql server database.  In my flex application I have remote object calls that call some CFC that has it's access method set to remote and it returns the data nicely to flex.

 

1. Is it the same with Adobe Airr?  Long as the web service is accessible then it should work right?

 

2. Is there anything I need to do different (since its an AIR app)  in terms of how the data is returned from the server?    

 

 

Thanks,

 

-Westside

How would I create an USB Barcode Scanner Listener using Adobe AIR?

$
0
0

I want to create a USB barcode scanner listener that would read in the scanned barcode, and place the barcode in a field in my AIR App even if the program wasn't focused on that particular field in the App.  If the client was using the application at the time for something else the scan would be buffered in AIR till requested or the AIR App has been idle for x period of time where upon the field would be brought into focus.

 

How would I go about this (I'm developing on windows)  Was hoping for a USB solution within AIR but not fussy at all if I have to go outside AIR to solve this problem.  Java, Flex, ActionScript, Flash, C, C++, C#, VB (currently I've developed the rest of the App using Adobe AIR and JavaScript)

 

I thought after some research that I could make a Java App (if all else fails) that listens and buffers the input and passes it along using a socket but JUSB doesn't work on Windows properly.

 

I'm not stuck on any one particular implementation or idea just want to get development underway so...  Any ideas? or suggestions would be awesome.  I've googled a lot but haven't found any examples or solid suggestions, so any URL pointing to that information would be great too, if you know of a good one, then I'd be able to read up on any suggestion.

 

Thanks,

 

Marty

AIR exit app and preventDefault

$
0
0

I'm experimenting with AIR after having learned AS3 recently. In the AIR test app that I am creating, I want to detect an application close in order to prompt the user for saving.  I looked at the documentation and some articles and this is what I have so far:

 

NativeApplication.nativeApplication.addEventListener(Event.EXITING, closeApplication);

 

public function closeApplication(e:Event):void
            {           
            trace("don't exit");
            e.preventDefault();

            trace(e.isDefaultPrevented);
            }

 

It doesn't seem to work though, I even tried Event.CLOSING, which does not even enter the function. The above code throws no errors, the string "don't exit", outputs true for the isDefaultPrevented, but still terminates. How do I intercept or overwrite the application exit in order to insert the prompt?

 

By the way, I'm using pure AS3, as I'm not yet that familiar with Flex yet.

 

Hope someone can guide me. Thanks!

"Please contact your administrator" - I AM the Administrator! (Adobe AIR)

$
0
0

I'm having endless frustrations with trying to install Adobe AIR on my Macbook. I'm running OS X 10.6 Snow Leopard.

 

After launching the Adobe AIR installer file, it takes a while before a window appears citing an error (see attached screenshot).

 

The problem is that there is only ONE account on my Macbook and it IS set as the admin account. I have double checked and triple checked that the account has admin priviliges.

 

Since the last few days have fallen over the holidays and it's the weekend now, I've been unable to reach Adobe technical support by phone. Please help in solving this. Screen shot 2010-01-03 at 10.35.11 PM.png

SQLError #3125

$
0
0

Is this a bug or a feature? I can create a db directly inside ApplicationStorage, but not inside a (non-existent) folder in Application Storage. I get the error: SQLError: 'Error #3125: Unable to open the database file.', details:'Connection closed.', operation:'open', detailID:'1001'

 

As an example, open an AIR FLA and simply test these paths to the db file:

 

var dbpath:String = File.applicationStorageDirectory.url + "db/mydb"; // fails unless db is there already

var dbpath:String = File.applicationStorageDirectory.url + "mydb"; // works regardless, even if the local storage folder does not exist yet

 

var f:File = new File(dbpath);

var sql:SQLConnection = new SQLConnection();

sql.open(f, SQLMode.CREATE, false, 1024, null); // runtime error if path 1 is used.

 

(in flash CS4)

 

As a workaround I suppose I could, before creating the db, write a temp file to the path where the db should reside. That way, the path would exist. Is that the only way or am I missing something?

 

Thanks

Can I print an HTMLLoader with a PDF inside it?

$
0
0

Oregon Health and Science University is having me create a application for a health fare that will be available to all age groups.

 

I'm using AlivePDF to create a PDF file, then save it to the desktop. I can then use an HTMLLoader to display my lovely PDF file.

 

Now, the print button in Adobe Reader works fine. However, there will be young children using the app, so I'd like to have a big "Print" button right above it.

 

I figured I could just start up a print job and feed it my HTMLLoader. Am I doing something wrong here, cause I can't seem to get any output?

 

note: variable "stuff" below is my HTMLLoader. I also have access to the PDF file if that comes in handy.

 

privatefunctionprint():void
{
   
var myPrintJob:PrintJob=newPrintJob();
   
var result:Boolean=myPrintJob.start();
   
if(result && stuff !=null)
   
{
       
var rect:Rectangle=newRectangle(0,0,2550,3300);
       
var opt:PrintJobOptions=newPrintJobOptions(true);
        myPrintJob
.addPage(stuff, rect, opt);
        myPrintJob
.send();
   
}
   
else
   
{
       
//User does not have printer or user canceled print action
   
}
}

Connect Adobe Air to MySQL

$
0
0

Dear User,

I'd like to connect my AIR apllication to mySQL database.
I'd like to find a solution whom setup is easy.

In my case database is hosting in local network (in the same computer
as Air application or in orther computer on local network).

I'd like to create a soft with flex 4, do you think that asSQL is the
better solution to solve my problem or do you have an other idee to do
that.

 

Thanks for your help.

Best regards

AIR 2 Linux .rpm - absolute path error?

$
0
0



Hello,


We bundle AIR 2 .rpm and an AIR help application in our software builds for Linux RedHat, using the following command:

+ '/usr/bin/Adobe AIR Application Installer' -eulaAccepted -desktopShortcut -programMenu -location /home/vnmrj_3.1ALPHA_2010-05-09/help /rdvnmr/.g_vj_2010-05-09/code/vj3help.air


Though the above paths are absolute paths, we receive the following error message:

unexpected error: ArgumentError: Absolute path of the air file needs to be specified.


Associated log:

[Adobe AIR Application Installer:3151][INFO] waiting to receive open event
[Adobe AIR Application Installer:3151][INFO] UI SWF load is complete
[Adobe AIR Application Installer:3151][INFO] UI initialized
[Adobe AIR Application Installer:3151][INFO] enter waitingForOpen
[Adobe AIR Application Installer:3151][INFO] waitingForOpen canceled
[Adobe AIR Application Installer:3151][INFO] starting cleanup of temporary files
[Adobe AIR Application Installer:3151][INFO] application installer exiting

 

Any suggestions would be greatly appreciated.

 

Thanks,

Lydia

Problem with the native installer on MacOS

$
0
0

I successfully created a native installer on Windows and Linux but I got some problems with Mac.

 

If I enter the command:

 

adt -package -storetype pkcs12 -keystore /Volumes/USB/certificate.p12 -target native Test.deb Test-app.xml Test.swf native

 

 

I get the following result:

 

unexpected failure: Platform conversion failed. Process exited with error 4. Output was ""

java.io.IOException: Platform conversion failed. Process exited with error 4. Output was ""

at com.adobe.air.nai.NativePackager.conversionFail(NativePackager.java:193)

at com.adobe.air.nai.NativePackager.invokePlatformConversion(NativePackager.java:174)

at com.adobe.air.nai.NativePackager.createPackage(NativePackager.java:75)

at com.adobe.air.ADTEntrypoint.parseArgsAndGo(ADTEntrypoint.java:132)

at com.adobe.air.ADT.parseArgsAndGo(ADT.java:182)

at com.adobe.air.ADTEntrypoint.run(ADTEntrypoint.java:68)

at com.adobe.air.ADT.main(ADT.java:128)

After that I created a signed air file with the FlashBuilder and tried to convert it to a native installer with the command:
adt -package -target native Test.dmg Test.air
and got the following result:
AIR file at Test.air could not be converted.
The error was ""
How can I fix this problem?

unknown configuration version errorID=16811

$
0
0

I'm attempting to set up ApplicationUpdaterUI but I get the following error when I initialize:

 

[ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception Error: unknown configuration version" errorID=16811]

 

My configuration looks like this:

 

 

<?xml version="1.0" encoding="utf-8"?>

<configuration xmlns="http://ns.adobe.com/air/framework/update/configuration/1.0" >

  <url>http://mydomain.com/updates/update.xml</url>

  <delay>1</delay>

  <defaultUI>

    <dialog name="checkForUpdate" visible="true" />

    <dialog name="downloadUpdate" visible="true" />

    <dialog name="downloadProgress" visible="true" />

    <dialog name="installUpdate" visible="true" />   

    <dialog name="fileUpdate" visible="true" />

    <dialog name="unexpectedError" visible="true" />

  </defaultUI>

</configuration>

 

Any idea why I'm getting the error?  Every example I find online uses http://ns.adobe.com/air/framework/update/configuration/1.0.  Do I need to change this?

Call Javascript From AIR - Flash

$
0
0

I'm developing an AIR application in Flash that needs to call external javascript functions. Is it possible to call external js functions from AIR (Flash) or call js functions embedded in an html file? Any help or examples are appreciated.

Viewing all 21156 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>