Hi Savan, yes, just include the JS Function in the <head/> of your index.template.html
Alger --- In [email protected], "flex.fusion" <[EMAIL PROTECTED]> wrote: > > Hi Alger, > > Can you please tell us where shall we have these " _global_ > JavaScript functions" written? > > Shall there be separate JavaScripts being called from 'header or > body' portion of "index.template.html" project file? > > Or there is someother way you wanted to convey, please guide about > it. > > Thanks & Regards, > Savan > > --- In [email protected], Alger Werft <alger.werft@> > wrote: > > > > You are trying to access the JavaScript object 'window', but you > are in > > the ActionScript world, and there the window you are looking for > does > > not exist. > > > > Write a _global_ JavaScript function that calls window.close(). > > And from AS call that Function. > > > > JS > > function closeWindow() { > > window.close() > > } > > > > > > AS > > ExternalInterface.call("closeWindow"); > > > > > > Alger > > > > John wrote: > > > > > > > > > Hi there, > > > > > > I am trying to create a close window routine that will be run > when a > > > user clicks the exit button using the following: > > > > > > <!-- Routine to Close down the Courseware --> > > > <mx:Script> > > > <![CDATA[ > > > private function closeWindow():void{ > > > ExternalInterface.call(window.close); > > > } > > > ]]> > > > </mx:Script> > > > > > > Now I am getting silly errors like Access of unidentified > property > > > window. Can someone please shed some light on this > > > > > > > > >

