<div>Hi,</div> <div> I am facing one problem in embed flash object.i am displaying the flash (.swf file) using embed tag<embed> in IE.i want to display the alert box when user click the mouse over the flash .i am able to display the alert box when user double click the flash .but i want alert box need to display when single mouse click over flash.</div> <div> </div> <div>my code:</div> <div> </div> <div><script></div> <div>function kiosk(){ // fn will be called when user click mouse</div> <div> </div> <div> alert(" i received the mouse click");</div> <div>}</div> <div>//-------------- creating the embed flash object</div> <div> </div> <div>var picObj1 = document.createElement('EMBED'); <BR>picObj1.setAttribute('id',"aShow"); // Give
id to it<BR>picObj1.setAttribute('TYPE' , 'application/x-mplayer2');<BR>picObj1.setAttribute('PLUGINSPAGE','http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112');<BR> picObj1.setAttribute('play','true');<BR> picObj1.setAttribute('wmode','opaque');</div> <div>picObj1.setAttribute('width','100%');<BR> picObj1.setAttribute('height','100%');<BR> picObj1.setAttribute('src','02.swf');<BR></div> <div>//--------end </div> <div> </div> <div>aShow.attachEvent("onmousedown",kiosk); // i am attaching "onmousedown" event<BR><BR>document.getElementById('iedisplayarea').appendChild(picObj1);</div> <div><BR></script></div> <div><div id="displayarea"></div></div> <div> </div> <div> </div> <div>i am very happy if there is any technically help from you</div>
<div> A.suresh</div> <div> </div><p> 
        
        
                <hr size=1></hr>
Here’s a new way to find what you're looking for - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers</a>