Are you sure the .swf has been fully loaded before trying to populate it with data?