Flex :: Determine Programmatically If An AIR App Was Launched From The Command Line?

Jul 5, 2011

Is it possible to determine programmatically whether an AIR app was launched from the command line or via double-click on the application icon?

I want to be able to do something like:

`if (e.launchedFromCLI) { foo(); }`

View 1 Replies


Similar Posts:


Flex :: Command To Pause, Stop And Close Vlc Player From Command Line?

Aug 5, 2010

Well i have an adobe air which runs vlc-player at background as service. i check that in Windows Task Manager , the service runs when air application launches.
here is the code

processArgs.push("--extraintf");
processArgs.push("rc"); //Remote control
processArgs.push("--rc-fake-tty"); //Use terminal as output

[code]......

View 1 Replies

Flex :: Programmatically Scroll To The End Of A Spark Textarea When A New Line Is Added?

Sep 6, 2011

The old method for the mx:TextArea no longer works. Specifically:

myMxTextArea.verticalScrollPosition = myMxTextArea.maxVerticalScrollPosition;

I've found this method for Spark but seems a bit kludgy:

mySparkTA.scrollToRange(mySparkTA.text.length-1, mySparkTA.text.length);

Is there a more straightforward way to do this?

View 1 Replies

Flex :: Create A 'command Line' Swf?

Jun 28, 2009

I'd like to be able to write a .swf file that is runnable as a command line app. In other words, I would be able to create actionscript classes which can interact with stdin and stdout, and could then execute that .swf directly in the command line. I suspect that this isn't really possible. Can anyone confirm that? EDIT: A couple of the answers pointed out that using Flash for command line work probably isn't the best choice. I wholeheartedly agree in most situations. The reason I am asking about this is because I want to do some AS3 code generation, and reflecting on AS3 classes within the runtime would be easier than parsing the code or walking the intermediary XML that asdoc produces. I'm doing the XML approach now in Ruby, but would love to have a cleaner solution!

View 9 Replies

Flex :: Launch Command Line Air App?

May 26, 2010

Is it possible to create a command line Abode Air app? I know thats not the intended use of the framework, but I have a lot of utility code written in as3, and I have a need to programatically run some utility functions from another app (not flash). I know I can pass command line parameters to the Air app, but I would like to avoid having a window pop up while the calculations are being made.

View 1 Replies

Flex :: Possible To Create A 'command Line' Swf?

Jan 31, 2007

I'd like to be able to write a .swf file that is runnable as a command line app. In other words, I would be able to create actionscript classes which can interact with stdin and stdout, and could then execute that .swf directly in the command line.I suspect that this isn't really possible. Can anyone confirm that?EDIT:A couple of the answers pointed out that using Flash for command line work probably isn't the best choice. I wholeheartedly agree in most situations. The reason I am asking about this is because I want to do some AS3 code generation, and reflecting on AS3 classes within the runtime would be easier than parsing the code or walking the intermediary XML that asdoc produces

View 14 Replies

Flex :: Compile CSS File Into SWF Using The Command Line

Feb 20, 2010

I understand that in Flex builder we can right click on a CSS file and choose 'compile to swf' and our CSS SWFs will automatically be compiled along with the main app.Is possible to compile the CSS file only (not with the main app) from the command line?Give clients a Flex CSS file to hand edit.Allow them to upload the file via a CMS.Trigger a server process to run the compiler from the command line, outputting the compiled SWF to the appropriate server path.This would of course be a whole lot simpler if Flex properly supported text-based CSS files (without requiring manually applying styles using AS3).

View 1 Replies

Flex :: Compile AS Project Via Command Line?

Jan 20, 2011

I downloaded Flex SDK 4 and also an .as project with many classes. In order to learn I want to build them and execute. How do I do it ?

I tried with FlashDevelop, but it's not working and when works compile only one single class.

View 1 Replies

Flex :: Generate Thumbnail Using Command Line?

Jul 18, 2011

I have implemented a graph generator using flex. The user can edit his graph at any time. I want to save an image of this graph on the server without uploading it from the user PC. Is there a command line tool that can be used to start a flex program and pass some external parameters (file name) and store the file locally on the server ?

PS : I can convert my flex application to adobe air application if needed and use it from the server from command line

View 1 Replies

Flex :: Compile Project That Uses Cairngorm With Command Line?

Oct 31, 2010

