View Single Post
  #1 (permalink)  
Old 07-23-2008, 04:44 PM
georges.goebel
 
Posts: n/a
Diggs:
Default draw lines and other graphics

Hi,

We need do draw some lines (in fact it is the highway road system in
luxemburg) and other graphic components and dynamically change the colors of
these lines based on some values which are generated in the backend. You can
check it out at : http://www.cita.lu

At the moment we have a simple flash application which does all the color
changing baed on the values an we want to change this application in a flex
application which gets the processed data through Java interaces. The problem
of this application is that most of the business logic is in the flash
application which we want to move to the Java application.

Our first problem is how do we draw the lines in flex ? We found some ideas
but they are all based on programatical drawing. So you write actionscript to
draw these lines. This is quite hard and also not very usefull as the location
of the lines do not change. Only their color ! So we want to draw the lines as
in Flash, which works fine and in some seconds.
Next idea we had war to draw the lines in flash and load this application in
flex with the "swloader" component. We can load the flash application but we
cannot access the draw lines. In fact they are drawn in flash and then
converted to "graphics" (not movieclips nor commands). They have a name in
flash but when we try to get a reference in flex to these elements we always
get a null reference.

Does somebody know a best practise or a solution of this problem ?

Thanks

Georges




Reply With Quote
Sponsored Links