I’ve got some buttons in a movie clip called myContent. myContent is in the library, it is being exported for actionscript, and then referenced by a scrollpane component on the main stage.
The idea is that there is a scroll pane with buttons in it, each button loads a video (from a folder called FLV) on the FLVplayer component (instanced ‘vidPlayer’) on the main stage.
For some reason the buttons are unresponsive when I publish the movie. the scrollpane loads up ok with the buttons in it, but the buttons dont load the videos they are supposed to when clicked on. no errors though.
I get the feeling this is because they are inside a movie clip which is inside a scrollpane.
This is an example of the script inside the myContent movie clip for one of the buttons:
dance.addEventListener(MouseEvent.CLICK, vid1);
function vid1(e:Event):void{
MovieClip(root).vidPlayer.source = “FLV/dance.flv”
};
Do I need to add some script on the main timeline, to tell it there are buttons to look for?
Thanks in advance for any advice.