|
-
simple buttons won't work after startdrag and stopdrag
why doesn't my buttons that are in the MC: buttonmenu_mc, work?
i put the AS:
PHP Code:
this.buttonmenu_mc.onPress = function() {
// dragging buttonmenu_mc
_root.buttonmenu_mc.dragger_mc._visible = true;
startDrag(this);
};
this.buttonmenu_mc.onRelease = function() {
reActivateBtns();
changeOptionColor(this, overColor);
//this.enabled = false;
var old_x = this._x;
var old_y = this._y;
// moving position and scaling smaller of the buttonmenu_mc
this._x = Number(old_x);
this._y = old_y;
this._width = 500;
this._height = 200;
this.drag_txt.text = "Drag away";
// doesn't work?
this.drag_txt.onPress = this.drag_txt.onRollOver=function () {
this.text = "";
trace("dragtxt onpress");
};
_level0.myMCL.loadClip("page_info.swf", 5);
stopDrag();
};
if i onPress on this MC, it works, thus it drags..
after onRelease, it stops dragging. so that works.
But after onReleased, the buttons that are in that movie click don't work (won't trace, won't onRollover, won 't function), why?
http://www.michaellobry.com specialized by and for Web Media Designers. Herein shown should be summarizings about Web Media Design (eg. all CSS rules, SHTML tags, How to PHP, Macromedia/ Adobe app how-tos, etc. Please e-mail yours to [email protected] so that everybody learns)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|