[flexcoders] Updating Help!!!

2012-04-16 Thread Daniel
Hi everyone I'm new to flex and I've been trying to creat a program but i'm 
stuck on something simple and i'm not sure what im doing wrong please help

I'm conecting flex to php using the zen service, and i can load the data on the 
form with no problem, following the adobe tutorial i'm trying to update or save 
the changes made to the data, but im getting this error "1067: Implicit 
coercion of a value of type valueObjects:DatosEmpresa to an unrelated type 
valueObjects:Empresa."

This is the complete code:



http://ns.adobe.com/mxml/2009";
  xmlns:s="library://ns.adobe.com/flex/spark"
  xmlns:mx="library://ns.adobe.com/flex/mx"
  xmlns:ns="http://code.google.com/p/flexlib/";
  xmlns:empresaservice="services.empresaservice.*"
  xmlns:valueObjects="valueObjects.*"
  creationComplete="init()"
  width="80%" height="80%" layout="absolute" 
title="Empresa">






































Any ideas!!! Help



Re: [flexcoders] Anybody has worked with flex-plugin and MAVEN ..???

2010-05-20 Thread Daniel Thompson
On Tue, May 18, 2010 at 6:21 AM, Nini7016 Nini7016 <
nahloulaha...@hotmail.com> wrote:

>
> I am working with Maven in order to automatise Unit tests, I have use the
> plugin *flex-plugin* :
>
>
I recommend strongly that you check out the flexmojos project instead:

http://flexmojos.sonatype.org


[flexcoders] AdvancedDataGrid 2 Pixel Gap Between Rows

2010-02-22 Thread Daniel Swid
I'm really frustrated trying to eliminate the 2 pixel gap between rows. 

I've explored with FlexSpy, have subclassed the ADG, but can't figure out where 
its coming from. 

Does anyone have any ideas or pointers?



Thanks.



Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error

2009-11-30 Thread Daniel Freiman
Ok.  To recap, I have a constructor that contains the line:

