|
Post by shannonr on Jan 8, 2013 11:00:27 GMT
Hi there. This software is great, really like what you've done here (Adobe watch out)! I need to close the Frame the movie is in as it sits over other content which I need to interact with once the movie finishes - how can I do this please? Thanks Shannon
|
|
|
Post by Hippani on Jan 8, 2013 11:16:15 GMT
2 ideas:
1. make the last frame empty by adding an object with 0 opacity and then make background of the movie transparent.
2. If you turn off loop in the movie properties and then add some javascript to the On End function. You would need to reference the frame somehow and then change style.display='none'; This will cause an error in the player though as javascript is not supported (yet).
|
|
|
Post by shannonr on Jan 8, 2013 11:28:45 GMT
Thanks for the quick reply. Unfortunately 1) doesnt work (even transparent bg blocks mouse actions to layer below) and 2) I have been struggling for over a day with getting code to reference the containing level. I have found the code in the generated html which calls the stop() action, and added a call to a close iFrame function, but I cant access this function no matter where I put it. Can your developers suggest a path I would use to access a function on the main top-level page from within the generated code? Thanks Shannon
|
|
|
Post by Hippani on Jan 8, 2013 11:38:48 GMT
You should put any code in 'On End' script in the movie properties, you'll need to turn off loop to see it.
top.frames['FrameIDName'].style.display='None';
|
|
|
Post by shannonr on Jan 8, 2013 12:10:19 GMT
Nope, but:
top.document.getElementById(\"myMovie\").style.display='None' did work. There were 2 nested iFrames in the mix... Thanks Shannon
|
|
|
Post by Hippani on Jan 8, 2013 13:32:03 GMT
Glad you're sorted.
|
|