Redian新闻
>
标题的大小写怎么确定呢?
avatar
标题的大小写怎么确定呢?# TeX - TeX电子排版系统
f*w
1
我是刚接触actionscript没到一个星期的新手,请版上的高手指教:
I use following flash actionscript code, got from online, to load the "
Loading.txt" file:
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void {
var myArrayOfLines:Array = e.target.data.split(/\n/,",");
}
myTextLoader.load(new URLRequest("Loading.txt"));
In "Loading.txt", the data of object in a row is (Dim1 Dim2 Dim3 OX OY OZ)
is:
60,12,9,-50,-50,50
84,12,9, 50, 50,50
Then I use onLoaded[i-1][j-1], in a loop to get the data in row i and column
j of the array, but I got some error message. Can somebody help me on this?
I am totally new to actionscript. The loop I used is like
var ArrayRows:int=2 // how to automatically get the number of rows of the
txt file?
for(iObj=0;iObjDim1 = ObjDimArray[iObj][0]
Dim2 = ObjDimArray[iObj][1]
Dim3 = ObjDimArray[iObj][2]

OX = ObjOriginArray[iObj][3]
OY = ObjOriginArray[iObj][4]
OZ = ObjOriginArray[iObj][5]
}
Also, seems most people recommend using xml and I compiled an xml file "
Loading.xml" for above "Loading.txt" as below



HW
60
12
9
-50
-50
50


HW
84
12
9
50
50
50


I used following code to load the "Loading.xml". I would like to use a loop
to read all values and assign to a variable. Can anybody teach me how to do
that?
var myXML:XML = new XML();
var XML_URL:String = "Loading.xml";
var myXMLURL:URLRequest = new URLRequest(XML_URL);
var myLoader:URLLoader = new URLLoader(myXMLURL);
myLoader.addEventListener("complete", xmlLoaded);
function xmlLoaded(event:Event):void
{
myXML = XML(myLoader.data);
trace("Data loaded.");
}
Please help - how to assign the loaded txt/xml file's array to variables?
I use following flash actionscript code, got from online, to load the "
Loading.txt" file:
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.addEventListener(Event.COMPLETE, onLoaded);
function onLoaded(e:Event):void {
var myArrayOfLines:Array = e.target.data.split(/\n/,",");
}
myTextLoader.load(new URLRequest("Loading.txt"));
In "Loading.txt", the data of object in a row is (Dim1 Dim2 Dim3 OX OY OZ)
is:
60,12,9,-50,-50,50
84,12,9, 50, 50,50
Then I use onLoaded[i-1][j-1], in a loop to get the data in row i and column
j of the array, but I got some error message. Can somebody help me on this?
I am totally new to actionscript. The loop I used is like
var ArrayRows:int=2 // how to automatically get the number of rows of the
txt file?
for(iObj=0;iObjDim1 = ObjDimArray[iObj][0]
Dim2 = ObjDimArray[iObj][1]
Dim3 = ObjDimArray[iObj][2]

OX = ObjOriginArray[iObj][3]
OY = ObjOriginArray[iObj][4]
OZ = ObjOriginArray[iObj][5]
}
Also, seems most people recommend using xml and I compiled an xml file "
Loading.xml" for above "Loading.txt" as below



HW
60
12
9
-50
-50
50


HW
84
12
9
50
50
50


I used following code to load the "Loading.xml". I would like to use a loop
to read all values and assign to a variable. Can anybody teach me how to do
that?
var myXML:XML = new XML();
var XML_URL:String = "Loading.xml";
var myXMLURL:URLRequest = new URLRequest(XML_URL);
var myLoader:URLLoader = new URLLoader(myXMLURL);
myLoader.addEventListener("complete", xmlLoaded);
function xmlLoaded(event:Event):void
{
myXML = XML(myLoader.data);
trace("Data loaded.");
}
非常感谢!
avatar
a*e
2
我用的asme的模板,标题会自动大写
结果一个reviewer说标题中有个单词一定要小写
怎么能改一下捏?
avatar
a*e
3
{a}

【在 a*****e 的大作中提到】
: 我用的asme的模板,标题会自动大写
: 结果一个reviewer说标题中有个单词一定要小写
: 怎么能改一下捏?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。