I don't believe you can substitute those. One only requires a liquid, such as milk, to gelatinize, while the other requires heating to a boil to thicken it, usually with corn starch as part of the powdered mix. Using a pudding mix that requires cooking won't thicken and set-up. It will stay a liquid.