作者ginnz (go)
看板Flash
标题Re: [问题]撷取外部载入的文字
时间Mon Jun 1 16:51:17 2009
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
1F:→ pm2001:content变数型态就是字串阿 06/01 16:56