[flexcoders] upload file to web service

2008-03-31 Thread Claudio M. E. Bastos Iorio
Hi,

What can I use in flex to upload a file to a web service? I already built
the web service in .NET and is working ok. But I'm trying to add flex in the
client part.

TIA

 

___

Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 



[flexcoders] horizontal tree control

2008-04-22 Thread Claudio M. E. Bastos Iorio
Is there any control in flex (or custom made) like the tree control but
displayed horizontally?

I'm trying the tree control, but it doesn't seem to be able to be formatted
horizontally.

TIA

 

___

Claudio M. E. Bastos Iorio

http://www.blumer.com.ar http://www.blumer.com.ar/ 

 



[flexcoders] component for page flip?

2008-06-10 Thread Claudio M. E. Bastos Iorio
Can anyone recommend any working example for flex, component or link (other
than iparigrafika, or page-flip.com) to page flip effect?

TIA

 



Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

Nietzsche: Whoever fights monsters should see to it that in the process he
does not become a monster. And when you look into the abyss, the abyss also
looks into you

 



RE: [flexcoders] Generating AS3 code from Java

2008-06-19 Thread Claudio M. E. Bastos Iorio
http://www.graniteds.org/confluence/display/DOC/2.5.+Gas3+Code+Generator

 

http://www.badgers-in-foil.co.uk/projects/metaas/

 

or even velocity http://velocity.apache.org/engine/index.html

 



Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

Nietzsche: Whoever fights monsters should see to it that in the process he
does not become a monster. And when you look into the abyss, the abyss also
looks into you

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of andrew.
Sent: Wednesday, June 18, 2008 11:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Generating AS3 code from Java

 

Hi, 

I am using a Flex UI talking to a Blaze DS / Java backend. The sever has a
set of DTO 
objects used for talking to Flex and other web services. 

Is there any open source tools out there to generate the AS3 code from Java?
This should 
be a fairly easy program to write using reflection, but someone must have
done it before. 

 



[flexcoders] disable all controls on stage

2008-07-30 Thread Claudio M. E. Bastos Iorio
I'm trying to access all controls in stage, to disable them (error occurred
in app - disable all controls). 

I'd like to have access to some kind of collection to iterate trough,
something like:

 

Foreach (var mycontrol:Control in CollectionofObjects){

Mycontrol.enabled = false;

}

 

Any idea?

 



Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 



RE: [flexcoders] Re: writeObject() and readObject()

2008-08-13 Thread Claudio M. E. Bastos Iorio
Thanks for answer.

But what can I do if I have many DocumentFile objects written in the file?
Is there any way to retrieve all objects or filter by value name/id..? just
like a database o e4x..

 



Claudio M. E. Bastos Iorio

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 12:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

If you wrote an instance of DocumentFIle, you need to read back an instance
of DocumentFIle

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of slackware2142
Sent: Wednesday, August 13, 2008 5:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: writeObject() and readObject()

 

I forgot to mention that I'm using FLEX3 and my class (DocumentFile) 
is already registered:

[RemoteClass(alias=com.DocumentFile)]
public class DocumentFile extends EventDispatcher
{
...
)


Claudio M. E. Bastos Iorio

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
slackware2142 [EMAIL PROTECTED] 
wrote:

 Hi! I'm trying to create a simple 'file database' in AIR.
 I know I can save and restore objects in AMF format using the 
methods 
 write/restoreObject.
 
 here is my code to save:
 
 var DocumentToSave:DocumentFile = new DocumentFile
(); //DocumentFile 
 is a custom class
 DocumentToSave.Name = 'some name';
 var file:File = File.applicationStorageDirectory.resolvePath
 ('myApp.data');
 var stream:FileStream = new FileStream();
 stream.open(file, FileMode.APPEND);
 stream.writeObject(DocumentToSave);
 
 That code is working and stores the DocumentFile objects and 
values. 
 But, what can I do to retrieve that objects (or any particular 
 object).
 
 I tried this to retrieve:
 
 var file:File = File.applicationStorageDirectory.resolvePath
 ('myApp.data');
 var stream:FileStream = new FileStream();
 stream.open(file, FileMode.READ);
 var arr:Array = new Array();
 while(stream.bytesAvailable){
 //what can I use here to create an array of DocumentFiles stored 
 in 'myApp.data'?
 arr = stream.readObject() as Array; //seems to work
 }
 
 trace('new arr length: ' + arr.length);//doesn't work, why??
 
 Any help?
 
 Thanks in advance!
 
 
 
 Claudio M. E. Bastos Iorio


 



