You could give the object you want to spawn in the bullet behavior then you could do this:
every 1 seconds
--- create sprite at (random(640),random(480))
--- sprite: set angle to random(360)
--- sprite: move forward -640 pixels
sprite: bullet distance traveled > 640
--- sprite: set speed to 0
There's also the third party move to behavior that may be useful here.