RE: [flexcoders] Function from string?

2013-11-07 Thread Keith Reinfeld
I would like to be able to take a function name I've read from the script and call the corresponding function. Hi A. P. Damien, As I understand it, you have existing functions which you want to call by passing the name of a function as a string to a generic method. By 'script' I take

RE: [flexcoders] Function from string?

2013-11-06 Thread Keith Reinfeld
@yahoogroups.com Subject: [flexcoders] Function from string? I'm writing a game. Well, actually I guess it's more of a game engine. I want the game logic to be in a script. The script will take the form of a series of rooms, each of which can contain: . doors to other rooms . characters the player

Re: [flexcoders] Function from string?

2013-11-06 Thread hamann . w
I'm writing a game. Well, actually I guess it's more of a game engine. I want the game logic to be in a script. The script will take the form of a series of rooms, each of which can contain: . doors to other rooms . characters the player can interact with . things the player

Re: [flexcoders] Function from string?

2013-11-06 Thread A. P. Damien
On 11/6/2013 9:16 AM, Keith Reinfeld wrote: Perhaps the following syntax will help: var func:String = “yourFunctionName”; this[func](); Thanks. I hadn't fully assimilated the fact that an object can also be treated as an array. Do I have to declare the class 'dynamic' for this trick to

Re: [flexcoders] Function from string?

2013-11-06 Thread Alex Harui
Both Array and Object support [] property access. Regarding converting a String to a Function: AS is compiled, not interpreted, so only strings that have been compiled into functions can be run. You can fill an object or array full of functions and choose one at runtime, but that is not the

[flexcoders] Function from string?

2013-11-05 Thread A. P. Damien
I'm writing a game. Well, actually I guess it's more of a game engine. I want the game logic to be in a script. The script will take the form of a series of rooms, each of which can contain: . doors to other rooms . characters the player can interact with . things the player can pick

[flexcoders] Function to download an image

2010-01-09 Thread Christophe
Hello, There is the upload function to upload an image to the client PC to the server, but is it possible to have a download function to put an image from the server to the client PC ? Thank you, Christophe,

Re: [flexcoders] Function to download an image

2010-01-09 Thread Tibor Ballai
Hi Christophe, With flash player 10, you have the ability to save files with FileReferrence. However what I usually do, which doesn't require flash player 10, is to create a servlet, set the content type to application/force-download and use naviteToURL in flex to start the download. Hope

RE: [SPAM] [flexcoders] Function Execution Time

2009-10-31 Thread Tracy Spratt
Sent: Friday, October 30, 2009 2:29 AM Subject: [SPAM] [flexcoders] Function Execution Time How can I find/get execution time of particular function data?

[flexcoders] Function Execution Time

2009-10-30 Thread kanu kukreja
How can I find/get execution time of particular function data?

Fw: [flexcoders] Function Execution Time

2009-10-30 Thread Krunal Panchal
, 30 October, 2009 11:58:55 Subject: [flexcoders] Function Execution Time How can I find/get execution time of particular function data?

Re: Fw: [flexcoders] Function Execution Time

2009-10-30 Thread Arpit Mathur
:* [flexcoders] Function Execution Time How can I find/get execution time of particular function data? -- -- Arpit Mathur twitter: http://twitter.com/arpit blog: http://arpitonline.com/blog ---

Re: [flexcoders] Function Execution Time

2009-10-30 Thread kumar jothi
put timer before and after the function call Thanks with regards --- On Fri, 30/10/09, kanu kukreja kanukukr...@gmail.com wrote: From: kanu kukreja kanukukr...@gmail.com Subject: [flexcoders] Function Execution Time To: Date: Friday, 30 October, 2009, 11:58 AM   How can I find/get

[flexcoders] Function Declarations

2009-10-27 Thread Paulo Henrique
Good afternoon people, i just started developping with Flex Builder 3 and I seem to have found some issues. Let me explain my situation: I have an application on a mxml file. In this application i have a AS code file, and I've declared the 'script' block right at the beggining of the

