I am trying to make a button that's a movie with dynamic text links inside it . the movie(its simple scale tween) plays fine.it's just the links don't work, i have the text box set to html and set the links in the prop. panel.
on the movie I have:
on (rollOver) {
this.gotoAndPlay(2);
}
on (releaseOutside, rollOut) {
gotoAndPlay(11);
}
in the movie i have a layer of dynamic text links on frame 10.
attached is how i am doing it, i know there is a better way of scripting it out. with my limited knowage of scripting i just can't figure it out.
Your on rollOver call is simply keeping the "underlying" links from being clickable. If you remove your button movie's on calls and go directly to frame 10, every link works fine.
i have tried: an invisible button to control the movie, some components, hittest and am looking in to swapDepths. I did find a script to play the movie backwards on rollout.
so i have on:
layer 1 the links (which i defined in the text prop panel)
layer 2 (10 frames long) the tween to make the box larger
layer 3 the empty MC (containing the AS for the rollout)
stop actions on frames 1 and 10
i understand that the movies on calls are making the links non clickable. is there a way around that? i guess its like a button in a button.
Use movieclips as buttons and put the textfield inside the movieclip on the button, name everything and control from the main timeline:
myButton.onRollOver=function(){
myButton.myMovie.gotoAndPlay(2);
myButton.textField.text="text here";
myButton.textField.textColor=0xFF0000;
}
and so on.
- The right of the People to create Flash movies shall not be infringed. -