I see where the problem was. would do it like $\dot{A}=\dot{A}(B(q,p))$
But to express $\dot{A}$ as a function of $B$ I need $L(A,\dot{A})$...which is obtainable only from $H(A,B)$....so there's no escape from the canonical transformation you were talking about :(