I have a swf that opens up inside a colorbox window. When the video finishes playing, I make an externalinterface call to a javascript function to close the colorbox.
I'm trying to execute the following AS3 code:
ExternalInterface.call('parent.$.fn.colorbox.close()')
I can't seem to get this to work. The colorbox won't close.
I also tried this to see if I was just making the wrong function call, but this didn't work either:
ExternalInterface.call('alert("hello world")')
However, if I browse to the url of the swf file, so that it doesn't open inside the colorbox, the alert() call works just fine.