Has anyone tried to compile a flex project that uses Cairngorm with command line?

View 1 Replies

Flex :: Get FlashBuilder To Show The Command-line Output?

Nov 8, 2010

Specifically, I want to know what the commands are... all the flags it produces and passes to mxmlc.

View 2 Replies

Flex :: Compile A File Into Swf Using Mxmlc In Command Line?

May 13, 2011

I am trying to compile a file into swf using mxmlc in command line. When it is a very simple mxml, compile is successful. But when the file contaion the fx name space, I get a compile error like: could not resolve (or ) to a component implementation.

I have to be able to do this, without the help of Flash Builder because I am working on a project where I will need to generate swf files from mxml files of which we generate the code.The code I am trying to compile is:

<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"

[code]....

View 2 Replies

Limitations Of Developing Flash In Command Line With Flex SDK?

Aug 31, 2011

A few days ago, I began to develop a flash with text editor and Flex SDK which is free. But I found Flex SDK doesn't support Alert or Scrollbar.What are the differences between Flex SDK and Flash Professional or Builder?Are there any other limitations of developing flash in command line with Flex SDK?

View 2 Replies

Flex :: 4 - Size Of .apk File Is More When Packaged From Command Line In Mobile App

May 23, 2011

I have a built a mobile application using flash builder burrito and when i export the app from the builder the size of the apk file is say 1180KB,but when i try packaging the same application from the command line the size increases dramatically(to 2679KB).In both the cases if we see the size of swf file it is 2679KB only.So the builder is using some compression techniques to reduce the file size.Is there any options available in command line to do the same compression technique??.I have used the following command to package the swf file..

[Code]....

View 1 Replies

Flex - Converting The MS Office Document To Swf Using Command Line Arrgument?

Sep 20, 2011

i am trying to convert the MS Office files to swf so that i am able to load them to flex air application. is there open source tool that provide a command line interface for converting a MS Office file to swf, currently i am converting them to pdf and them making the swf but the problem is after this i got the pdf as well as swf with different formatting or text tables etc. in some cases.

View 2 Replies

Flash :: Flex - Compile .mxml Files At The Command Line Using Bin / Mxmlc?

Nov 7, 2009

I'm interested in learning just enough Flash/Flex to do things that I can't do from HTML and JavaScript alone - play sound files and video, use multiple file upload things, perform cross-domain Ajax requests using the crossdomain.xml file etc. As such, I don't really want to learn (or pay for) the Flex IDE. I'm not much of an IDE guy in any case.

The problem is, most of the tutorials I've found talk about the IDE. I've figured out how to compile .mxml files at the command line using bin/mxmlc - now I just need to learn MXML, ActionScript and the various APIs! What are the best resources for learning these? I'm fine with buying a book, I just don't want to shell out for the API itself.

View 3 Replies

Flex :: Continuous Integration - Run Unit Tests From The Command Line On Linux?

Mar 12, 2011

I am setting up a FlexBuilder build under Hudson/Jenkins on a Linux system. I want to execute our unit tests, but do it without using the standard GUI-based test runner.

View 1 Replies

Flex :: App Fails To Compile With Mxmlc Command-line But Works With Flash Builder IDE

Apr 21, 2011