RE: [flexcoders] Re: writeObject() and readObject()

2008-08-13 Thread Claudio M. E. Bastos Iorio
Could be. But forgive If I don't realize: how could I read the fileStream in
that way?

Right now I read it this way:

 

while(stream.bytesAvailable){

arr = stream.readObject() as DocumentFile;//bad cast


}

 

 

I also tried this:

 arr[0] = stream.readObject() as DocumentFile;//assigns the last
DocumentFile saved in the file..

 

 



Claudio M. E. Bastos Iorio

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 1:21 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

I would write out the number of DocumentFiles before writing them out, then
when reading, I'd read that number and know how many to expect

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Wednesday, August 13, 2008 9:13 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

Thanks for answer.

But what can I do if I have many DocumentFile objects written in the file?
Is there any way to retrieve all objects or filter by value name/id..? just
like a database o e4x..

 



Claudio M. E. Bastos Iorio

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 12:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

If you wrote an instance of DocumentFIle, you need to read back an instance
of DocumentFIle

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of slackware2142
Sent: Wednesday, August 13, 2008 5:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: writeObject() and readObject()

 

I forgot to mention that I'm using FLEX3 and my class (DocumentFile) 
is already registered:

[RemoteClass(alias=com.DocumentFile)]
public class DocumentFile extends EventDispatcher
{
...
)


Claudio M. E. Bastos Iorio

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
slackware2142 [EMAIL PROTECTED] 
wrote:

 Hi! I'm trying to create a simple 'file database' in AIR.
 I know I can save and restore objects in AMF format using the 
methods 
 write/restoreObject.
 
 here is my code to save:
 
 var DocumentToSave:DocumentFile = new DocumentFile
(); //DocumentFile 
 is a custom class
 DocumentToSave.Name = 'some name';
 var file:File = File.applicationStorageDirectory.resolvePath
 ('myApp.data');
 var stream:FileStream = new FileStream();
 stream.open(file, FileMode.APPEND);
 stream.writeObject(DocumentToSave);
 
 That code is working and stores the DocumentFile objects and 
values. 
 But, what can I do to retrieve that objects (or any particular 
 object).
 
 I tried this to retrieve:
 
 var file:File = File.applicationStorageDirectory.resolvePath
 ('myApp.data');
 var stream:FileStream = new FileStream();
 stream.open(file, FileMode.READ);
 var arr:Array = new Array();
 while(stream.bytesAvailable){
 //what can I use here to create an array of DocumentFiles stored 
 in 'myApp.data'?
 arr = stream.readObject() as Array; //seems to work
 }
 
 trace('new arr length: ' + arr.length);//doesn't work, why??
 
 Any help?
 
 Thanks in advance!
 
 
 
 Claudio M. E. Bastos Iorio


 



RE: [flexcoders] Re: writeObject() and readObject()

2008-08-14 Thread Claudio M. E. Bastos Iorio
Alex, many thanks for your responses. I'd like to use the array's 'push'
method, but I'm loading the objects from a file, while the filestream has
bytesavailable, like this: 

 

while(stream.bytesAvailable){

_whatshouldIuseHere = stream.readObject() as DocumentFile;//

var aDoc:DocumentFile = stream.readObject() as DocumentFile;//only stores
the last saved DocumentFile, no matter if I have other objects stored


}

The question should be: given a file, that stores some objects saved in AMF
format. What can I do to retrieve each object, filter? 



Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 4:46 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

I think I don't understand your problem.  Normally, if you know how many you
are going to write, you would do:

 

arr.push(someDocumentFile);

arr.push(someOtherDocumentFile);

var numFiles:int = arr.length;

writeObject(numFiles);

for (var i:int = 0; I  numFiles, i++)

writeObject(arr[i]);

 

And read it back like this:

 

Arr = [];

Var numFiles;

numFiles = readObject();

for (var i:int = 0; I  numFiles, i++)

arr.push(readObject());

 

 

If you don't know, how many, you might want to use a tagged file format

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Wednesday, August 13, 2008 10:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

Could be. But forgive If I don't realize: how could I read the fileStream in
that way?

Right now I read it this way:

 

while(stream.bytesAvailable){

arr = stream.readObject() as DocumentFile;//bad cast


}

 

 

I also tried this:

 arr[0] = stream.readObject() as DocumentFile;//assigns the last
DocumentFile saved in the file..

 

 



