Flash question
Flash question
Out of context: Reply #3
- Started
- Last post
- 3 Responses
- liamegan0
Sorry, that posted before I'd finished typing:
// FLASH CODE
import flash.external.ExternalInterface...
function getFocus(str:String):Void
{
// your code here based on "true"/"false" response
}// JAVASCRIPT CODE
function getFlashMovie(movieName)
{
var isIE = navigator.appName.indexOf("Micro... != -1;
return (isIE) ? window[movieName] : document[movieName];
}
window.onblur = function()
{
getFlashMovie("yourFlashMovieID...
};
window.onfocus = function()
{
getFlashMovie("yourFlashMovieID...
};