Rescue at Midnight Castle (1984)
Rescue at Midnight Castle, also known as Rescue from Midnight Castle and released later as Firefly's Adventure, was a 1984 animated television special based on the Hasbro toy line, My Little Pony. It was released as a pilot of the proposed television series, and featured the voices of Sandy Duncan and Tony Randall.
More at Wikipedia.