[Xerte] Re: Setting Focus on the SWF

Dave Burnett d_b_burnett at hotmail.com
Fri Jul 22 14:33:40 BST 2011


Cool.


So it can be called from the .rlo instead of the .swf.
I don't like putting code in swfs (other than compiled routines).



From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Fri, 22 Jul 2011 13:55:04 +0100
Subject: [Xerte] Re: Setting Focus on the SWF










The wrapper function is callJS(funcName, params);
 
which wraps ExternalInterface.call(funcName, params);
 
and since that's all it does the only reason or it to be there is because ExternalInterface isn't directly accessible from the Xerte script.
 


From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney [Julian.Tenney at nottingham.ac.uk]

Sent: 22 July 2011 13:52

To: Xerte discussion list

Subject: [Xerte] Re: Setting Focus on the SWF







try it and see: I'd place it in the swf.
 
 


From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett at hotmail.com]

Sent: 22 July 2011 13:23

To: Xerte list

Subject: [Xerte] Re: Setting Focus on the SWF






> Do I put this in the SWF or rlo? // in the .rlo





Wait a sec.

Where are you placing the code now?

In the rlo or in the loaded swf?





If that call works from the .rlo, leave it there.





J, does the wrapper already exist then?











Date: Fri, 22 Jul 2011 14:44:04 +0300

From: admin at strivney.com

To: xerte at lists.nottingham.ac.uk

Subject: [Xerte] Re: Setting Focus on the SWF



Yes Dave, that works on its own.  And only opens one browser window when tested.:-)  Thank you.






Julian:




if (mdm != undefined){
//WHAT DO I PUT HERE?
} else {
flash.external.ExternalInterface.call("document.getElementById(\"rlo\").focus");   
}



Do I put this in the SWF or rlo?



Deborah














On Fri, Jul 22, 2011 at 1:23 PM, Julian Tenney 
<Julian.Tenney at nottingham.ac.uk> wrote:




use it to decide whether to call the flash.external.ExternalInterface blah. you only want to do that in the browser,



From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Deborah Delin [admin at strivney.com]


Sent: 22 July 2011 11:10


To: Xerte discussion list

Subject: [Xerte] Re: Setting Focus on the SWF








Oh..........I see..........I think....





I'm sorry to be dim but can you be a bit more specific.  Where do I put this code?  And how do I try it out?







if (mdm != undefined){
  //we are at author time: the mdm scripting obejcts are available
} else {
  //we must be in the browser...
}






Deborah 



 



 











This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
 contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be
 monitored as permitted by UK legislation. 





_______________________________________________

Xerte mailing list

Xerte at lists.nottingham.ac.uk

http://lists.nottingham.ac.uk/mailman/listinfo/xerte



This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information
 contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.



This message has been checked for viruses but the contents of an attachment

may still contain software viruses which could damage your computer system:

you are advised to perform your own checks. Email communications with the

University of Nottingham may be monitored as permitted by UK legislation.












-- 



Deborah          


                                                  



                                                            



International Site (English instructions): Strivney
 English  - Where Learning to Read is Fun
Site for Hebrew and English/Hebrew speakers
(Hebrew and English Instructions):   סטריבני
 - ללמוד אנגלית זה כיף    



http://twitter.com/DeborahDelin   
       







_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information.
 If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email
 do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own
 checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.









_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110722/a8843558/attachment-0001.html>


More information about the Xerte mailing list