i have this flex app (it's a flex project created from flash builder), and it compiles fine when i build it from the IDE.it fails to compile when i do it from command line through mxmlc.i am invoking the mxmlc at the location "flash-builder-installation"sdks"flex-ver"inthe mxml file is test.mxml.i don't have any dependency on any of custom swc file.i am getting the following type errors when i compile it.[code]

View 2 Replies

Flex :: Center A Launched Window?

Jul 3, 2009

I am trying to center a launched window in flex, there is a NativeWindow.x and NativeWindow.y but flex uses the Window class which does not have these properties, so does anyone know how to center a window?

View 2 Replies

Flex :: Caringorm Calling Multiple Command In One Call (Queue Command)?

Mar 2, 2011

I want to call 3 commands one by one , the relation between each commands are command should execute one by one in the previous command result. How to Queue Command's? What is the best practice to handle Queue command , my requirement is adding n number of commands and execute them.Main -> Execute c1c1 got the Result - Execute c2c2 got the Result - Execute c3

View 2 Replies

Actionscript 3 :: Building A Swc In Command Line Or Ant?

Mar 8, 2012

First off - I'm not super familiar with Flash Builder or ActionScript.I have an ActionScript project in Flash Builder.I know I can generate a swc file by doing Project > Build, and it will build a swc file from my ActionScript source code.Is there a way to generate the swc in command line or ant? I'd like to be able to put this build process inside a build script so I don't need to go through Flash Builder to build the swc file everytime.

View 1 Replies

ActionScript 3.0 :: FlashVars Via The Command Line?

Nov 26, 2009

I have done a few small flash projects and have successfully passed and retrieved FlashVars when the .swf is embedded in a web page.I want to build a small app that will run standalone i.e. not in a browser and want to pass to the swf the name of a text file on the command line that has various config options in.This is for a kiosk type app. I'm aware of Zinc and maybe that's the way I need to go.

is it possible to pash FlashVars / Command Line params to a standalone swf?

View 5 Replies

ActionScript 3.0 :: Determine Which Of The Rectangle's 4 Sides The Line Is Drawing Out Of?

Sep 7, 2009

I have a line within a rectangle.The line can draw outwards 360 degrees.I need to determine which of the rectangle's 4 sides the line is drawing out of.

View 1 Replies

Flash Button Causing Exe With Command Line

Mar 22, 2010

I want it so that when you click a button, it will run a multiplayer game and connect to a server, WITHOUT having any .bat or .exe files beforehand. So any new guy can rock up and connect, just as long as he has the game.

If you run Jedi Academy multiplayer like this:

jamp +set fs_game "japlus" +connect "193.155.0.5:29070"

It will run the game and connect to a certain server. The problem is, how do I get Flash to do that without any premade .exes with command lines?

The only other problem I can think of is, is it possible to run the game without knowing the directory the exe is in? In other words, could Flash find the game .exe if it was just given a name?

View 1 Replies

Actionscript 3 :: Create Command Line Program With Air 2?

Jan 16, 2010

Is there any way to create an Air 2 program that runs just in the command line? (no windows, no gui, etc)

Something similar to Windows Ping program. It would accept arguments and then output std out.

View 2 Replies

Windows :: Compile Flash .fla Into .swf Via Command Line?

May 11, 2010

How to compile Flash .fla files into .swf via command line on a Windows based operating system. Command line tools that need to be installed are ok.

View 2 Replies

Actionscript :: Build And Run FlexUnit From The Command Line?

Aug 20, 2010

I am building an app using ActionScript3 with Flash Builder 4 as my IDE.

The IDE supports a unit testing framework called "FlexUnit".

I can build and run tests within the IDE, no problem.

After much pain and suffering I figured out how to build the unit tests as a swf from the command line. I can point a browser or flash player at the swf and the tests run.

But for an automated build system this is no good: I would like to build the tests, run them, and collect/analyze the results to tell which tests, if any, are failing.

I can imaging some hackery: hack FlexUnit base libraries to dump output to stderr instead of just to the IDE console. Hack some script together that points a browser at the swf, counts to 60, kills the browser and checks stderr.

But that's hideous.

I have to believe there's some way to build and run from the command line that works nicely with automated build systems.

Further complication: I am a relative noob with ActionScript (~1 month). My background is C++, makefiles, etc. All the stuff I had to do to get the tests even to build outside the ide (a build.xml file, ant) was complete greek to me, just cut n pasting from examples I could find.

View 1 Replies

Actionscript 3 :: Osx Compiling Project From The Command Line?

Sep 19, 2010

When working on small projects or some test classes , I would prefer to quickly compile my code from the command line as opposed to creating a full Actionscript project in Flash Builder for instance.

In a previous similar question , an answer was given referring to this article:[URL]..but this is for Windows user...

I had a look at ProjectSprouts, which seems excellent but too heavy for the sort of task I'm looking for.

Would you know of any alternative approach that could be used to quickly compile a swf from the Terminal on Mac OSX?

View 2 Replies

Actionscript :: Flash Command Line Interface?

Oct 8, 2010

I am looking to build a Flash/ActionScript 2 Command Line interface simulator which acts like a Unix/Dos CLI.

View 1 Replies

Flash :: Ant - Compile .FLAs Using Command Line?

Nov 1, 2010

how do I compile Flash .FLAs using command line? I am using Eclipse + FDT for Flash development and I would like to use ANT to automatize the compilation. I am using AS3 and need to compile for Flash Player 10.1.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved