Wednesday, January 31, 2007

hybridizing java

Author of famous "Thinking in Java" and "Thinking in C" books, Bruce Eckel have some new thoughts on RIA, flash, flex. This article is for those who haven't yet figure it out why "flash platform" is THE future technology. _article_.

I read some stuff where manager developers have experience with java programmers, who are in two weeks ready to fully work with actionscript code, so "force" for pushing flash platform forward is already out there. It is only question of time. Are you surfing on that new wave?
Posted by flanture at 11:57:51 | Permanent Link | Comments (0) |

Tuesday, January 30, 2007

insane website

This is totally insane website. I don't know how I missed it in the past.
levitated. Open source.
Posted by flanture at 23:46:56 | Permanent Link | Comments (0) |

Monday, January 29, 2007

flex compiler

Adobe labs has introduced Flex Compiler Shell (fcsh). It is compiler that works similar as standard command-line compiler for flex, but it has one main advantage. It's compiling time is 5-10 times faster for large and often compiled projects. Fcsh is available for Windows and Unix,Linux,Mac. For more info on instalation and use visit:

Adobe Labs.
Posted by flanture at 19:17:58 | Permanent Link | Comments (0) |

Sunday, January 28, 2007

array functions tutorial part II



Third function is called searchCount, simply beacuse it counts number of wor in array. It goes something like this:

function searchCount(wor, arr){
   var count = 0;
   for(i=0; i< arr.length; i=i+1){
     if(arr[i ]==wor){
       count += 1;
     }
   }
   return count;
}

Another function is union. If you have two arrays, union will return new array which consist of word that exists in both arrays.

function union(arr1, arr2){   var arr3 = new Array();
  count = 0;
  for(i=0; i< arr1.length; i=i+1){
    for(j=0; j< arr2.length; j=j+1){
      if(arr1[i ]== arr2[ j]){
        arr3[count ] = arr1[ i];
        count+=1;
      }
    }
  }
  return arr3;
}

One more important thing. Data type in these functions dont have to be String, it can be any type. For more strict evaluation, you can put === instead of ==.

- end of part II -
Posted by flanture at 17:29:28 | Permanent Link | Comments (0) |

Saturday, January 27, 2007

array functions tutorial -part I-


Recently I needed some arrays search functions for better performance so I wrote few of them. First one is simple.


function search(wor, arr){
   var exist = false;
   for(i=0; i< arr.length; i=i+1){
     if(arr[i ]==wor){
       trace("Element exist on position "+i);
       exist = true;
     }
   }
   if(!(exist)){
     trace("Element don't exist in array.");
   }
}

In for loop we ask if wor is identical to any of array's elements. Note that we use == not = (common mistake). Boolean variable exists is responsible for finding our word in array. If word multiple times in array, all positions will be find. Second function is almost the same. Difference is that this one returns true or false. True if wor is in arr, false otherwise. It goes like this.

function searchB(wor, arr){
   var exist = false;
   for(i=0; i< arr.length; i=i+1){
     if(arr[i]==wor){
       return true;
       exist = true;
     }
   }
   if(!(exist)){
     return false;
   }
}

This function will end on first appearence of wor in arr. If wor don't exist in arr, function will return false. You can test these functions like this:

_root.onMouseDown=function(){
   planets = new Array("Merkur", "Venus", "Earth", "Mars");
   habitable = "Earth";
   what = search(habitable, planets);
   trace(what);
}

Similar for searchB function.

-end of part I-
Posted by flanture at 14:45:36 | Permanent Link | Comments (1) |

text editor flash component


Text editor flash component is created by Govinda Sarkhel and it is hosted on flash-db.com. This is very nice editor with common formating settings. Also, you can save and load text, which is implemented with shared objects. There is lot of work done here and it is worth it. Well done.
Posted by flanture at 01:10:00 | Permanent Link | Comments (0) |

Monday, January 22, 2007

tamarin - open source


Tamarin. New open source stuff. Well, it's not new, but now it is open source, Mozilla lecenced. Tamarin is just code name, not trademark. What is it? New Adobe (Macromedia) Flash Player 9 uses AVM2 (ActionScript virtual machine) to compile as3 code, 10 times faster than older AVM1. Adobe has decided to contribute code of AVM2 to Mozilla community as open source. Theirs joint project got name Tamarin.
Tamarin (AVM2) has the ability to compile byte code into native machine instructions. Also, it features Just In Time (JIT) compiler. Where is benefit? Well, first of all, starting from Mozilla Firefox 3, its scripting engine SpiderMonkey will include Tamarin code (AVM2 code), since JavaScript and ActionScript are ECMAScript languages (read: same language, different libraries). This will contribute to faster js execution. Firefox extension developers watch out!
Posted by flanture at 23:55:56 | Permanent Link | Comments (0) |

Thursday, January 18, 2007

3D flash environment

Try this 3D flash environment by moving with mouse wheel or arrow buttons on keyboard, shift for up, crtl for down and end key for rotation. 3D_world. This is very nice component and this kind of things are reason why I like flash. There are 5 more examples for this 3D environment component.

Posted by flanture at 18:16:17 | Permanent Link | Comments (0) |

Tuesday, January 16, 2007

actionscript3 libraries

as3 libraries by Mike Potter and others is 'set of free and open libraries, written in as3 for Flex and Flash developers'. They include:


Also, many more projects on riaforge.org.
Posted by flanture at 16:05:55 | Permanent Link | Comments (0) |

Sunday, January 14, 2007

apollo blog

Apollo is new cross-platform ria thingy, and you can read about it on Mike Chambers [blog]. I am thinking of translating apollo faq. Code is open source and hosted on code.google.
Posted by flanture at 11:29:46 | Permanent Link | Comments (0) |
1 2