Well that´s the way I use when doing Air projects with Flash CS3. Even the code hint is working in flash IDE.

here is a .fla test:

http://www.adrianosantangeli.com/FlashAir.fla

CrAzYcAlL

Omar Fouad wrote:
Well I am using the Beta 3 but there is no NativeApplication Class.
P.S. : Um using the flash CS3 Air Update.

On Dec 31, 2007 3:24 AM, CrAzYcAlL <[EMAIL PROTECTED]> wrote:

What version of Air ?
"flash.desktop.NativeApplication" is for beta2 and beta3 if you're using
an older version you need to use "flash.System.Shell" instead.

CrAzYcAlL
*

*Omar Fouad wrote:
flash.desktop.NativeApplication is not a Class in the AS3 library,,,


On Dec 31, 2007 12:45 AM, CrAzYcAlL <[EMAIL PROTECTED]> wrote:


use InvokeEvent :

import flash.events.InvokeEvent;
import flash.desktop.NativeApplication;
import flash.filesystem.File;

var appDir:File;
NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE
,
onInvoke)
function onInvoke (invokeEvent:InvokeEvent):void{
   appDir = invokeEvent.currentDirectory;
   trace ( appDir.nativePath );
}

CrAzYcAlL

Omar Fouad wrote:

Hey,
Um doing some kiosk database driven Application in AIR, and I need to

return

the absolute directory path of the .fla file itself in order to be
able
to

write files in the same application directory.

I tried:

var path:File.applicationStorageDirectory;
trace(path.nativePath) // it returned some other directory inside

"documents

and settings"

any Idea?



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to