[flexcoders] Adobe AIR - interimittent online/offline storage (à la Google Gears)

2010-08-08 Thread mark.embrey
What is the best way to to store data locally while offline and to 
automatically detect a connection and sync local data with remote services?

thanks!



Re: [flexcoders] Flex 4.1 , automation_spark.swc and OSMF 1.o issues

2010-08-08 Thread superabe superabe
Thanks for looking into this. Trunk of the Flex 4SDK? That might be the
older OSMF version. Will need to check.

I am using the GM release version of OSMF located here (in source.zip)
http://opensource.adobe.com/wiki/display/osmf/Downloads

That does not include DimensionEvent.

On Sun, Aug 8, 2010 at 8:34 AM, Oleg Sivokon  wrote:

>
>
> I've compiled from trunk (it has revision 17228), and the DimensionEvent
> is still there, in the osfm.swc, check the catalog.xml line 957.
>
> 
>


Re: [flexcoders] Flex 4.1 , automation_spark.swc and OSMF 1.o issues

2010-08-08 Thread Oleg Sivokon
I've compiled from trunk (it has revision 17228), and the DimensionEvent is
still there, in the osfm.swc, check the catalog.xml line 957.


Re: [flexcoders] Flex 4.1 , automation_spark.swc and OSMF 1.o issues

2010-08-08 Thread superabe superabe
Ok. That's an older version of the OSMF swc. My app depends on some of the
newer features in OSMF 1.0, so have to use that version.
So this seems like version compatibility bug with OSMF1.0 and the
automation_spark.swc.

Any Adobe folks who can confirm this and hopefully suggest a workaround ?

On Sun, Aug 8, 2010 at 4:38 AM, Oleg Sivokon  wrote:

>
>
> The one that comes with this SDK: 4.0.0.14159 (this is what was released
> with Flash Builder 4).
>
> 
>


Re: [flexcoders] Flex 4 data management - how do I approach this?

2010-08-08 Thread claudiu ursica
 Hi, There is a very good chance I don't understand exactly what the issue is here. I never bind to generated services directly. I use a domain model, in the client and also in the business layer. If you do that you only create data on the client when the user, you, whoever clicks the button call the service and persist the data into the database. The order should only matter if it actually send to the DB, otherwise clients can create as many of them and cancel without the db or even php layer to be aware of that. If you have a good domain model it very easy to attach a view to that, one/2 grids whatever suits the needs. So you can have your service call usually inside a command w/o delegate attached to it, get the data process it the way you want update your model/s and the view should listen to them and update accordingly. The UI triggers changes you cache them in vo's or in the models and only persist upon request
 (btn click). HTH,ClaudiuFrom: henrik.hedberg To: flexcoders@yahoogroups.comSent: Fri, August 6, 2010 3:30:43 PMSubject: [flexcoders] Flex 4 data management - how do I approach this?







 




  
  
  
Hi guys, quite an explanation here, hope someone has the patience to read it through

I'm building an application in Flex 4 that handles an ordering 
system. I have a small mySql database and I've written a few services in
 php to handle the database.

Basically the logic goes like this:

I have tables for customers, products, productGroups, orders, and orderContent

I have no problem with the CRUD management of the products, orders 
and customers, it is the order submission that the customer will fill in
 that is giving me headaches:

What I want is to display the products in dataGrids, ordered by 
group, which will be populated with Flex datamanagement via the 
php-services, and that per se is no problem. But I also want an extra 
column in the datagrid that the user can fill in with the amount he 
wishes to order of that product. This column would in theory then bind 
to the db table "orderContent" via the php services.

The problem is that you would need to create a new order in the 
database first that the data could bind to (orderContent is linked to an
 order in the db).

I do not want to create a new order every time a user enters the page
 to look at the products, rather I would like to create the order when a
 button is pressed and then take everything from the datagrids on the 
page and submit it into the database.

My idea has been to create a separate one-column datagrid, line it up
 next to the datagrid that contains the products and in that datagrid 