data.path[...@d[0];

Sometimes it works, sometimes it doesn't.  This happens predictably, but I
can't figure out what the difference between the cases are.  I tried the XML
below (which both look the same to me except for the "id" attribute.  The
first one works, the second one errors.  The only difference I can think of
is that the first is created using remote object serialization, while the
second one is currently hard coded in an actionscript class (for debug
purposes).  Maybe the namespace isn't being correctly set in the internals
of the xml.

Now that this has been narrowed down, has anyone seen this bug before?



http://www.w3.org/2000/svg"; xmlns:pdf="
http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:improv="http://ns.colorquick.com/improv/mars";>
  
  


http://www.w3.org/2000/svg"; xmlns:pdf="
http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:improv="http://ns.colorquick.com/improv/mars";>
  
  


On Fri, Nov 20, 2009 at 12:31 AM, Tracy Spratt  wrote:

>
>
>  If you have a case that works and one that doesn’t, start changing the
> one that works into the one that does not, one piece at a time, until it
> breaks.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Thursday, November 19, 2009 10:57 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML
> e4x error
>
>
>
>
>
> Ok, that fixes the problem, but it doesn't explain why the problem was
> happening in the first place.  Or it doesn't explain why the first three
> examples ever worked.  Nowhere in my application did I ever define a default
> namespace.  In all 4 cases when I trace "data.namespace().uri" I get "
> http://www.w3.org/2000/svg"; regardless of whether I do the trace before or
> after setting the default namespace.
>
> Is this a bug?  I'm running the exact same line of code each time.  The
> only thing I can think of is that the source of the XML is different.  The
> first 3 are created through deserialization from the server.  The 4th is
> just the normal XML constructor. I do see why this would matter.
>
> - Daniel Freiman
>
> On Thu, Nov 19, 2009 at 12:55 AM, Tracy Spratt  wrote:
>
>
>
> This declaration, “xmlns="http://www.w3.org/2000/svg"” sets the default
> namespace that is appended to every node name that is not qualified by some
> other namespace.  Unless you declare it in AS, you will not be able to
> access nodes like “data”.
>
>
>
> Try this declaration, at instance (global) level scope:
>
> default xml namespace = "http://www.w3.org/2000/svg";;
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Thursday, November 19, 2009 12:42 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error
>
>
>
>
>
> I think I tried that already but I'll double check in the morning.
>
> Based on the XML and the code, isn't the default namespace already defined
> and shouldn't e4x be already using it?
>
> - Daniel Freiman
>
> On Wed, Nov 18, 2009 at 11:46 PM, Tracy Spratt  wrote:
>
>
>
> What happens if you declare the default namespace, then do:
>
>
>
> data.pa...@d
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Wednesday, November 18, 2009 8:37 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error
>
>
>
>
>
> I've stated the symptom.  As you can see in the given XML, there is a child
> named path. So I should be getting value for that code instead of a null
> error.  I don't know why it's not picking it up.  My best guess is that it
> is because of namespaces, but I can't see a differences between the XML
> objects that this code works for, and the one it doesn't work for.  The
> "[0]" should be optional (at least relative to getting a null value or
> not).  I'm not sure how else to state my goal other than

Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error

2009-11-19 Thread Daniel Freiman
Ok, that fixes the problem, but it doesn't explain why the problem was
happening in the first place.  Or it doesn't explain why the first three
examples ever worked.  Nowhere in my application did I ever define a default
namespace.  In all 4 cases when I trace "data.namespace().uri" I get "
http://www.w3.org/2000/svg"; regardless of whether I do the trace before or
after setting the default namespace.

Is this a bug?  I'm running the exact same line of code each time.  The only
thing I can think of is that the source of the XML is different.  The first
3 are created through deserialization from the server.  The 4th is just the
normal XML constructor. I do see why this would matter.

- Daniel Freiman

On Thu, Nov 19, 2009 at 12:55 AM, Tracy Spratt  wrote:

>
>
>  This declaration, “xmlns="http://www.w3.org/2000/svg"” sets the default
> namespace that is appended to every node name that is not qualified by some
> other namespace.  Unless you declare it in AS, you will not be able to
> access nodes like “data”.
>
>
>
> Try this declaration, at instance (global) level scope:
>
> default xml namespace = "http://www.w3.org/2000/svg";;
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   ------
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Thursday, November 19, 2009 12:42 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error
>
>
>
>
>
> I think I tried that already but I'll double check in the morning.
>
> Based on the XML and the code, isn't the default namespace already defined
> and shouldn't e4x be already using it?
>
> - Daniel Freiman
>
> On Wed, Nov 18, 2009 at 11:46 PM, Tracy Spratt  wrote:
>
>
>
> What happens if you declare the default namespace, then do:
>
>
>
> data.pa...@d
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Wednesday, November 18, 2009 8:37 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error
>
>
>
>
>
> I've stated the symptom.  As you can see in the given XML, there is a child
> named path. So I should be getting value for that code instead of a null
> error.  I don't know why it's not picking it up.  My best guess is that it
> is because of namespaces, but I can't see a differences between the XML
> objects that this code works for, and the one it doesn't work for.  The
> "[0]" should be optional (at least relative to getting a null value or
> not).  I'm not sure how else to state my goal other than how the expression
> is already written.  I want the "d" attribute of the "path" child and I want
> it to work for all of the cases I've supplied or find the reason why it's
> not working so I can fix the last case.  Right now it is only working for 3
> out of 4.
>
> - Daniel Freiman
>
> On Wed, Nov 18, 2009 at 4:09 PM, Tracy Spratt  wrote:
>
>
>
> Didn’t you state the problem yourself?  With an expression:
>
> data.path[...@d[0]
>
> If there is no path[0], then you would expect the error.
>
>
>
> Why are you using the [0] syntax?  Is it because of the namespaces?  What
> is the actual goal of your expression?
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Wednesday, November 18, 2009 3:53 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [flexcoders] XML e4x error
>
>
>
>
>
> I've tried that previously.  There wasn't any difference, which should be
> expected given the request path.
>
> - Daniel Freiman
>
> On Wed, Nov 18, 2009 at 3:46 PM, InvertedSpear 
> wrote:
>
>
>
>
> The only thing I can see in the one that is giving you a problem is
> different
> from the others is there is a  tag. The one above it has a
>  pair. This could be being read as a null text instead of a 0
> length string. Try changing that and let us know.
>
> ~Mike
>
>
>
> Daniel Freiman wrote:
> >
> > I'm running the following line of code on XML objects and getting
> > inconsistent results:
> >
> > data.path[...@d[0]
> >
> > In 3 cases, I get a va

Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error

2009-11-18 Thread Daniel Freiman
I think I tried that already but I'll double check in the morning.

Based on the XML and the code, isn't the default namespace already defined
and shouldn't e4x be already using it?

- Daniel Freiman

On Wed, Nov 18, 2009 at 11:46 PM, Tracy Spratt  wrote:

>
>
>  What happens if you declare the default namespace, then do:
>
>
>
> data.pa...@d
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Wednesday, November 18, 2009 8:37 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error
>
>
>
>
>
> I've stated the symptom.  As you can see in the given XML, there is a child
> named path. So I should be getting value for that code instead of a null
> error.  I don't know why it's not picking it up.  My best guess is that it
> is because of namespaces, but I can't see a differences between the XML
> objects that this code works for, and the one it doesn't work for.  The
> "[0]" should be optional (at least relative to getting a null value or
> not).  I'm not sure how else to state my goal other than how the expression
> is already written.  I want the "d" attribute of the "path" child and I want
> it to work for all of the cases I've supplied or find the reason why it's
> not working so I can fix the last case.  Right now it is only working for 3
> out of 4.
>
> - Daniel Freiman
>
> On Wed, Nov 18, 2009 at 4:09 PM, Tracy Spratt  wrote:
>
>
>
> Didn’t you state the problem yourself?  With an expression:
>
> data.path[...@d[0]
>
> If there is no path[0], then you would expect the error.
>
>
>
> Why are you using the [0] syntax?  Is it because of the namespaces?  What
> is the actual goal of your expression?
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Wednesday, November 18, 2009 3:53 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [flexcoders] XML e4x error
>
>
>
>
>
> I've tried that previously.  There wasn't any difference, which should be
> expected given the request path.
>
> - Daniel Freiman
>
> On Wed, Nov 18, 2009 at 3:46 PM, InvertedSpear 
> wrote:
>
>
>
>
> The only thing I can see in the one that is giving you a problem is
> different
> from the others is there is a  tag. The one above it has a
>  pair. This could be being read as a null text instead of a 0
> length string. Try changing that and let us know.
>
> ~Mike
>
>
>
> Daniel Freiman wrote:
> >
> > I'm running the following line of code on XML objects and getting
> > inconsistent results:
> >
> > data.path[...@d[0]
> >
> > In 3 cases, I get a valid answer. In the last case, data.path[0] == null
> > and thus errors.
> > Can anyone see any difference?
> > The valid XML are:
> >
> >  > id="Object07B" xmlns="http://www.w3.org/2000/svg"; xmlns:pdf="
> > http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
> > xmlns:improv="http://ns.colorquick.com/improv/mars";>
> >  > y="150" improv:rotation="-90"/>
> > 
> > 
> >  > id="ObjectD6B" xmlns="http://www.w3.org/2000/svg"; xmlns:pdf="
> > http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
> > xmlns:improv="http://ns.colorquick.com/improv/mars";>
> >  > y="75" improv:rotation="0"/>
> > 
> > 
> >  > id="Object817"
> > xmlns="http://www.w3.org/2000/svg";
> > xmlns:pdf="http://ns.adobe.com/pdf/2006";
> > xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:improv="
> > http://ns.colorquick.com/improv/mars";>
> >  > y="420.763671875" improv:rotation="0" width="289.9453125"
> > height="11.26171875">Ipsor Lopsumething and other things that will test
> > stuff.
> >  > improv:classname="border"/>
> > 
> >
> > The XML that throws the error is:
> >
> >  > xmlns="http://www.w3.org/2000/svg";
> > xmlns:pdf="http://ns.adobe.com/pdf/2006";
> > xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:improv="
> > http://ns.colorquick.com/improv/mars";>
> >  > y="185.2" improv:rotation="0" width="97.65" height="92"/>
> > 
> > 
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/XML-e4x-error-tp26415121p26415423.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>
>
>
>   
>


Re: [SPAM] Re: [flexcoders] XML e4x error

2009-11-18 Thread Daniel Freiman
I've stated the symptom.  As you can see in the given XML, there is a child
named path. So I should be getting value for that code instead of a null
error.  I don't know why it's not picking it up.  My best guess is that it
is because of namespaces, but I can't see a differences between the XML
objects that this code works for, and the one it doesn't work for.  The
"[0]" should be optional (at least relative to getting a null value or
not).  I'm not sure how else to state my goal other than how the expression
is already written.  I want the "d" attribute of the "path" child and I want
it to work for all of the cases I've supplied or find the reason why it's
not working so I can fix the last case.  Right now it is only working for 3
out of 4.

- Daniel Freiman

On Wed, Nov 18, 2009 at 4:09 PM, Tracy Spratt  wrote:

>
>
>  Didn’t you state the problem yourself?  With an expression:
>
> data.path[...@d[0]
>
> If there is no path[0], then you would expect the error.
>
>
>
> Why are you using the [0] syntax?  Is it because of the namespaces?  What
> is the actual goal of your expression?
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Wednesday, November 18, 2009 3:53 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [flexcoders] XML e4x error
>
>
>
>
>
> I've tried that previously.  There wasn't any difference, which should be
> expected given the request path.
>
> - Daniel Freiman
>
> On Wed, Nov 18, 2009 at 3:46 PM, InvertedSpear 
> wrote:
>
>
>
>
> The only thing I can see in the one that is giving you a problem is
> different
> from the others is there is a  tag. The one above it has a
>  pair. This could be being read as a null text instead of a 0
> length string. Try changing that and let us know.
>
> ~Mike
>
>
>
> Daniel Freiman wrote:
> >
> > I'm running the following line of code on XML objects and getting
> > inconsistent results:
> >
> > data.path[...@d[0]
> >
> > In 3 cases, I get a valid answer. In the last case, data.path[0] == null
> > and thus errors.
> > Can anyone see any difference?
> > The valid XML are:
> >
> >  > id="Object07B" xmlns="http://www.w3.org/2000/svg"; xmlns:pdf="
> > http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
> > xmlns:improv="http://ns.colorquick.com/improv/mars";>
> >  > y="150" improv:rotation="-90"/>
> > 
> > 
> >  > id="ObjectD6B" xmlns="http://www.w3.org/2000/svg"; xmlns:pdf="
> > http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
> > xmlns:improv="http://ns.colorquick.com/improv/mars";>
> >  > y="75" improv:rotation="0"/>
> > 
> > 
> >  > id="Object817"
> > xmlns="http://www.w3.org/2000/svg";
> > xmlns:pdf="http://ns.adobe.com/pdf/2006";
> > xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:improv="
> > http://ns.colorquick.com/improv/mars";>
> >  > y="420.763671875" improv:rotation="0" width="289.9453125"
> > height="11.26171875">Ipsor Lopsumething and other things that will test
> > stuff.
> >  > improv:classname="border"/>
> > 
> >
> > The XML that throws the error is:
> >
> >  > xmlns="http://www.w3.org/2000/svg";
> > xmlns:pdf="http://ns.adobe.com/pdf/2006";
> > xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:improv="
> > http://ns.colorquick.com/improv/mars";>
> >  > y="185.2" improv:rotation="0" width="97.65" height="92"/>
> > 
> > 
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/XML-e4x-error-tp26415121p26415423.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>
>   
>


Re: [flexcoders] XML e4x error

2009-11-18 Thread Daniel Freiman
I've tried that previously.  There wasn't any difference, which should be
expected given the request path.

- Daniel Freiman

On Wed, Nov 18, 2009 at 3:46 PM, InvertedSpear wrote:

>
>
>
> The only thing I can see in the one that is giving you a problem is
> different
> from the others is there is a  tag. The one above it has a
>  pair. This could be being read as a null text instead of a 0
> length string. Try changing that and let us know.
>
> ~Mike
>
>
> Daniel Freiman wrote:
> >
> > I'm running the following line of code on XML objects and getting
> > inconsistent results:
> >
> > data.path[...@d[0]
> >
> > In 3 cases, I get a valid answer. In the last case, data.path[0] == null
> > and thus errors.
> > Can anyone see any difference?
> > The valid XML are:
> >
> >  > id="Object07B" xmlns="http://www.w3.org/2000/svg"; xmlns:pdf="
> > http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
> > xmlns:improv="http://ns.colorquick.com/improv/mars";>
> >  > y="150" improv:rotation="-90"/>
> > 
> > 
> >  > id="ObjectD6B" xmlns="http://www.w3.org/2000/svg"; xmlns:pdf="
> > http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
> > xmlns:improv="http://ns.colorquick.com/improv/mars";>
> >  > y="75" improv:rotation="0"/>
> > 
> > 
> >  > id="Object817"
> > xmlns="http://www.w3.org/2000/svg";
> > xmlns:pdf="http://ns.adobe.com/pdf/2006";
> > xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:improv="
> > http://ns.colorquick.com/improv/mars";>
> >  > y="420.763671875" improv:rotation="0" width="289.9453125"
> > height="11.26171875">Ipsor Lopsumething and other things that will test
> > stuff.
> >  > improv:classname="border"/>
> > 
> >
> > The XML that throws the error is:
> >
> >  > xmlns="http://www.w3.org/2000/svg";
> > xmlns:pdf="http://ns.adobe.com/pdf/2006";
> > xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:improv="
> > http://ns.colorquick.com/improv/mars";>
> >  > y="185.2" improv:rotation="0" width="97.65" height="92"/>
> > 
> > 
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/XML-e4x-error-tp26415121p26415423.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>


[flexcoders] XML e4x error

2009-11-18 Thread Daniel Freiman
I'm running the following line of code on XML objects and getting
inconsistent results:

data.path[...@d[0]

In 3 cases, I get a valid answer.  In the last case, data.path[0] == null
and thus errors.
Can anyone see any difference?
The valid XML are:

http://www.w3.org/2000/svg"; xmlns:pdf="
http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:improv="http://ns.colorquick.com/improv/mars";>
  
  

http://www.w3.org/2000/svg"; xmlns:pdf="
http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:improv="http://ns.colorquick.com/improv/mars";>
  
  

http://www.w3.org/2000/svg"; xmlns:pdf="http://ns.adobe.com/pdf/2006";
xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:improv="
http://ns.colorquick.com/improv/mars";>
  Ipsor Lopsumething and other things that will test
stuff.
  


The XML that throws the error is:

http://www.w3.org/2000/svg"; xmlns:pdf="http://ns.adobe.com/pdf/2006";
xmlns:xlink="http://www.w3.org/1999/xlink"; xmlns:improv="
http://ns.colorquick.com/improv/mars";>
  
  



Re: [flexcoders] LCDS + MD5 + PostGreSQL and JRun4

2009-10-15 Thread Daniel Nelson
Holy Crap, someone other than myself is using JRun and LCDS.  Awesome!  I
can't help you with your problem as I have never used PostgreSQL, but could
I get your contact info as I have never ran across anyone using JRun outside
of ColdFusion development.

Feel free to contact me at nelso...@gmail.com anytime.

-Dan

On Tue, Oct 13, 2009 at 9:33 AM, Flex Boy  wrote:

>
>
> Hi FlexCoders, This is probably not your thing to help me with, but just
> maybe someone have it in top of their head and can point me in the right
> direction on this.
>
> Issue:
>
> JRun 4 update 7 standalone server.
> PostgreSQL 8.4 default install, with md5 crypt on password.
> LCDS 2.6.1 with custom SQL assembler.
>
> The problem, I'm using the JrunLoginCommand connected to the native
> PostgreSQL user role and role group.
> This password is crypt with md5 , when I attempt to connect with LCSD
> Channels::Login over RTMP it don't work using plain text.
> Then I figured out that I have to send the password in md5 format, did copy
> and paste the md5 string from PostgreSQL and pasted it into the password
> field in Flex app and it connected. I have looked at some MD5 encoders for
> AS3 but maybe I have to tweak it to be compatible with PostgreSQL anyone
> have a Idea?
>
> Here is the hash form password in PostgreSQL : secretpassword =
> md5b6b7afff2e118778d175c88f52098a3f
>
> http://gsolofp.blogspot.com/2006/01/actionscript-3-md5-and-sha1.html
> http://code.google.com/p/as3corelib/
>
> 
>


[flexcoders] Is the Text Layout Framework Forum down?

2009-08-10 Thread Daniel Freiman
The Text Layout Forum seems to have disappeared.  It's not on the list of
labs forums.  The links from the labs page leads to a file not found page.
Did this get moved or merged into the Flex forum?

- Daniel Freiman


Re: [flexcoders] LCDS data service error in IE (but not in Firefox)

2009-08-07 Thread Daniel Nelson
Are you making your calls over SSL? Make sure you
have false in your channels in
your services-config.xml file.

On Fri, Jul 17, 2009 at 8:21 PM, postwick  wrote:

>
>
> I have a destination set up and in Firefox and IE all creates, updates, and
> fills work fine. Delete works fine in Firefox but when I do a delete in
> Internet Explorer I get the following error:
>
> [FaultEvent fault=[RPC Fault faultString="Item with id
> '449F8202-2B8F-C91B-D0B2-8B70B3D940D3' not managed by this service. Error on
> destination 'DataElementDestination'." faultCode="Local.Call.Failed"
> faultDetail="null"] messageId="E4CD7ED3-4E49-15B2-542A-8B70B3E9BB71"
> type="fault" bubbles=false cancelable=true eventPhase=2]
>
> I was only able to find one thread online that mentions this error.
>
> Can anybody give any insight why it would work in Firefox but not IE? This
> tells me there is something wrong with Flash for IE, because I know the
> server-side elements are correct (since it works with Firefox).
>
> Thanks,
> Paul
>
>  
>


Re: [flexcoders] Moving flex app (coldfusion) to a production server

2009-08-06 Thread Daniel Nelson
I would suggest that you don't compile against the services-config.xml file
in your flex project.  Instead you should be dynamically setting up your
remote calls.  Makes moving from development to production a lot easier

On Thu, Aug 6, 2009 at 5:28 AM, Tom Chiverton
wrote:

>
>
> On Wednesday 05 Aug 2009, Johannes Nel wrote:
> > I have noticed a lot of developers tend to put hardcoded paths in there
> to
> > be able to debug since they use flex projects and not server projects.
>
> You mean their developing a web based Flex application, but are not
> developing
> it useing a local web server ?
> Oh my...
>
> --
> Helping to enormously morph information as part of the IT team of the
> year, '09 and '08
>
> 
>
> 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 together
> with a list of those non members who are referred to as partners. We use the
> word ?partner? to refer to a member of the LLP, or an employee or consultant
> with equivalent standing and qualifications. 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
> .
>
> 
>


Re: [flexcoders] Re: UITextField alignment question

2009-07-01 Thread Daniel Freiman
Yeah (subject to scaling/transform/etc), see
http://livedocs.adobe.com/flex/3/langref/flash/text/TextLineMetrics.html

On Wed, Jul 1, 2009 at 11:11 AM, ACasualObserver  wrote:

>
>
> Thanks for the quick reply.
>
> I am not counting for the 2 pixels. Are the pixels always there even if no
> border is drawn? Is it always 2 pixels?
>
>
> --- In flexcoders@yahoogroups.com , Daniel
> Freiman  wrote:
> >
> > Are you accounting for the 2 pixel border of the textfield?
> >
> > - Daniel Freiman
> >
> > On Wed, Jul 1, 2009 at 10:10 AM, ACasualObserver  wrote:
> >
> > >
> > >
> > > I need to place a text in a ActionScript 3 project. The supplied X and
> Y is
> > > left and baseline coordinates. I use UITextField and subtracted its
> > > baselinePosition from Y. This places the text very close to where it
> should
> > > be vertically but not the exact location (text displayed a little
> higher).
> > > Horizontal position is not accurate neither and text is positioned a
> little
> > > to the right of supplied X. I could not find any property in
> UITextField or
> > > TextFormat to correct this.
> > >
> > > Any idea?
> > >
> > > Thanks
> > >
> > >
> > >
> >
>
>  
>


Re: [flexcoders] UITextField alignment question

2009-07-01 Thread Daniel Freiman
Are you accounting for the 2 pixel border of the textfield?

- Daniel Freiman

On Wed, Jul 1, 2009 at 10:10 AM, ACasualObserver  wrote:

>
>
> I need to place a text in a ActionScript 3 project. The supplied X and Y is
> left and baseline coordinates. I use UITextField and subtracted its
> baselinePosition from Y. This places the text very close to where it should
> be vertically but not the exact location (text displayed a little higher).
> Horizontal position is not accurate neither and text is positioned a little
> to the right of supplied X. I could not find any property in UITextField or
> TextFormat to correct this.
>
> Any idea?
>
> Thanks
>
>  
>


[flexcoders] Shift-drag on HSlider in FB4

2009-06-17 Thread Daniel McQuillen

Does anybody have any tips for capturing a slider drag with SHIFT keyboard 
event?

MouseEvents have the handy shiftkey property for capturing events with SHIFT 
key depressed. However,  doesn't seem to launch any helpful mouse 
events (e.g. mouseUp) and the events it does launch (e.g. change) don't have 
the event.shiftkey property.

I could capture the shift key state in my own boolean flag somewhere by using 
keyUp and keyDown handlers on the slider or parent containers, but then the 
issue of component focus gets in the way and it doesn't behave smoothly.

There's probably a really easy answer to this that -- like so many before -- 
eludes my slow thinking. Thanks for any suggestions!

- Daniel McQ



Re: [flexcoders]Importing a project into Flash Builder 4 from Flex Builder 3

2009-06-02 Thread Daniel Freiman
From: http://labs.adobe.com/technologies/flashbuilder4/

"You can install a separate copy of Flash Builder 4 standalone and it will
remain separate from any Flex Builder 2 or 3 installations. Also, workspaces
created in Flex Builder 2 or Flex Builder 3 are not supported by Flash
Builder 4. Lastly, Flash Builder 4 can import existing Flex Builder
projects, but a project that has its settings modified by Flash Builder 4
will no longer open in Flex Builder 3 or Flex Builder 2."

- Daniel Freiman*
*
On Tue, Jun 2, 2009 at 3:15 PM, dorkie dork from dorktown <
dorkiedorkfromdorkt...@gmail.com> wrote:

>
>
> Will importing a project from Flex Builder 3 into Flash Builder 4 ruin my
> Flex Builder 3 project?
>
> Should I move my projects from Flex Builder workspace folder to a Flash
> Builder 4 workspace? I'm hestitant because I don't want to ruin anything
> like my workspace or project files opening a project in FB4.
>
> Recommended steps to open Flex 3 project in FB4??? TIA (am i the only one
> whos says tia anymore?)
>
> dorkie "stuck in 90's webspeak" dork from dorktown
>  
>


Re: [flexcoders] Flex with ZendAMF and sessions/cookies

2009-05-26 Thread Daniel Freiman
I had a problem using ZendAMF and Zend_Session at the same time.
Zend_Session was interfering with ZendAMF.  I think https had something to
do with it as well. I had to use php sessions instead.  Otherwise, unless
there's another bug somewhere else, it should just be the combination of the
ZendAMF and sessions turorials.

- Daniel Freiman

On Tue, May 26, 2009 at 4:55 AM, martinosaint  wrote:

>
>
> Hi,
>
> it seems impossible to find any information on how to use Flex with ZendAMf
> with sessions. There is only one tutorial, and this does not work for me.
>
> So please, is there anyone who has ever worked with this constellation?
>
> Thanks for any advice,
> Martin
>
>  
>


Re: [flexcoders] Text Layout Framework with Flex 3.3 and Embeded Fonts

2009-05-12 Thread Daniel Freiman
Apparently you can compile DefineFont4 font in Flex 4 and then import that
swf into Flex 3.2+.

But thanks for passing on the question.

- Daniel Freiman

On Tue, May 12, 2009 at 2:22 AM, Gordon Smith  wrote:

>
>
>  Pete, has the 3.x compiler been revved, or will it be, to support
> embedding fonts as DefineFont4 tags for use with FTE and TLF? Or is this
> something only Flex 4 will support?
>
>
>
> - Gordon
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Thursday, May 07, 2009 9:04 AM
> *To:* flexcoders
> *Subject:* [flexcoders] Text Layout Framework with Flex 3.3 and Embeded
> Fonts
>
>
>
>
>
>
>  From what I read, you can use the Text Layout Framework with Flex 3.3.
> The Text Layout Framework also supports embeded fonts.
>
> But I can't figure out if/how it can use embeded fonts with the Text Layout
> Framework within Flex 3.3.  Anyone know if this is possible?
>
> - Daniel Freiman
>
>   
>


Re: [flexcoders] Re: Source Not Found in Flex Builder Debug

2009-05-11 Thread Daniel Freiman
Sorry, check that.  What actual class is not showing the source?

On Mon, May 11, 2009 at 11:57 AM, Daniel Freiman wrote:

> What actual class is throwing the error?
>
>
>
> On Mon, May 11, 2009 at 11:55 AM, markgoldin_2000 <
> markgoldin_2...@yahoo.com> wrote:
>
>>
>>
>> Well, that what it says. I am not modifying that for any of my projects.
>>
>> --- In flexcoders@yahoogroups.com , Daniel
>> Freiman  wrote:
>> >
>> > Project Properties -> Flex Build Path -> Library Path -> Framework
>> Linkage
>> > -> Merged Into Code
>> >
>> > On Mon, May 11, 2009 at 11:17 AM, markgoldin_2000 > > > wrote:
>> >
>> > >
>> > >
>> > > > > > How do I do that?
>> > > --- In flexcoders@yahoogroups.com 
>> > > > 40yahoogroups.com>, Daniel
>> > > Freiman  wrote:
>> > > >
>> > > > It could be two things. You could be using a component/library that
>> isn't
>> > > > open source (such as the flash.* packages or a third party
>> component) or
>> > > > sometimes using the Flex RSL does this. If it's a standard open
>> source
>> > > Flex
>> > > > class, try incorporating the Flex code into your project instead of
>> using
>> > > > the RSL and see if that works.
>> > > >
>> > > > - Daniel Freiman
>> > > >
>> > > > On Mon, May 11, 2009 at 10:53 AM, markgoldin_2000 > > > > > wrote:
>> > > >
>> > > > >
>> > > > >
>> > > > > When I run my app from the Builder I am getting an SDK run-time
>> error
>> > > that
>> > > > > does not open a source file but instead shows:
>> > > > > Source not found
>> > > > >
>> > > > > How do I fix it?
>> > > > >
>> > > > > Thanks
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > >
>> > >
>> > >
>> >
>>
>>  
>>
>
>


Re: [flexcoders] Re: Source Not Found in Flex Builder Debug

2009-05-11 Thread Daniel Freiman
What actual class is throwing the error?


On Mon, May 11, 2009 at 11:55 AM, markgoldin_2000  wrote:

>
>
> Well, that what it says. I am not modifying that for any of my projects.
>
> --- In flexcoders@yahoogroups.com , Daniel
> Freiman  wrote:
> >
> > Project Properties -> Flex Build Path -> Library Path -> Framework
> Linkage
> > -> Merged Into Code
> >
> > On Mon, May 11, 2009 at 11:17 AM, markgoldin_2000  > > wrote:
> >
> > >
> > >
> > >  > > How do I do that?
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>, Daniel
> > > Freiman  wrote:
> > > >
> > > > It could be two things. You could be using a component/library that
> isn't
> > > > open source (such as the flash.* packages or a third party component)
> or
> > > > sometimes using the Flex RSL does this. If it's a standard open
> source
> > > Flex
> > > > class, try incorporating the Flex code into your project instead of
> using
> > > > the RSL and see if that works.
> > > >
> > > > - Daniel Freiman
> > > >
> > > > On Mon, May 11, 2009 at 10:53 AM, markgoldin_2000  > > > > wrote:
> > > >
> > > > >
> > > > >
> > > > > When I run my app from the Builder I am getting an SDK run-time
> error
> > > that
> > > > > does not open a source file but instead shows:
> > > > > Source not found
> > > > >
> > > > > How do I fix it?
> > > > >
> > > > > Thanks
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> >
>
>  
>


Re: [flexcoders] Re: Source Not Found in Flex Builder Debug

2009-05-11 Thread Daniel Freiman
Project Properties -> Flex Build Path -> Library Path -> Framework Linkage
-> Merged Into Code

On Mon, May 11, 2009 at 11:17 AM, markgoldin_2000  wrote:

>
>
>  How do I do that?
> --- In flexcoders@yahoogroups.com , Daniel
> Freiman  wrote:
> >
> > It could be two things. You could be using a component/library that isn't
> > open source (such as the flash.* packages or a third party component) or
> > sometimes using the Flex RSL does this. If it's a standard open source
> Flex
> > class, try incorporating the Flex code into your project instead of using
> > the RSL and see if that works.
> >
> > - Daniel Freiman
> >
> > On Mon, May 11, 2009 at 10:53 AM, markgoldin_2000  > > wrote:
> >
> > >
> > >
> > > When I run my app from the Builder I am getting an SDK run-time error
> that
> > > does not open a source file but instead shows:
> > > Source not found
> > >
> > > How do I fix it?
> > >
> > > Thanks
> > >
> > >
> > >
> >
>
>  
>


Re: [flexcoders] Source Not Found in Flex Builder Debug

2009-05-11 Thread Daniel Freiman
It could be two things.  You could be using a component/library that isn't
open source (such as the flash.* packages or a third party component) or
sometimes using the Flex RSL does this.  If it's a standard open source Flex
class, try incorporating the Flex code into your project instead of using
the RSL and see if that works.

- Daniel Freiman

On Mon, May 11, 2009 at 10:53 AM, markgoldin_2000  wrote:

>
>
> When I run my app from the Builder I am getting an SDK run-time error that
> does not open a source file but instead shows:
> Source not found
>
> How do I fix it?
>
> Thanks
>
>  
>


Re: [flexcoders] E4x. Strange behavior when modifying XML. Help needed.

2009-05-07 Thread Daniel Freiman
xml.summary.text()[0] = "This is my summary"

Almost all e4x calls return an XMLList, including text() which returns and
XMLList where all the node types are "text."  So the above is getting the
text values/nodes and setting the first one.

- Daniel Freiman

On Thu, May 7, 2009 at 1:35 PM, lytvynyuk  wrote:

>
>
> I have XML instance like that:
>
> var xml:XML = 
>   test
>   test
> 
>
> I want to edit text in summary and title elements.
>
> I do:
>
> xml.summary = "This is my summary";
> xml.title =  "This is new title";
>
> but in resulting XML
>
> is see something like that:
>
> 
>   test
>   test
>   This is my summary
>   This is new title
> 
>
> which is a big problem for me!
>
> What's wrong here?
>  
>


[flexcoders] Text Layout Framework with Flex 3.3 and Embeded Fonts

2009-05-07 Thread Daniel Freiman
>From what I read, you can use the Text Layout Framework with Flex 3.3.  The
Text Layout Framework also supports embeded fonts.

But I can't figure out if/how it can use embeded fonts with the Text Layout
Framework within Flex 3.3.  Anyone know if this is possible?

- Daniel Freiman


Re: [flexcoders] 100,000 buttons

2009-05-05 Thread Daniel Freiman
Are you trying to do something conceptually like this:


   
   list.dataprovider = new Array(1000);
   
   


- Daniel Freiman

On Tue, May 5, 2009 at 8:18 AM, Paul Andrews  wrote:

>
>
> - Original Message -
> From: "ew6014" >
> To: >
> Sent: Tuesday, May 05, 2009 12:18 PM
> Subject: [flexcoders] 100,000 buttons
>
> > hi guys.. any idea why the browser screws up if i were to create 100,000
> > buttons like the example below? ... up to 1000 it works fine. but more
> > then that it goes crazy... any thoughts?
>
> Yes. Don't create 100,000 buttons.
>
> For goodness sake, why would you even try and do that?
>
> Paul
>
>  
>


Re: [flexcoders] Re: IE8 problem

2009-04-24 Thread Daniel Freiman
Right click on the app.  Does it give you the normal context menu or the
"Movie not loaded" context menu?

- Daniel Freiman

On Fri, Apr 24, 2009 at 9:00 AM, senthilkumarirtt <
senthilkumari...@yahoo.co.in> wrote:

>
>
> its not show any errorIts show empty page..Just my application
> background color appear..
>
>
>
> --- In flexcoders@yahoogroups.com , Pedro
> Sena  wrote:
> >
> > What do you mean by 'does not work on IE8' ?
> >
> > The swf is not loaded? Some specific error in IE ? Tell us more about the
> > problem, w/o information is impossible to help you.
> >
> > PS
> >
> > On Fri, Apr 24, 2009 at 6:55 AM, senthilkumarirtt <
> > senthilkumari...@...> wrote:
> >
> > >
> > >
> > > hi all ,i develop dashboard using Flex3...But ouput is working in all
> > > browsers other than Internet Explorer 8...
> > > i cant understand What is the problem...Give some suggestion...
> > >
> > >
> > >
> >
> >
> >
> > --
> > /**
> > * Pedro Sena
> > * Systems Architect
> > * Sun Certified Java Programmer
> > * Sun Certified Web Component Developer
> > */
> >
>
>  
>


Re: [flexcoders] e4x challenge

2009-04-23 Thread Daniel Freiman
If you want to select them, then:

XMLList list = xml.descendants().(@type = "file)

otherwise, i'd still get that list and then loop through it and delete each
by doing (exact code might need some cleaning):

for (each item:XML in list) {
   delete item.parent()[item.childIndex()];
}



On Wed, Apr 22, 2009 at 7:14 PM, Michael Slinn  wrote:

>
>
> I would like to filter out all elements with type="file" from the following
> XML. That turns out to be rather difficult because  elements are
> nested. Any suggestions?
>
> 
> 
>  uri="file:/classes/spring-beans-2.0.dtd" /> uri="file:/classes/.svn/"> uri="file:/classes/.svn/props/" /> uri="file:/classes/.svn/text-base/"> type="file" uri="file:/classes/.svn/text-base/sample.log4j.xml.svn-base"
> /> /> uri="file:/classes/.svn/prop-base/"> type="file" uri="file:/classes/.svn/prop-base/sample.log4j.xml.svn-base"
> /> /> name="props" type="dir" uri="file:/classes/.svn/tmp/props/" /> name="text-base" type="dir" uri="file:/classes/.svn/tmp/text-base/" /> name="prop-base" type="dir" uri="file:/classes/.svn/tmp/prop-base/"
> /> name=".svn" type="dir" uri="file:/classes/com/.svn/"> type="dir" uri="file:/classes/com/.svn/props/" /> type="dir" uri="file:/classes/com/.svn/text-base/" /> type="file" uri="file:/classes/com/.svn/format" /> type="dir" uri="file:/classes/com/.svn/prop-base/" /> type="file" uri="file:/classes/com/.svn/entries" /> type="dir" uri="file:/classes/com/.svn/tmp/"> uri="file:/classes/com/.svn/tmp/props/" /> uri="file:/classes/com/.svn/tmp/text-base/" /> type="dir" uri="file:/classes/com/.svn/tmp/prop-base/" /> name="kahootz" type="dir" uri="file:/classes/com/kahootz/"> name="activemq.xml" type="file" uri="file:/classes/com/kahootz/activemq.xml"
> /> uri="file:/classes/com/kahootz/context/"> type="file" uri="file:/classes/com/kahootz/context/remote-jms-context.xml"
> /> uri="file:/classes/com/kahootz/context/.svn/"> uri="file:/classes/com/kahootz/context/.svn/props/" /> type="dir" uri="file:/classes/com/kahootz/context/.svn/text-base/"> name="jms-context.xml.svn-base" type="file"
> uri="file:/classes/com/kahootz/context/.svn/text-base/jms-context.xml.svn-base"
> /> uri="file:/classes/com/kahootz/context/.svn/text-base/remote-jms-context.xml.svn-base"
> /> uri="file:/classes/com/kahootz/context/.svn/format" /> type="dir" uri="file:/classes/com/kahootz/context/.svn/prop-base/"> name="jms-context.xml.svn-base" type="file"
> uri="file:/classes/com/kahootz/context/.svn/prop-base/jms-context.xml.svn-base"
> /> uri="file:/classes/com/kahootz/context/.svn/prop-base/remote-jms-context.xml.svn-base"
> /> uri="file:/classes/com/kahootz/context/.svn/entries" /> type="dir" uri="file:/classes/com/kahootz/context/.svn/tmp/"> name="props" type="dir"
> uri="file:/classes/com/kahootz/context/.svn/tmp/props/" /> name="text-base" type="dir"
> uri="file:/classes/com/kahootz/context/.svn/tmp/text-base/" /> name="prop-base" type="dir"
> uri="file:/classes/com/kahootz/context/.svn/tmp/prop-base/"
> /> uri="file:/classes/com/kahootz/context/server-context.xml" /> name="jms-context.xml" type="file"
> uri="file:/classes/com/kahootz/context/jms-context.xml" /> name="space" type="dir" uri="file:/classes/com/kahootz/space/"> name="context" type="dir"
> uri="file:/classes/com/kahootz/space/context/"> name="remote-space-context.xml" type="file"
> uri="file:/classes/com/kahootz/space/context/remote-space-context.xml"
> /> uri="file:/classes/com/kahootz/space/context/.svn/"> type="dir" uri="file:/classes/com/kahootz/space/context/.svn/props/" /> name="text-base" type="dir"
> uri="file:/classes/com/kahootz/space/context/.svn/text-base/"> name="space-context.xml.svn-base" type="file"
> uri="file:/classes/com/kahootz/space/context/.svn/text-base/space-context.xml.svn-base"
> /> uri="file:/classes/com/kahootz/space/context/.svn/text-base/local-space-context.xml.svn-base"
> /> uri="file:/classes/com/kahootz/space/context/.svn/text-base/remote-space-context.xml.svn-base"
> /> uri="file:/classes/com/kahootz/space/context/.svn/format" /> name="prop-base" type="dir"
> uri="file:/classes/com/kahootz/space/context/.svn/prop-base/"> name="space-context.xml.svn-base" type="file"
> uri="file:/classes/com/kahootz/space/context/.svn/prop-base/space-context.xml.svn-base"
> /> uri="file:/classes/com/kahootz/space/context/.svn/prop-base/local-space-context.xml.svn-base"
> /> uri="file:/classes/com/kahootz/space/context/.svn/prop-base/remote-space-context.xml.svn-base"
> /> uri="file:/classes/com/kahootz/space/context/.svn/entries" /> name="tmp" type="dir"
> uri="file:/classes/com/kahootz/space/context/.svn/tmp/"> type="dir" uri="file:/classes/com/kahootz/space/context/.svn/tmp/props/"
> /> uri="file:/classes/com/kahootz/space/context/.svn/tmp/text-base/" /> name="prop-base" type="dir"
> uri="file:/classes/com/kahootz/space/context/.svn/tmp/prop-base/"
> /> uri="file:/classes/com/kahootz/space/context/space-context.xml" /> name="local-space-context.xml" type="file"
> uri="file:/classes/com/kahootz/space/con

Re: [flexcoders] Maximize & Minimize

2009-04-21 Thread Daniel Freiman
"FlexLib".  Look for the mdi component.

- Daniel Freiman


On Tue, Apr 21, 2009 at 1:41 AM, senthil kumar  wrote:

>
>
> Thanks for your reply...But i cant get answer through google...send some
> link if you have that..
>
> --- On *Tue, 21/4/09, Tracy Spratt * wrote:
>
>
> From: Tracy Spratt 
> Subject: RE: [flexcoders] Maximize & Minimize
> To: flexcoders@yahoogroups.com
> Date: Tuesday, 21 April, 2009, 10:49 AM
>
>
>
>  Someone has done this, google it.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ]
> *On Behalf Of *senthilkumarirtt
> *Sent:* Tuesday, April 21, 2009 12:43 AM
> *To:* flexcod...@yahoogro ups..com
> *Subject:* [flexcoders] Maximize & Minimize
>
>
>
>
>
>
>  hi all, i want to implement maximization & minimization in layout like
> window.
>
> Any layout have this option?
>
> or
>
> any othe way to implement???
>
> Thanks,
> S.Senthilkumar
>
>
> --
> Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition
> * Click 
> here!<http://in.rd.yahoo.com/tagline_firefox_1/*http://downloads.yahoo.com/in/firefox/>
>  
>


Re: [flexcoders] Serialize Java ResultSet To Flex

2009-04-14 Thread Daniel Freiman
Yeah, it just felt inelegant to do manual, untyped serialization.

2009/4/13 Josh McDonald 

>
>
> You could put them in a list of HashMaps, which should get serialised into
> an Array of simple name-value objects on the way to the Flex client?
>
> -Josh
>
> 2009/4/14 Daniel Freiman 
>
>>
>>
>> Yeah, something more raw.  If the ResultSet was natively serializable (w/
>> multiple rows of data), I'd be happy.  I've found from previous iterations
>> of this project, that raw-ish data was the way to go here, and previous
>> languages I used easily allowed for that.
>>
>> - Dan
>>
>> 2009/4/13 Tim Rowe 
>>
>>>
>>>
>>>  Have you already read into use of Transfer Objects and Data Access
>>> Objects, or are you looking for a solution a little more raw than that?
>>>
>>>
>>> *Tim Rowe*
>>> Software Engineer
>>> carsales.com Ltd
>>>
>>>  --
>>> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
>>> Behalf Of *Daniel Freiman
>>> *Sent:* Tuesday, 14 April 2009 7:13 AM
>>> *To:* flexcoders
>>> *Subject:* [flexcoders] Serialize Java ResultSet To Flex
>>>
>>>  I want to receive a ResultSet from Java/Blaze DS.  Obviously this won't
>>> work as stated, but I'm having trouble finding a correct/viable
>>> alternative.  Anyone know how this is supposed to be done?
>>>
>>> - Daniel Freiman
>>>
>>>
>>>  ▼
>>> ▲
>>>
>>>
>>
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> Josh 'G-Funk' McDonald
>   -  j...@joshmcdonald.info
>   -  http://twitter.com/sophistifunk
>   -  http://flex.joshmcdonald.info/
>
>  
>


Re: [flexcoders] Serialize Java ResultSet To Flex

2009-04-13 Thread Daniel Freiman
Yeah, something more raw.  If the ResultSet was natively serializable (w/
multiple rows of data), I'd be happy.  I've found from previous iterations
of this project, that raw-ish data was the way to go here, and previous
languages I used easily allowed for that.

- Dan

2009/4/13 Tim Rowe 

>
>
>  Have you already read into use of Transfer Objects and Data Access
> Objects, or are you looking for a solution a little more raw than that?
>
>
> *Tim Rowe*
> Software Engineer
> carsales.com Ltd
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Tuesday, 14 April 2009 7:13 AM
> *To:* flexcoders
> *Subject:* [flexcoders] Serialize Java ResultSet To Flex
>
>  I want to receive a ResultSet from Java/Blaze DS.  Obviously this won't
> work as stated, but I'm having trouble finding a correct/viable
> alternative.  Anyone know how this is supposed to be done?
>
> - Daniel Freiman
>
>
>  ▼
> ▲
>
>  
>


[flexcoders] Serialize Java ResultSet To Flex

2009-04-13 Thread Daniel Freiman
I want to receive a ResultSet from Java/Blaze DS.  Obviously this won't work
as stated, but I'm having trouble finding a correct/viable alternative.
Anyone know how this is supposed to be done?

- Daniel Freiman


  ▼
▲


Re: [flexcoders] IE6 RemoteObject calls fail under HTTPS

2009-03-17 Thread Daniel Freiman
Many IE problems are cause by the no-cache header (or lack thereof, I forget
which).  I also vaguely remember having issues on IE only when settings
didn't match up perfectly (ex. using an AMFChannel instead of a
SecureAMFChannel with and https address).  You might want to throw out your
assumetions of what should work/fail over and only use what is explicitly
supposed to work.  Sorry I can't be of more specific help, but it was a long
time ago when I had this type of problem.

- Daniel Freiman

On Tue, Mar 17, 2009 at 2:27 AM, Rafael Faria
wrote:

>   We have tried many many things, and seem to have narrowed it down to the
> session headers and the cache control. However all most all of the posts and
> notes around the web seem to get this issue arising with HTTPService calls
> that spawn a #2032 streaming error and not what we are seeing. Tracking the
> calls with Charles for instance seems to indicate that the call to the
> gateway is never actually being made. We discounted any crossdomain issues
> (the webroot and the gateway are on different servers) as the sandbox
> violation errors did not appear at all.
>
> So if anyone out there can shed some light on this we would be most
> appreciative. Or conversely if you can get every person in the world to
> upgrade their browsers beyond IE6 that would be awesome too.
>
> mx.rpc.events::FaultEvent)#0
> bubbles = false
> cancelable = true
> currentTarget = (null)
> eventPhase = 2
> fault = (mx.rpc::Fault)#1
> content = (Object)#2
> errorID = 0
> faultCode = "Client.Error.MessageSend"
> faultDetail = "Channel.Connect.Failed error NetConnection.Call.Failed:
> HTTP: Failed: url: 'https://mydomain.com/amfphp/gateway.php'"
> faultString = "Send failed"
> message = "faultCode:Client.Error.MessageSend faultString:'Send failed'
> faultDetail:'Channel.Connect.Failed error NetConnection.Call.Failed: HTTP:
> Failed: url: 'https://mydomain.com/amfphp/gateway.php''"
> name = "Error"
> rootCause = (mx.messaging.events::ChannelFaultEvent)#3
> bubbles = false
> cancelable = false
> channel = (mx.messaging.channels::SecureAMFChannel)#4
>
> PLEASE, help me... the whole application i'm working on depend on that.
>
> Thanks
> Rafael
>
>
>  
>

▼
▲


[flexcoders] Setting Consumer Selector On BlazeDS Server

2009-02-24 Thread Daniel Freiman
Is there any way to have the server set the selector for the consumer?  It
looks like you should be able to intercept the subscribe commandmessage and
override the headers, but that isn't working.

Alternately, I have users that are in groups and I want any message that is
sent to a group to be sent to every member of that group.  That the client
application doesn't necessarily know what group they are in (sometimes for
security reasons), although the server always does.

- Daniel Freiman


Re: [flexcoders] Re: Font's not loading in IE?

2009-01-21 Thread Daniel Freiman
Either this is an esoteric bug, or you've just overlooked something
somewhere (we've all done that).  I'd post your embed and display code just
so we can rule out the second option.

On Wed, Jan 21, 2009 at 10:23 AM, tchredeemed  wrote:

>   Yes, I am sure.
>
> Or atleast... I thought I was sure... I converted all fonts to
> truetype and tested it, but it doesn't seem to be working correctly in
> some places.
>
> Is there any reason it would not display correctly on windows but it
> would display correctly on a mac?
>
>
> --- In flexcoders@yahoogroups.com , Rob
> Kunkle  wrote:
> >
> > Are you sure your application is using fonts that are embedded in the
> > application, and not drawing on fonts from the client system?
> >
> > Rob
> >
> >
> > On Jan 20, 2009, at 7:32 PM, tchredeemed wrote:
> >
> > > I have noticed that when I embed my fonts they load fine in Mac -
> > >
> > > Safari
> > > Firefox
> > >
> > > However, on a Windows machine -
> > >
> > > IE 6/7
> > > Google Chrome
> > > Firefox
> > >
> > > The fonts do not load correctly.
> > >
> > > Anyone know why this happens? Even in some places, the fonts look
> > > fine, however in a lot of places they won't seem to load correctly...
> > >
> > > Odd behavior, not sure what the cause is...
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Facebook Connect and Flex

2009-01-19 Thread Daniel Tse
Hi,

Has anyone had experience implementing Facebook connect with Flex/Air Apps?
If so, can someone point to an example?

Thanks,
-Daniel


Re: [flexcoders] Re: String Encoding Issue Over AMF

2009-01-14 Thread Daniel Freiman
Yeah, that's what I'm using.  Maybe I'll check the non-release builds.

On Wed, Jan 14, 2009 at 4:16 PM, Randy Martin  wrote:

>Are you using the latest Zend framework? Adobe contributed AMF to Zend,
> and there's a Zend_AMF component in V1.7 of the framework. This might solve
> your problem.
>
>
>
> HTH,
>
> ~randy
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Wednesday, January 14, 2009 1:28 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Re: String Encoding Issue Over AMF
>
>
>
> I'm using Zend Framework.  I can't find an comparable method.
>
> On Wed, Jan 14, 2009 at 1:58 PM, aphexyuri  wrote:
>
> Have you played around with $gateway->setCharsetHandler() in gateway.php?
>
>
>
> --- In flexcoders@yahoogroups.com , "Daniel
> Freiman"  wrote:
> >
>
> > Either I'm missing something (which is highly possible) or that
> information
> > isn't addressing the problem. Everything on the php side seems
> fine. And
> > all the tests/functions applied to the string on the php side operate as
> > expected. It's not until the string is sent over AMF to Flex that I
> have a
> > problem.
> >
>
> > On Wed, Jan 14, 2009 at 12:20 PM, valdhor wrote:
>
>
> >
> > > The problem is with PHP and how it handles multi-byte strings.
> > >
> > > A good overview can be found at
> http://www.phpwact.org/php/i18n/charsets
> > >
> > > Hopefully PHP 6 will end all this grief.
> > >
> > >
>
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
>
>
> "Daniel
> > > Freiman"  wrote:
> > > >
> > > > I'm transmitting Strings from php to Flex. The values are correct
> > > before I
> > > > send them to Flex (I've traced them), but Flex isn't
> interpreting them
> > > > properly (I get that square thing, or two incorrect characters).
> > > I've tried
> > > > various encoding/decoding schemes (urlencode, etc) but none of
> them have
> > > > worked. So far I've only tried alphanumeric characters and the
> > > "trademark"
> > > > and "registered" symbols. The "trademark" is the only one that isn't
> > > > working.
> > > > Anyone have any idea how to fix this?
> > > >
> > > > - Daniel Freiman
> > > >
> > >
> > >
> > >
> >
>
>
>
>   
>


Re: [flexcoders] Re: String Encoding Issue Over AMF

2009-01-14 Thread Daniel Freiman
I'm using Zend Framework.  I can't find an comparable method.

On Wed, Jan 14, 2009 at 1:58 PM, aphexyuri  wrote:

>   Have you played around with $gateway->setCharsetHandler() in
> gateway.php?
>
>
> --- In flexcoders@yahoogroups.com , "Daniel
> Freiman"  wrote:
> >
> > Either I'm missing something (which is highly possible) or that
> information
> > isn't addressing the problem. Everything on the php side seems
> fine. And
> > all the tests/functions applied to the string on the php side operate as
> > expected. It's not until the string is sent over AMF to Flex that I
> have a
> > problem.
> >
> > On Wed, Jan 14, 2009 at 12:20 PM, valdhor wrote:
> >
> > > The problem is with PHP and how it handles multi-byte strings.
> > >
> > > A good overview can be found at
> http://www.phpwact.org/php/i18n/charsets
> > >
> > > Hopefully PHP 6 will end all this grief.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
> "Daniel
> > > Freiman"  wrote:
> > > >
> > > > I'm transmitting Strings from php to Flex. The values are correct
> > > before I
> > > > send them to Flex (I've traced them), but Flex isn't
> interpreting them
> > > > properly (I get that square thing, or two incorrect characters).
> > > I've tried
> > > > various encoding/decoding schemes (urlencode, etc) but none of
> them have
> > > > worked. So far I've only tried alphanumeric characters and the
> > > "trademark"
> > > > and "registered" symbols. The "trademark" is the only one that isn't
> > > > working.
> > > > Anyone have any idea how to fix this?
> > > >
> > > > - Daniel Freiman
> > > >
> > >
> > >
> > >
> >
>
>  
>


Re: [flexcoders] Re: String Encoding Issue Over AMF

2009-01-14 Thread Daniel Freiman
Either I'm missing something (which is highly possible) or that information
isn't addressing the problem.  Everything on the php side seems fine.  And
all the tests/functions applied to the string on the php side operate as
expected.  It's not until the string is sent over AMF to Flex that I have a
problem.

On Wed, Jan 14, 2009 at 12:20 PM, valdhor wrote:

>   The problem is with PHP and how it handles multi-byte strings.
>
> A good overview can be found at http://www.phpwact.org/php/i18n/charsets
>
> Hopefully PHP 6 will end all this grief.
>
>
> --- In flexcoders@yahoogroups.com , "Daniel
> Freiman"  wrote:
> >
> > I'm transmitting Strings from php to Flex. The values are correct
> before I
> > send them to Flex (I've traced them), but Flex isn't interpreting them
> > properly (I get that square thing, or two incorrect characters).
> I've tried
> > various encoding/decoding schemes (urlencode, etc) but none of them have
> > worked. So far I've only tried alphanumeric characters and the
> "trademark"
> > and "registered" symbols. The "trademark" is the only one that isn't
> > working.
> > Anyone have any idea how to fix this?
> >
> > - Daniel Freiman
> >
>
>  
>


[flexcoders] String Encoding Issue Over AMF

2009-01-14 Thread Daniel Freiman
I'm transmitting Strings from php to Flex.  The values are correct before I
send them to Flex (I've traced them), but Flex isn't interpreting them
properly (I get that square thing, or two incorrect characters).  I've tried
various encoding/decoding schemes (urlencode, etc) but none of them have
worked.  So far I've only tried alphanumeric characters and the "trademark"
and "registered" symbols.  The "trademark" is the only one that isn't
working.
Anyone have any idea how to fix this?

- Daniel Freiman


[flexcoders] LCDS RTMPS connection forced closed

2008-12-18 Thread Daniel Harfleet
Hi,

we are running into a problem with RTMPS on LCDS 2.6  . If anyone has
any ideas, or is experiencing similar problems, please let me know,

many thanks

dan

15:26:35,575 INFO  [STDOUT] [LCDS]SocketServer 'my-rtmps-SocketServer'
has accepted new Connection '13257590'.
15:26:35,576 INFO  [STDOUT] [LCDS]Reactor 'Reactor1' for SocketServer
'my-rtmps-SocketServer' is managing Connection '13257590'.
15:26:35,576 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-Reactor1,5,jboss] unregistering
read interest for Connection '13257590'.
15:26:35,577 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] Connection
'13257590' starting a read.
15:26:35,657 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] registering
write interest for Connection '13257590'.
15:26:35,658 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] registering
read interest for Connection '13257590'.
15:26:35,658 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-Reactor1,5,jboss] unregistering
write interest for Connection '13257590'.
15:26:35,658 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] Connection
'13257590' finished a read. Handshaking.
15:26:35,658 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-Reactor1Writer,5,jboss] Connection
'13257590' starting a write.
15:26:35,659 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-Reactor1Writer,5,jboss] Connection
'13257590' finished a write. Handshaking.
15:26:35,726 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-Reactor1,5,jboss] unregistering
read interest for Connection '13257590'.
15:26:35,726 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] Connection
'13257590' starting a read.
15:26:35,731 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] failed to
read Connection '13257590' or process the data; Connection is in the
'Handshaking' state and will be forced closed.
javax.net.ssl.SSLException: Inbound closed before receiving peer's
close_notify: possible truncation attack?
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166)
at
com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1356)
at
com.sun.net.ssl.internal.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1324)
at
com.sun.net.ssl.internal.ssl.SSLEngineImpl.closeInbound(SSLEngineImpl.java:1263)
at
flex.messaging.socketserver.SSLConnection.handshake(SSLConnection.java:290)
at
flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:761)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:613)
15:26:35,732 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] Connection
'13257590' has changed state to: Closing
15:26:35,733 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] closing
Connection '13257590'.
15:26:35,733 INFO  [STDOUT]
[LCDS]Thread[my-rtmps-SocketServer-WorkerThread-2,5,jboss] generated
an exception shutting down socket input for Connection '13257590'.
java.net.SocketException: Socket is not connected
at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
at 
sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:583)
at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
at
flex.messaging.socketserver.Connection.closeImmediate(Connection.java:384)
at
flex.messaging.socketserver.SSLConnection.closeImmediate(SSLConnection.java:143)
at
flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:838)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:613)