[flexcoders] Function when exit from the appli.

2009-10-19 Thread Christophe
Hello, I want to know when the user exit from my application, or if it does not closed, when he exit from the navigator. Is it to avoid to have several users connected with the same login. Which function to use ? Thank you, Christophe,

Re: [flexcoders] Function when exit from the appli.

2009-10-19 Thread primo411
You can use setup a callback on your application with External.addCallback(...) Then in your html template, you can listen to the javascript event onbeforeunload and call the function you have defined. Cheers, Julien Nicoulaud 2009/10/19 Christophe christophe_jacque...@yahoo.fr Hello, I

[flexcoders] function to get a color uint value from a color name string?

2008-10-13 Thread Pan Troglodytes
Is there a function somewhere that takes something like red as input and returns 0xFF? I've looked all over in the docs and can't find it. Thanks. -- Jason

RE: [flexcoders] function to get a color uint value from a color name string?

2008-10-13 Thread Gordon Smith
The badly-named StyleManager.getColorName() method. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan Troglodytes Sent: Monday, October 13, 2008 12:50 PM To: flexcoders Subject: [flexcoders] function to get a color uint value from a color name string

Re: [flexcoders] function to get a color uint value from a color name string?

2008-10-13 Thread Pan Troglodytes
:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Pan Troglodytes *Sent:* Monday, October 13, 2008 12:50 PM *To:* flexcoders *Subject:* [flexcoders] function to get a color uint value from a color name string? Is there a function somewhere that takes something like red

[flexcoders] function / method argument validation

2008-09-08 Thread rss181919
Let's say I have the following call s myvar = myfuntion (arg1:x) Of course arg1 must be of type x or you get a compile time error. Is there any way to force arg1 to be of a certain value range within type x and have it checked at compile time? For example, is there a way to create a group of

RE: [flexcoders] function / method argument validation

2008-09-08 Thread Gordon Smith
No, AS3 doesn't support this. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rss181919 Sent: Monday, September 08, 2008 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] function / method argument validation Let's say I

RE: [flexcoders] function / method argument validation

2008-09-08 Thread Alex Harui
Instead of defining a function, you could define an interface From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Monday, September 08, 2008 3:10 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] function / method argument validation No, AS3

Re: [flexcoders] function / method argument validation

2008-09-08 Thread Paul Andrews
- Original Message - From: Alex Harui To: flexcoders@yahoogroups.com Sent: Tuesday, September 09, 2008 1:21 AM Subject: RE: [flexcoders] function / method argument validation Instead of defining a function, you could define an interface But it still wouldn't have a range

RE: [flexcoders] function / method argument validation

2008-09-08 Thread Alex Harui
If he really wanted, I think he could define the type to do the range checking. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews Sent: Monday, September 08, 2008 5:42 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] function / method argument

RE: [flexcoders] function foo(... args) { ;}

2008-07-16 Thread Rick Winscot
You can treat args as an array. Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manu Dhanda Sent: Wednesday, July 16, 2008 1:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] function foo(... args) { ;} How to access the parameters

RE: [flexcoders] function foo(... args) { ;}

