Flashgordon
Technical User
Hi all
I'm sure this can be done but I'm a bit rusty...
I have loaded a variable from a text file and I need to convert it into a path and filename so I can use it as a name for a loadmovie action.
Example:
variable loaded: 709545400
what I need to convert it to:
images\mouldings\709_545_400.swf
Here's what I've done so far, but the first variable is coming up as 0, what am I doing wrong?
loadm = substring(item, 1, 3) + "_" + substring(item, 4, 3) + "_" + substring(item, 7, 3) + ".swf";
loadmurl = "images\\mouldings\\"+loadm;
loadMovie (loadmurl, "picture");
thanks in advance
Andy.
I'm sure this can be done but I'm a bit rusty...
I have loaded a variable from a text file and I need to convert it into a path and filename so I can use it as a name for a loadmovie action.
Example:
variable loaded: 709545400
what I need to convert it to:
images\mouldings\709_545_400.swf
Here's what I've done so far, but the first variable is coming up as 0, what am I doing wrong?
loadm = substring(item, 1, 3) + "_" + substring(item, 4, 3) + "_" + substring(item, 7, 3) + ".swf";
loadmurl = "images\\mouldings\\"+loadm;
loadMovie (loadmurl, "picture");
thanks in advance
Andy.