Judging from your trying to fly I would say it was lucid dream unless you thought you were awake during the dream. Sometimes it's more of a subconscious thought that we're dreaming that influences our actions during the dream.