# Flash getURLs and javascript communication

**URL:** <https://forum.kirupa.com/t/flash-geturls-and-javascript-communication/254341>\
**Category:** flash\
**Created:** [March 11, 2008, 2:15am UTC](https://forum.kirupa.com/t/flash-geturls-and-javascript-communication/254341 "2008-03-11T02:15:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksb43](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@ksb43](https://forum.kirupa.com/u/ksb43)\
**Post date:** [March 11, 2008, 2:15am UTC](https://forum.kirupa.com/t/flash-geturls-and-javascript-communication/254341/1 "2008-03-11T02:15:20Z")

</div>

[SIZE=3][FONT=Times New Roman]I have a flash 8 movie in an internet explorer 7 html window. I tried a simple getURL(“[http://www.google.com/](http://www.google.com/)”) and IE7/flash gives me a security warning. When I go to change the settings they are already set to “always allow”. Is IE7 not allowing geturls now? Is there a better way to do this?[/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[SIZE=3][FONT=Times New Roman]This next issue is less important because I realized I don’t need it for this particular project, but I was trying to close the html window from the flash movie with no luck. I tried a few variations of getURL(“javascript:window.close()”) which didn’t work and then I tried just calling a js function (exitCourse) that was on the html page (i had an alert in the function to test with). I tried all of the following:[/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[SIZE=3][FONT=Times New Roman]getURL(“javascript:exitCourse()”);[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]getURL(“javascript:window.exitCourse()”);[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]getURL(“javascript:\_parent.exitCourse()”);[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]getURL(“javascript:this.exitCourse()”);[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]getURL(“javascript:\_parent.\_parent.exitCourse()”);[/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[SIZE=3][FONT=Times New Roman]It couldn’t access the function at all. I had this issue at my old job, where we built movies that would close okay in IE6 but did nothing (not even a warning) in IE7. Luckily the clients were using 6.[/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[SIZE=3][FONT=Times New Roman]I briefly tried to capture FSCommands but that wasn’t working either. Should I spend more time with this method?[/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]The biggest issue is after the user completes this movie, it needs to redirect to another html page.[/SIZE][/FONT]

Thanks,  
Kevin