Claudio M. E. Bastos Iorio

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 1:21 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

I would write out the number of DocumentFiles before writing them out, then
when reading, I'd read that number and know how many to expect

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Wednesday, August 13, 2008 9:13 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

Thanks for answer.

But what can I do if I have many DocumentFile objects written in the file?
Is there any way to retrieve all objects or filter by value name/id..? just
like a database o e4x..

 



Claudio M. E. Bastos Iorio

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 12:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

If you wrote an instance of DocumentFIle, you need to read back an instance
of DocumentFIle

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of slackware2142
Sent: Wednesday, August 13, 2008 5:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: writeObject() and readObject()

 

I forgot to mention that I'm using FLEX3 and my class (DocumentFile) 
is already registered:

[RemoteClass(alias=com.DocumentFile)]
public class DocumentFile extends EventDispatcher
{
...
)


Claudio M. E. Bastos Iorio

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
slackware2142 [EMAIL PROTECTED] 
wrote:

 Hi! I'm trying to create a simple 'file database' in AIR.
 I know I can save and restore objects in AMF format using the 
methods 
 write/restoreObject.
 
 here is my code to save:
 
 var DocumentToSave:DocumentFile = new DocumentFile
(); //DocumentFile 
 is a custom class
 DocumentToSave.Name = 'some name';
 var file:File = File.applicationStorageDirectory.resolvePath
 ('myApp.data');
 var stream:FileStream = new FileStream();
 stream.open(file, FileMode.APPEND);
 stream.writeObject(DocumentToSave);
 
 That code is working and stores the DocumentFile objects and 
values. 
 But, what can I do to retrieve that objects (or any particular 
 object).
 
 I tried this to retrieve:
 
 var file:File = File.applicationStorageDirectory.resolvePath
 ('myApp.data');
 var stream:FileStream = new FileStream();
 stream.open(file, FileMode.READ);
 var arr:Array = new Array();
 while(stream.bytesAvailable){
 //what can I use here to create an array of DocumentFiles stored 
 in 'myApp.data'?
 arr = stream.readObject() as Array; //seems to work
 }
 
 trace('new arr length: ' + arr.length);//doesn't work, why

RE: [flexcoders] Re: writeObject() and readObject()

2008-08-14 Thread Claudio M. E. Bastos Iorio
I have control over the way the file is written (I'm creating and saving the
file). I'm actually adding objects using FileMode.APPEND. So, the resulting
file (simplified, and if you open it using notepad) is something like:

 

s!com.DocumentFileidid5

s!com.DocumentFileidid6

s!com.DocumentFileidid7

 

using (see my following code) FileStream.bytesAvailable I CAN read the data,
but (following my example), I can assign only the LAST saved object. I'd
like to retrieve all of them, and later assign it to an array, filter.. 

 

while(stream.bytesAvailable){

var aDoc:DocumentFile = stream.readObject() as DocumentFile;//only stores
the last saved DocumentFile, no matter if I have other objects stored


}

 



Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 7:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

You have to know what it is in the file or how to figure it out.  If you
don't have control over the way the file is written, it will be much harder.

 

I don't know why if there are bytes available and it is a sequence of
DocumentFiles that you can't just read them.  Make sure you know what is
really in the file.

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Thursday, August 14, 2008 2:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

Alex, many thanks for your responses. I'd like to use the array's 'push'
method, but I'm loading the objects from a file, while the filestream has
bytesavailable, like this: 

 

while(stream.bytesAvailable){

_whatshouldIuseHere = stream.readObject() as DocumentFile;//

var aDoc:DocumentFile = stream.readObject() as DocumentFile;//only stores
the last saved DocumentFile, no matter if I have other objects stored


}

The question should be: given a file, that stores some objects saved in AMF
format. What can I do to retrieve each object, filter? 



Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 4:46 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

I think I don't understand your problem.  Normally, if you know how many you
are going to write, you would do:

 

arr.push(someDocumentFile);

arr.push(someOtherDocumentFile);

var numFiles:int = arr.length;

writeObject(numFiles);

for (var i:int = 0; I  numFiles, i++)

writeObject(arr[i]);

 

And read it back like this:

 

Arr = [];

Var numFiles;

numFiles = readObject();

for (var i:int = 0; I  numFiles, i++)

arr.push(readObject());

 

 

If you don't know, how many, you might want to use a tagged file format

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Wednesday, August 13, 2008 10:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

Could be. But forgive If I don't realize: how could I read the fileStream in
that way?