-  -  -  -  -  -  -  -  -  -  -  - 
We are running on Jboss:

[Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417).

Java:
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

Mac:
OS X 10.5.5

-  -  -  -  -  -  -  -  -  -  -  - 







[flexcoders] AIR Application - Positioning.

2008-12-09 Thread Daniel
Hi,

I have a requirement for an application, it provides extensions based 
on a name entry box.

The client would like it to appear as a system tray icon, and when you 
click it, the application opens above it. When you find results the 
application window stretches upwards to show the results.

My google powers have failed me and I'm unsure on the best way to 
tackle this. Two possibilities, I assume, are to make a 100% screen 
size transparent application with an area visible in the bottom right 
OR just resize the application in the bottom right.

I'm unsure on either at the moment.

Thanks, Dan






Re: [flexcoders] TextFormat's leading

2008-11-26 Thread Daniel Freiman
It's pixels.  See
http://livedocs.adobe.com/flex/3/langref/flash/text/TextLineMetrics.html for
a complete diagram of how text is spaced.

- Daniel Freiman

On Wed, Nov 26, 2008 at 5:30 AM, bjorn <[EMAIL PROTECTED]> wrote:

>   What is this value specified in?
>
> The docs say: An integer representing the amount of vertical space (called
> *leading*) between lines. The default value is null, which indicates that
> the amount of leading used is 0.
>
> Is that pixels, points, percentage of the font size, or maybe kilograms?
> :-)
>
> Also, does anyone know if embedded fonts sometimes specify the leading
> themselves (if nothing is set?). It seems to be vary from font to font 
>
> --
> 
> http://www.juicability.com - flex blog
> http://www.nospoiler.com - link to youtube videos without the spoilers
>  
>


