Ok Im just a little confused on what to do. In my menu I have 2 drop downs. each one is a separate Movie Clip and inside that Movie Clip they have other buttons that are separate Movie Clip. I have a class set to the buttons for a rollover action but it isn't working. How do I set actions to Movie Clips that are in other Movie Clip? Like how would I add links to them?
Here is a copy of my AS3 Class and a copy of the drop down.
package
{
import flash.events.MouseEvent;
import flash.display.MovieClip;
import flash.text.TextField;
public class MouseExample extends MovieClip
{
public function MouseExample()
{
this.parent.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
this.parent.addEventListener(MouseEvent.MOUSE_UP, mouseUpHandler);
//this is saying when you click on stage run mouseDownHandler function
}
private function mouseDownHandler(event:MouseEvent):void
{
trace("Stage mousedown");
//this says create a button at mouse positionX and mouse positionY
var newBut:MyButton = new MyButton (mouseX, mouseY);
this.addChild (newBut);
//add button to display list.
var myText:TextField = new TextField();
//create a new text field
myText.text = "Press the button.";
//write the text to the text field
this.addChild(myText);
//add textfield to display list
}
private function mouseUpHandler(event:String):void
{
trace("Stage mouseup");
}
}
}
How can I get this to work with roll over and linking it to a web page? I figured out how to add text to it through coding I just don't know how to add the roll over and link.
MOUSE_OVER,MOUSE_OUT will work for moviclips too i'd make movie clips with the alpha set to 0 and when moused over I'd have other movie clips either tweening or moving on Y axis to create drop down effect
TypeError: Error #2007: Parameter child must be non-null.
at flash.display:: DisplayObjectContainer/setChildIndex()
at menu_a_fla::MainTimeline/childOver()
If I add an instance name it says "1120: Access of undefined property ". And if I add the instance name of a button how can I get it to work for all the occurrences of that movie clip?
I have 4 classes...One for each of the ends, one for the other buttons, and one for the drop down buttons. Here is my entire flash file, I really appreciate all your help...