Right now I read it this way:

 

while(stream.bytesAvailable){

arr = stream.readObject() as DocumentFile;//bad cast


}

 

 

I also tried this:

 arr[0] = stream.readObject() as DocumentFile;//assigns the last
DocumentFile saved in the file..

 

 



Claudio M. E. Bastos Iorio

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 1:21 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

I would write out the number of DocumentFiles before writing them out, then
when reading, I'd read that number and know how many to expect

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Wednesday, August 13, 2008 9:13 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

Thanks for answer.

But what can I do if I have many DocumentFile objects written in the file?
Is there any way to retrieve all objects or filter by value name/id..? just
like a database o e4x..

 



Claudio M. E. Bastos Iorio

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 12:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

If you wrote an instance of DocumentFIle, you need to read back an instance
of DocumentFIle

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED

RE: [flexcoders] Re: writeObject() and readObject() SOLVED

2008-08-15 Thread Claudio M. E. Bastos Iorio
My Fault, sorry!

I'd expected to retrieve an array, while the file stores 'DocumentFile'
classes (appended one after another), that's wrong. First create array, add
'DocumentFile' object, save and later I have my array. Thanks for all your
help! 

 

Have a nice day.

 



Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Friday, August 15, 2008 12:40 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

I would trace out stream.bytesAvailable to see how many bytes are available.
Maybe the stream isn't where you think it is in the file.  Similarly, track
the file size as you write it out and see if the numbers make sense.  Also
make sure your writeObject and readObject methods are correct.  Maybe
readObject is reading too many bytes.

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Thursday, August 14, 2008 4:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

I have control over the way the file is written (I'm creating and saving the
file). I'm actually adding objects using FileMode.APPEND. So, the resulting
file (simplified, and if you open it using notepad) is something like:

 

s!com.DocumentFileidid5

s!com.DocumentFileidid6

s!com.DocumentFileidid7

 

using (see my following code) FileStream.bytesAvailable I CAN read the data,
but (following my example), I can assign only the LAST saved object. I'd
like to retrieve all of them, and later assign it to an array, filter.. 

 

while(stream.bytesAvailable){

var aDoc:DocumentFile = stream.readObject() as DocumentFile;//only stores
the last saved DocumentFile, no matter if I have other objects stored


}

 



Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 7:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

You have to know what it is in the file or how to figure it out.  If you
don't have control over the way the file is written, it will be much harder.

 

I don't know why if there are bytes available and it is a sequence of
DocumentFiles that you can't just read them.  Make sure you know what is
really in the file.

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Thursday, August 14, 2008 2:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

Alex, many thanks for your responses. I'd like to use the array's 'push'
method, but I'm loading the objects from a file, while the filestream has
bytesavailable, like this: 

 

while(stream.bytesAvailable){

_whatshouldIuseHere = stream.readObject() as DocumentFile;//

var aDoc:DocumentFile = stream.readObject() as DocumentFile;//only stores
the last saved DocumentFile, no matter if I have other objects stored


}

The question should be: given a file, that stores some objects saved in AMF
format. What can I do to retrieve each object, filter? 



Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, August 14, 2008 4:46 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

I think I don't understand your problem.  Normally, if you know how many you
are going to write, you would do:

 

arr.push(someDocumentFile);

arr.push(someOtherDocumentFile);

var numFiles:int = arr.length;

writeObject(numFiles);

for (var i:int = 0; I  numFiles, i++)

writeObject(arr[i]);

 

And read it back like this:

 

Arr = [];

Var numFiles;

numFiles = readObject();

for (var i:int = 0; I  numFiles, i++)

arr.push(readObject());

 

 

If you don't know, how many, you might want to use a tagged file format

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Claudio M. E. Bastos Iorio
Sent: Wednesday, August 13, 2008 10:12 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: writeObject() and readObject()

 

Could be. But forgive If I don't realize: how could I read the fileStream in
that way?

Right now I read it this way:

 

while(stream.bytesAvailable){

arr = stream.readObject() as DocumentFile;//bad cast


}

 

 

I also tried this:

 arr[0] = stream.readObject() as DocumentFile;//assigns the last
DocumentFile saved in the file..

 

 



Claudio M. E. Bastos Iorio

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf

RE: [flexcoders] Flex and Vista 64

2008-08-18 Thread Claudio M. E. Bastos Iorio
I'm using it right now, since a couple of weeks. Seems to be working ok
until now.

 

_

Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mvbaffa
Sent: Monday, August 18, 2008 5:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex and Vista 64

 

