I thought that when you have a function that looks like this:
private function theFunction(param1:int=0, param2:int=1,
param3:String='foo') {
//do stuff
}
That it's ok to call the function like this:
theFunction(,,'bar');
But when I do this, I'm getting all sorts of syntax errors,
including
Amy (usually) all programming languages that support something similar
support it from right to left, not with empty 'params'...
theFunction()
or theFunction(3)
or theFunction(4,5)
should work... i do not have access to the compiler at the moment thought,
so i have not checked
On Fri, Nov 14,
PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Calling functions with optional parameters
Date: Fri, 14 Nov 2008 21:12:16 -
I thought that when you have a function that looks like this:
private function theFunction(param1:int=0, param2:int
What if you explicitly passed null?
theFunction(null,null,'bar');
Tracy
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Friday, November 14, 2008 4:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Calling functions
Hi Tom,
Here is an example of Play() etc...
http://www.bridel.org/?p=9
Hilary
www.bridel.org
On 9/24/06, Tom Krcha [EMAIL PROTECTED] wrote:
Hi,
Does anybody know how to call functions on loaded SWF?
E.g.: I create my own animation in Flash IDE.
Then I load this swf with the animation
Rick- Whenever you declare a method such as click="someMethod()"...you cannot have double quotes between the wrapping double-quotes of the click. The compiler always assumes the second quote is the end of the method name. If you changed your code to -- click="callMethod()" and then above it
I've got an itemRenderer in a datagrid that's rendering a linkbutton
with a script.
The following doesn't work because it's not valid XML, with the
symbols in the click value...
mx:DataGridColumn headerText=Entity ID width=100 dataField=ENTITYID
mx:itemRenderer
Rick,Have a look at the ExternalInterface functionality to call a _javascript_ function which resides in your HTML page which will satisfy your popup requirements...Brendan
On 8/14/06, Rick Root [EMAIL PROTECTED] wrote:
I've got an itemRenderer in a datagrid
extract the URLRequest() call to a AS method. make sure your mx:script block has the CDATA schtuffs.DKOn 8/14/06, Rick Root
[EMAIL PROTECTED] wrote:I've got an itemRenderer in a datagrid that's rendering a linkbutton
with a script.The following doesn't work because it's not valid XML, with the
Douglas Knudsen wrote:
extract the URLRequest() call to a AS method. make sure your mx:script
block has the CDATA schtuffs.
This is what I had done, as mentioned here:
I originally had a function defined in the same file that did that
and I
called like like this:
Hi All,
I have a small question.
I want to call function line() and function arrow() from
function drawlinesArrows(). I tried sevaral ways. But failed.
Can someone tell me how to do this?
Best Regards,
Prasad
(Absolute beginner of Flex ActionScript)
Hello,
You had several errors in your script, try this variant:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
mx:Panel width=732 title=MyPanel
mx:Canvas id =mycanvas width=715 height=408
backgroundColor=#FF
Hi,
Thank you very much for the reply.
I tried it. But still not working.(Didn't call line() and arrow() functions)
Any other errors?
Best Regards,
Prasad
?xml version=1.0 encoding=utf-8?
mx:Application
oût 2005 11:53À:
flexcoders@yahoogroups.comObjet: Re: [flexcoders] Calling
functions
Hi,Thank you very much for the reply.I tried it. But
still not working.(Didn't call "line()" and "arrow()" functions)Any other
errors?Best
Regards,Prasad--
: [flexcoders] Calling functions
Hi,
Thank you very much for the reply.
I tried it. But still not working.(Didn't call line() and arrow()
functions)
Any other errors?
Best Regards,
Prasad
?xml version=1.0 encoding
15 matches
Mail list logo