stop(); import mx.transitions.Tween; import mx.transitions.easing.*; visualthesis.cacheAsBitmap = true; vt_mask.cacheAsBitmap = true; visualthesis.setMask(vt_mask); prevX = 40; prevY = 520; prevA = 87; // profile btn_profile.onRelease = function (){ new Tween(_root.visualthesis.vt, "_alpha", Strong.easeOut, prevA, 0, 2, true); new Tween(_root.visualthesis, "_x", Strong.easeOut, prevX, 189, 1.5, true); new Tween(_root.visualthesis, "_y", Strong.easeOut, prevY, 223, 1.5, true); prevX = 189; prevY = 223; prevA = 0; } btn_profile.onRollOver = function (){ _root.profile.gotoAndPlay(2); }; btn_profile.onRollOut = function (){ _root.profile.gotoAndPlay(11); } // services btn_services.onRelease = function (){ new Tween(_root.visualthesis.vt, "_alpha", Strong.easeOut, prevA, 0, 2, true); new Tween(_root.visualthesis, "_x", Strong.easeOut, prevX, -505, 1.5, true); new Tween(_root.visualthesis, "_y", Strong.easeOut, prevY, 520, 1.5, true); prevX = -505; prevY = 520; prevA = 0; } btn_services.onRollOver = function (){ services.gotoAndPlay(2); }; btn_services.onRollOut = function (){ services.gotoAndPlay(11); } // clients btn_clients.onRelease = function (){ new Tween(_root.visualthesis.vt, "_alpha", Strong.easeOut, prevA, 0, 2, true); new Tween(_root.visualthesis, "_x", Strong.easeOut, prevX, -655, 1.5, true); new Tween(_root.visualthesis, "_y", Strong.easeOut, prevY, 143, 1.5, true); prevX = -655; prevY = 143; prevA = 0; } btn_clients.onRollOver = function (){ clients.gotoAndPlay(3); }; btn_clients.onRollOut = function (){ clients.gotoAndPlay(11); } // motion btn_motion.onRelease = function (){ /* new Tween(_root.visualthesis.vt, "_alpha", Strong.easeOut, prevA, 0, 2, true); new Tween(_root.visualthesis, "_x", Strong.easeOut, prevX, -295, 1.5, true); new Tween(_root.visualthesis, "_y", Strong.easeOut, prevY, 908, 1.5, true); prevX = -295; prevY = 908; prevA = 0;*/ } btn_motion.onRollOver = function (){ motion.gotoAndPlay(3); }; btn_motion.onRollOut = function (){ motion.gotoAndPlay(11); } // dynamic form nameChanged = 1; infoChanged = 1; msgChanged = 1; _root.visualthesis.contactname.onChanged = function() { nameChanged = 2;} _root.visualthesis.contactname.onKillFocus = function() { if (nameChanged == 1) { this.text = "your full name"; } } _root.visualthesis.contactname.onSetFocus = function() { if (nameChanged == 1) { this.text = ""; } } _root.visualthesis.contactinfo.onChanged = function() { infoChanged = 2;} _root.visualthesis.contactinfo.onKillFocus = function() { if (infoChanged == 1) { this.text = "email or phone number"; } } _root.visualthesis.contactinfo.onSetFocus = function() { if (infoChanged == 1) { this.text = ""; } } _root.visualthesis.contactmsg.onChanged = function() { msgChanged = 2;} _root.visualthesis.contactmsg.onKillFocus = function() { if (msgChanged == 1) { this.text = "your message"; } } _root.visualthesis.contactmsg.onSetFocus = function() { if (msgChanged == 1) { this.text = ""; } }