[flexcoders] Calling functions with optional parameters

2008-11-14 Thread Amy
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

Re: [flexcoders] Calling functions with optional parameters

2008-11-14 Thread Fotis Chatzinikos
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,

Re: [flexcoders] Calling functions with optional parameters

2008-11-14 Thread Maciek Sakrejda
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

RE: [flexcoders] Calling functions with optional parameters

2008-11-14 Thread Tracy Spratt
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

Re: [flexcoders] Calling functions on loaded SWF

2006-09-23 Thread Hilary Bridel
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

Re: [flexcoders] Calling functions from an itemRenderer

2006-08-16 Thread e baggg
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

[flexcoders] Calling functions from an itemRenderer

2006-08-14 Thread Rick Root
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

Re: [flexcoders] Calling functions from an itemRenderer

2006-08-14 Thread Brendan Meutzner
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

Re: [flexcoders] Calling functions from an itemRenderer

2006-08-14 Thread Douglas Knudsen
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

Re: [flexcoders] Calling functions from an itemRenderer

2006-08-14 Thread Rick Root
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:

[flexcoders] Calling functions

2005-08-23 Thread Prasad Dhananjaya
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)

Re: [flexcoders] Calling functions

2005-08-23 Thread Stanislav Zayarsky
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

Re: [flexcoders] Calling functions

2005-08-23 Thread Prasad Dhananjaya
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

RE: [flexcoders] Calling functions

2005-08-23 Thread david_gal-reyniez
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--

Re: [flexcoders] Calling functions

2005-08-23 Thread Stanislav Zayarsky
: [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