DCSIMG
Shvilam שביל עמית

Shvilam שביל עמית

עמית כמו חבר שביל כמו דרך

על הבלוג

Shvilam

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

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

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

תעשיה אחרת

Games

Contact Me

Side work

גולים של הקבוצה המפסידה

בימים הקרובים אני הולך שלסגור את המשרד של Rocketninja בישראל למה (הרבי סיבות) אבל בעיקר כי זה מה שהתבקשתי לעשות -) .

 

 

 

Goal

 


ואני שוב ניצב בפני כול מיני ברירות לאן אני אמור להתקדם. בשיחה שהיתה לי עם אחי שניסה להעביר לי תחושת ביטחון

"ששחקן טוב מבקיע גולים בכול קבוצה". נחמד אולי אפילו נכון במידה מסוימת כמובן שהיתה כוונה לתת לי מחמאה.

כן אני חושב שזו פחות או יותר המחשבה שלי בכול אחד מהתפקידים הקודמים שלי,

שכמובן עשיתי הכול שהקבוצה שלי תנצח אני לא בטוח שזה תמיד היה כך אפילו הבקעתי לא מעט גולים עבור הקבוצה שלי.

אבל אני חושב מי זוכר את הגולים של הקבוצה המפסידה או מי בככלל הבקיע אותם?. 

 

אז נכון שיש לי כבר כמה הצעות להצטרף לכמה קבוצות ,אתם כמובן מוזמנים להפוך את ההחלטה לקשה עוד יותר עם הצעות נוספות

 אבל בינתיים אני עדיין מתלבט באיזו קבוצה הגול שלי היהי חלק מהניצחון?

JSFL publishing FLA complete Error handling

when we start working on Mogobe  I worte a small JSFL script. that script loop throw all  of my project folder look for FLA 

files and publish them one after a other.

Add that script to the buld task in my Ant file. that was fin for the begining but now that the project is so big and any thing can go wong

and staff did go wong and same time the one of the fla file did not publish as expected . The probleam was that you we did nt know about it 

the JSFL script just move to the next file.

So I need to add an Error handling for the script and to be shore that I will be compile them correctliy I fond that on the web 

http://summitprojectsflashblog.wordpress.com/2009/03/10/jsfl-for-mass-publish-with-error-reporting/

but that was only handling complie error if some thing else go wong like the publish to folder dose not exsist it will move on without publishing 

 here is what I added this is the new function that in JSFL that publish FLA with complete Error handling .

(How to loop throw all the folder subfolder and find FLA file you can find here )

/*
 * pubilsh a fla file and colse the document
 */
function publishFile(filePath)
{
    try
    {
       
        fl.openDocument(filePath);
        fl.getDocumentDOM().publish();
       
        // handling error of out folder dose not exsist
        fl.outputPanel.save(filePath + ".out") // save the out put to file
        var output = FLfile.read(filePath + ".out"); // read the out put from the file
        FLfile.remove(filePath + ".out");// delete the out put file
       
        // handling error of flash compile
        fl.compilerErrors.save(filePath + ".error"); // save the out put to file 
        var contents = FLfile.read(filePath + ".error"); // read the out put from the file
        FLfile.remove(filePath + ".error"); // delete the out put file
       
        // checking if file can be created path existing problem
        if(output.indexOf("Error creating Flash movie file") != -1 )
        {
            hasError = true;
        }
        else if(contents != "") // checking for flash compile errors 
        {
            hasError = true;
        }
        else
        {
            fl.closeDocument(fl.documents[0], false);
        }
       
    }
    catch(e){

          hasError = true;

      }
}

 

the probleam was that when the folder dose not exsist the  fl.compilerErrors is empty becase the complie is not started

so i need to add another chek in the out put panle 

 the next question that I wold ask way writing the  fl.outputPanel fl.compilerErrors object to the file system I realy did not find any other way to get the data from

thouse object 

 

 


 

 

האם מאיה נחמיאס מאושרת ?

 כן

שמות של קבצים ותקיות בגיבריש

הפוסט הזה הוא תרגום לפוסט הזה מאנגלית ( חשבתי שדווקא הפוסט הזה צריך להיות בעברית הסיבות מובנות )

לא פעם ביגלל כול מני תוכנות וכול מני שימושים שמות של קבצים ותקיות

שהיו כתובים בעברית הופכים לגיבריש לי זה קרה עקב שימוש באחד מנגני המוסיקה

כאשר נתתי לו לנהל לי את התקיה של מוסיקה חלק מהתקיות וגם קבצי ה mp3 שהיו כתובים בעברית הפכו לגיבריש

לא התיאשתי וכתבתי תוכנה קטנה שעושה את הלא יאמן משחזרת את הגיבריש חזרה לעברית התוכנה FileNameFix  מאוד פשוטה.

כול מה שצריך לעשות זה לבחור את התקיה הראשית היא כבר תסרוק את כול התקיות ותקיות המשנה ותתקן את מה שצריך לתקן

תהנו.

