_root.my_btn.onRelease = function() { if (!(_root.pass.text.length && _root.id.text.length)) { trace("enter required data "); } };