handle both 2- and 3-argument invocations from NetStream.send()