[Xerte] Re: debug in Flash

Julian Tenney Julian.Tenney at nottingham.ac.uk
Tue May 29 15:15:07 BST 2012


item,item,item;item,item,item

Then split into array on ; then loop over the items in that array and split on ,

str = "Item,item,item;item,item,item";
arr = [];

topLevelArr = str.split(';');
for (i = 0; i < topLevelArr.length; i++){
  arr[i] = [];
  tempArr = topLevelArr[i].split(',');
  for (j = 0; j < tempArr.length; j++){
    arr[i][j] = tempArr[j];
  }
}
trace(arr[0]);
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 29 May 2012 15:09
To: Xerte list
Subject: [Xerte] Re: debug in Flash


It was actually working, just taking a silly amount of time to parse to the trace window. :-/

Next issue:

if you use mystring.split(",") to create an array, is there a way to lay the string out to create a multi-dimensional array out of it?







________________________________
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Mon, 28 May 2012 16:49:30 +0100
Subject: [Xerte] Re: debug in Flash
Need to know about rlodata then.

Does tracing it cause problems beforehand? Or earlier on in that function?

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 28 May 2012 16:47
To: Xerte list
Subject: [Xerte] Re: debug in Flash

Still says string.
still blows up
________________________________
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Mon, 28 May 2012 16:42:42 +0100
Subject: [Xerte] Re: debug in Flash
typeof is a method

trace(typeof(myObject));

any difference (guessing a bit)?

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 28 May 2012 16:41
To: Xerte list
Subject: [Xerte] debug in Flash


Any partic reason this would blow up and hang Flash?
I'm reading in an .rlo


var lv:LoadVars = new LoadVars();

lv.onData = function(rlodata) {
trace('start onData');  //appears
trace(typeof rlodata);  //reports string
trace(rlodata); //hangs Flash, blanks trace window
}


function init(initObject) {
lv.load(initObject);
}
init("C:\\shared\\ron\\ron_acoustic.rlo");






This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.

_______________________________________________ Xerte mailing list Xerte at lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120529/91818982/attachment-0001.html>


More information about the Xerte mailing list