Re: [flexcoders] embed font combo box

2008-11-22 Thread Daniel Freiman
The only issue I know of with the combo box is that the control shows the
bold version of the font.  So if the bold style is not explicitly embeded,
the font won't show up correctly in the control.

- Daniel Freiman

On Fri, Nov 21, 2008 at 6:14 AM, Kenneth Sutherland <
[EMAIL PROTECTED]> wrote:

>Is there any issues with using embedded fonts and the combo box.
>
> Under a very small test program I can get the embedded font to works fine
> in all circumstances but in my actual app the embedded font does not work.
>
>
>
> I've tried using a swf with the font inside it, I've tried the actual ttf
> font file.  The REALLY odd thing is that if I use a swf generated from Flash
> with the font inside it, it works for me and 15 out of 16 other machines but
> 1 user didn't get the embedded font.  I do know that some of the machines
> that had it working do not have the font installed so it must have been
> getting pulled out of the flex app.  It's all very odd!  The embedded font
> is used in other components inside the app and they work, it's just in the
> combobox that it does not work.
>
>
>
> Cheers for any info.
>
>
>
> Kenneth Sutherland
>
> Technical Developer
>
> Realise Ltd
>
> 0131 476 7432
>
> *www.realise.com*
>
> "enlightened e-business solutions"
>
>
>
>
>  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] DataGrid/AdvancedDataGrid cell selection a la spreadsheet

2008-11-08 Thread Daniel Cascais
Hi all,

If my mind isn't playing tricks on me; I remember having seen, at some
point, an implementation of the DataGrid where it had multiple cell
selection as you would in a spreadsheet, by dragging your mouse over the
desired cells.

Please share the link if you also remember seeing this, and know where it
can be found.

Thanks,
DC


Re: [flexcoders] Text multi-wrapping bugs

2008-11-06 Thread Daniel Freiman
By "textBox," which Class do you actually mean? TextField, UITextField,
Label, TextInput, TextArea, etc?

- Daniel Freiman

On Thu, Nov 6, 2008 at 8:26 AM, christiancrisologo <[EMAIL PROTECTED]>wrote:

>   Hi everybody,
> any solution for text that is not auto-wrapping with data-driven
> text. I have application the data is coming from a dataBase when it
> load the text in the textBox is not auto-wrapping its just truncating.
>
> thanks for any help,
> Christian
>
>  
>


Re: [flexcoders] Soap webservice and authentication

2008-11-04 Thread Daniel Thompson
You will need Microsoft to provide a crossdomain.xml (or proxy the  
call as others have suggested). I quickly checked and got a 404 here:

http://staging.mappoint.net/crossdomain.xml



On Nov 4, 2008, at 1:52 AM, ernoaapa wrote:

> Hi everyone!
> I'm begging for help.
>
> I'm trying to get data from Microsoft virtual earth web service.
> But all the time I get "ioError, Error #2032: Stream Error".
>
> So please, PLEASE could someone just point me right direction? how to
> connect from flex? I promise to give beer if you come finland :D
>
> I try to use Flex Builder "import wsdl" tool and allso try
> mx:WebService. I'm not sure is problem in authentication because if I
> go to wsdl url by browser I get authentication prompt.
>
> I really hope that someone help me to get start.
>
> get developement account:
> https://mappoint-css.live.com/CSCV3
>
> wsdl:
> http://staging.mappoint.net/standard-30/mappoint.wsdl
>
>
> 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] Re: Flex developer and their hourly rate

2008-11-04 Thread Daniel Thompson
I've also heard take your yearly salary, say $100k. Determine the  
hourly rate: $100k / 2000, which results in an hourly rate of  $50.  
Now triple that to find your contracted rate. 33.3% for salary and  
healthcare (same amount taken home), 33.3% for capital (office space,  
computers, software, car) and 33.3% for taxes (you are responsible for  
more as an independent contractor).

So, if you were making $100k and decide to contract, you should charge  
$150 per hour to enjoy the same standard of living.


On Nov 4, 2008, at 11:14 AM, Tracy Spratt wrote:

>
> And understand, this is an independent contractor rate for billable  
> hours.
>
>
>
> One rule-of-thumb I have heard is that an independent hourly rate  
> should be one thousandth of what the annual salary would be for the  
> same level of developer.
>
>
>
> For example if an annual salary is 100K per year, then the hourly  
> rate should be $100 per hour.  I am sure 100K is not an unusual  
> salary for an experienced developer in SF.
>
>
>
> Tracy
>
>
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
> On Behalf Of Rich Rodecker
> Sent: Tuesday, November 04, 2008 11:40 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Flex developer and their hourly rate
>
>
>
> that's how it goes...you're talking about a much different cost of  
> living than say, Arkansas.
>
>
>
> On Tue, Nov 4, 2008 at 6:37 AM, nathanpdaniel <[EMAIL PROTECTED]>  
> wrote:
>
> $100/hour Man, I'm gonna have to move to SF! HAHAHA :D
>
> --- In flexcoders@yahoogroups.com, "Rich Rodecker" <[EMAIL PROTECTED]>
> wrote:
>
>
> >
> > That's always a hard question, and mostly depends on a few major
> points:
> > location, experience, and additional skill set. SF, and just about
> every
> > major city is definitely going to get you a higher rate than say,
> Tennessee.
> > How is your portfolio? If you have an impressive body of work
> that will
> > also increase your value. On top of that, if your a flex developer
> that is
> > highly skilled in additional areas, or have alot of experience
> building
> > enterprise-level apps, that will also increase your value.
> > All that being said, I don't know :) Though I'd esitmate you're
> going to be
> > somewhere around $100/hr.
> >
> >
> >
>
> > On Mon, Nov 3, 2008 at 12:56 PM, hworke <[EMAIL PROTECTED]> wrote:
> >
> > >
> > >
> > > Hi Devs,
> > >
> > > I do not have any idea about the market hourly
> > > rate that a Flex developer with 3 years experience
> > > charges in San Francisco bay area charges. Can
> > > someone please give me some idea?
> > >
> > > Best regards,
> > >
> > >
> > >
> >
>
>
>
>
>
> 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] Flash player 10 required for my swf?

2008-10-31 Thread Daniel Freiman
I'm going to stand by my theory that it's going to ask for Flash 10 no
matter what once it fails the detection script.  But I'm at a loss as to why
it's failing at all, unless users are confused between the different
versions of Flash 9.  But your test would seem to discredit user confusion.
Report back if you figure anything out.

On Fri, Oct 31, 2008 at 3:44 PM, ivo <[EMAIL PROTECTED]> wrote:

>Thanks for your reply.
>
> My point is that I am not using any Flash Player 10 features, my dev &
> build environment dont have Flash player 10 installed, I am building using
> the 3.1 SDK and the project is configured to target 9.0.124. The output
> swf passes QA for Flash Player 9. The 'Flash Detection Wrapper' is given the
> vars that the required version is 9.0.124. Only some users see the Flash
> Player 10 required dialog. Until today I had not seen this dialog (I have
> 9.0.124 installed) and it was based on a trivial change.
>
> To test again I reverted back to the index.template.html to the one
> supplied in Flex Builder and no Flash Player 10 required dialog appears
> anymore so I am not sure what is going on.
>
> I think I will look into using swfobject instead.
>
> Thanks,
>
> - Ivo
>
>
>
> --
> *From:* Daniel Freiman <[EMAIL PROTECTED]>
> *To:* flexcoders@yahoogroups.com
> *Sent:* Friday, October 31, 2008 12:12:21 PM
> *Subject:* Re: [flexcoders] Flash player 10 required for my swf?
>
>  I think the detection script checks to see if you have the required
> version.  If you don't, then it will tell you that you need the most
> recently released version of Flash regardless of what version the wrapper
> actually requires.  This does cause confusion form a troubleshooting
> standpoint, but I'm guessing the reason is that adobe did this is that users
> would be more confused if it told them they needed flash 9 and gave them
> flash 10.  Better to confuse the developers than the end user?
>
> - Daniel
>
> On Fri, Oct 31, 2008 at 2:41 PM, ivo  PROTECTED]>
> > wrote:
>
>>   Hello all,
>>
>> I had been getting reports from users that my widget swf was displaying
>> the dialog "This content requires Adobe Flash Player 10" but I could not
>> reproduce it. I run and develop with Flash Player 9 installed. Other users
>> that only had Flash player 9 installed also could run it without any
>> problems.
>>
>> This morning I did a few changes to the widget, basically I embedded image
>> resources at compile time rather than load them over the web at runtime. On
>> the next debug run after the changes I started seeing the same dialog. I
>> rolled back the changes but the dialog stays. The only way I was able to get
>> the dialog to dissapear was to modify the html-template/ index.template.
>> html, remove the 'Flash Player Version Detection' Javascript and have just
>> the embed code with the proper template tokens. The index.template. html
>> tokens for ${version_major} ${version_minor} ${version_revision} always
>> output 9 0 124 as expected. Not sure what criteria the 'Flash Player Version
>> Detection' javascript is following.
>>
>> I am building my app using Flex Builder but its a Pure AS3 project, only
>> Sprites and the Graphic object are used and the SDK is 3.1.
>>
>> I have distributed the html with the ''Flash Player Version Detection'
>> along with my widget and I am now wondering how many users are seeing the
>> dialog and not bothering to run the update.
>>
>> Is the lesson here not to use the 'Flash Player Version Detection' that
>> ships with Flex Builder ? or am I running into a bug?
>>
>> Thanks,
>>
>> - Ivo
>>
>>
>   
>


Re: [flexcoders] Flash player 10 required for my swf?

2008-10-31 Thread Daniel Freiman
I think the detection script checks to see if you have the required
version.  If you don't, then it will tell you that you need the most
recently released version of Flash regardless of what version the wrapper
actually requires.  This does cause confusion form a troubleshooting
standpoint, but I'm guessing the reason is that adobe did this is that users
would be more confused if it told them they needed flash 9 and gave them
flash 10.  Better to confuse the developers than the end user?

- Daniel

On Fri, Oct 31, 2008 at 2:41 PM, ivo <[EMAIL PROTECTED]> wrote:

>   Hello all,
>
> I had been getting reports from users that my widget swf was displaying the
> dialog "This content requires Adobe Flash Player 10" but I could not
> reproduce it. I run and develop with Flash Player 9 installed. Other users
> that only had Flash player 9 installed also could run it without any
> problems.
>
> This morning I did a few changes to the widget, basically I embedded image
> resources at compile time rather than load them over the web at runtime. On
> the next debug run after the changes I started seeing the same dialog. I
> rolled back the changes but the dialog stays. The only way I was able to get
> the dialog to dissapear was to modify the html-template/index.template.html,
> remove the 'Flash Player Version Detection' Javascript and have just the
> embed code with the proper template tokens. The index.template.html tokens
> for ${version_major} ${version_minor} ${version_revision} always output 9 0
> 124 as expected. Not sure what criteria the 'Flash Player Version Detection'
> javascript is following.
>
> I am building my app using Flex Builder but its a Pure AS3 project, only
> Sprites and the Graphic object are used and the SDK is 3.1.
>
> I have distributed the html with the ''Flash Player Version Detection'
> along with my widget and I am now wondering how many users are seeing the
> dialog and not bothering to run the update.
>
> Is the lesson here not to use the 'Flash Player Version Detection' that
> ships with Flex Builder ? or am I running into a bug?
>
> Thanks,
>
> - Ivo
>
>  
>


Re: [flexcoders] Setting text on a text node in e4x

2008-10-24 Thread Daniel Freiman
Maybe it's not possible.  At this point I'd go into the Tamirin code and see
how it's handling xml text nodes.  Another clue might be Alex's response to
a question I asked a while ago:
http://tech.groups.yahoo.com/group/flexcoders/message/114156

- Daniel Freiman

On Fri, Oct 24, 2008 at 1:06 PM, Mark Carter <[EMAIL PROTECTED]> wrote:

>
> Unfortunately not.
>
> I tried this:
>
> public static function setTextNodeText(textNode:XML, newText:String):void {
> var parentElement:XML = textNode.parent();
> parentElement.*[textNode.childIndex()] = newText;
> }
>
> The textNode's parent is non-null before calling this method, but null
> after. Its clear it has been replaced by a new text node...
>
>
> Daniel Freiman wrote:
> >
> > does this do it?
> >
> > parentElement.text()[index] = "newText";
> >
> > - Daniel Freiman
> >
> > On Fri, Oct 24, 2008 at 11:48 AM, Mark Carter <[EMAIL 
> > PROTECTED]
> >
> > wrote:
> >
> >>
> >> Hi - So, I know how to append a text node to an (parent) element, and
> how
> >> to
> >> replace a text node with a new text node (based on a specified string),
> >> but
> >> how do I set text on a text node?
> >>
> >> In my situation it is very important that the reference to the text node
> >> object is the same before and after this operation, so simply replacing
> >> the
> >> text node is not an option for me.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Setting-text-on-a-text-node-in-e4x-tp20152621p20152621.html
> >> Sent from the FlexCoders mailing list archive at Nabble.com.
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Setting-text-on-a-text-node-in-e4x-tp20152621p20154052.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>


Re: [flexcoders] Re: Measuring a vbox after I add children to it

2008-10-24 Thread Daniel Freiman
alright, but I still think I'd put the graphics code into the
updateDisplayList function.

On Fri, Oct 24, 2008 at 12:22 PM, tchredeemed <[EMAIL PROTECTED]> wrote:

>   one problem..
>
> the children do not get added until I request for them to, via an
> eventListener that does not get dispatched until much after the
> creationComplete event...
>
> this is probably the problem :(
>
>  
>


Re: [flexcoders] Re: Measuring a vbox after I add children to it

2008-10-24 Thread Daniel Freiman
In your code, validateNow() would come right before you call drawStripe(),
but...
I'd use the structure and invalidation that's already built into Flex
UIComponents:


http://www.adobe.com/2006/mxml";
>



override protected function createChildren():void {
super.createChildren();
addText;
addText;
addSpacer;
addText;
addSpacer;
addText;

}

override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number) {
super.updateDisplayList(unscaledWidth, unscaledHeight);
var g:Graphics = this.graphics;
g.beginFill(0x00);
g.drawRect( 0, 0, 5, height );
g.endFill();
}






On Fri, Oct 24, 2008 at 12:07 PM, tchredeemed <[EMAIL PROTECTED]> wrote:

>   grrr! same problem!
> Let me give an example of what I am doing!
> Keep in mind I am typing this very fast, and it most likely will have
> spelling mistakes, but it should give you an idea!
>
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml";
> creationComplete="creationCompleteHandler();"
> >
>
> 
>
> private function creationCompleteHandler():void {
> addText;
> addText;
> addSpacer;
> addText;
> addSpacer;
> addText;
>
> drawStripe();
> }
>
> private function drawStripe():void {
> var g:Graphics = this.graphics;
> g.beginFill(0x00);
> g.drawRect( 0, 0, 5, height );
> g.endFill();
> }
>
> 
>
> 
>
>  
>


Re: [flexcoders] Setting text on a text node in e4x

2008-10-24 Thread Daniel Freiman
does this do it?

parentElement.text()[index] = "newText";

- Daniel Freiman

On Fri, Oct 24, 2008 at 11:48 AM, Mark Carter <[EMAIL PROTECTED]> wrote:

>
> Hi - So, I know how to append a text node to an (parent) element, and how
> to
> replace a text node with a new text node (based on a specified string), but
> how do I set text on a text node?
>
> In my situation it is very important that the reference to the text node
> object is the same before and after this operation, so simply replacing the
> text node is not an option for me.
> --
> View this message in context:
> http://www.nabble.com/Setting-text-on-a-text-node-in-e4x-tp20152621p20152621.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>


