Flames or fire are merely caused by the burning of gases (ignitable indeed! Duh) and therefore can cast a shadow only in the presence of another source of light, which is much brighter than the former.