1
I는 TEXTFILE이
읽기를 정지, 즉이 FlashVars를 통해 SWF로로드되어 데이터가있는 MySQL 저장AS2 및 TEXTFILE에 "e; 텍스트
- 데이터 ColdFusion을을 사용하여 저장되며 cfquery
- 데이터는 coldfusion에 의해 텍스트 파일로 읽습니다.
- 데이터는 SWF 파일에 flashvars로 전달 된 후 swf로로드 된 다음 actionscript로 읽혀집니다.
문제는 모든 텍스트는 첫 번째
"e;
때까지 초기화되고 나는이 탈출하는 방법을 잘 모르겠어요, 어떤 시점에서 내가해야한다.
내가 ColdFusion 사용 설명서 원본 텍스트를 저장하고, 가지고 있어요, 그것은
다음#HTMLEditFormat(form.content)# />
The boy grinned as he led back to the trail.
"A big un, Granser," he chuckled
전체 액션 스크립트입니다 HTML 편집 형식으로 데이터를 설정
// This will be the starting position of the textbox
var starting_ypos:Number;
// Load the Flashvars into the script
text1.text = myVariable;
text2.int = mySecondVariable;
// Make a load vars object
my_data = new LoadVars();
// This will be how fast the text box will scroll
var scroll_speed:Number = text2.int;
// Make my on load function
my_data.onLoad = function() {
// Fix the double space issue
var my_text = unescape(this.content).split("\r\n");
my_text = my_text.join("\n");
my_text = my_text.split("\r");
my_text = my_text.join("\n");
// Set the text in the text box
scroll_text.Text = my_text;
// Set the autosize
scroll_text.autoSize = true;
// Set the starting_ypos
starting_ypos = scroll_text._y;
};
// Load the external text file
my_data.load(text1.text);
// Start the scrolling
this.onEnterFrame = function() {
// Check for hit test with the mask and the mouse
if(!mask_mc.hitTest(_root._xmouse, _root._ymouse)) {
// Check to see if we are in the mask
if(mask_mc.hitTest(scroll_text)) {
// Move the textbox
scroll_text._y -= scroll_speed;
} else {
// Reset the text box
stop();
}
}
}
// Simple stop command
stop();