javascriptin'
javascriptin'
Out of context: Reply #1
- Started
- Last post
- 11 Responses
- amullins0
javascript:
function getFlashObject( oid) {
return $.browser.msie ? window[oid] : document[oid];
}
getFlashObject( "flash-object-id" ).doSomething();
getFlashObject( "flash-object-id" ).doSomethingElse("from javascript");actionscript:
ExternalInterface.addCallback("d...
ExternalInterface.addCallback("d...
function doSomething(){
trace("did something");
}
function doSomethingElse(param1){
trace("did something " + param1);
}for your specific case
actionscript:
ExternalInterface.addCallback("s...
function setMCProperty(p,v){
//m = movieclip
m[p] = v;
}javascript:
function getFlashObject( oid) {
return $.browser.msie ? window[oid] : document[oid];
}
getFlashObject( "flash-object-id" ).setMCProperty("_alpha",0);- fyi: there's a little jquery in this $.browser.msie.amullins