View Single Post
  #3 (permalink)  
Old 10-31-2007, 09:57 PM
arunsamini arunsamini is offline
D-Web Trainee
 
Join Date: Oct 2007
Posts: 8
arunsamini is on a distinguished road
Post Re: Javascript and Flash

Hi...Anand
Javascript is invoked in Flash by using GetURL function...For example one button is there u can invoke javascript in button onPress event...The code sample is

btn.onPress=function(){
getURL("javascript:alert('button1')");
}

Then save the application and publish the flash file in Html..Run the newly published file..while running the application and press the button..then u see that alert window is open for ur browser...

Thanks,
S.Arun
Less Talk Work More
Reply With Quote