I've managed to sort it all out now, thanks. I changed the second block of code to be as3 compliant and changed some embedding options, now it runs sweet as nut.... cheers