Hey I am using swf object to embed a swf into a html page. When I compile the swf there are no errors yet when I embed it into a web page i keep getting thrown either one of these two errors the first time the page loads in Safari and Chrome
TypeError: Error #1009: Cannot access a property or method of a null object reference at tracks/loadFlashvars() at tracks/init() at tracks
SecurityError: Error #2000: No active security context.
In firefox I get thrown the same errors everytime the page loads. My swf loads other swfs and and they have XML loaders I thought maybe it could be something to do with the base swf not being fully loaded before the code is run so I have been playing around with setTimeout(); to try and make a work around but I am unsure if this is correct or if my embed code is wrong, which you can see below.
There is a live version here http://music-shed.org/tracks/
Any hints or tips would be greatly appreciated.