all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

Actionscript newbie question



Actionscript newbie question eshipman
7/14/2004 10:02:08 PM
flash actionscript: I have this actionscript and need to know what the result would be.
{use http://www.mysite.com for baseURL }

dataFile = baseURL + "page/year_" + today.substring(0, 4) + "/month_" +
today.substring(4, 6) + "/day_" + today.substring(6, 8) + "/board.xml";
Re: Actionscript newbie question Jack.
7/14/2004 10:22:01 PM
use trace to output results

baseURL = "h ttp://www.mysite.com/";
today = new Date().toString();
dataFile = baseURL +
"page/year_" + today.substring(29,33)+
"/month_" + today.substring(4,7)+
"/day_" + today.substring(8,10)+
"/board.xml";
trace(dataFile);
// h ttp://www.mysite.com/page/year_2004/month_Jul/day_14/board.xml

hth
AddThis Social Bookmark Button