Advertisement

07.24.2008 at 11:05AM PDT, ID: 23593117
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

"Handler not found in object" error message

Asked by msukow in Macromedia Director Video Editing Software, ActionScript

Tags: , , ,

In authoring mode, I get no error messages. However, when I create an executable, I get the following message:
Handler not found in object
#loadJCK_Keyword

I know where the function is being called from - It is a function in Flash that I have tested and it worked as anticipated. I have tried to re-import into Director and in authoring mode, it is fine. If I comment of the call in Director, then it is fine as well for the executable. I cannot figured out why this would be an issue. It was not an issue before.

Basically, the flash file in director is just a simple button that has text in 9 languages, depending on the option the user choose. The reason I have to do that, is because there is unicode text that is read from a text file. I cannot upgrade at this time to director 11.

Attached is the code in Flash. The code in director that calls the function in flash is the following:
sprite(232).loadJCK_Keyword(the moviePath & "Data\db\"&gSelectedLanguage&"\"&readFile&".txt", "about", 3, 2, "", "0xE0E4E5", "center", false)Start Free Trial
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:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
gCenter = 7;
lineArray = new Array();
function loadJCK_Keyword(fileToLoad, searchKeyword, mColumnSearch, mColumnGet, replaceXXX, fontColor, fontAlign, append) {
	var my_lv:LoadVars = new LoadVars();
	my_lv.onData = function(src:String) {
		// "src" in the next line was created by the previous
		createLineArray(src);
		//lineArray is determined from the "createLineArray" function at the end
		// separate data into lines
		for (x = 0; x <= lineArray.length; x++) {
			// assign each line number to "thisLine"
			thisLine = lineArray[x];
			// check for linebreaks, tabs and enter
			while (thisLine.charCodeAt(0) == 13 || thisLine.charCodeAt(0) == 10 || thisLine.charCodeAt(0) == 9) {
				thisLine = thisLine.substr(1);
			}
			//
			thisLineSearch = thisLine;
			// look for correct column in text via a tab character
			// this also may have solved a problem when there where multiple linebreaks next to each other? 
			for (p = 1; p < mColumnSearch; p++) {
				thisLineSearch = thisLineSearch.substring(thisLineSearch.indexOf(chr(9)) + 1, thisLineSearch.length);
			}
			//if there is no tab
			if (thisLineSearch.indexOf(chr(9)) == -1) {
				thisKeyword = thisLineSearch;
				// there is a tab
			} else {
				thisKeyword = thisLineSearch.substring(0, thisLineSearch.indexOf(chr(9)));
			}
			// found keyword
			if (thisKeyword == searchKeyword) {
				k = 1;
				do {
					// determine where the linebreak is
					locateBreak = thisLine.indexOf(chr(9));
					// populate with data
					thisColumnData = thisLine.substring(0, locateBreak);
					// go to the next line
					thisLine = thisLine.substr(locateBreak + 1);
					k++;
					// continue until out of data
				} while (k <= mColumnGet);
				break;
			}
		}
		// this next section is used to replace the [B} with a bullet
		// the "|" is a delimiter for a line break
		replaceArray = new Array();
		if (replaceXXX != "") {
			if (thisColumnData.indexOf("[XXX]") > -1) {
				replaceArray.push(replaceXXX.substring(0, replaceXXX.indexOf("|")));
				replaceArray.push(replaceXXX.substr(replaceXXX.indexOf("|") + 1));
				for (x = 0; x < 2; x++) {
					whereIsIt = thisColumnData.indexOf("[XXX]");
					thisColumnData = thisColumnData.substring(0, thisColumnData.indexOf("[XXX]")) + replaceArray[x] + thisColumnData.substr(thisColumnData.indexOf("[XXX]") + 5);
				}
			} else {
				thisColumnData = replaceXXX + thisColumnData;
			}
		}
		// this portion is used to determine if the data should stand on its own or whether it is added to whatever is already there       
		loadedText = "";
		if (append == true) {
			loadedText = dynamicTextJCK.text;
			dynamicTextJCK.text = loadedText + "\n" + thisColumnData;
		} else {
			dynamicTextJCK.text = thisColumnData;
		}
		// format the text
		var format:TextFormat = new TextFormat();
		format.align = fontAlign;
		format.color = fontColor;
		dynamicTextJCK.setTextFormat(format);
	};
	// loads the external file
	my_lv.load(fileToLoad, my_lv, "GET");
}
// This is for the Euro only
function loadString(mData, fontColor, fontAlign, append) {
	// default is left
	if (fontAlign == null) {
		fontAlign = "left";
	}
	// this portion is used to determine if the data should stand on its own or whether it is added to whatever is already there    
	// note: the different name for the text field vs. the Asian function above
	if (append == true) {
		dynamicText.text = dynamicText.text + "\n" + mData;
	} else {
		dynamicText.text = mData;
	}
	// format the text
	dynamicText.autoSize = fontAlign;
	var format:TextFormat = new TextFormat();
	format.align = fontAlign;
	format.color = fontColor;
	dynamicText.setTextFormat(format);
}
// mData is just the parameter
// this function determines the number of lines
function createLineArray(mData) {
	lineCounter = 0;
	while (mData.indexOf("[EOL]") >= 0) {
		lineArray.push(mData.substring(0, mData.indexOf("[EOL]") - 1));
		mData = mData.substr(mData.indexOf("[EOL]") + 5);
		lineCounter++;
	}
	// now that it has counted the number of lines, it returns that value to the "loadJCK_Keyword" function above
	lineArray.shift();
}
[+][-]07.24.2008 at 12:55PM PDT, ID: 22082883

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 01:34PM PDT, ID: 22083271

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.25.2008 at 01:38AM PDT, ID: 22086840

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.25.2008 at 07:42AM PDT, ID: 22089016

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.25.2008 at 08:11AM PDT, ID: 22089269

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.25.2008 at 08:59AM PDT, ID: 22089793

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.01.2008 at 12:57PM PDT, ID: 22141495

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.04.2008 at 02:03AM PDT, ID: 22150839

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Macromedia Director Video Editing Software, ActionScript
Tags: Adobe, Director, MX 2004, PC only
Sign Up Now!
Solution Provided By: Chris-Chambers
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628