Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to enable mouse events inside a movieclip

Status
Not open for further replies.

decibelle

Technical User
Feb 1, 2005
27
US
i have a horizontal panel of thumbnails (the panel created as a movieclip). each thumb is a movieclip and when you click on any one of them you navigate to a specific swf. the problem is now i want to be able to drag the panel left and right. when i add the code to do this, you are no longer able to click on any of the thumbs. any ideas as to why? here's the code for the dragging:

looptiles_mc.onRelease = looptiles_mc.onReleaseOutside = function(){
this.stopDrag()
}

looptiles_mc.onPress = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onPress;
}

function scrollPanel() {
startDrag(this, false, -1812, this._y, 0, this._y);
this.onPress = panelOver;
delete this.onEnterFrame;
}

should there be something added to allow entering the movieclip and be able to click on each thumbnail?

thanks in advance for your help!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top