Hi All,

Does Flex Builder 3.0 works with Vista x64

Thanks in advance

 



RE: [flexcoders] Flex and Vista 64

2008-08-18 Thread Claudio M. E. Bastos Iorio
Btw, keep in mind that for some kind of projects (working with IIS
directories for example) you will need to run Flex as administrator.

 

_

Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mvbaffa
Sent: Monday, August 18, 2008 5:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex and Vista 64

 

Hi All,

Does Flex Builder 3.0 works with Vista x64

Thanks in advance

 



RE: [flexcoders] Re: Flex and Vista 64

2008-08-18 Thread Claudio M. E. Bastos Iorio
Since flex is a 32 bit app, vista64 will only assign 2giga (or 3?) for flex,
no more.

I'm running flex with no params, no compatibility settings..

 

 

_

Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mvbaffa
Sent: Monday, August 18, 2008 5:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex and Vista 64

 

Thank you all.

Is there any kind of parameters, something like to run in Windows XP 
compatibility and anything else 

I have 8Gb of memory and I want to use it and only Vista 64 allow me 
to do this.

Thanks again

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
John McCormack [EMAIL PROTECTED] wrote:

 Flex Builder 3.0 works great on Vista Ultimate x64.
 John
 
 mvbaffa wrote:
  Hi All,
 
  Does Flex Builder 3.0 works with Vista x64
 
  Thanks in advance
 


 



RE: [flexcoders] Really weird behavior (filestream)

2008-08-18 Thread Claudio M. E. Bastos Iorio
Now I realize that creating files in debug mode using
applicationStorageDirectory creates a folder with the name of the mxml, NOT
the project name. SO, I have both C:\Users\MyUser\AppData\Roaming\Test1 and
C:\Users\MyUser\AppData\Roaming\Test2... 

_
Claudio M. E. Bastos Iorio
http://www.blumer.com.ar

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, August 18, 2008 5:49 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Really weird behavior (filestream)

If you're running the apps at the same time, maybe it's a file mode problem
where after the first app opens the file the second one is prevented from
opening it. You need to determine whether the open or the read is failing.
 
- Gordon
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of slackware2142
Sent: Monday, August 18, 2008 1:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Really weird behavior (filestream)
 
I have two applications in AIR project (1.1). One called, test1.mxml 
and other test2.mxml. EXACTLY same code in both, there's no other 
difference between them. Both apps try to read a local file using 
filestream, test1.mxml read the file and shows the content, test2.mxml 
doesn't. Is there any cache/settings that should I check in Flex?

_
Claudio M. E. Bastos Iorio
http://www.blumer.com.ar
 



[flexcoders] confusions about versions

2008-08-19 Thread Claudio M. E. Bastos Iorio
. The latest Flex builder version is not 3.0.194161, right?

. The update named 'Flexbuilder 3.0.1 Update' included in
autoupdater, also contains the Flex SDK 3.1.0.2710?

. I know I can get the latest versions for Flex SDK from here:
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3. But I
still should Update the Flex Builder, that's right?

. The Flex builder version here:
http://www.adobe.com/go/downloadflex3, is the latest? It contains the latest
update?

 

Thanks in advance if you guys can answer me this (or some) questions.  

 

 

_

Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 



RE: [flexcoders] Binding problem - not refreshing after Array.push

2008-08-22 Thread Claudio M. E. Bastos Iorio
I have the same issue, binding an array. Can you explain or point to any
link/resource/reference that explains why an arraycollection is needed for
binding instead array?

BTW, is there any other type not available to bind?

TIA

 

_

Claudio M. E. Bastos Iorio

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kenneth Sutherland
Sent: Friday, August 22, 2008 5:17 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Binding problem - not refreshing after Array.push

 

You need to be using an arraycollection for bindable data, not the array
class.

 

Kenneth.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of piotrchruscielewski
Sent: 22 August 2008 09:07
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Binding problem - not refreshing after Array.push

 

Hi

I have some problems with data binding.

I make an array 
[Bindable]
var ar:Array 
and some DataGrid with datarovider=ar