image_thumb1

 

 

 

כניראה שמוסקיה למרות הכול היא עניין משמעותי בחיים שלי

זו התוכנה השניה שאני כותב שקשורה לנושא הרישונה היא נגן מוסיקה עם קונספט מעניין BPMPlayer 

סליחה לקהל הקוראים זה לא פוסט על מוגובי

השקעת זמן בהחלטות חשובות

אחד מחוקי פרקינסון קובע כי לעולם הדירקטוריון יקדיש עשר דקות מזמנו לדון בהשקעה מסובכת של מיליון דולר, ושעתיים מזמנו כדי לדון בהקמת סככת אופניים לעובדי המפעל.

בהשקעה המסובכת הרי איש לא מבין ואילו בענייני סככת אופניים לכל דירקטור יש מה לומר.

ואייך זה קשור אלי בימים האחרונים אני לקוח חלק בחלטה הרת גורל

ומשתדל לא ליפול לתוך הבור הזה 

 

כול כך אהבתי את הציטות הזה שלא יכולתי שלא 

להביא אותו גם בבלוג שלי 

MP3 gibberish file name and folder after letting one of the player mange my files

after I let my songbird mange my mp3 file I found out that same of the file name became gibberish and some of the folder as well.

so I wrote a little piece of code that will convert the file back to there original encoding to Hebrew. 

you can download FileNameFix  from here (I use the ClickOnce technologies for every buddy ease).

you just need to select the root folder with the mp3 file that you wont to convert

and it restore it back to Hebrew

have fun.

image

 

Music is a big part of my life this is the secand this that i build regarding music the first one is music player that i build it has great idea  BPMPlayer.

 

 

Sorry but this post is not about Mogobe

Mogobe is looking for a java Developer

JOB DESCRIPTION:
We (mogobe.com) are seeking a JAVA developer to work on high profile projects that include games, simulations, product visualizations and virtual worlds.


REQUIREMENTS:
- Must have an experience working with JAVA in a team production environment.

- Must have an experience with Mysql.

- Must have an understanding of OOP design.

- Must have experience using XML for dynamic content design.

- Must have excellent organization / code documentation skills.

- Must be willing to work at our Petach Tikva office.

EXPERIENCE WITH THE FOLLOWING IS HIGHLY DESIRABLE:

- AS3 and Flash.
- Development of multiplayer games.
- Development of virtual worlds.

There is a first time for every thing (mogobe on the news)

Yes this is one of the first time that Mogobe is on the news  

here is the link http://www.globes.co.il/news/article.aspx?QUID=1055,U1246467136976&did=1000476745

Usually I do not blog on my personal life but i just got married

the wedding was great and i wont to say thanks to every one that came it was a pleasure having you all with us.

I wont to thanks god or any one else that is responsible (maybe i need to say thank to the internet or even to jdate) that fix me up with Ilanit she is so great  and I fill so lucky.

 

what single discovery has given you the greatest boost in productivity?

 

As a programmer what single discovery has given you the greatest boost in productivity?

2440865036_696af067f4_m

this question has been ask in the stackoverflow and I think my answer was great one

pencil and a paper (simple obvious) but still underestimated                         

We took an consultant (mogobe.com)

As I mention earlier we just finish a year of development and the thing that i am most proud of except the the game is working an kids are having fun.

Is that we have an consultant the credit for that i need to give to eyal

I am not shore that he is the best one but,

I know that he know well enough that I can listen to.

I know that he can explain and communicate his idea.

I know  that we is smart enough to lessen to me.

I honesty think that event thus that it cost a allot of money it is a good way to spend it especially if you are small company in it s  early stages.

We toke Moshe shamy from sela.

We are still looking for consultant for the client side so if you think that you are the one you can contact me

 

13

After a year of development ( of mogobe virtual world )

After a year of development  quit alto form my perspective never been a leader for a project of that scale

And it kind of hard to look on it and say that what we accomplish in year me and  Tzahi ( the  development team )image-3

yes it was new thing for us and ,yes we learn allot from it,

yes it is nice yes it is fun but I could have done it better

but it is probably the filling of any programmer that standing in front of a big project that he develop .

here is it www.mogobe.com it is virtual world for kids.

My mistake when I used Google analytics

I am project manger of virtual worlds for kids this game call Mogobe 

and i did fatal mistake.

We add Google analytics  to the site by using a simple java script API in all the we pages of the site.

After it we wonted to get more spastic information and because this is a virtual Wolds for kids most of 1313600962_17093b1b36

the activity is happening inside the flash player.

We added the Google analytics  flash API that send more data to Google analytics  service

and that was my mistake I did not understand it in the begging because when we did it there where little traffic in our site

only after a while the figure didn't really match the one form our data base and the one from Google analytics. 

And in that moment we understand that when we used to different API of Google analytics each will create a new user and a new visit.

 

So in the if you have a site that have flash content do not try to use the flash API to track your users activit.

Make flash call the java script API that you all ready have in your site.

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]   

 

 

 

More Posts Next page »