Once again I have run into something....
Here is the start of the code:
This is an example of what showNote turns out to be....
_level0.onStage.allNotesOnStage.a2Note
This is what I want to do with that result, but it doesn't work:
findNote comes up as undefined.
So, out of 'showNote', I really only need the very last bit of the string that gets fed to it.
Thanks
Dave
"Credit belongs to the man who is actually in the arena - T.Roosevelt
Here is the start of the code:
Code:
var target = this.onStage.allNotesOnStage.easyArray
var randomNum = Math.floor(Math.random() * (max - min + 1)) + min;
var showNote = target[randomNum];
This is an example of what showNote turns out to be....
_level0.onStage.allNotesOnStage.a2Note
This is what I want to do with that result, but it doesn't work:
Code:
var noteString:String = showNote
var findNote:Array = noteString.split (".")
trace (findNote)
findNote comes up as undefined.
So, out of 'showNote', I really only need the very last bit of the string that gets fed to it.
Thanks
Dave
"Credit belongs to the man who is actually in the arena - T.Roosevelt