When I will pass this array to some other class - which will push new 
object to it - my DataGrid doesn`t refresh.

So I need to take care of it manualy.

Is this normal or have I forgot about something ?

Regards

Piotr Chruscielewski



Disclaimer 

  _  

This electronic message contains information which may be privileged and
confidential. The information is intended to be for the use of the
individual(s) or entity named above. If you are not the intended recipient,
be aware that any disclosure, copying, distribution or use of the contents
of this information is prohibited. If you have received this electronic
message in error, please notify us by telephone on 0131 476 6000 and delete
the material from your computer.
Registered in Scotland number: SC 172507.
Registered office address: Quay House 142 Commercial Street Edinburgh EH6
6LB.

This email message has been scanned for viruses by Mimecast.

  _  

 



[flexcoders] itemrender - tilelist - Image - AIR

2008-08-23 Thread Claudio M. E. Bastos Iorio
Hi, I'm trying to retrieve a directory (AIR) with only images in it, then
display a thumbnail for each file using a tilelist. But, I wonder why this
code doesn't work:

 

private function OnInit():void{

  var file:File = File.applicationStorageDirectory; 

  file.addEventListener(FileListEvent.DIRECTORY_LISTING, handleDIR);

  file.getDirectoryListingAsync();

}



[Bindable]

private var arrImage:Array = new Array();



private function handleDIR(event:FileListEvent):void{

  for each(var afile:File in event.files){

if(afile.extension == 'jpg'){

  var aImg:Image = new Image();

  aImg.source = afile.nativePath;

  arrImage.push(aImg);

} 

  }

}

 

And the Tilelist control:

mx:TileList id=displayimg dataProvider={arrImage}
itemRenderer=mx.controls.Image width=100% height=100%/mx:TileList

 

 

Any idea? Thanks in advance.

 

_

Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 



RE: [flexcoders] What is the best hardware configuration (on PC) for building Flex

2008-09-04 Thread Claudio M. E. Bastos Iorio
Sorry, (I can't find it) is there any 64bit version for java jre? (windows)
I'm running on 64bit, and my java version is 32 bit. SO, for me and you, no
matter how much memory we have, java development will be stuck in 4 gigas,
no more. Am I wrong?

_
Claudio M. E. Bastos Iorio


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Thursday, September 04, 2008 8:21 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] What is the best hardware configuration (on PC)
for building Flex

On Thursday 04 Sep 2008, piotrchruscielewski wrote:
 Do you have some observations, experience - how can we make the best
 environment for Flex programming ?
 I`m talking about a situation, when we need to start Oracle database,

Do you *really* need a local Oracle ? Could a mockup using something much 
lighter weight work ?

 LCDS server , and huge Flex Builder running tomcat, 

You mean tomcat loaded into Builder, for debugging Java ?

 Is it better to buy faster 2 core proc @3Ghz, or quad @2Ghz , does it
 make difference to invest into some super-fast memory, faster HDD or
 maybe two HDD in raid to gain speed ?

Only you know where your bottle neck is.

 How about the system - XP 32/64bit ? or Vista-shit ?

Well, as far as I can tell, Vista consumes your entire machines resources, 
just to run itself, so skip that.
You'll need a 64bit install to access large amounts of RAM from Java. I
dunno 
what the situation is with the Flash player on 64bit windows machines.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A
list of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may
be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links





[flexcoders] Re: Error #1063: Argument count mismatch using read/writeobject in AIR

2008-10-13 Thread Claudio M. E. Bastos Iorio

BTW, If you guys test my example doen't show any error. But is not
complete. Let me show you some code:

My Class:
package {
[Bindable]
[RemoteClass(alias='MyClass')]
public class MyClass {
   public function MyClass(mystring:String) {
   }
}
}
Save and open:

private function onInit():void{
 var arr:ArrayCollection = new ArrayCollection ();
 var obj1:MyClass = new MyClass('uno');
 var obj2:MyClass = new MyClass('dos');
 var obj3:MyClass = new MyClass('tres');

 arr.addItem(obj1);
 arr.addItem(obj2);
 arr.addItem(obj3);

 var file:File =
File.applicationStorageDirectory.resolvePath('test.data');
 var stream:FileStream = new FileStream();
 stream.open(file, FileMode.WRITE);
 stream.writeObject(arr);
 stream.close(); //Saves an AC

 var streamR:FileStream = new FileStream();
 streamR.open(file, FileMode.READ);
 var arrnew:ArrayCollection = new ArrayCollection();
 while(streamR.bytesAvailable){
arrnew = streamR.readObject() as ArrayCollection; //ERROR
trace(arrnew);
 }
 streamR.close();
}

The problem is using the [RemoteClass(alias='MyClass')] to register the
class. If I dont use the tag in the class declaration, my example works
ok. Any idea? Could be a bug?
Do I need to specify any other parameter in the RemoteClass tag?

