Several new alkylpyridine, pyridazine and pyrimidine derivatives are synthesized from acyclic intermediates. The reactivity of these alkylazines towards aromatic aldehydes and arylidenemalononitrile is reported. New synthesis for substituted phthalazines cinnolines and quinazolines could be achieved.