stackoverflow i ran across this site form one of searches
on a tec staff. And i was so impress by the answers there .
Any programmer related question can be found there.
you ask a question but it is not a forum
answer is rated by the users and sorted by this rate
so you don't read log and bed answer like in form.
and it is fun you get reputation by answering question.
you can offer same of you reputation for a good answer to question that you ask
so enjoy stackoverflow
there is still few question that i ask there the are waiting for and answer.
i would offer my reputation there buy up until now i don't have any
Toady i spent few hour improving our install process and I look for a way to compile all the swf file in Directory and its sub Directory in the working environment
it was quite easy just a few lines of jsfl
/*
* this file will loop recursively throw all the file and folder in the path
* and publish all the fla i thus directory
*/
var devPath ="file:///E:/WORK/Dev/trunk/"
folderRecorsive(devPath);
/*
* loop throw all the folder a
* for each folder call publishFlieInFolder
*/
function folderRecorsive(pathFolder)
{
var folderNames=FLfile.listFolder(pathFolder,"directories")
for(var i=0;folderNames.length;i++)
{
if(folderNames[i] == undefined)
{
break;
}
if(folderNames[i].indexOf("svn") != -1 ||
folderNames[i].indexOf(".metadata") != -1)
{
}
else
{
var newFolderPath = pathFolder+"/"+folderNames[i]
publishFlieInFolder(newFolderPath)
folderRecorsive(newFolderPath )
}
}
}
/*
* select all the FLA in the give folder
* for each one of them call publishFile
*/
function publishFlieInFolder(folderPath)
{
var files = FLfile.listFolder(folderPath+"/*.fla","files")
for(var i=0;files.length;i++)
{
if(files[i] == undefined)
{
break;
}
var flaPath = folderPath+"/"+files[i]
publishFile(flaPath);
}
}
/*
* publish a fla file and close the document
*/
function publishFile(filePath)
{
fl.openDocument(filePath,true);
fl.getDocumentDOM().publish();
fl.closeDocument(fl.documents[0], false);
}
and few line in the ant install file
<property name="test.jsfl" value="E:\WORK\Dev\trunk\Server\FlashPublish.jsfl"/>
<property name="flash" value="C:\Program Files\Adobe\Adobe Flash CS3\flash.exe"/>
<target name="CompileFlash">
<exec executable="${flash}">
<arg line="'${test.jsfl}'" />
</exec>
</target>
About the picture and now like riding a bicycle with no hands
it will do the work for you.
Willow Road Panda [the photographer]