Sorry about that. Its not really my fault. Its the flexcoder list system. Actually I emailed one at 5pm yesterdays, waited for it to show up but it didnt. So I sent another one about 8:30 pm, it didn't show up either. Then I sent one this morning and it didn't show up for an hour (when all 3 showed up).
---------------------------------------- From: "Fidel Viegas" <[EMAIL PROTECTED]> Sent: Tuesday, December 09, 2008 8:35 AM To: [email protected] Subject: Re: [flexcoders] How to wite a javascript that calls to ActionScript On Tue, Dec 9, 2008 at 2:07 PM, wkolcz <[EMAIL PROTECTED]> wrote: > Can someone show me how to write a javascript function that calls to a > Flex/AS function before a browser window closes? > > In my AS contructor I have: > if (ExternalInterface.available) > ExternalInterface.addCallback("tagWithClosed",windowClosed); > > I tried something like this, but I don't know how to actually invoke the > correct function name. The swf is FXVideo.swf, the swf id is FXVideo and the > .as file is FXVideo.as: > <SCRIPT LANGUAGE="JavaScript"> > window.onbeforeunload = closingWindow; > function closingWindow() > { > FXVideo.tagWithClosed(); > } > </SCRIPT> > > I would greatly appreciate it if someone could help me write this. Project > due tomorrow. Hi wkolcz, try not to post the same message more than once. If people don't take the time to answer it is because the information is easily available on the net. What you are asking is easily found on google. Here is what I found doing a search on flex + javascript: http://blog.paranoidferret.com/?p=25 Good luck, and try to search on google before posting your question. It is faster than waiting for someone to reply. All the best, Fidel.

