Tuesday, 3 September 2013

Get events from embed tag running swf file

Get events from embed tag running swf file

<html>
<head>
<script type="text/javascript">
window.onload = function() {
myVid = document.getElementById("video1");
alert(myVid);
};
</script>
</head>
<body>
<object width="425" height="344">
<embed id="video1" src="\00000001.swf"
type="application/x-shockwave-flash" width="425"
height="344"></embed>
</object>
</body>
</html>
I have been able to run an swffile within an embed tag. What I need to do
is to somehow get the video end event.
How can this be done?

No comments:

Post a Comment