2008-07-16 Thread Manu Dhanda
: Wednesday, July 16, 2008 1:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] function foo(... args) { ;} How to access the parameters passed in the function like this: function foo(... args) { // How to access the passed arguments here. } Thanks. -- View

Re: [flexcoders] function foo(... args) { ;}

2008-07-16 Thread Sid Maskit
: [flexcoders] function foo(... args) { ;} You mean to say: function foo(... args) { var myArgs:Array = Array(args); } Am I right here?? Thanks, Manu. Rick Winscot-2 wrote: You can treat args as an array. Rick Winscot From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED

[flexcoders] function foo(... args) { ;}

2008-07-15 Thread Manu Dhanda
How to access the parameters passed in the function like this: function foo(... args) { // How to access the passed arguments here. } Thanks. -- View this message in context: http://www.nabble.com/function-foo%28...-args%29-%7B--%7D-tp18480729p18480729.html Sent from the FlexCoders

Re: [flexcoders] function binding toString !! Additional information

2007-12-29 Thread Kevin
1st; when i use function biding (textInput text={myInstance.toString()}/) , function binding works fine are you sure about that? I could be wrong, but I would guess that if you add a button under the TextInput tag your TextInput text value will not update as expected on the button

Re: [flexcoders] function binding toString !! Additional information

2007-12-29 Thread Frederico Garcia
Kevin escreveu: 1st; when i use function biding (textInput text={myInstance.toString()}/) , function binding works fine are you sure about that? I could be wrong, but I would guess that if you add a button under the TextInput tag your TextInput text value will not update as expected on

Re: [flexcoders] function binding toString !! Additional information

2007-12-28 Thread yigit
http://127.0.0.1:49661/help/index.jsp?topic=/com.adobe.flexbuilder.help/html/databinding_4.html here; in the first example, there is a bindable function and it is not a setter or getter. so functions other then setters and getters can be binded! so my question should have an answer... by the

Re: [flexcoders] function binding toString !! Additional information

2007-12-28 Thread Johannes Nel
override the set data function in your item renderer and bind your function getter to an event you dispatch in there. On Dec 27, 2007 2:39 AM, yigit [EMAIL PROTECTED] wrote: i think i'm misunderstood; because your solution suggestions does not fit my problem. first of all, functions can be

Re: [flexcoders] function binding toString !! Additional information

2007-12-27 Thread Frederico Garcia
yigit escreveu: i think i'm misunderstood; because your solution suggestions does not fit my problem. first of all, functions can be binded. (with an event driven architecture that triggers the function to be executed and all bindable references be updated) to see how it is done, take a

[flexcoders] function binding toString

2007-12-26 Thread yigit
hi all; i have a custom class which has a toString method; so i can directly use it as a source to textInput's text field. i want to make binding work, i mean when the result of the toString changes, i want the view to update itself automatically. nameID field of roleRef is an instance of my

Re: [flexcoders] function binding toString

2007-12-26 Thread Frederico Garcia
yigit escreveu: hi all; i have a custom class which has a toString method; so i can directly use it as a source to textInput's text field. i want to make binding work, i mean when the result of the toString changes, i want the view to update itself automatically. nameID field of roleRef is

Re: [flexcoders] function binding toString

2007-12-26 Thread Jhonny Everson
I guess that your solution has a problem, the circular reference to toString. it could be something like: [Bindable] public var stringValue:String = ; public function toString():String { ... ( some processing that results in a string var 'string1') stringValue= string1; return stringValue; }

Re: [flexcoders] function binding toString

2007-12-26 Thread Frederico Garcia
Jhonny Everson escreveu: I guess that your solution has a problem, the circular reference to toString. it could be something like: [Bindable] public var stringValue:String = ; public function toString():String { ... ( some processing that results in a string var 'string1')

Re: [flexcoders] function binding toString

2007-12-26 Thread Kevin
Binding to getters or read-only functions is tricky. I haven't found a really elegant OOP approach, although others have offered solutions like dispatching event from functions etc.. http://www.rubenswieringa.com/blog/binding-read-only-accessors-in-flex The basic problem is that the

Re: [flexcoders] function binding toString !! Additional information

2007-12-26 Thread yigit
i think i'm misunderstood; because your solution suggestions does not fit my problem. first of all, functions can be binded. (with an event driven architecture that triggers the function to be executed and all bindable references be updated) to see how it is done, take a look at the article in

[flexcoders] Function to generate TitleWindows

2007-11-02 Thread George Georgiou
Hi there, I have this simple function that is used in my application to generate a TitleWindow. private function loadAddCustomerForm():void { var form:addCustomer=addCustomer(PopUpManager.createPopUp( this, addCustomer , true)); var dx:Number = (mainPanel.width - form.width)/2; var

[flexcoders] Function to check if component supports a style?

2007-05-02 Thread zzwi89
So I know there is a function to check if an object has a property (object.hasOwnProperty()), but is there a way of determining if an object supports a style? I want to allow the user to alter some style properties own their own through the UI, but I don't want to be setting nonexistent styles and

RE: [flexcoders] Function to check if component supports a style?

2007-05-02 Thread Gordon Smith
PROTECTED] On Behalf Of zzwi89 Sent: Wednesday, May 02, 2007 7:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Function to check if component supports a style? So I know there is a function to check if an object has a property (object.hasOwnProperty()), but is there a way of determining

[flexcoders] Function pointers?

2007-03-11 Thread Alex
Hi there, I'm very new to Flex 2, and was wondering if this was possible. 1. Create a basic widget or application 2. Use that widget inside of a main mxml file 3. Set a callback function on that button For example, let's say the widget is just a plain button that has some complex AS

Re: [flexcoders] Function pointers?

2007-03-11 Thread Ralf Bokelberg
It is possible to define a public variable of type Function and to assign a external function to it. Generally, events are preferred in AS3/Flex 2 though Cheers Ralf. On 3/11/07, Alex [EMAIL PROTECTED] wrote: Hi there, I'm very new to Flex 2, and was wondering if this was possible. 1.

Re: [flexcoders] Function pointers?

2007-03-11 Thread Benjamin Schwehn
I'd like at some point, after the button is clicked and the functions performed, that a certain callback function be performed. Something like a function pointer you can pass functions as arguments or assign to properties just as you would with any other type. eg. private function

[flexcoders] function in a

2007-01-09 Thread mazarflex
i am trying to add a function into a datagrid i read the post about outerDocument.handleClick() but i am not sure how that works. basically i want to call a function in a DataGrid. here is my code -- mx:DataGridColumn headerText=Listings dataField=firm dgListingsCol mx:itemRenderer

Re: [flexcoders] Function Error

2006-12-05 Thread Patrick Mineault
You forgot new ArrayCollection somewhere. Patrick jmfillman a écrit : When I click on the Submit button, I get the following error: TypeError: Error #1009: Cannot acces a property or method of a null object reference. at main/validateForm( ) at main/__btnFormSign_ click() What am I

RE: [flexcoders] Function Error

2006-12-05 Thread Van De Velde Hans
To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Function Error You forgot new ArrayCollection somewhere. Patrick jmfillman a écrit : When I click on the Submit button, I get the following error: TypeError: Error #1009: Cannot acces a property or method of a null object reference. at main

[flexcoders] Function Error

2006-12-04 Thread jmfillman
When I click on the Submit button, I get the following error: TypeError: Error #1009: Cannot acces a property or method of a null object reference. at main/validateForm() at main/__btnFormSign_click() What am I doing wrong? mx: State name=Forms mx:AddChild position=lastChild mx:Canvas

Re: [flexcoders] Function Error

2006-12-04 Thread Lachlan Cotter
Your validateForm() function tries to call a method on a variable which is null. I'm not sure exactly where you have gone wrong as your example code is incomplete. Set a break point in the validateForm () function and run it in the debugger so you can which line throws the error. Cheers,

RE: [flexcoders] Function call AFTER a transition

2006-02-21 Thread Matt Chotin
Can you try putting an effectEnd handler on the Sequence and calling your method from there? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shuell2000 Sent: Tuesday, February 21, 2006 10:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders

[flexcoders] Function using selectedChild does not like the argument I'm sending it

2005-10-09 Thread face7hill
Hi Everyone, I have a ViewStack with a bunch of screens in my Main.mxml app. On the first viewstack (mainViewStack.selectedChild=screen0) I'm calling a component (Screen0.mxml). Inside that component, I have a bunch of radio buttons. When a user clicks a radio button, the buttonClicked()