DCSIMG
February 2009 - Posts - Shvilam B2B Mobile Apps

Shvilam B2B Mobile Apps

עמית כמו חבר שביל כמו דרך B2B Android mobile App shvilam@gmail.com

על הבלוג

Shvilam

Flashoo - Official Adobe Flash Platform Developer Community and User Group in Israel

קראתי לאחרונה

עוד מקומות בהם השארתי חותם

תעשיה אחרת

Games

Contact Me

Side work

February 2009 - Posts

Add to your favorites

  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

 

 

there is still few question that i ask there the are waiting for and answer.
RSL (Runtime Shared Library) in Flash IDE
svn and branchs with FLA (flash files)
i would offer my reputation there buy up until now i don't have any

Compile all the FLA file in Directory and its sub Directory

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;
       
} 2071998420_6d4bdfeecd
       
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]