TIA


_
Claudio M. E. Bastos Iorio
http://www.blumer.com.ar http://www.blumer.com.ar

--- In flexcoders@yahoogroups.com, Claudio M. E. Bastos Iorio
[EMAIL PROTECTED] wrote:


 Hi, I'm using AMF format storing and retrieving objects using write
and
 readobject() in AIR.

 But I have a problem. Let's say this is my class: (simple, no params
in
 constructor)

 ActionScript Code:
 public class MyClass {

 public function MyClass():void {

 }

 }

 Then, I create an ArrayCollection (and save the arraycollection object
 to the file) with instances of this class. This is working ok, I can
 save, open and retrieve, iterate objects in the stored arraycollection
 just fine.

 BUT, if my class have any parameter in the constructor, my code fails
 retrieving the arraycollection

 Something like this:

 ActionScript Code:
 var file:File = File.applicationDirectory.resolvePath('Data.data');
 var stream:FileStream = new FileStream();
 stream.open(file, FileMode.READ);
 var myAC:ArrayCollection = new ArrayCollection();
 while(stream.bytesAvailable){
 myAC = stream.readObject() as ArrayCollection;//ERROR Error #1063:
 Argument count mismatch
 }

 Any idea ..?

 TIA





[flexcoders] Error #1063: Argument count mismatch using read/writeobject in AIR

2008-10-13 Thread Claudio M. E. Bastos Iorio

Hi, I'm using AMF format storing and retrieving objects using write and
readobject() in AIR.

But I have a problem. Let's say this is my class: (simple, no params in
constructor)

ActionScript Code:
public class MyClass {

   public function MyClass():void {

   }

}

Then, I create an ArrayCollection (and save the arraycollection object
to the file) with instances of this class. This is working ok, I can
save, open and retrieve, iterate objects in the stored arraycollection
just fine.

BUT, if my class have any parameter in the constructor, my code fails
retrieving the arraycollection

Something like this:

ActionScript Code:
var file:File = File.applicationDirectory.resolvePath('Data.data');
var stream:FileStream = new FileStream();
stream.open(file, FileMode.READ);
var myAC:ArrayCollection = new ArrayCollection();
while(stream.bytesAvailable){
myAC = stream.readObject() as ArrayCollection;//ERROR Error #1063:
Argument count mismatch
}

Any idea ..?

TIA




RE: [flexcoders] Identifying AIR application instance

2008-11-27 Thread Claudio M. E. Bastos Iorio
Don't know about any installation ID on AIR. But, maybe you could assign a
unique value on server side during install (a GUID exposed in a
webservice?), store the value in a encrypted database locally, and use that
value every time you run the app..

 

___

Claudio M. E. Bastos Iorio

 http://www.blumer.com.ar/ http://www.blumer.com.ar

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ilya_persky
Sent: Thursday, November 27, 2008 6:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Identifying AIR application instance

 

Hi!

If anybody knows how to handle such kind of issue?..

I'm developing an AIR application, which will be installed from 
website. By some buisness reasons (related to licensing model), the 
customer wants to keep track on all copies of app installed. That is 
every time after launch the app should connect to my server and tell 
it which particular copy of app is being launched on this particular 
machine. The question is: is there a way to get some unique 
information from within AIR application that can tell the machine it 
is running on? There is no access to registry, but may be there is 
some kind of installation ID provided by AIR runtime itself?.. The bad 
thing, that I can't use any additional native code, only .air package, 
since, as I've already written, the application will be installed from 
site (without third-party installer)

Thank you, Ilya

 



[flexcoders] Ribbon in FLEX

2009-03-12 Thread Claudio M. E. Bastos Iorio
Hi,

Is there any component (free or paid) similar to the office 2007 ribbon
control?

 

TIA

 

__

Claudio M. E. Bastos Iorio

 



RE: [flexcoders] Ribbon in FLEX

2009-03-13 Thread Claudio M. E. Bastos Iorio
Thanks for your answer and links.

The silverlight version looks really great. Check this online demo
(silverlight required):
http://silverlight.services.live.com/invoke/60108/SilverlightRibbon/iframe.h
tml

 

I'm not trying to copy exactly the ribbon. Just the concept. 

I know I could do it using tabs and panels, but an existing FLEX version
could save me a lot of time.

If I don't find any FLEX version, the silverlight version will help me a
lot, thanks. 

I wish I could use silverlight + .NET, but this is an AIR project L

 

 

