[Xerte] Re: Setting Focus on the SWF

Dave Burnett d_b_burnett at hotmail.com
Fri Jul 22 13:52:32 BST 2011




That ExtInterface call should work on it's own.


If there are still issues you should back up and try first principles.


Put a "hello world" javascript function in the html page.
Call it from the .rlo.
Does it work?
Yes - change the js function to find and report the <div id
No - Move the ExtInterface cal to the loaded swf.


repeat


etc.


Make sure to publish *before* you alter the .js page.
Else it will be overwritten with the default page (which is probably why you mentioned losing your changes when you tried it before).







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. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110722/a34adb72/attachment-0001.html>


More information about the Xerte mailing list