Thanks for the reply gabriel!
I did have the "" (quotes) around onLoad at one point and it didn't
work then either.
This is the last three lines of my flash file:
if(ExternalInterface.available){
ExternalInterface.call("onLoad");
}
and my Javascript code:
var swf = new Swiff(content, {
id: 'webcam',
width: 720,
height: 370,
container: $('swf-content'),
callBacks: {
onLoad: function(){
alert('flash loaded!');
}
}
});
I must be completely confused with this, because I've tried everything
and can't get it working...
On Jan 21, 1:17 pm, gabriel munteanu <[email protected]> wrote:
> Hi, i made it work it my jsblaster game project.
> here is 1 source file
> :http://code.google.com/p/js-blaster/source/browse/trunk/js-blaster/sr...
> my similar line is the 28th: but my js function is called flashLoadedHandler.
> you should make this line as the last line executed in flash, in order
> to have all other flash resources loaded if possible.
>
> 1120: Access of undefined property onLoad. is because onLoad is not
> surrounded by "".
> the idea behind all this is that flash has no onLoad event, it is
> "faked" by placing this ExternalInterface.call("JSFUNCTIONNAME");
> method as last executed line of code in flash.
>
> On Thu, Jan 21, 2010 at 8:57 PM, reddrumhead <[email protected]> wrote:
> > My messages keep getting cut off...
>
> > What I am trying to do is fade in the 'swf-content' div once the swf
> > has loaded. Unfortunately it's impossible to do without a working
> > onLoad: event.
>
> > Anyone have any thoughts?
>
> > On Jan 21, 12:56 pm, reddrumhead <[email protected]> wrote:
> >> Not sure why it cut off the rest of my message... here's the rest:
>
> >> Warning: 3553: Function value used where type Object was expected.
> >> Possibly the parentheses () are missing after this function reference.
>
> --
> jgabioshttp://bash.editia.info