Re: [Flashcoders] Getting the project directory path in AIR

2008-01-05 Thread CrAzYcAlL
Let me ask you something. Have you tried this : /import flash.filesystem.File; var dir:File = File.applicationDirectory; trace ( dir.nativePath );/ I remember that this approach had some problems in beta 2. Can´t remember exactly what. But you can give it a try ;) CrAzYcAlL Omar Fouad

Re: [Flashcoders] Getting the project directory path in AIR

2008-01-05 Thread CrAzYcAlL
http://labs.adobe.com/wiki/index.php/AIR:Documentation I use the LiveDocs when getting info of new things, because that is the one they are continually updating. CrAzYcAlL. Omar Fouad wrote: Wow that worked But how do you get the Methods and Classes that I cannot find

Re: [Flashcoders] Getting the project directory path in AIR

2008-01-03 Thread CrAzYcAlL
{ switchVideo(Video); } so the problem was that you were calling switchVideo before onInvoke takes place, and the appDir variable was not populated yet. CrAzYcAlL Omar Fouad wrote: When I use: NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke) var AppDir

Re: [Flashcoders] Executing external ,exe witn AIR

2008-01-02 Thread CrAzYcAlL
=1298770enterthread=y Adobes wish list: http://www.adobe.com/go/wish/ CrAzYcAlL Omar Fouad wrote: I've been thinking about something else.. Why they don't let me execute files from the fscommand like I do in any Projector application (fscommand directory)... I think that this would be one solution, that yet

Re: [Flashcoders] Getting the project directory path in AIR

2007-12-31 Thread CrAzYcAlL
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

Re: [Flashcoders] Getting the project directory path in AIR

2007-12-30 Thread CrAzYcAlL
= 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

Re: [Flashcoders] Getting the project directory path in AIR

2007-12-30 Thread CrAzYcAlL
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

Re: [Flashcoders] Re: AIR Printing V.S. Sytem issue

2007-12-30 Thread CrAzYcAlL
This is an old problem, in the past I fixed that creating a VBScript to print the job or programs like JPrintor , flash studio pro or zinc . These days I wrap the swf using ActiveX in a C# program that handles the print. CrAzYcAlL. Omar Fouad wrote: is the list working? On Dec 29, 2007 4