the user would be able to enter the amount of that product he'd like to 
order.

I've created a valueObject that contains the data I would need for an order:

Code:

package valueObjects{  public class OrderAmount  {    public var productId:int;    public var productAmount:int;    public
 var productPrice:Number;    public function orderAmount()    {    }  }}

My idea was to use a service to get all products from a certain 
group, populate an ArrayCollection with the data, then transfer each 
object in that ArrayCollection to an instance of the Value Object above,
 add the value object to another ArrayCollection that would the be used 
as a dataProvider for the one-column datagrid (I would only display 
amount which would be set to zero at first, but use the other data upon 
transfering it to the db)

I've tried to use the results from the automatically generated 
serviceResults that retrieve the products for the datagrid and put in a 
resultHandler that transfers the valueobjects, however this does not 
seem to work.

Basically my question is this: Am I approaching this thing completely
 wrong, is there a better solution?

Would I need to create a completely new service request to get the product id:s, and price to populate the one-column datagrid.

I'll post some code if that would help.

Thank you if you read this far. 





 





   







  

Re: [flexcoders] Browse And Image File

2010-08-08 Thread claudiu ursica
http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the-filereference-class-in-flash-player-10/


Should be what you are after, as long as you are ok with losing the image after 
you close the application.
C



From: Christophe 
To: flexcoders@yahoogroups.com
Sent: Sun, August 8, 2010 11:36:13 AM
Subject: [flexcoders] Browse And Image File

  
Hello, 

How to get an image from the local desktop and display it in the flex 
application (without moving the image file to the server) ?

Thank you,
Christophe, 


 


  

[flexcoders] Browse And Image File

2010-08-08 Thread Christophe
Hello, 

How to get an image from the local desktop and display it in the flex 
application (without moving the image file to the server) ?

Thank you,
Christophe, 



Re: [flexcoders] Eye Tracker framework

2010-08-08 Thread farid wl
Dear All

if every one is interested let make a group for developing Eye tracking 
framework pls leave a comment or email me.

BR
Farid Valipour

--- On Sun, 8/8/10, farid wl  wrote:

From: farid wl 
Subject: [flexcoders] Eye Tracker framework
To: flexcoders@yahoogroups.com
Date: Sunday, August 8, 2010, 1:52 PM







 



  



  
  
  Eye Tracker framework (http://text20. net/node/ 14)
Processing Easy Eye Tracker Plugin (PEEP) | Text 2.0 
text20.net
"The probably easiest way on earth to develop stunningly looking eye tracking 
applications (and one of our most eye-appealing by-products we've created so 
far ... ;-)"

it will be great  for flex application , anybody has idea about it ?
we can make  a group to develop a framework for flex appilcation.

BR
Farid Valipour









  


 





 



  






  

[flexcoders] Eye Tracker framework

2010-08-08 Thread farid wl
Eye Tracker framework (http://text20.net/node/14)
Processing Easy Eye Tracker Plugin (PEEP) | Text 2.0 
text20.net
"The probably easiest way on earth to develop stunningly looking eye tracking 
applications (and one of our most eye-appealing by-products we've created so 
far ... ;-)"

it will be great  for flex application , anybody has idea about it ?
we can make  a group to develop a framework for flex appilcation.

BR
Farid Valipour



  

[flexcoders] video processing framework

2010-08-08 Thread farid wl
Dear All
video processing framework ( 
http://play.blog2t.net/realtime-as3-face-and-eye-detection-with-michael-jackson/)
 HiSlop framework


  

[flexcoders] TCPDF and Flex

2010-08-08 Thread Christophe
Hello, 

I am searching examples on how to generates Php files with TCPDF from a Flex 
application. Which function to use in the Flex application ?

Thank you,
Christophe, 



Re: [flexcoders] Flex 4.1 , automation_spark.swc and OSMF 1.o issues

2010-08-08 Thread Oleg Sivokon
The one that comes with this SDK: 4.0.0.14159 (this is what was released
with Flash Builder 4).