The film - called In Need of a Friend - is based on a local legend and is about a young girl who is dared to stay in a tower until her candle runs out.
During the night, she meets a friendly ghost ...
The film was paid for by the local council and the Edinburgh Filmhouse, where it will have its world premiere on 26 April.
Director Chris Gowling, 11, says that his favourite thing about making the film has been being able to boss his classmates about!
The film's publicist Grant McKendrick, 12, said: "It's been great to have the chance to do some acting and filmmaking.
"As well as writing to newspapers to promote the film, I also get to play a small part!"