Re: [問題]擷取外部載入的文字

看板Flash作者 (go)時間16年前 (2009/06/01 16:51), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串2/2 (看更多)
string.substr(4,6)可以擷取string中的第5個字 從第5個字開始算起的6個字 都會被擷取 可是 使用 loadVariables("topic.txt", _root.text) 無法直接採用substr() 如何把loadVariables("topic.txt", _root.text)的內容 存入一個字串呢? ※ 引述《ginnz (go)》之銘言: : loadVariables("topic.txt", _root.text) : topic.txt的檔案內容如下: : content=來進行資料交換的話是較好的作法 : 請問怎樣才能擷取第5~第10的字呢? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.43.225.108

06/01 16:56, , 1F
content變數型態就是字串阿
06/01 16:56, 1F
文章代碼(AID): #1A8vQ69T (Flash)
文章代碼(AID): #1A8vQ69T (Flash)