I have the following structure set up from the top down - one inside the other on the stage. All instance names have been assigned properly:
card1_btn: a MovieClip that contains a scrollPane
scrollPane: the name of the scrollPane MovieClip
buttons1_mc: a MovieClip attached to scrollPane in the contentPath Parameter
card1_button1: a button (MovieClip) which is the first of a row of links
I’ve been trying various combinations of this from the main timeline to get a response when I fire the link (card1_button1) but nothing works. This is the longest version with everything in the path:
Code:
card1_btn.scrollPane.contentPath.buttons1_mc.card1_button1.onPress = function () {
trace("link 1")
}
Of course I can do this the easy way and just put this inside buttons1_mc and it works perfectly:
Code:
card1_button1.onRelease = function() {
trace("link 1")
}
I’m just trying to be a good little programmer and put all my code on the main timeline ![]()
Thanks
Charles