Re: [flexcoders] Measuring a vbox after I add children to it

2008-10-24 Thread Daniel Freiman
vbox.validateSize();

if that doesn't work:

vbox.validateSize(true);

or

vbox.validateNow();

then go for vbox.height


On Fri, Oct 24, 2008 at 11:11 AM, tchredeemed <[EMAIL PROTECTED]> wrote:

>   I add children, and only Text or Spacer, to a vbox.
>
> After I have added them, I want to get the height of the vbox.
>
> However, when I call vbox.height, it gives me 0.
>
> If I call the measure() method, same problem, measuredHeight, same
> problem.
>
> Any ideas?
>
>  
>


Re: [flexcoders] about MVC

2008-10-24 Thread Daniel Freiman
PureMVC has examples with code all over their site.
http://puremvc.org/


On Fri, Oct 24, 2008 at 3:09 AM, srikanthkpn <[EMAIL PROTECTED]> wrote:

>   Pls any one can send MVC exampls?
>
>  
>


Re: [flexcoders] Re: HTML real caret position

2008-10-21 Thread Daniel Freiman
Vaguely.  TextArea keeps all the values of the TextField cached.  So when
you edit the TextField directly, you're probably not affecting the
TextArea.  I don't immediately see a way around this.  All the methods you
would need access to in order to refresh the TextArea properties seem
private.  You might want to try
http://livedocs.adobe.com/flex/3/langref/mx/controls/textClasses/TextRange.html(which
I've never used so I can't give you any more help than the
suggestion).

- Daniel Freiman

On Tue, Oct 21, 2008 at 12:41 AM, xmrcivicboix <[EMAIL PROTECTED]>wrote:

>   Daniel,
>
> Any idea why this would happen? I enter the text below, placed my cursor.
>
> "Text I Entered [PLACED MY CURSOR HERE]";
>
> Then I used textArea.getTextField().replaceSelectedText("SOME TEXT");
> trace(textArea.htmlText) or trace(textArea.text). Got back where I
> entered and not the text "SOME TEXT" even though I can visually see it
> in the textarea.
>
> --- In flexcoders@yahoogroups.com ,
> "xmrcivicboix" <[EMAIL PROTECTED]>
> wrote:
>
> >
> > OMG. This is nuts. I guess I should have read the docs a little
> > better. =) hey thanks again!
> >
> > --- In flexcoders@yahoogroups.com ,
> "Daniel Freiman"  wrote:
> > >
> > > try:
> > >
> > >
> >
>
> http://livedocs.adobe.com/flex/3/langref/flash/text/TextField.html#replaceSelectedText
> ()
> > >
> > > - Daniel Freiman
> > >
> > > On Mon, Oct 20, 2008 at 2:28 PM, xmrcivicboix wrote:
> > >
> > > > I have this issue about the rich text editor that I hope
> someone can
> > > > help with. Basically, I want to be able to insert the string
> > > > '' at a certain caret index. This works fine when I
> > > > use the textarea.text property but when I use textarea.htmlText, it
> > > > inserts the ' 7 characters before the caret. This is
> > > > because it counted the format '' as indices. To
> > > > illustrate what I meant. Take a look:
> > > >
> > > > TEXT INSERTING:
> > > > The United States is acting in step with Europe, where
> > > > governments often take a more interventionist stance in
> economies and
> > > > the financial systems are in the hands of a comparatively small
> number
> > > > of banks.
> > > > [CURSOR GOES HERE]
> > > > Britain took the lead last week, declaring its intention to take
> > > > equity stakes in banks to steady them. In the last two days, France,
> > > > Italy and Spain have announced rescue packages for their banks that
> > > > include state shareholdings.
> > > >
> > > > RESULT:
> > > > The United States is acting in step with Europe, where
> > > > governments often take a more interventionist stance in
> economies and
> > > > the financial systems are in the hands of a comparatively small
> number
> > > > of banks.
> > > >
> > > > Britain took the lead last week, declaring its intention to take
> > > > equity stakes in banks to steady them. In the last two days, France,
> > > > Italy and Spain have announced rescue packages for their banks that
> > > > include state shareholdings.
> > > >
> > > > CODE:
> > > > var carIndex:int = textArea.getTextField().caretIndex;
> > > > var beginText:String = this.htmlText.substring(0, carIndex);
> > > > var endText:String =
> > this.htmlText.substr(carIndex,this.htmlText.length);
> > > > var text:String = beginText + "\n <!--pagebreak--> \n" +
> > endText;
> > > > this.htmlText = text;
> > > >
> > > > I can use the 'text' property but then I will lose all my
> formatting.
> > > >
> > > > Can anyone think of a solution?
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > >
> >
>
>  
>


Re: [flexcoders] Case sensitive XML?

2008-10-21 Thread Daniel Freiman
Yeah, you can also use expressions or concatenation but I'm guessing this
could be very inefficient:

var node:XML = xmlDoc.decendants().(localName().toLowerCase() =
"param").(@name.toLowerCase() == "movie");

var node:XML = (xmlDoc..param + xmlDoc..PARAM).(@name == "movie" || @name ==
"MOVIE");

- Daniel Freiman


On Mon, Oct 20, 2008 at 6:06 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   XML is supposed to be case sensitive, so I imagine there's no way to
> turn it off. You can clone the tree and change all node names to lowercase
> if you like, but that's probably your only option.
>
> -Josh
>
> On Tue, Oct 21, 2008 at 8:00 AM, Steve Mathews <[EMAIL PROTECTED]> wrote:
>
>>  So I just figured out that e4x is case-sensitive, which really doesn't
>> make any sense to me, but I'll assume there is a good reason. I did some
>> searching but haven't found any good way to get around this and it is
>> driving me batty.
>> Let's say you have this node
>>
>> http://www.youtube.com/v/Y9HMn6bd-v8&hl=en&fs=1";>
>>
>> and you want to find the value attribute, but this node is included with
>> other param nodes with the same attributes (as seen when embedding Flash).
>> The problem is that this works for this case
>>
>> var node:XML = xmlDoc..param.(@name == "movie");
>>
>> works here, but with this node
>>
>> http://www.youtube.com/v/Y9HMn6bd-v8&hl=en&fs=1";>
>>
>> it fails because param != PARAM.
>>
>> Is there a good way of handling this?
>>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> Like the cut of my jib? Check out my Flex blog!
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> :: http://flex.joshmcdonald.info/
>  
>


Re: [flexcoders] HTML real caret position

2008-10-20 Thread Daniel Freiman
try:

http://livedocs.adobe.com/flex/3/langref/flash/text/TextField.html#replaceSelectedText()

- Daniel Freiman

On Mon, Oct 20, 2008 at 2:28 PM, xmrcivicboix <[EMAIL PROTECTED]>wrote:

>   I have this issue about the rich text editor that I hope someone can
> help with. Basically, I want to be able to insert the string
> '' at a certain caret index. This works fine when I
> use the textarea.text property but when I use textarea.htmlText, it
> inserts the ' 7 characters before the caret. This is
> because it counted the format '' as indices. To
> illustrate what I meant. Take a look:
>
> TEXT INSERTING:
> The United States is acting in step with Europe, where
> governments often take a more interventionist stance in economies and
> the financial systems are in the hands of a comparatively small number
> of banks.
> [CURSOR GOES HERE]
> Britain took the lead last week, declaring its intention to take
> equity stakes in banks to steady them. In the last two days, France,
> Italy and Spain have announced rescue packages for their banks that
> include state shareholdings.
>
> RESULT:
> The United States is acting in step with Europe, where
> governments often take a more interventionist stance in economies and
> the financial systems are in the hands of a comparatively small number
> of banks.
>
> Britain took the lead last week, declaring its intention to take
> equity stakes in banks to steady them. In the last two days, France,
> Italy and Spain have announced rescue packages for their banks that
> include state shareholdings.
>
> CODE:
> var carIndex:int = textArea.getTextField().caretIndex;
> var beginText:String = this.htmlText.substring(0, carIndex);
> var endText:String = this.htmlText.substr(carIndex,this.htmlText.length);
> var text:String = beginText + "\n <!--pagebreak--> \n" + endText;
> this.htmlText = text;
>
> I can use the 'text' property but then I will lose all my formatting.
>
> Can anyone think of a solution?
>
> Thanks
>
>  
>


Re: [flexcoders] Re: Open Source SDK SVN down

2008-10-16 Thread Daniel Freiman
Google has found the "flash debug player" for me as the first hit 100% of
the time.

On Wed, Oct 15, 2008 at 11:10 PM, reflexactions <[EMAIL PROTECTED]>wrote:

