2012-06-26 1 views
1
I는 TEXTFILE이

읽기를 정지, 즉이 FlashVars를 통해 SWF로로드되어 데이터가있는 MySQL 저장AS2 및 TEXTFILE에 "e; 텍스트

  • 데이터 ColdFusion을을 사용하여 저장되며 cfquery
  • 데이터는 coldfusion에 의해 텍스트 파일로 읽습니다.
  • 데이터는 SWF 파일에 flashvars로 전달 된 후 swf로로드 된 다음 actionscript로 읽혀집니다.

문제는 모든 텍스트는 첫 번째

&quote; 

때까지 초기화되고 나는이 탈출하는 방법을 잘 모르겠어요, 어떤 시점에서 내가해야한다.

내가 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(); 

답변

1

플래시 파일에 변수로 들어가는 앰퍼샌드는 URL 매개 변수와 마찬가지로 변수를 구분하는 데 사용됩니다.

그래서 플래시이 읽 그가 다시 흔적을 주도로

소년은 씩 웃었다.

var1 = The boy grinned as he led back to the trail. 
var2 = quot;A big un, Granser, 
var3 = quot; he chuckled 

그렇게 플래시에 대한 바르를 인코딩 URLEncodedFormat(FORM.content)를 사용해보십시오 : " 큰되지 않은, Granser는 " 그는이 같은

을 웃었다.