Re: [flexcoders] Re: Calling javascript with navigateToURL
http://livedocs.macromedia.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=passingarguments_086_12.html On 1/10/07, jensen.axel <[EMAIL PROTECTED]> wrote: That worked great, thanks --- In flexcoders@yahoogroups.com , " jensen.axel" <[EMAIL PROTECTED]> wrote: > > I'm trying to do a loop, and call a javascript function in flex for > every loop. > > The loop only seems to call the javascript once the loop is done... > and it only calls it for the last iteration of the loop. > > To reproduce the issue do the following: > > 1. Create a new project in flex > > 2. Put a button on the form, and make it's click="test1();" > > 3. Create a script block like so > > > > > > the button calls this very simple function, and theoretically you > should get 5 alert boxes, but you don't you get 1 I'm curious if > these methods can be used like this. >
[flexcoders] Re: Calling javascript with navigateToURL
That worked great, thanks --- In flexcoders@yahoogroups.com, "jensen.axel" <[EMAIL PROTECTED]> wrote: > > I'm trying to do a loop, and call a javascript function in flex for > every loop. > > The loop only seems to call the javascript once the loop is done... > and it only calls it for the last iteration of the loop. > > To reproduce the issue do the following: > > 1. Create a new project in flex > > 2. Put a button on the form, and make it's click="test1();" > > 3. Create a script block like so > > > > > > the button calls this very simple function, and theoretically you > should get 5 alert boxes, but you don't you get 1 I'm curious if > these methods can be used like this. >
[flexcoders] Re: Calling javascript with navigateToURL
Hi, you can try : ExternalInterface.call(functionName, parameter); Regards, Sanjay sharma --- In flexcoders@yahoogroups.com, "jensen.axel" <[EMAIL PROTECTED]> wrote: > > I'm trying to do a loop, and call a javascript function in flex for > every loop. > > The loop only seems to call the javascript once the loop is done... > and it only calls it for the last iteration of the loop. > > To reproduce the issue do the following: > > 1. Create a new project in flex > > 2. Put a button on the form, and make it's click="test1();" > > 3. Create a script block like so > > > > > > the button calls this very simple function, and theoretically you > should get 5 alert boxes, but you don't you get 1 I'm curious if > these methods can be used like this. >