>   Finding the download location for the debug version of player on
> Adobe site is always very very hard...
>
> Everytime there is a new release you seem to have to run around many
> different links and sections trying to find the "magic" one that
> leads to the download location.
>
> Maybe put the download link permanently in the developer connection
> home page then tell people thats where you go.
>
>
> --- In flexcoders@yahoogroups.com , Matt
> Chotin <[EMAIL PROTECTED]> wrote:
> >
> > And the culprit is...
> >
> > Folks downloading debug players from Subversion. Please don't use
> Subversion as your download location, thanks!
> >
> > Matt
> >
> >
> > On 10/15/08 2:05 PM, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Yeah It's back up for me, cheers!
> >
> > On Thu, Oct 16, 2008 at 2:15 AM, Matt Chotin <[EMAIL PROTECTED]> wrote:
> > Should be back up now, we're investigating. The load on the server
> is high and we're not sure why.
> >
> >
> > On 10/15/08 2:30 AM, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > opensource.adobe.com/svn/* 
>  is toast from where I'm sitting.
> Is it just me?
> >
> > -Josh
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location: https://share.acrobat.com/adc/document.do?
> docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives: http://www.mail-archive.com/flexcoders%
> 40yahoogroups.comYahoo! Groups Links
> >
>
>  
>


Re: [flexcoders] Problem with scaleX for system fonts!

2008-10-16 Thread Daniel Freiman
I know scaling TextField and UITextField works, so your problem has to do
with how the Label component is overriding the scaleX and scaleY
properties.  I'm not sure exactly in the code the disconnect is.

- Daniel Freiman

On Thu, Oct 16, 2008 at 5:30 AM, akila_ksri <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> I need to apply horizontal scaling for a text with 'Arial' font.
> lbl.scaleX = 0.70 simply does not work . I can only see that there is a
> change in the width of the label.
>
> Is there anything i am missing out to scale the text?? Is scaling not
> applicable for system fonts? ( I tried the same with font 'Verdana',
> but again, no luck!)
>
> Any help would be greatly appreciated.
>
> Thanks,
> Akila
>
>  
>


Re: [flexcoders] Rich Text Editor Problem

2008-09-29 Thread Daniel Freiman
Text components cannot use embeded and non-embeded fonts at the same time.
I'm not sure as to the details of what's going on in your case, but this
could be at the root of the problem.

- Daniel Freiman

On Mon, Sep 29, 2008 at 6:47 AM, jainleena82 <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> I am using a Rich Text Editor.My problem is that it is taking the font
> as Arial Embedded from the CSS.And When i try to change the font ,the
> text inside it disappears,the focus goes off from the RTE.
>
> How can i do away with this issue?If i comment out the css everything
> works fine.'
>
> Thanks and Regards,
> Leena Jain
>
>  
>


Re: [flexcoders] e4x filtering of xml nodes...

2008-09-26 Thread Daniel Freiman
It looks like your provided example should work.  However, the expression
will fail if there is an "MetaData" node without any "itemid" node child, so
if your example is not your actual test/use case, then this might be your
problem.  If it is, solve it by using this:

myData.Entry..MetaData.(elements("itemid") == 1234)

- Daniel Freiman

On Thu, Sep 25, 2008 at 10:48 PM, Durres76 <[EMAIL PROTECTED]> wrote:

>   hi,
> i'm getting a strange error, strange to me at least, when i run the
> following expression on the below xml data:
> - expression: myData.Entry..MetaData.(itemid == 1234)
> - var myData =
> 
> 
> 
> 1234
> 
> 
> 
> 
> 1234
> 
> 
> 
> 
> 12345
> 
> 
> 
>
> This is the runtime error in Flex:
> ReferenceError: Error #1065: Variable itemid is not defined
>
> i can't understand how itemid is not defined.
>
> Thanks,
> d
>
>  
>


Re: [flexcoders] TextArea with support of emoticans

2008-09-25 Thread Daniel Freiman
I've seen implementations of this.  You're not going to be able to implement
this entirely in the textfield.  It's implemented more as an overlay.  Do a
google search and you'll find someone who's already done this.

On Thu, Sep 25, 2008 at 4:43 PM, Sajid Hussain <[EMAIL PROTECTED]>wrote:

>   Sorry Ryan .
> right now I cnat gave sample as I m out of work but as i m developing
> mesenger so I m sending richtexteditor html type format for textarea from
> one user to another when my another user got message i search if it has some
> emotican characters like : ) then i replaced that with html's image tag
> like  with one img tag replacement it work fine but
> when it got many tags  those still work but they dint come up on same line
> as we have standard chating emoticans instead the other image wento to
> nextline
>
> .
>
>
> - Original Message 
> From: Ryan Graham <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Friday, September 26, 2008 1:31:33 AM
> Subject: RE: [flexcoders] TextArea with support of emoticans
>
>  Pretty sure the  element would be treated the same as the  and
>  elements below.  How are you getting your HTML? From a CDATA section
> somewhere, or as actual markup? If you could post a small example of your
> exact setup, it would help to give more specific advice.
>
> HTH,
> Ryan
>
>  --
> *From:* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
> *On Behalf Of *Sajid Hussain
> *Sent:* Thursday, September 25, 2008 1:25 PM
> *To:* [EMAIL PROTECTED] ups.com
> *Subject:* Re: [flexcoders] TextArea with support of emoticans
>
>   hmm I m going to play witht this I m sure it will may help .
> it seems u think by using condenseWhit we could have inline images?
>
> Sajid
>
>
>
> - Original Message 
> From: Ryan Graham 
> To: [EMAIL PROTECTED] ups.com
> Sent: Friday, September 26, 2008 1:11:27 AM
> Subject: RE: [flexcoders] TextArea with support of emoticans
>
>  When using the TextArea with htmlText, flex converts the htmlText when
> setting the property to it's own specific flavor of HTML for rendering. To
> see what goes on here, set the htmlText property, then do a trace to see
> what it is converted into -- each run of text appears to get broken up into
> its own . Example (not exactly what flex does, but you get the picture
> hopefully):
>
> Text bold text italic text some more text
>
> converts to something like this
>
> Text bold text italic text
> some more text
>
> This is explained pretty well in the docs.
>
> With htmlText, try some of the spacing properties to affect the way that
> internal HTML representation is built:
>
> textArea.condenseWh ite = true;
>
> HTH,
> Ryan
>
>  --
> *From:* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
> *On Behalf Of *Sajid Hussain
> *Sent:* Thursday, September 25, 2008 12:51 PM
> *To:* Code
> *Subject:* [flexcoders] TextArea with support of emoticans
>
>   Hi Guys ,
>
> for web messenger's emoticons ,I need to put images into textarea I have
> used htmltext and loading up  tag ,one image(emoticon ) work fine but
> with more then one img tag it comes as vertically where image at the bottom
> of image where it seems some html thing , any suggestion I could have two
> html img tags in one line ?
>
>
>
> Sajid
>
>
>   This message is private and confidential. If you have received it in
> error, please notify the sender and remove it from your system.
>
>   This message is private and confidential. If you have received it in
> error, please notify the sender and remove it from your system.
>
>  
>


Re: [flexcoders] e4x problem - filtering elements based on multiple child conditions

2008-09-22 Thread Daniel Freiman
name.text()[0] will give you a single XML node of Kind string.  If you want
to operate on it as a string simply do: name.text()[0].toString()

On Mon, Sep 22, 2008 at 11:35 AM, Mark Carter <[EMAIL PROTECTED]> wrote:

>
> I get "value is not a function" - I guess because toLowerCase() cannot work
> on an XMLList. You would have to do:
>
>
> rootXML.group.(name.text()[0].toLowerCase()=="fred"&&name.text()[0].toLowerCase()=="bob")
>
> which, like you say, would always return nothing.
>
> Or you have to specify group elements with exactly one child name element.
>
>
> Daniel Freiman wrote:
> >
> > I think you'd actually be matching "fred" against the first item in the
> > list, which would means that the entire expression would always return
> > false
> > because the first item can't be both "bob" and "fred".
> >
> > On Mon, Sep 22, 2008 at 11:05 AM, Mark Carter <[EMAIL 
> > PROTECTED]
> >
> > wrote:
> >
> >>
> >> That doesnt work for me. Arent you trying to match "fred" against the
> >> lowercased name.text() XMLList?
> >>
> >>
> >> xitij2000 wrote:
> >> >
> >> > i performed a similar operation by doing:
> >> >
> >>
> rootXML.group.(name.text().toLowerCase()=="fred"&&name.text().toLowerCase()=="bob")
> >> >
> >> > the toLowerCase is just because i needed case insensitivity...
> >> >
> >> >
> >> > --- In flexcoders@yahoogroups.com 
> >> >  40yahoogroups.com>,
>
> >> "Daniel Freiman" <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> try this:
> >> >>
> >> >> rootXML.group.(name.text().contains("fred") &&
> >> > name.text().contains("bob"))
> >> >>
> >> >> - Daniel Freiman
> >> >>
> >> >> On Mon, Sep 22, 2008 at 5:20 AM, Mark Carter <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> >
> >> >> > Ok, that subject is a bit vague but here's an example of what I
> >> mean:
> >> >> >
> >> >> > 
> >> >> > fred
> >> >> > bob
> >> >> > peter
> >> >> > 
> >> >> >
> >> >> > Say we have lots of these group elements in an XML document. I want
> >> to
> >> >> > select all groups including the names "fred" and "bob", for
> >> > example. Is it
> >> >> > possible in one e4x expression?
> >> >> >
> >> >> > My guess would be: rootXML.group.name.(text() ==
> >> >> > "fred").parent().name.(text() == "bob").parent()
> >> >> >
> >> >> > but the parent() part seems to be wrong.
> >> >> >
> >> >> > Any ideas???
> >> >> >
> >> >> > On a slightly different note...
> >> >> >
> >> >> > I notice that rootXML.group.(name == "fred") will only work for a
> >> > group
> >> >> > containing fred and nothing else. Using rootXML.group.name.(text()
> >> ==
> >> >> > "fred") sort of gives me what I want, but I really want the
> parent()
> >> >> > elements. Of course, I could iterate over the results but I really
> >> > want to
> >> >> > do this in one expression.
> >> >> > --
> >> >> > View this message in context:
> >> >> >
> >> >
> >>
> http://www.nabble.com/e4x-problem---filtering-elements-based-on-multiple-child-conditions-tp19604364p19604364.html
> >> >> > Sent from the FlexCoders mailing list archive at Nabble.com.
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >> >
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/e4x-problem---filtering-elements-based-on-multiple-child-conditions-tp19604364p19609869.html
> >> Sent from the FlexCoders mailing list archive at Nabble.com.
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/e4x-problem---filtering-elements-based-on-multiple-child-conditions-tp19604364p19610549.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>


Re: [flexcoders] e4x problem - filtering elements based on multiple child conditions

2008-09-22 Thread Daniel Freiman
I think you'd actually be matching "fred" against the first item in the
list, which would means that the entire expression would always return false
because the first item can't be both "bob" and "fred".

On Mon, Sep 22, 2008 at 11:05 AM, Mark Carter <[EMAIL PROTECTED]> wrote:

>
> That doesnt work for me. Arent you trying to match "fred" against the
> lowercased name.text() XMLList?
>
>
> xitij2000 wrote:
> >
> > i performed a similar operation by doing:
> >
> rootXML.group.(name.text().toLowerCase()=="fred"&&name.text().toLowerCase()=="bob")
> >
> > the toLowerCase is just because i needed case insensitivity...
> >
> >
> > --- In flexcoders@yahoogroups.com ,
> "Daniel Freiman" <[EMAIL PROTECTED]> wrote:
> >>
> >> try this:
> >>
> >> rootXML.group.(name.text().contains("fred") &&
> > name.text().contains("bob"))
> >>
> >> - Daniel Freiman
> >>
> >> On Mon, Sep 22, 2008 at 5:20 AM, Mark Carter <[EMAIL PROTECTED]> wrote:
> >>
> >> >
> >> > Ok, that subject is a bit vague but here's an example of what I mean:
> >> >
> >> > 
> >> > fred
> >> > bob
> >> > peter
> >> > 
> >> >
> >> > Say we have lots of these group elements in an XML document. I want to
> >> > select all groups including the names "fred" and "bob", for
> > example. Is it
> >> > possible in one e4x expression?
> >> >
> >> > My guess would be: rootXML.group.name.(text() ==
> >> > "fred").parent().name.(text() == "bob").parent()
> >> >
> >> > but the parent() part seems to be wrong.
> >> >
> >> > Any ideas???
> >> >
> >> > On a slightly different note...
> >> >
> >> > I notice that rootXML.group.(name == "fred") will only work for a
> > group
> >> > containing fred and nothing else. Using rootXML.group.name.(text() ==
> >> > "fred") sort of gives me what I want, but I really want the parent()
> >> > elements. Of course, I could iterate over the results but I really
> > want to
> >> > do this in one expression.
> >> > --
> >> > View this message in context:
> >> >
> >
> http://www.nabble.com/e4x-problem---filtering-elements-based-on-multiple-child-conditions-tp19604364p19604364.html
> >> > Sent from the FlexCoders mailing list archive at Nabble.com.
> >> >
> >> >
> >> >
> >>
> >
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/e4x-problem---filtering-elements-based-on-multiple-child-conditions-tp19604364p19609869.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>


Re: [flexcoders] e4x problem - filtering elements based on multiple child conditions

2008-09-22 Thread Daniel Freiman
You're correct, but you can also do the filtering in a loop to be dynamic:

var result:XMLList = rootXML.group.(name.text().contains("fred"));
for each (filterName) { // psuedo-code
   result = result.(name.text().contains(filterName));
}
return result;

- Daniel Freiman

On Mon, Sep 22, 2008 at 10:38 AM, Mark Carter <[EMAIL PROTECTED]> wrote:

>
> Oh cool, that works, thanks very much Daniel.
>
> Am I right in thinking that "name.text()" is returning an XMLList of text
> nodes and "contains(fred)" is basically looking for a match of "fred" in
> that list?
>
> In real life, instead of having two names, I have an array of names. I
> suppose its not possible to build an e4x expression at runtime?
>
>
> Daniel Freiman wrote:
> >
> > try this:
> >
> > rootXML.group.(name.text().contains("fred") &&
> > name.text().contains("bob"))
> >
> > - Daniel Freiman
> >
> > On Mon, Sep 22, 2008 at 5:20 AM, Mark Carter <[EMAIL 
> > PROTECTED]
> >
> > wrote:
> >
> >>
> >> Ok, that subject is a bit vague but here's an example of what I mean:
> >>
> >> 
> >> fred
> >> bob
> >> peter
> >> 
> >>
> >> Say we have lots of these group elements in an XML document. I want to
> >> select all groups including the names "fred" and "bob", for example. Is
> >> it
> >> possible in one e4x expression?
> >>
> >> My guess would be: rootXML.group.name.(text() ==
> >> "fred").parent().name.(text() == "bob").parent()
> >>
> >> but the parent() part seems to be wrong.
> >>
> >> Any ideas???
> >>
> >> On a slightly different note...
> >>
> >> I notice that rootXML.group.(name == "fred") will only work for a group
> >> containing fred and nothing else. Using rootXML.group.name.(text() ==
> >> "fred") sort of gives me what I want, but I really want the parent()
> >> elements. Of course, I could iterate over the results but I really want
> >> to
> >> do this in one expression.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/e4x-problem---filtering-elements-based-on-multiple-child-conditions-tp19604364p19604364.html
> >> Sent from the FlexCoders mailing list archive at Nabble.com.
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/e4x-problem---filtering-elements-based-on-multiple-child-conditions-tp19604364p19609288.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>


Re: [flexcoders] e4x problem - filtering elements based on multiple child conditions

2008-09-22 Thread Daniel Freiman
try this:

rootXML.group.(name.text().contains("fred") && name.text().contains("bob"))

- Daniel Freiman

On Mon, Sep 22, 2008 at 5:20 AM, Mark Carter <[EMAIL PROTECTED]> wrote:

>
> Ok, that subject is a bit vague but here's an example of what I mean:
>
> 
> fred
> bob
> peter
> 
>
> Say we have lots of these group elements in an XML document. I want to
> select all groups including the names "fred" and "bob", for example. Is it
> possible in one e4x expression?
>
> My guess would be: rootXML.group.name.(text() ==
> "fred").parent().name.(text() == "bob").parent()
>
> but the parent() part seems to be wrong.
>
> Any ideas???
>
> On a slightly different note...
>
> I notice that rootXML.group.(name == "fred") will only work for a group
> containing fred and nothing else. Using rootXML.group.name.(text() ==
> "fred") sort of gives me what I want, but I really want the parent()
> elements. Of course, I could iterate over the results but I really want to
> do this in one expression.
> --
> View this message in context:
> http://www.nabble.com/e4x-problem---filtering-elements-based-on-multiple-child-conditions-tp19604364p19604364.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>


Re: [flexcoders] unable to use debug mode

2008-09-20 Thread Daniel Freiman
try this:  http://mostlyflex.com/2008/06/23/firefox3-vs-flex-builder/

On Fri, Sep 19, 2008 at 7:08 PM, windsail05 <[EMAIL PROTECTED]> wrote:

>   For the past couple of months I have not been able to use debug mode
> for one of my workspaces. I am able to be in debug mode and run
> things from debug mode, but none of my breakpoints get triggered and
> none of my traces show up. I am not sure why this is happening. This
> workspace use to work in debug mode.
>
> Does anyone know of any settings that could have been changed or
> reasons for this happening?
>
>  
>


Re: [flexcoders] Preventing cut&paste in Flex3 application

2008-09-16 Thread Daniel Freiman
I don't think you can disable the cut/paste menus.  But you can
disable/cancel the functionality.  I'd play around with the keydown and
change events of the UITextField.  If the control key is down in the active
in the keydown event, save the current htmltext of the textfield and reset
the text to that saved state on the change event.  If that doesn't work
there are some functions of the flash.text.TextField class that you can
override to intercept the paste, but we probably want to avoid going that
far.

- Daniel Freiman

On Tue, Sep 16, 2008 at 9:30 AM, justincase772 <[EMAIL PROTECTED]>wrote:

>   Hello everybody. As dumb as it might sound, I need to disable
> cut&paste in a flex3 web application, or in general to prevent users
> from performing cut&paste in TextInput and TextArea fields.
>
> Hours of googling, nothing found; anybody here able and willing to
> help?
>
> Thanks in advance
>
> Luca
>
> P.S. This is not an AIR application, nor unfortunately using AIR is an
> option at this time.
>
>  
>


Re: [flexcoders] XMLListCollection.AddItemAt() silently fails

2008-09-16 Thread Daniel Freiman
I'll test that theory out when I have time.  For now I have a workaround.
It'll be interesting to see if there's a substantive difference between the
two.

- Daniel Freiman

On Mon, Sep 15, 2008 at 7:56 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>I use FDB to debug XML problems.  I can see instance numbers and other
> properties that the FB debugger filters.  I don't trust the debugger to step
> into binding code.
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Daniel Freiman
> *Sent:* Monday, September 15, 2008 1:59 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] XMLListCollection.AddItemAt() silently fails
>
>
>
> Yeah, I've been looking into binding causes, but wouldn't I see that
> happening while stepping through the code?  As far as I can tell this is an
> atomic action (or lack thereof).
>
> - Daniel Freiman
>
> On Mon, Sep 15, 2008 at 4:45 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> Maybe setting source[0] triggers change events that refresh source?
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Daniel Freiman
> *Sent:* Monday, September 15, 2008 12:03 PM
> *To:* flexcoders
> *Subject:* [flexcoders] XMLListCollection.AddItemAt() silently fails
>
>
>
> I have a case where I try to add a node to an empty XMLListCollection and
> addition silently fails.  I step through the code and I find that line 216
> of XMLListAdapater is the line that is failing (it's supposed to assign the
> added node to the first location in the source list but instead nothing
> happens).  Here's the line:
>
> source[0] = length > 0 ? item + source[0] : item;
>
> I can't recreate this bug in any other condition other than the app I'm
> currently developing.  Has anyone else seen this intermitent error?
>
> - Daniel Freiman
>
>
>
>   
>


Re: [flexcoders] XMLListCollection.AddItemAt() silently fails

2008-09-15 Thread Daniel Freiman
Yeah, I've been looking into binding causes, but wouldn't I see that
happening while stepping through the code?  As far as I can tell this is an
atomic action (or lack thereof).

- Daniel Freiman

On Mon, Sep 15, 2008 at 4:45 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Maybe setting source[0] triggers change events that refresh source?
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Daniel Freiman
> *Sent:* Monday, September 15, 2008 12:03 PM
> *To:* flexcoders
> *Subject:* [flexcoders] XMLListCollection.AddItemAt() silently fails
>
>
>
> I have a case where I try to add a node to an empty XMLListCollection and
> addition silently fails.  I step through the code and I find that line 216
> of XMLListAdapater is the line that is failing (it's supposed to assign the
> added node to the first location in the source list but instead nothing
> happens).  Here's the line:
>
> source[0] = length > 0 ? item + source[0] : item;
>
> I can't recreate this bug in any other condition other than the app I'm
> currently developing.  Has anyone else seen this intermitent error?
>
> - Daniel Freiman
>
>   
>


[flexcoders] +Re: Dynamic destination of remote object?

2008-09-10 Thread Daniel McQuillen
Did you try casting to mx.rpc.remoting.mxml.RemoteObject? This is a subclass
or mx.rpc.remoting.RemoteObject. Although it's for the 
tag, it does give you access to the endpoint property...something the
superclass doesn't.

- Daniel


Re: [flexcoders] How do I set the url path manually in my swf file

2008-09-04 Thread Daniel Freiman
Is these what you're looking for?

http://blog.mikenimer.com/index.cfm/2007/1/10/Bye-bye-services
http://sujitreddyg.wordpress.com/2008/07/03/creating-blazeds-channels-at-runtime/

- Daniel Freiman

On Thu, Sep 4, 2008 at 9:21 AM, kirilminevgroups <[EMAIL PROTECTED]
> wrote:

>   I've been developing some UI's communicating with blaze ds and I am
> having some issues while running my flex on Tomcat. Is there a way I
> can set the url path manually in my flex application where the swf
> pulls these parameters from???
>
> Thanks in advance.
>
>  
>


Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it

2008-09-03 Thread Daniel Freiman
I agree with Paul from a technological basis, but there is a strong business
case for doing compilation on the fly and having the deliverable be a single
file.  People with lower technology aptitude/interest would consider a
single file better/simpler and may use that as a significant factor on what
to purchase.  This is why a lot of these types of products do deliver only
one file.  A lot also deliver multiple files, so it's by no means a cut and
dry case.  So if the product marketing allows for a multi-file
deliverable/output, then I would agree with Paul.  But sometimes your stuck
with what the market(ers) want.

- Daniel Freiman

On Wed, Sep 3, 2008 at 9:56 AM, Paul Andrews <[EMAIL PROTECTED]> wrote:

>   - Original Message -
> From: "kuntamayu" <[EMAIL PROTECTED] >
> To: >
> Sent: Wednesday, September 03, 2008 2:42 PM
> Subject: [flexcoders] Re: Want to build a SWF on the fly when someone
> requests it
>
> > Hi Folks,
> >
> > There is nothing to hide about it.
> >
> > See, the thing is : I like to make a web application with Flex as well
> > as its counter part desktop version in AIR.
> >
> > The application will be of like Flex Flip Book and it also offering
> > some other features like slideshow, calender view, zoom In zoom Out
> > etc features.
> >
> > I want my end user come to online version and can make his own stuff -
> > - My system will provide him some layout of
> > - client will choose any layout and provide data for that particular
> > layout
> > - clients input data will be like image / video etc.
> > - system will save that page(layout) by page
> > - at the end client will get a swf file to use at his conveniences.
> >
> > Same way I want to offer same functionality with AIR version, too.
> >
> > ~ Paul, is it information ok to understand you what the application ?
>
> Yes, BUT you haven't explained why you cannot package the swf with other
> files.
>
> > Folks, can you guide me the proper way now ?
>
> Avoid building a swf file 'on the fly'. It's going to be very hard to do
> and
> prone to all kinds of problems.
>
> My instinct is this:
>
> If you knew how to do it you would avoid doing it.
> If you don't know how to do it and have to ask you shouldn't do it.
>
> My suggestion for 'the proper way' is not to try and build a single swf. -
> it's just my opinion, maybe others (and you) disagree.
>
> I'll be interested to see how you get on.
>
> Paul
>
>
> > Awaiting response
>
> > --- In flexcoders@yahoogroups.com , "Paul
> Andrews" <[EMAIL PROTECTED]> wrote:
> >>
> >> - Original Message -
> >> From: "kuntamayu" <[EMAIL PROTECTED]>
> >> To: >
> >> Sent: Tuesday, September 02, 2008 12:46 PM
> >> Subject: [flexcoders] Re: Want to build a SWF on the fly when someone
> >> requests it
> >>
> >>
> >> > Hi Daniel Freiman, Paul and Toby Ashley
> >> >
> >> > Thanks for your reply.
> >> >
> >> > But for this same product we have to crate an AIR (desktop) version
> >> > too. That's why also, as an end product from my application, I have to
> >> > give an swf to end client.
> >>
> >> I think the main mystery is why it has only to be a single swf
> > rather than
> >> swf + customistaion data in various files. You are effectively
> > trying to
> >> include all that customistation inside the swf. Air doesn't preclude
> >> supplying the application + customisation files.
> >>
> >> Can you not say what this application is?
> >>
> >> Paul
> >>
> >> > Folks, do you have any other suggestions . . . !!!
> >>
> >> > --- In flexcoders@yahoogroups.com ,
> "Paul Andrews"  wrote:
> >> >>
> >> >> - Original Message -
> >> >> From: "kuntamayu" 
> >> >> To: >
> >> >> Sent: Monday, September 01, 2008 2:51 PM
> >> >> Subject: [flexcoders] Re: Want to build a SWF on the fly when someone
> >> >> requests it
> >> >>
> >> >>
> >> >> > Hi...
> >> >> >
> >> >> > I am working on a project like " Flex Flip Book ", so in that
> > project
> >> >> > as a end product from my application, I need to give an swf file to
> >> >> > end user so he / she can use that swf file directly without

Re: [flexcoders] Who is Robert Thompson?

2008-09-02 Thread Daniel Freiman
IMHO, in a community like this, what someone says should be judged by the
content, not their qualifications.  (I might make exceptions for people who
have exceptional reputations, or some official authority, but those are the
exceptions, not the rule).

Judge the content (in context), not the man/woman.

- Daniel Freiman

On Tue, Sep 2, 2008 at 10:29 AM, nathanpdaniel <[EMAIL PROTECTED]> wrote:

>   Since he seems to be in EVERY thread... and why should we (not) listen
> to what he has to say? Just curious...
>
>  
>


Re: [flexcoders] Re: Want to build a SWF on the fly when someone requests it

2008-09-01 Thread Daniel Freiman
You're going to have to dynamically write the source code and run the
command-line compiler on it.  Building the code can be very specific to the
project so I can't help you there, but the docs on the compiler are here:
http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_14.html

- Daniel Freiman

On Mon, Sep 1, 2008 at 9:51 AM, kuntamayu <[EMAIL PROTECTED]> wrote:

>   Hi...
>
> I am working on a project like " Flex Flip Book ", so in that project
> as a end product from my application, I need to give an swf file to
> end user so he / she can use that swf file directly without any
> modification.
>
>
> --- In flexcoders@yahoogroups.com , "Toby
> Ashley" <[EMAIL PROTECTED]> wrote:
> >
> > You'd most likely be better off storing your users' data / choices
> as XML or
> > something, then build a SWF which can read in that XML and load /
> display
> > the relevant text / video / audio / links / whatever. Rather than
> creating
> > one SWF for each user, just create one SWF and pass it different XML for
> > each instance to populate the template.
> >
> >
> >
> > On Sat, Aug 30, 2008 at 12:10 PM, kuntamayu <[EMAIL PROTECTED]> wrote:
> >
> > > From my flex project, I want to create a swf file on fly - to save
> > > clients' data .
> > >
> > > Clients' data may contains Image, Text, Video, Audio and web link.
> > >
> > > How to save this data in a swf file at server side.
> > >
> > > ( We are using java for server side code )
> > >
> > > Waiting for reply.
> > >
> > >
> > > 
> > >
> > > --
> > > 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
> > >
> > >
> > >
> > >
> >
>
>  
>


Re: [flexcoders] Flexstore license?

2008-08-31 Thread Daniel Freiman
Josh, did anyone actually finish answering your question?  Serif got 90% of
the way there.

Here's the relevant paragraphs in the end users license agreement (Flex 2
SDK) -
http://www.adobe.com/products/eulas/pdfs/Adobe_FDS_FSDK-efgj-20061102_1102.pdf
:

"Sample Code" means sample software in source code format designated in the
Documentation as "sample code", "samples," "sample application code", and/or
"snippets", and found in directories labeled "samples", but shall not mean
any components that are part of the SDK Components.

Sample Code. Licensee may modify the Sample Code solely for the purposes of
designing, developing and testing Licensee's own software applications.
However, Licensee is permitted to use, copy and redistribute its modified
Sample Code only if all of the following conditions are met: (a) Licensee
includes Adobe's copyright notice (if any) with Licensee's application,
including every location in which any other copyright notice appears in such
application; and (b) Licensee does not otherwise use Adobe's name, logos or
other Adobe trademarks to market Licensee's application. Licensee agrees to
defend, indemnify, and hold Adobe and its suppliers harmless from and
against any claims or lawsuits, including attorneys' reasonable fees, that
arise or result from the use or distribution of Licensee's applications,
provided that Adobe gives Licensee prompt written notice of any such claim,
tenders to Licensee the defense or settlement of such a claim at Licensee's
expense, and cooperates with Licensee, at Licensee's expense, in defending
or settling such claim.

- Daniel Freiman


On Sun, Aug 31, 2008 at 3:35 PM, Sherif Abdou <[EMAIL PROTECTED]> wrote:

>WEll, I would email Adobe since it says this on every file
>
> 
> //
> // Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors.
> // All Rights Reserved.
> // The following is Sample Code and is subject to all restrictions on such 
> code
> // as contained in the End User License Agreement accompanying this product.
> // If you have received this file from a source other than Adobe,
> // then your use, modification, or distribution of it requires
> // the prior written permission of Adobe.
> //
> 
> and can we stop complaining and spamming now about Adobe and scene7 
> already.1) Your answer had nothing to do with the question and welcome to the 
> world.
>
>  2_If your that scared from losing some bids and the job then you don't 
> belong to this business, just saying.
>
> 3) You have to adapt and move on, and FutureWave/FutureSplash is technically 
> Adobe Flash.
>
> 4)Papervision plug-in? What are you talking about?
>
>
>
>
>
>  - Original Message -
> *From:* Robert Thompson <[EMAIL PROTECTED]>
> *To:* flexcoders@yahoogroups.com
> *Sent:* Sunday, August 31, 2008 12:17 PM
> *Subject:* Re: [flexcoders] Flexstore license?
>
>  To answer your question about any purchaser of Adobe products having to
> "license" an example they put out for use.
>
> Microsoft, Adobe, nearly every company puts (C) Copyright statements in
> it's examples.
>
> This is to prevent competitors from outright distributing code they have no
> right to.
>
> As examples to the FLEX Builder Product Owner, these examples have a very
> real place in teaching you how things are done.
>
> The Hybrid and Store 2.0 examples are frankly not as complicated as you
> might think - as long as you base all your data exchange on XML.
>
> As long as you create your own system, I wouldn't worry about it.  But the
> future of AIR and Flash Player I would worry about.
>
> My hope is Papervision comes out with their own Plug-in; as at this point
> and time, it's the perfect timing to let Flash Player 9 and earlier deal
> with all the earlier sites.
>
> And spread the word, if they choose to develop one, a Papervision3D
> plug-in, and began where FutureWave did, with a fresh new high performance
> platform for Visual Computing.
>
> The IT integration with things like Cold Fusion can then happen in more of
> a W3C and SOAP XML complaint way (Or RESTful XML way).
>
> I myself am playing things safer, including in the use of any ColdFusion,
> by taking the following route:
>
>
>- Using FTD Enterprise 3.0 <http://fdt.powerflasher.com/> as my IDE so
>it's not an Adobe Product
>- Using Open .SWF formats and tools, and Flash CS3 only when necessary
>for my clients
>- Working on a new Cycling '72 like visual 

Re: [flexcoders] breakpoints not being triggered

2008-08-25 Thread Daniel Freiman
Is the debugger even attaching correctly?

To check: start your app in debug mode.  Go into Flex Builder when the app
is already running and try to pause it.  If you can't pause it because the
debugger is already stopped, then the debugger never attached the
application correctly.

- Daniel Freiman

On Fri, Aug 22, 2008 at 9:43 PM, windsail05 <[EMAIL PROTECTED]> wrote:

>   when I run my application in debug mode, the breakpoints are never
> triggered. I tried putting a breakpoint in a function that was
> executed on completion (init()) and Flex would still not stop at the
> breakpoint.
>
> Is there a setting for this somewhere, or a reason for why a
> breakpoint would not be triggered?
>
>  
>


Re: [flexcoders] Debug Termination

2008-08-19 Thread Daniel Freiman
I haven't given it much thought on how it should work or if closing the tab
is a good idea/feasible.  But the terminate button doesn't terminate in some
cases.  That's all i was getting at.

On Tue, Aug 19, 2008 at 11:30 AM, Howard Fore <[EMAIL PROTECTED]> wrote:

>   Sorry, that's what I meant
>
> On Tue, Aug 19, 2008 at 11:18 AM, Daniel Freiman <[EMAIL PROTECTED]>wrote:
>
>>  No, I'd expect the detach to simply stop the debugger and have the app
>> keep running.  I'd expect the the terminate button to stop your app somehow.
>>
>
> --
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>  
>


Re: [flexcoders] Debug Termination

2008-08-19 Thread Daniel Freiman
No, I'd expect the detach to simply stop the debugger and have the app keep
running.  I'd expect the the terminate button to stop your app somehow.

- Daniel Freiman

On Tue, Aug 19, 2008 at 11:12 AM, Howard Fore <[EMAIL PROTECTED]> wrote:

>   You were expecting the detach to close the tab in the browser if it
> launched it?
>
> On Tue, Aug 19, 2008 at 11:09 AM, Daniel Freiman <[EMAIL PROTECTED]>wrote:
>
>>  Yeah, those are them.  But the terminate often doesn't work and does a
>> detach instead.  If flex builder launched a browser, terminate will close
>> the browser, thus terminating the app.  If flex builder launches a tab
>> within a browser, the terminate button only detaches.  I never really
>> thought about it before.  Sounds like a bug to me.
>>
>
>
>
> --
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>  
>


Re: [flexcoders] Debug Termination

2008-08-19 Thread Daniel Freiman
Yeah, those are them.  But the terminate often doesn't work and does a
detach instead.  If flex builder launched a browser, terminate will close
the browser, thus terminating the app.  If flex builder launches a tab
within a browser, the terminate button only detaches.  I never really
thought about it before.  Sounds like a bug to me.

- Daniel Freiman

On Tue, Aug 19, 2008 at 11:03 AM, Howard Fore <[EMAIL PROTECTED]> wrote:

>   You mean the little red square in the Debug view? When I hover over it I
> get a tool tip that says "Terminate" and the next one (an N with red circles
> on the up and down strokes) says "Disconnect".
>
> On Tue, Aug 19, 2008 at 10:59 AM, nathanpdaniel <[EMAIL PROTECTED]>wrote:
>
>> Is there a debug termination "button" I've been missing?  I run VS.NET
>> which has debugging where you can TERMINATE the application or DETATCH
>> the application.  All I've ever seen in Flex 3 is a DETATCH.  Or
>> rather - it used to be TERMINATE (I think), now it's just DETATCH.  Did
>> I change a setting accidentally somewhere or is DETATCH the only
>> available way to stop debugging (which still runs the application just
>> without debugging).
>>
>> Thanks,
>> -Nathan
>>
>
>
>
> --
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>  
>


Re: [flexcoders] How to upgrade Flex 3 to 3.0.1?

2008-08-19 Thread Daniel Freiman
(At least on Windows) the Adobe Updater will take care of it.

You can force the Updater to run in Flex Builder:
Help Menu -> Search For Flex Builder Updates...

- Daniel Freiman

On Tue, Aug 19, 2008 at 10:45 AM, markflex2007 <[EMAIL PROTECTED]>wrote:

>   Hi,
>
> Flex Builder 3.0.1 come out. I want to know how to upgrade to it from
> Flex 3.0.
>
> any idea?
>
> Thank you for your help.
>
> Thanks
>
> Mark
>
>  
>


[flexcoders] Change shape form with graphics effect!

2008-08-17 Thread Daniel
Hey guys...

I made a component that extends from UIComponent and have an item
renderer. The renderer have two states, an open state and a closed
state. The start state is closed, but when the users click on the
renderer it changes to the openedState which is bigger.

The container of that item renderer (the UIComponent) can either be a
circle or a pentagon which I draw in updateDisplayList with the
graphics attribute. When the item renderer change state the
UIComponent need to change its form to a rectangle while it increases
its size. How can I make a transition effect from the circle/pentagon
to the rectangle and viceversa?

Thanx in advanced,
DaN



Re: [flexcoders] MXML Component Navigation

2008-08-15 Thread Daniel Gerep
Hi jim

I'd use a ViewStack, and change its content at components click event.

You use the selectedChild or selectedIndex to change the views...

The documentation is a great source to understand more about these
components, check it...

I hope it helps...and sorry for any typos ;-)
-- 
At.
Daniel Gerep
Célula Digital Software - www.celuladigital.com.br


Re: [flexcoders] Re: Observing collections

2008-08-14 Thread Daniel Gold
should all be based on property change events, the heart of binding

On Thu, Aug 14, 2008 at 8:55 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote:

>   Oh, I just stepped through Observe, and I guess the standard binding
> mechanism calls the source setter again, which calls the handler.
>
>
> On Thu, Aug 14, 2008 at 6:49 AM, Richard Rodseth <[EMAIL PROTECTED]>wrote:
>
>> Thanks guys.
>>
>> Can someone explain how ac:Observe (which this is based on) works? i.e.
>> what triggers the handler call when somethng in the middle of the source
>> binding expression changes (eg. "b" in "{a.b.c.myCollection}"? I don't see
>> any event handlers, and there's a mysterious execute() method in the parent
>> class (Observer).
>>
>>  And would your version below also fire when b changes?
>>
>> Otherwise, Josh's example works too, but the collection event is the only
>> trigger.
>>
>>
>> On Thu, Aug 14, 2008 at 12:12 AM, Dennis van Nooij <[EMAIL PROTECTED]>wrote:
>>
>>>   try this:
>>>
>>> package com.adobe.ac
>>> {
>>> import mx.events.CollectionEvent;
>>> import mx.collections.ArrayCollection;
>>> import flash.events.Event;
>>> import mx.core.Application;
>>> import mx.core.UIComponent;
>>>
>>>
>>> /**
>>> *
>>> * monitors Collections and react on reassining of the variable
>>> * and changes in the collection which are bindable
>>> *
>>> */
>>> public class ObserveCollection extends Observer
>>> {
>>> private var _handler : Function;
>>> private var _source : Object;
>>>
>>> override public function get handler() : Function
>>> {
>>> return _handler;
>>> }
>>>
>>> public function set handler( value : Function ) : void
>>> {
>>> _handler = value;
>>> if( value != null )
>>> {
>>> isHandlerInitialized = true;
>>> if( isHandlerInitialized && isSourceInitialized )
>>> {
>>> callHandler();
>>> }
>>> }
>>> }
>>>
>>> override public function get source() : Object
>>> {
>>> return _source;
>>> }
>>>
>>> public function set source( value : Object ) : void
>>> {
>>> if (_source != null){
>>>
>>>
>>> _source.removeEventListener(CollectionEvent.COLLECTION_CHANGE,collectionChangeHandler);
>>>
>>> }
>>> _source = value;
>>>
>>>
>>> _source.addEventListener(CollectionEvent.COLLECTION_CHANGE,collectionChangeHandler);
>>>
>>> isSourceInitialized = true;
>>>
>>> if( isHandlerInitialized && isSourceInitialized )
>>> {
>>> callHandler();
>>> }
>>> }
>>>
>>> protected override function callHandler() : void
>>> {
>>> try
>>> {
>>> handler.call( null, source );
>>> }
>>> catch( e : Error )
>>> {
>>> delay( e );
>>> }
>>> }
>>>
>>> protected override function delay( e : Error ) : void
>>> {
>>> UIComponent( Application.application ).callLater( throwException, [
>>> e ] );
>>> }
>>>
>>> private function throwException( e : Error ) : void
>>> {
>>> throw e;
>>> }
>>>
>>> private function collectionChangeHandler (event:Event) : void
>>> {
>>>
>>> callHandler();
>>> }
>>>
>>>
>>> }
>>> }
>>>
>>> cheers,
>>> Dennis
>>>
>>>
>>> --- In flexcoders@yahoogroups.com , "Alex
>>> Harui" <[EMAIL PROTECTED]> wrote:
>>> >
>>> > Never used Observe, but if it implements IMXMLObject or you subclass
>>> and
>>> > do so, then you can use it in MXML
>>> >
>>> >
>>> >
>>> > 
>>> >
>>> > From: flexcoders@yahoogroups.com [mailto:
>>> flexcoders@yahoogroups.com ] On
>>> > Behalf Of Richard Rodseth
>>> > Sent: Wednesday, August 13, 2008 4:16 PM
>>> > To: flexcoders@yahoogroups.com 
>>> > Subject: [flexcoders] Observing collections
>>> >
>>> >
>>> >
>>> > For some reason I have an aversion to adding event listeners in
>>> > ActionScript, favouring binding expressions and the Observe tag from
>>> > Adobe Consulting. Not sure how rational this is, but there you have it.
>>> > Binding is just so damn elegant.
>>> >
>>> > However, collections are a problem. It seems that so often you want to
>>> > update something if either the collection itself or its contents
>>> > changes, and you don't really care about the details of the change.
>>> >
>>> > I suppose if you're a DataGrid watching its dataprovider you do care
>>> and
>>> > can minimize updates, but in many of the use cases I've encountered,
>>> > that's not the case - my observer is going to do something with the
>>> > whole collection (or maybe I've just been lazy about exploiting
>>> possible
>>> > optimizations).
>>> >
>>> > Is there anything like the Observe tag that can be instantiated in MXML
>>> > and can trigger a function call on a COLLECTION_CHANGE event?
>>> >
>>>
>>>
>>
>  
>


