The instance of the Swiff object is whatever var you set it as.
var obj = new Swiff('mySwf.swf', {
width: 1,
height: 1,
container: $('swiffContainer'),
callBacks: {
onLoad: function() {
alert("Flash is loaded!")
}
}
});
Instance of the Swiff object here is 'obj'.
Sean, when you're doing:
swiffInstance.toElement().functionName(); or
Swiff.remote(swiffInstance.toElement(), 'functionName');
Why is it necessary to do the toElement() method? Shouldn't the
swiffInstance suffice?
I'm just trying to understand how this thing works.