Flex :: How To Pass "" Symbol To Nativeprocess Argument
Aug 25, 2009var arg3:Vector.<String> = new Vector.<String>;
var rescJar:String = File.applicationDirectory.nativePath + "/java/test.jar";
arg3.push("-jar",rescJar,"-n "a string"");
var arg3:Vector.<String> = new Vector.<String>;
var rescJar:String = File.applicationDirectory.nativePath + "/java/test.jar";
arg3.push("-jar",rescJar,"-n "a string"");
I need to pass the "" to the mm.exe that run with nativeprocess. When I pass "In From MIDI Yoke: 1" even using " to the nativeprocess, it won't launch the application properly and caused it to crash. What wrong this the code?
[Code]...
I want to pass two parameter to nativeProcess. While i am running exe file using windows command with parameter, it is working. Command for window is "abc.exe a.txt b.txt"How can I pass two parameters to the exe in that format using flex nativeProcess?This is what I have so far:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code]....
How can I pass a 'set' function as the Function Object argument of another function?eg:
public class IdModel
{
private var _id:String;
[code].....
Im trying to create a loop of items like this...
for each (var btn:Object in ViewButtonData)
{
// build element[cocde]..........
I would like to pass in current HBox to the 'HoverTab' function. Is there a way to do that?
I'm trying to use Imagemagick convert.exe with Flex4 NativeProcess. I know I have it configured properly because I can get a successful result with a simple call with no options to convert.
[Code]....
How do I pass arguments using ActionScript's event-listener?I have code, as given below, which creates a label, and I want, when clicked on the label it should pass the toolTip associated with that label. This is what I was trying to do:
public function create_folderpath():void
{
for(var i:int = 0; i < fm_model.absolute_path_ac.length; i++)
[code].....
I have a signal like this:
public var e_collision:Signal = new Signal(GameObj);
When the object collides with another, I pass the other object as the argument.But if the object collides with a wall, the wall is not a GameObj, I would like to know, can I pass null instead?
How can I pass a CustomEvent as an argument to a class and later dispatch it? An example of what I would like to achieve is below - non working
var container:Container = new Container(array, new ViewEvent(ViewEvent.PHOTO_SELECTED));
addChild(container);
[Code]...
I'm trying to pass my object class as constructor argument. I have something like this:
package myclass {
import flash.display.MovieClip;
import flash.display.BitmapData;
import flash.display.Bitmap;
[code]....
Now, when I try to create my Example:
import myclass.Example;
var example:Example = new Example(myObjClass);
I get message, that I'm not passing any variable (Error #1063). Why is that? What is wrong with it?
I created and filled a multidimentional array, and passed it to a function, like this:
var array = new Array();
for (i=0; i<someLength; i++) {
array[i] = new Array();
[Code]....
I get an undefined value, like the array I just passed is just a value. What would be the correct way of achieving this?
im trying to pass in an optional argument into a function. The datatype of this needs to be an object... however, im not getting very far. I know i can do this....
[Code]....
I need to upload a file from my Flex interface to a folder located on the server.
I use the following [code]...
Problem: I need to pass an additional argument to my upload.php script (actually a String - the name of the folder I want it to be uploaded). Is there a way to do this?
I have recently moved from AS2 to AS3 and I am finding the transition fairly easy, however I do have a few questions, some of which may not have been possible with AS2 but I would like to achieve them in AS3
1. Is it possible to pass the name of a class as an argument in a function and then use it to create a new instance. e.g [code]
2. Carrying on from the previous question, if a class can infact be passed, can I specifying a variable type for the argument so that only classes and not instances will be accepted?
3. I have three class files that all inherit some functions and variable from another class called Ship. Is it possible to specifying a variable type so that the variable can only hold instances of classes that are inherited from the Ship class?
how to pass the multiple array as an argument?
function fun(..arr1,..arr2)
{
}
I have built a application that use a nativeProcess to open exe. The application into Flex Builder 3 run whitout errors. Then the problem come when I export the aplicaction AIR in .air and install the applicaction in the developer pc or other pc. When I push the button to open the .exe, appear the message "Native Process is not supported". The code in the main.mxml that I use:
[Code]...
Ok, I have 2 buttons on the stage. Each button does almost the same thing, so I want to create a single function, and each button calls that same function (we'll name that function "Navigate")... however, the function will need to end up doing something different dependant on which button was clicked.So, previously, in AS2, I would've added some code onto the buttons themselves with on(release) methods, like so:
Code:
// Define the Navigate function
function Navigate(myLabel){
[code].....
Trying to migrate my way of thinking from AS2 to CS4/AS3. Ok, I have 2 buttons on the stage. Each button does almost the same thing, so I want to create a single function, and each button calls that same function (we'll name that function "Navigate")... however, the function will need to end up doing something different dependant on which button was clicked. So, previously, in AS2, I would've added some code onto the buttons themselves with on(release) methods (see CODE EXAMPLE 1) So, each button effectively calls the Navigate function, and passes a different frame label to the function. Now, I'm trying to recreate this functionality in AS3. As you all know, on(release) has been done away with (still don't know why), but we now have to use event handlers, so I'm trying to figure out a way to pass a different frame label argument to the Navigate function. Currently I can achieve that by using a switch statement to test which button was clicked, and act accordingly (see CODE EXAMPLE 2).
[Code]...
I want to be able to call a JavaScript function from a Flex app using ExternalInterface and pass a reference to a different JavaScript function as an argument.
[Code]....
I have a program in AIR 2.6 for Windows and Mac Os platform. Use NativeProcess class to execute native apps that i have included in the project.
[Code]...
The NativeProcess is having a big issue which would hang/sudden stop response after 1-2 mins of running. I wonder if anyone else encounter the same issue?I have tested on Windows 7 (64bit).If there any way to launch an exe and release the Nativeprocess handler from monitoring the process or other method will be appreciate.
View 1 RepliesHow can I find the return value of a executable which has been invoked by a AIR app using the NativeProcess API? I am using Flash Builder 4. The following c++ generated executable
festival --tts "HelloSpeak.txt"
works fine on the Windows cmd line , but on invoking by the NativeProcess API like in the example article doesn't produce the desired result. I invoke the command with the arguments on a button click handler, but there is no TTS generated output.
I have a movie clip in my library linked with a class name "MyClass", and I am trying to do something like this in Actionscript 3:
function createbtn(bclass:Class):void{
var addB:bclass = new bclass();
addChild(addB);
}
creatbtn(MyClass);
But, I get this error: "1046: Type was not found or was not a compile-time constant: bclass."
Is AIR nativeprocess able to receive message from Java program and process every line of message as fast as possible in milliseconds? Does it has a miss read or delay?
View 2 RepliesI created a save button and added an eventlistener to run the saveAs() when the button is clicked but I'm getting Error #1063: Argument count mismatch on views::TxtView/saveAs(). Expected 0, got 1.[code]The debugger stops when the Save As button is clicked.
View 2 RepliesI would like to launch an external program on the server from a server-side ActionScript. My server-side scripting is in ActionScript 1.0 so I can't use the NativeProcess class, right? Can I use ActionScript 3.0 on the server? Is there another way?
View 3 Repliesis good practice to use if(source==null) in my costructor, to run code only if the costructor argument is provided ?
package dataModels {
import mx.collections.ArrayCollection;
import dataModels.*;
[code]....
I want to interact with a .jar-file in my AIR-project.I am using the NativeProcess feature in AIR2 for this, but it seems like I can't just define 'myJavaFile.jar' as the executable.On Windows, you can give 'java.exe' as the executable, the problem is Mac can't handle .exe-files.So my question is: how can I use .jar-files with the NativeProcess feature in AIR2. Or maybe there is an other solution to communicate with a .jar-files in AIR / AS3?
View 1 RepliesI've recently had the need to use the managers compiler argument, because the project had an Open Type font embedded, and was generating errors at compilation. Now I need to use the same argument in my ant task, but for some reason it doesn't work. I'm using Flex SDK 3.2.
The task looks something like:
<mxmlc
file="${main.class}"
output="${swf.export}"
actionscript-file-encoding="${ENCODING}"
keep-generated-actionscript="false"
[Code] .....
I've tried different variations, from using manager as a child element of mxmlc, to using it as an attribute, and combining it with prefixes (fonts, compiler.fonts). I've also tried to use it as sub-element of the element fonts, but nothing worked. I've considered using a shell task instead, but I'd rather not. For now I've changed flex-config.xml in the frameworks directory of the sdk, and it seems to do the trick, but I'm thinking there's got to be a way to do this in the task. Any exact elements I need to add to the task to make it work, without having to modify "flex-config.xml"?
I want to pass an optional data parameter to some callbacks, but only to callbacks that support a single parameter; right now, I have a moderately-sized code base of callbacks that cannot accept a parameter at all. How can I check what parameters a Function object supports?
View 3 Replies