i have a html file containing a swf flash intro of about 3 mb
i want that until the swf is fully loaded an loading preloader is displayed using jquery or ajax .how to set this preloader please provide code for these
thanks in advance
i am using following code
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="jquery.js"></script>
<script>
$(document).ready(function(){
$('embed').ready(function(){
$('img').hide();
});
});
</script>
</head>
<body >
<div id="loaddata">
<img src="loading.gif" />
<embed src="red.swf" width="100%" height="100%" ></embed>
</div>
</body>
</html>
but it is not working