Re: [flexcoders] allowing CDATA in inline XML of ActionScript code of MXML

2008-08-13 Thread Daniel Freiman
You can split up the XML into a couple strings and concatenate them together
to work around the compiler.  Something like this:

var doc:XML= new XML("
> ;
>
> Alert.show(doc.toXMLString());
> }
>
> -- Keith H --
> www.keith-hair.net
>
>  
>


[flexcoders] Flex Kit for CS3 weirdness

2008-08-12 Thread Daniel McQuillen
I'm experiencing some weirdness when using the Flex Kit for CS3. I have a
MovieClip I'm exporting to a .swc (for Flex) as a UIMovieClip called
"AnimationPanel." I'm defining the class in a separate AnimationPanel.as
file with a class definition of:

  public class AnimationPanel extends UIMovieClip

I've already used the "Make Flex Component" command on the symbol in the
library and it reads the class correctly. There are are 10 child movieclips
within this main UIMovieClip timeline I want to access from the
AnimationPanel.as class. When I tried to compile, the compiler complained
that it didn't know what these movieclip references were. So I added member
definitions in the AnimationPanel.as file...

private var animHC:MovieClip
private var animCHL:MovieClip
... and so on.

That worked for all but two, which the compiler still said it didn't know
what they were. (I checked spelling and the instance name field for these
two.) Why thse two? Dunno.

This is the funny part: I did one thing...I moved the layer that the
supposedly missing movieclip was on. Suddenly, the compiler decided that "a
conflict exists with definition [movieclip name] in namespace internal"* for
every child movieclip l had defined*! So now it didn't want *any *definitions
in the class...they were being picked up automatically from inside the
movieclip. So now I took out all the member definitions and it worked fine.

Ehh...

I gues this is my ignorance of how the compiler works with movieclips, their
members, and classes that define the movieclips. Are you supposed to define
child movieclips that exist on the timeline in the .as class when
subclassing UIMovieClip? Does anybody know where to go to learn more about
how the compiler works in this case? Eveyrthing's working now but I'd like
to know what's going on.

Thanks in advance for any help!

Daniel
Santa Cruz, CA


[flexcoders] Re: Multiple Builder instances / windows?

2008-08-07 Thread Daniel
200MB? javaw.exe can take up to 700MB when running builder for a
couple of hours... That's a lot of memory...


--- In flexcoders@yahoogroups.com, "Gus" <[EMAIL PROTECTED]> wrote:
>
> > I don't think 200meg is a lot these days is it ?
> 
> Well I think it depends on how many projects, libraries, etc you have.
> and also if you are compiling... etc.
>




Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Daniel Gold
I definitely put a HUGE comment when moving that call to super to the end of
commitProperties, with a note that I should look into refactoring things to
not set any properties in commit. It may have been the only comment I wrote
this year.

My logic was that I WAS propagating changes in commitProperties, and one of
those changes had the effect of modifying a property of the super class,
which just didn't cross my mind as being problematic at the time. The title
of this window was a combination of different properties, and rather than
calling updateTitle() in each setter, I decided it made the most sense to do
that in commitProperties so I could catch if any of the properties changed
and have only a single location calling that function.

I slowly try to migrate older, or more rapidly developed components to the
invalidation mechanism, but run into problems when it's at the franken-stage
where it's half MXML with bindings, and half invalidation flags and
commitProperties. Problem being that the setter will fire bindings, but the
change won't be fully propagated everywhere it needs to and I get some null
or some unexpected value that is only half right and gets updated in the
next frame after commitProperties makes a change and causes other bindings
to fire. Maybe someday I'll write perfect by the book code from the get go.

On Wed, Aug 6, 2008 at 9:35 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Well, I said you were "strict" and not "wrong".  I've heard others say
> that super always should be the first thing in an override, but to me, that
> means that an override can only add or re-do and not intercept, which is,
> IMHO, a valid thing to do for an override.
>
> If you're that worried about whether you forgot or even intended to call
> super, a comment might be in order.  Gordon likes comments whenever we
> deviate from a pattern like add a listener in capture phase.  Sometimes I
> actually put them in.
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Wednesday, August 06, 2008 6:31 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Must call super.commitProperties at END of
> overrided commitProperties when extending TitleWindow?
>
>   I guess :)
>
> I just *really* don't like a situation where the position of
> super.whatever() affects whether or not it works. Frankly If I were
> designing a language super.foo() would be the default, and there'd be a
> keyword to block it.
>
> If super.commitProperties() can be expected to be anywhere inside a method,
> you can no longer at a quick glance tell whether or not it's called at all.
>
> The point I think is that commitProperties() is ideally (correct me if I'm
> wrong) for propagating any changed properties on "this" into their actual
> destinations, and deciding whether or not you need to schedule an
> updateDisplayList() or measure(). Doing anything else, such as changing said
> properties should be done where it makes more sense. The idea is that all
> the property changes generated by any events dispatched in the last frame
> are already completed by the time you get to commitProperties(). And
> changing properties inside commitProperties() invalidates this. It seems to
> me that whoever decided to ignore invalidateProperties() within
> commitProperties() thought something similar. That's probably an arrogant
> assumption to make, but I'm a jerk like that some times :)
>
> Somebody else in 6 months could see super.foo() at the end of your method,
> and because it's not in line with the rest of the project, move it back up
> the top - who knows how long it'll be before somebody notices that under
> certain circumstances the titles on your CustomPanel aren't what they should
> be any more?
>
> -Josh
>
> On Thu, Aug 7, 2008 at 11:15 AM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>>  Man, you are strict!  There is no reason you can't do work in your
>> override before calling super.whatever()
>>
>>  --
>> *
>> *
>>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
>  
>


