I'm making a flash intro for my Web Site for my senior project (it's a must, despite the inconvenience to users). I'm using Flash CS4, Actionscript 3. I am making links for the intro, and there is an error for each link. Most of them have the error "1120: Access of Undefined Property" and one link has the error "1061:Call to a possibly undefined method."
I've looked into these errors on forums and have not found a solution. Most people have ideas of what it might be, but it appears that my errors are being caused by something else.
things I've tried...
1- putting actionscript in each of the link layers.
2- When I'm in the actions window, I have no errors. But when I debug the movie, an error for each link pops up.
3- button clickhandler and others have been used. neither works.
4- adding actionscript for each button where each button begins to appear
None of these solutions seem to fix my problem. Not even my professor can help me find a solution (she is unfamiliar with CS4.)
Here is my code:
photography.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler3(event:MouseEvent):void{
navigateToURL (new URLRequest(""));}
resume.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler4(event:MouseEvent):void{
navigateToURL (new URLRequest(""));
}
contact.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler5(event:MouseEvent):void{
navigateToURL (new URLRequest(""));
}
home.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void{
navigateToURL (new URLRequest(""));
}
graphics.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler2(event:MouseEvent):void{
navigateToURL (new URLRequest(""));
}
- photography.addEventListener(MouseEvent.CLICK, buttonClickHandler);
- function buttonClickHandler3(event:MouseEvent):void{
- navigateToURL (new URLRequest(""));}
-
-
- resume.addEventListener(MouseEvent.CLICK, buttonClickHandler);
- function buttonClickHandler4(event:MouseEvent):void{
- navigateToURL (new URLRequest(""));
- }
-
-
- contact.addEventListener(MouseEvent.CLICK, buttonClickHandler);
- function buttonClickHandler5(event:MouseEvent):void{
- navigateToURL (new URLRequest(""));
- }
-
-
- home.addEventListener(MouseEvent.CLICK, buttonClickHandler);
- function buttonClickHandler(event:MouseEvent):void{
- navigateToURL (new URLRequest(""));
- }
-
-
- graphics.addEventListener(MouseEvent.CLICK, buttonClickHandler);
- function buttonClickHandler2(event:MouseEvent):void{
- navigateToURL (new URLRequest(""));
- }
-
Note: ignore that new URLRequest is empty. The forum wouldn't let me post the links. "graphics.addEventListener" has error 1061. All of the others have error 1120.
Thanks again, hope someone can help me!