Question : Flash CS4 Actionscript 3.0 Errors

hELLO -
 
Button AS  help needed! - looks like  line 5 and 16.

Getting the same error: ()see screenshot and  code please)

Many thanks!  Frieda

 
 
 
!
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
/1. Assign listener Home button
home_btn.addEventListener(MouseEvent.CLICK, onClick);

//2. Event handler function Home button
function onClick(event:MouseEvent):void
{
	trace("CLICK!");
	var req:URLRequest = new URLRequest("index.htm");
	navigateToURL(req,"_self");
}

//1. Assign listener Targets button
targets_btn.addEventListener(MouseEvent.CLICK, onTargetsClick);

//2. Event handler function Targets button
function onTargetsClick(event:MouseEvent):void
{
	var req:URLRequest = new URLRequest("cat-toc.htm");
	navigateToURL(req,"_self");	
}

//1. Assign listener Clients button
clients_btn.addEventListener(MouseEvent.CLICK, onClientsClick);

//2. Event handler function Clients button
function onClientsClick(event:MouseEvent):void
{
	var req:URLRequest = new URLRequest("clients.htm");
	navigateToURL(req,"_self");	
}

//1. Assign listener Projects button
projects_btn.addEventListener(MouseEvent.CLICK, onProjectsClick);

//2. Event handler function Projects button
function onProjectsClick(event:MouseEvent):void
{
	var req:URLRequest = new URLRequest("ProjectSheetsMain.htm");
	navigateToURL(req,"_self");	
}

//1. Assign listener Contact button
contact_btn.addEventListener(MouseEvent.CLICK, onContactClick);

//2. Event handler function Contact button
function onContactClick(event:MouseEvent):void
{
	var req:URLRequest = new URLRequest("contact.htm");
	navigateToURL(req,"_self");	
}

//1. Assign listener About button
about_btn.addEventListener(MouseEvent.CLICK, onAboutClick);

//2. Event handler function About button
function onAboutClick(event:MouseEvent):void
{
	var req:URLRequest = new URLRequest("about.htm");
	navigateToURL(req,"_self");	
}

//1. Assign listener News button
newss_btn.addEventListener(MouseEvent.CLICK, onNewsClick);

//2. Event handler function News button
function onNewsClick(event:MouseEvent):void
{
	var req:URLRequest = new URLRequest("news.htm");
	navigateToURL(req,"_self");	
}

Answer : Flash CS4 Actionscript 3.0 Errors

Ajax calls ?

When you have the alert you get another value from the ajax call have time to finish and come with valid data
Random Solutions  
 
programming4us programming4us