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
@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
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
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
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
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
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,
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
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?
How can I find/get execution time of particular function data?
, 30 October, 2009 11:58:55
Subject: [flexcoders] Function Execution Time
How can I find/get execution time of particular function data?
:* [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
---
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
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
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,
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
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
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
:* 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
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
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
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
- 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
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
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
: 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
: [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
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
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
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
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
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
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
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
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
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;
}
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')
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
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
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
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
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
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
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.
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
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
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
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
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
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,
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
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()
52 matches
Mail list logo