I am using flashvars to import a whole load of data via php - and it works fine
Only one issue - one array that I'm using lists the dir paths to images and each element looks like this:
(I use these dir paths to display images).
Now I want to use just the "3" from that string (element) for another purpose (to identify the person who uploaded the picture).
How can I pull out the "3" as a variable "MemNum" (remembering that it could be up to a five or six digit number so everything after
the first slash and before the second one) or just strip everything else out of the string to leave only the member number for use as a variable?
All and any help much appreciated.
PS - does anyone know of a forum that deals with the issues thrown up by using Flash and php together ?
var n1:Number = s.indexOf("/")+1
var n2:Number = s.indexOf("/",n1)
var yourNumber:Number = Number(s.substring(n1,n2))