Re: [flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Daniel Gold
it should have still updated on the next invalidation pass because in
Panel.as my call to set title sets _titleChanged = true, which should cause
that logic block to execute in the next commitProperties. Maybe I was off in
debugging and never hit another invalidation pass.

This does bring up a point about the invalidation mechanism however. Because
I really shouldn't know which properties are handled with invalidation flags
in a class I'm extending, I should always put the call to
super.commitProperties at the end of my commitProperties functions just in
case something in that function changes a property that calls
invalidateProperties. I definitely don't want to rely on another frame
calling invalidateProperties as it may never happen and I can't control when
it happens. What if a function call in commitProperties ends up dispatching
an event and some handler code executes that modifes title or some other
code handled by an invalidation flag. Only way to guarantee all those
changes are picked up is to call super after my code executes, which still
looks bizarre to me.

On Wed, Aug 6, 2008 at 6:44 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   The title property is simply a property that gets passed to the title
> UIComponent in commitproperties. Timeline:
>
> 1. You call super.commitProperties()
>
> 2. super.commitProperties() sees that this._title hasn't changed since the
> last commitProperties(). so doesn't set _myTitleComponent.title (or
> _titleLabel.text, whatever, but you get the idea)
>
> 3. You change this.title to "Boo!"
>
> 4. super.set title() sets this._title = "Boo!"
>
> 5. super.set title() calls invalidateProperties()
>
> 6. Flex realises you're already inside this.commitProperties for the
> instance in question, and ignores the invalidateProperties(). - If it
> didn't, you'd get an endless loop.
>
> Result: The title on screen doesn't get updated in this "validate
> properties" phase.
>
> Next time your commitProperties gets run, when you call this.title = "Boo!"
> it checks, realises that this._title *already* equals "Boo!", so it never
> marks the _title property as changed, so super.commitProperties() never
> bothers to update _myTitleComponent.title
>
> Result: It *never* makes it to the screen.
>
> -Josh
>
>
> On Thu, Aug 7, 2008 at 9:25 AM, Daniel Gold <[EMAIL PROTECTED]> wrote:
>
>>  I don't think I've seen anything like this before and maybe I'm just
>> going crazy.
>>
>> I've got a class that extends TitleWindow, it has a few setters and some
>> of these can affect what the displayed title should be. These all use
>> invalidation flags and don't get fully committed until commitProperties. If
>> I call super.commitProperties() at the beginning of my commitProperties
>> function, and then change the title somewhere else in that function, the
>> title NEVER gets commited. I've stepped through the code and I really can't
>> see why. There are only two places in Panel.as that modify _titleChanged. I
>> see it getting flipped to true in the setter, then when commitProperties
>> gets around to executing, the flag is magically false?
>>
>> Anyways, if I call super.commitProperties after I do all my work and
>> possibly modify the title, everything is fine, except it looks really whacky
>> because I've had it ingrained for years that you always call super class
>> functions at the beginning...
>>
>> A subclass of TitleWindow as simple as this exhibits the behavior:
>>
>> 
>> http://www.adobe.com/2006/mxml";
>> layout="absolute" width="400" height="300">
>>
>> 
>> 
>> 
>> 
>>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>  
>


[flexcoders] Must call super.commitProperties at END of overrided commitProperties when extending TitleWindow?

2008-08-06 Thread Daniel Gold
I don't think I've seen anything like this before and maybe I'm just going
crazy.

I've got a class that extends TitleWindow, it has a few setters and some of
these can affect what the displayed title should be. These all use
invalidation flags and don't get fully committed until commitProperties. If
I call super.commitProperties() at the beginning of my commitProperties
function, and then change the title somewhere else in that function, the
title NEVER gets commited. I've stepped through the code and I really can't
see why. There are only two places in Panel.as that modify _titleChanged. I
see it getting flipped to true in the setter, then when commitProperties
gets around to executing, the flag is magically false?

Anyways, if I call super.commitProperties after I do all my work and
possibly modify the title, everything is fine, except it looks really whacky
because I've had it ingrained for years that you always call super class
functions at the beginning...

A subclass of TitleWindow as simple as this exhibits the behavior:


http://www.adobe.com/2006/mxml"; layout="absolute"
width="400" height="300">







Re: [flexcoders] Is it possible to put a custom component inside itself?

2008-08-04 Thread Daniel Gold
Sure, as long as you hit your base case and the constructor actually returns
for the last one you create you'll be fine. Just to test and prove the logic
to yourself, create a static class variable and decrement it each time you
create a new one, check it in the constructor if its > 0 declare a new
instance and that will be your base case. You should have a hierarchical
component where each instance has one child, that has a childwith a
depth equal to whatever your static var was initialized to.

On Mon, Aug 4, 2008 at 2:51 PM, Amy <[EMAIL PROTECTED]> wrote:

>   Hi, all;
>
> I want to create a component that is recursive, but I'm not sure
> whether it's possible to create an instance of a component inside the
> definition of that component. Does anyone have any examples of doing
> recursion in a Flex component?
>
> I started out trying to modify RandomWalk, but it looks like I'd have
> to change a lot of logic in a lot of places to get it to work (plus it
> isn't truly recursive), and my time frame is too short for trying to
> root through and find everything I'd need to change.
>
> Thanks;
>
> Amy
>
>  
>


Re: [flexcoders] Flex Trademarks: How do we play nice?

2008-08-03 Thread Daniel Freiman
I'm sure you were looking for a plan English answer, but since I'm only an
ex-proto-laywer myself, the best I'm going to do is this:

http://www.adobe.com/misc/pdfs/TM_GuideforThirdPartiesFinalPrint.pdf

- Daniel Freiman

On Sun, Aug 3, 2008 at 7:13 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   Hey guys,
>
> Just finished listening to the latest Flexshow with Matt, and realised that
> when I get around to uploading my new design, putting up more content and
> launching my blog publicly I'm likely to run afoul of Adobe's crack team of
> ninja lawyers. Dating a proto-lawyer is frankly all the lawyer I need in my
> life- so I want to know whom I need to talk to in order to get permission to
> use the word "Flex" as part of the name (it's obviously satire, and in no
> way looks like any *Adobe* logos or trademarks), and how to word the "Flex
> is pwn3d by adobe" text.
>
> Decided not to email off-list as I'm sure some other people will be
> interested in the same info!
>
> -Josh
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>  
>


Re: [flexcoders] Flex PopUp - Background Transparency Question

2008-08-02 Thread Daniel Freiman
See the modal styles for the Application class (modalTransparency,
modelBlur, etc):

http://livedocs.adobe.com/flex/3/langref/mx/core/Application.html

- Daniel Freiman

On Fri, Aug 1, 2008 at 12:27 PM, pbrendanc <[EMAIL PROTECTED]> wrote:

>   My app uses a popup window - however the background window shows
> through a bit more that I like - how can I fade the background so that
> it's still visible bit rather dim while the popup is displayed?
> (You can see the app at myflexapps.appspot.com).
>
> I know there are some alpha settings - is that the best way to
> accomplish this?
>
> TIA,
> Patrick
>
>  
>


Re: [flexcoders] Re: How to temporarily stop a dataProvider from updating UI

2008-08-01 Thread Daniel Gold
all disableAutoUpdate. If, after
> that,
> > > > 500ms
> > > > > go by with no add requests, I call enableAutoUpdate().
> > > > >
> > > > > But now, adding 1000 rows takes just as long as before. With
> > the
> > > > tree
> > > > > collapsed (or with a regular DataGrid), it takes 1 second.
> With
> > > the
> > > > > tree opened, it takes 8, with or without auto-update.
> > > > >
> > > > > Any idea why this might be? I can switch to replacing the
> > > > > dataProvider and only running this optimization when the app
> > > first
> > > > > loads, but I'd rather not.
> > > > >
> > > > > More information: The dataProvider is a subclass of
> > > > ArrayCollection,
> > > > > which contains objects with a "children" member, which is
> > another
> > > > > ArrayCollection.
> > > > >
> > > > >
> > > > > private var m_lastAdd:Number = 0;
> > > > > private var m_autoUpdateEnabled:Boolean = true;
> > > > >
> > > > > // This is called 1000 times
> > > > > private function AddItem(name:String):void
> > > > > {
> > > > > var now:Number = (new Date()).getTime();
> > > > > if (m_autoUpdateEnabled && (now - m_lastAdd < 300))
> > > > > {
> > > > > gridData.disableAutoUpdate();
> > > > > m_autoUpdateEnabled = false;
> > > > > setTimeout(flushAddQueue, 500);
> > > > > }
> > > > > m_lastAdd = now;
> > > > > [Then call the add function, which puts items into the 0th
> > group]
> > > > > }
> > > > >
> > > > > private function flushAddQueue():void
> > > > > {
> > > > > if (!m_autoUpdateEnabled && ((new Date()).getTime() -
> m_lastAdd
> > <
> > > > > 300))
> > > > > {
> > > > > gridData.enableAutoUpdate();
> > > > > m_autoUpdateEnabled = true;
> > > > > }
> > > > > else
> > > > > setTimeout(flushAddQueue, 500);
> > > > > }
> > > > >
> > > > >
> > > > >
> > > > > Thanks for all your help so far!
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com > ,
> "Daniel Gold"
> 
> > > > > wrote:
> > > > > >
> > > > > > I've seen a lot of posts with performance related to using
> > > > Bindable
> > > > > > Collections like that. One of the dangerous of having such
> a
> > > > useful
> > > > > easy API
> > > > > > for updating controls...
> > > > > >
> > > > > > Just to expand on what Alex is suggesting, suppose your
> > service
> > > > > call returns
> > > > > > to a function called updateData, and your control is bound
> to
> > a
> > > > > _data
> > > > > > ArrayCollection
> > > > > >
> > > > > > public function updateData(newData:IList):void
> > > > > > {
> > > > > > var newData:Array =[];
> > > > > > for each(var data:Object in IList)
> > > > > > {
> > > > > > _newData.push(data);
> > > > > > }
> > > > > > _data.source = newData;
> > > > > > _data.refresh();
> > > > > > }
> > > > > >
> > > > > > That's an extremely basic code example, and actually
> > > unnecessary
> > > > to
> > > > > loop
> > > > > > like that in most cases, but basic principle is get your
> data
> > > > > structured in
> > > > > > an Array or similar structure, add new items, remove old
> > > > > unnecessary items,
> > > > > > whatever you need to do, concat or replace the source Array
> > of
> > > > your
> > > > > > ArrayCollection, and then call refresh which will dispatch a
> > > > > > COLLECTION_CHANGE event which will trigger any controls
> using
> > > it
> > > > as
> > > > > a
> > > > > > dataProvider to update.
> > > > > >
> > > > > > On Thu, Jul 31, 2008 at 6:47 PM, Alex Harui  wrote:
> > > > > >
> > > > > > > There is enable/disableAutoUpdate, but adding rows one
> > at
> > > a
> > > > > time is
> > > > > > > inefficient. Just concat the two arrays and replace the
> > > > > dataprovider
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > *From:* flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com >
> > > > > [mailto:flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com > ]
> *On
> > > > > > > Behalf Of *whatabrain
> > > > > > > *Sent:* Thursday, July 31, 2008 3:23 PM
> > > > > > > *To:* flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com >
> > > > > > > *Subject:* [flexcoders] How to temporarily stop a
> > > dataProvider
> > > > > from
> > > > > > > updating UI
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I've found that adding a lot of rows (1000+) to an
> > > > > AdvancedDataGrid can
> > > > > > > be quite slow, if the rows happen to be visible (in an
> open
> > > > node
> > > > > of the
> > > > > > > tree). I don't know why this is the case, especially
> since
> > > it's
> > > > > not the
> > > > > > > case in a regular DataGrid, but I'd like to work around
> it.
> > > > > > >
> > > > > > > So how can I tell the AdvancedDataGrid to temporarily
> > ignore
> > > > > updates to
> > > > > > > the dataProvider? Once the large number of rows have been
> > > > added,
> > > > > I'll
> > > > > > > turn the automatic updating back on, for the slow trickle
> > of
> > > > > updates
> > > > > > > that come after that.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
>  
>


Re: [flexcoders] Determine client performance (not with any accuracy)?

2008-07-31 Thread Daniel Gold
Hmmm, a framework for that could be pretty interesting. Have the ability to
specify certain sections of code/certain components as optional based on a
current performance metric.

As far as metering, could be as simple as listening to ENTER_FRAME and
taking timestamps to determine how long each frame is taking to
render/process. Then setting state on an application performance model that
views could bind to and tone themselves down appropriately...

On Thu, Jul 31, 2008 at 8:58 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   Hey guys,
>
> I'm probably going to be embarking on a project soon that can be very
> graphically (and hence processor) intensive, and I'd like to know if there's
> anything out there to help me determine performance in order to tweak things
> to have less detail if it's going slowly, and more if it's not. Or even to
> switch from the PPV3D to a simpler 2d scaling based approach on slower
> systems. Any ideas?
>
> -Josh
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>  
>


Re: [flexcoders] How to block user interaction?

2008-07-31 Thread Daniel Gold
Yes I did...with hopefully more than a hint of dry humor about a recursively
less intensive loading screen...

On Thu, Jul 31, 2008 at 7:31 PM, Doug McCune <[EMAIL PROTECTED]> wrote:

>   did you just say your loading screen has a loading screen? my head just
> exploded
>
>
> On Thu, Jul 31, 2008 at 4:54 PM, Daniel Gold <[EMAIL PROTECTED]>wrote:
>
>>   My preferred "schmancy" approach is to put up a full screen loading
>> component that is so visually intensive that it requires it's own loading
>> screen that is just slightly less schmancy. Isn't recursion fun?
>>
>> On Thu, Jul 31, 2008 at 6:41 PM, Rick Winscot <[EMAIL PROTECTED]>wrote:
>>
>>>The method Daniel suggests is essentially the same that is used
>>> within components when enabling/disabling. When disable is called – the
>>> component throws up a 'blocker' that prevents interaction with the control.
>>> So... You could use the default component behavior of calling enabled=false
>>> (at a high level in the app) or do something all fancy schmancy like Daniel.
>>> I've used both... I just like poking fun at fellow Flexcoders and using the
>>> word 'schmancy.'
>>>
>>> Rick Winscot
>>>
>>>
>>> On 7/31/08 7:28 PM, "Daniel Gold" <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>>
>>> Whenever I need to do this I usually put up a loading screen that covers
>>> the entire screen or the section of the screen pertaining to the loading
>>> data. This can be done a number of ways such as a full screen Popup, a modal
>>> popup thats just a Loading... label, etc.
>>>
>>> On Thu, Jul 31, 2008 at 5:40 PM, wwwpl <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>
>>>
>>> I want to block user interaction while I am waiting for an http service
>>> to return with data.  Is there a nice easy way to do this?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>  
>


Re: [flexcoders] How to temporarily stop a dataProvider from updating UI

2008-07-31 Thread Daniel Gold
Hmmm, thanks for the reality check. I refreshed myself on the
ListCollectionVIew source, remembered the dispatch boolean being passed in
as false in reset but must have overlooked the dispatchResetEvent bit.

In reading I did notice this bit:
if (sort)
{
sort.sort(localIndex);
dispatch = true;
}

And after a quick test looks like I don't even need to be calling refresh
when there's a sort applied as the internalRefresh function is handling it.
Any quick tips on when refresh() actually needs to be called? Definitely
don't want to be forcing controls to run their update code twice...

On Thu, Jul 31, 2008 at 7:14 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Should dispatch COLLECTION_CHANGE with RESET.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Daniel Gold
> *Sent:* Thursday, July 31, 2008 5:10 PM
>
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] How to temporarily stop a dataProvider from
> updating UI
>
>
>
> really? I thought controls like DataGrid listened for CollectionChange and
> thought swapping source only did an internal refresh without firing a
> COLLECTION_CHANGE. I do use Sorts and filterFunctions pretty often so maybe
> I'm way off base...
>
> And I tried to note that the loop was unneccessary, but most of the time
> there is some kind of processing or merging going on with the new source
> instead of just taking the array handed back.
>
> On Thu, Jul 31, 2008 at 7:06 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> Yeah, that's basically it.  If you have an IList you can just call
> toArray() and concat it to any existing array of data.  You shouldn't have
> to call refresh unless there is a sort or filter applied.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Daniel Gold
> *Sent:* Thursday, July 31, 2008 5:02 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] How to temporarily stop a dataProvider from
> updating UI
>
>
>
> I've seen a lot of posts with performance related to using Bindable
> Collections like that. One of the dangerous of having such a useful easy API
> for updating controls...
>
> Just to expand on what Alex is suggesting, suppose your service call
> returns to a function called updateData, and your control is bound to a
> _data ArrayCollection
>
> public function updateData(newData:IList):void
> {
>  var newData:Array =[];
>  for each(var data:Object in IList)
>  {
>   _newData.push(data);
>  }
>  _data.source = newData;
>  _data.refresh();
> }
>
> That's an extremely basic code example, and actually unnecessary to loop
> like that in most cases, but basic principle is get your data structured in
> an Array or similar structure, add new items, remove old unnecessary items,
> whatever you need to do, concat or replace the source Array of your
> ArrayCollection, and then call refresh which will dispatch a
> COLLECTION_CHANGE event which will trigger any controls using it as a
> dataProvider to update.
>
> On Thu, Jul 31, 2008 at 6:47 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> There is enable/disableAutoUpdate, but adding rows one at a time is
> inefficient.  Just concat the two arrays and replace the dataprovider
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *whatabrain
> *Sent:* Thursday, July 31, 2008 3:23 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] How to temporarily stop a dataProvider from
> updating UI
>
>
>
> I've found that adding a lot of rows (1000+) to an AdvancedDataGrid can
> be quite slow, if the rows happen to be visible (in an open node of the
> tree). I don't know why this is the case, especially since it's not the
> case in a regular DataGrid, but I'd like to work around it.
>
> So how can I tell the AdvancedDataGrid to temporarily ignore updates to
> the dataProvider? Once the large number of rows have been added, I'll
> turn the automatic updating back on, for the slow trickle of updates
> that come after that.
>
>
>
>
>
>  
>


Re: [flexcoders] How to temporarily stop a dataProvider from updating UI

2008-07-31 Thread Daniel Gold
really? I thought controls like DataGrid listened for CollectionChange and
thought swapping source only did an internal refresh without firing a
COLLECTION_CHANGE. I do use Sorts and filterFunctions pretty often so maybe
I'm way off base...

And I tried to note that the loop was unneccessary, but most of the time
there is some kind of processing or merging going on with the new source
instead of just taking the array handed back.
On Thu, Jul 31, 2008 at 7:06 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Yeah, that's basically it.  If you have an IList you can just call
> toArray() and concat it to any existing array of data.  You shouldn't have
> to call refresh unless there is a sort or filter applied.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Daniel Gold
> *Sent:* Thursday, July 31, 2008 5:02 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] How to temporarily stop a dataProvider from
> updating UI
>
>
>
> I've seen a lot of posts with performance related to using Bindable
> Collections like that. One of the dangerous of having such a useful easy API
> for updating controls...
>
> Just to expand on what Alex is suggesting, suppose your service call
> returns to a function called updateData, and your control is bound to a
> _data ArrayCollection
>
> public function updateData(newData:IList):void
> {
>  var newData:Array =[];
>  for each(var data:Object in IList)
>  {
>   _newData.push(data);
>  }
>  _data.source = newData;
>  _data.refresh();
> }
>
> That's an extremely basic code example, and actually unnecessary to loop
> like that in most cases, but basic principle is get your data structured in
> an Array or similar structure, add new items, remove old unnecessary items,
> whatever you need to do, concat or replace the source Array of your
> ArrayCollection, and then call refresh which will dispatch a
> COLLECTION_CHANGE event which will trigger any controls using it as a
> dataProvider to update.
>
> On Thu, Jul 31, 2008 at 6:47 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> There is enable/disableAutoUpdate, but adding rows one at a time is
> inefficient.  Just concat the two arrays and replace the dataprovider
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *whatabrain
> *Sent:* Thursday, July 31, 2008 3:23 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] How to temporarily stop a dataProvider from
> updating UI
>
>
>
> I've found that adding a lot of rows (1000+) to an AdvancedDataGrid can
> be quite slow, if the rows happen to be visible (in an open node of the
> tree). I don't know why this is the case, especially since it's not the
> case in a regular DataGrid, but I'd like to work around it.
>
> So how can I tell the AdvancedDataGrid to temporarily ignore updates to
> the dataProvider? Once the large number of rows have been added, I'll
> turn the automatic updating back on, for the slow trickle of updates
> that come after that.
>
>
>
>  
>


  1   2   3   4   5   6   7   8   9   10   >