__

Claudio M. E. Bastos Iorio

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Sam Lai
Sent: Friday, March 13, 2009 3:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Ribbon in FLEX

 

http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL1007963
41033#2

Kind of like the toolbar for picking controls in Adobe Dreamweaver
(unless they've changed it in recent versions).

Unfortunately I haven't heard of any Flash implementations, only
Silverlight implementations. You could implement it yourself using a
TabNavigator and Panel controls inside each tab for groups, and
buttons inside them. It's the styling that will be a pain - the
official specs are available from Microsoft for free though, with some
conditions attached
(http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also
use the images and even code if you know XAML from the Silverlight
version - http://silverlightribbon.codeplex.com/

Personally I'd be making my own interpretation of the ribbon control
instead of following the Microsoft version to the dot, especially
seeing as they have changed a few bits in Windows 7 which will
probably filter down to Office in Office 2010 (e.g. the confusion with
the File menu - the Orb in the top corner is now gone).

2009/3/13 Tracy Spratt tspr...@lariatinc.com
mailto:tspratt%40lariatinc.com :
 I am not familiar with that control, can you describe it?



 Tracy Spratt,

 Lariat Services, development services available

 

 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
On
 Behalf Of Claudio M. E. Bastos Iorio
 Sent: Friday, March 13, 2009 2:13 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Ribbon in FLEX



 Hi,

 Is there any component (free or paid) similar to the office 2007 ribbon
 control?



 TIA



 __

 Claudio M. E. Bastos Iorio



 





[flexcoders] Problem reading XML returned from Webservice

2009-06-01 Thread Claudio M. E. Bastos Iorio
Hi, hope you guys can help me.

I'm using Flex 3.3 + .NET Web Services.

I get an XML like this one from my web service (simplified):

ListFundsResponse xmlns='http://mydomainname.com/' 
xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' 
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
  ListFundsResult
Fund
  id1/id
  NameSome Name here/Name
  DescriptionSome description here/Description
/Fund
  /ListFundsResult
/ListFundsResponse

It's supposed that something like this should trace the Name value, right?:

//code in result function for webservice component
var lastXML:XML = XML(event.result)
trace(Name in XML:  + lastXML..Fund[0].Name); //gives me an Error: A term is 
undefined and has no properties.

But, if I manually add the XML in the code, and removes the whole xmlns schema 
my code works... What am I doing wrong here?

TIA

_
Claudio M. E. Bastos Iorio
http://www.blumersolutions.com




[flexcoders] Re: Problem reading XML returned from Webservice

2009-06-02 Thread Claudio M. E. Bastos Iorio
Thanks for your response.
It seems like my problem is that my xml code is using the 
xmlns='http://mydomainname.com/' every time and this is included in the xml 
definition.

I tried:
var ns:Namespace = new Namespace(bs);
myXML.setNamespace(ns);
trace(myXML.namespace()); //returns bs, ok. But:
//I receive an error on:
trace(Name:   + myXML..Fund[0].Name); //A term is undefined and has no 
properties

Also tried,
default xml namespace = new Namespace(http://anotherdomain.com/;);
//and also tried default xml namespace = new Namespace(somethingelsehere);
trace(myXML.namespace()); //always return http://mydomain.com/, why?
//I also receive an error on:
trace(Name:   + myXML..Fund[0].Name); //A term is undefined and has no 
properties

Is there any way to copy to other xml/lose the namespace that is giving me 
problems?? How?

Thanks.

_
Claudio M. E. Bastos Iorio
http://www.blumersolutions.com




Re: [flexcoders] Adding up Arraycollections to Datagrid!

2011-08-25 Thread Claudio M. E. Bastos Iorio
Hi, you need a hashtable or a dictionary
On Aug 25, 2011 7:47 PM, Venkat M venkat_...@yahoo.com wrote:
 Hi Group,

 I have a basic question on arraycollections. Please assist.

 I have an array collection A populated with values {1,2,3,4,5,6,7,8,9,10}
 Also I have an arraycollection B populated with values
{one,two,three,four,five,six,seven,eight,nine,ten}

 Given this data, How do I present this in a datagrid? Can I map at a
column level to an array collection?
 (Or)
 Can we make an arraycollection C, that has the values of arraycollection A
and arraycollection B paired up and then just bind to datagrid. If so,
please help me how to fabricate arraycollection C.
(Or)
 Any other ideas, please comment.

 Thanks in advance.

 Best Regards,
 Venkat.