Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error
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? g transform=matrix(0 -1 1 0 50 112.5) improv:classname=image id=Object2CB 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; image height=75 width=75 x=12.5 xlink:href=/images/Smiley.png y=150 improv:rotation=-90/ path d=M 12.5 150 L 87.5 150 L 87.5 75 L 12.5 75 L 12.5 150 stroke-width=0 improv:classname=border/ /g g transform=matrix(0 -1 1 0 50 112.5) improv:classname=image id=Object15F 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; image height=75 width=75 x=12.5 xlink:href=/images/Smiley.png y=150 improv:rotation=-90/ path d=M 12.5 150 L 87.5 150 L 87.5 75 L 12.5 75 L 12.5 150 stroke-width=0 improv:classname=border/ /g On Fri, Nov 20, 2009 at 12:31 AM, Tracy Spratt tr...@nts3rd.com 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 tr...@nts3rd.com 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 tr...@nts3rd.com 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
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 tr...@nts3rd.com 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 tr...@nts3rd.com 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 tr...@nts3rd.com 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 invertedsp...@yahoo.com 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 text / tag. The one above it has a text/text 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: g transform=matrix(0 -1 1 0 50 112.5) improv:classname=image 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; image height=75 width=75 x=12.5 xlink:href=/images/Smiley.png y=150 improv:rotation=-90/ path d=M 12.5 150 L 87.5 150 L 87.5 75 L 12.5 75 C 22.5 65 22.5 160 12.5 150 stroke-width=0 improv:classname=border/ /g g transform=matrix(1 0 0 1 150 112.5) improv:classname=image id
[flexcoders] XML e4x error
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: g transform=matrix(0 -1 1 0 50 112.5) improv:classname=image 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; image height=75 width=75 x=12.5 xlink:href=/images/Smiley.png y=150 improv:rotation=-90/ path d=M 12.5 150 L 87.5 150 L 87.5 75 L 12.5 75 C 22.5 65 22.5 160 12.5 150 stroke-width=0 improv:classname=border/ /g g transform=matrix(1 0 0 1 150 112.5) improv:classname=image 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; image height=75 width=75 x=112.5 xlink:href=/images/Smiley.jpg y=75 improv:rotation=0/ path d=M 112.5 75 L 187.5 75 L 187.5 150 L 112.5 150 C 122.5 140 122.5 85 112.5 75 stroke-width=0 improv:classname=border/ /g g transform=matrix(1 0 0 1 10 430) improv:classname=text 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; text fill=rgb(0,0,0) font-family=F1 font-size=12 x=10 y=420.763671875 improv:rotation=0 width=289.9453125 height=11.26171875Ipsor Lopsumething and other things that will test stuff./text path d=M 10 420.763671875 L 299.9453125 420.763671875 L 299.9453125 432.025390625 L 10 432.025390625 L 10 420.763671875 stroke-width=0 improv:classname=border/ /g The XML that throws the error is: g transform=matrix(1 0 0 1 0 0) improv:classname=text id=ObjectE68 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; text fill=rgb(0,0,0) font-family=Arial font-size=12 x=57.1 y=185.2 improv:rotation=0 width=97.65 height=92/ path d=M 57.1 185.2 L 154.75 185.2 L 154.75 277.2 L 57.1 277.2 L 57.1 185.2 stroke-width=0 improv:classname=border/ /g
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 invertedsp...@yahoo.comwrote: The only thing I can see in the one that is giving you a problem is different from the others is there is a text / tag. The one above it has a text/text 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: g transform=matrix(0 -1 1 0 50 112.5) improv:classname=image 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; image height=75 width=75 x=12.5 xlink:href=/images/Smiley.png y=150 improv:rotation=-90/ path d=M 12.5 150 L 87.5 150 L 87.5 75 L 12.5 75 C 22.5 65 22.5 160 12.5 150 stroke-width=0 improv:classname=border/ /g g transform=matrix(1 0 0 1 150 112.5) improv:classname=image 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; image height=75 width=75 x=112.5 xlink:href=/images/Smiley.jpg y=75 improv:rotation=0/ path d=M 112.5 75 L 187.5 75 L 187.5 150 L 112.5 150 C 122.5 140 122.5 85 112.5 75 stroke-width=0 improv:classname=border/ /g g transform=matrix(1 0 0 1 10 430) improv:classname=text 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; text fill=rgb(0,0,0) font-family=F1 font-size=12 x=10 y=420.763671875 improv:rotation=0 width=289.9453125 height=11.26171875Ipsor Lopsumething and other things that will test stuff./text path d=M 10 420.763671875 L 299.9453125 420.763671875 L 299.9453125 432.025390625 L 10 432.025390625 L 10 420.763671875 stroke-width=0 improv:classname=border/ /g The XML that throws the error is: g transform=matrix(1 0 0 1 0 0) improv:classname=text id=ObjectE68 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; text fill=rgb(0,0,0) font-family=Arial font-size=12 x=57.1 y=185.2 improv:rotation=0 width=97.65 height=92/ path d=M 57.1 185.2 L 154.75 185.2 L 154.75 277.2 L 57.1 277.2 L 57.1 185.2 stroke-width=0 improv:classname=border/ /g -- 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
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 tr...@nts3rd.com 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 invertedsp...@yahoo.com 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 text / tag. The one above it has a text/text 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: g transform=matrix(0 -1 1 0 50 112.5) improv:classname=image 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; image height=75 width=75 x=12.5 xlink:href=/images/Smiley.png y=150 improv:rotation=-90/ path d=M 12.5 150 L 87.5 150 L 87.5 75 L 12.5 75 C 22.5 65 22.5 160 12.5 150 stroke-width=0 improv:classname=border/ /g g transform=matrix(1 0 0 1 150 112.5) improv:classname=image 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; image height=75 width=75 x=112.5 xlink:href=/images/Smiley.jpg y=75 improv:rotation=0/ path d=M 112.5 75 L 187.5 75 L 187.5 150 L 112.5 150 C 122.5 140 122.5 85 112.5 75 stroke-width=0 improv:classname=border/ /g g transform=matrix(1 0 0 1 10 430) improv:classname=text 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; text fill=rgb(0,0,0) font-family=F1 font-size=12 x=10 y=420.763671875 improv:rotation=0 width=289.9453125 height=11.26171875Ipsor Lopsumething and other things that will test stuff./text path d=M 10 420.763671875 L 299.9453125 420.763671875 L 299.9453125 432.025390625 L 10 432.025390625 L 10 420.763671875 stroke-width=0 improv:classname=border/ /g The XML that throws the error is: g transform=matrix(1 0 0 1 0 0) improv:classname=text id=ObjectE68 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; text fill=rgb(0,0,0) font-family=Arial font-size=12 x=57.1 y=185.2 improv:rotation=0 width=97.65 height=92/ path d=M 57.1 185.2 L 154.75 185.2 L 154.75 277.2 L 57.1 277.2 L 57.1 185.2 stroke-width=0 improv:classname=border/ /g -- 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: [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 tr...@nts3rd.com 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 tr...@nts3rd.com 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 invertedsp...@yahoo.com 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 text / tag. The one above it has a text/text 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: g transform=matrix(0 -1 1 0 50 112.5) improv:classname=image 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; image height=75 width=75 x=12.5 xlink:href=/images/Smiley.png y=150 improv:rotation=-90/ path d=M 12.5 150 L 87.5 150 L 87.5 75 L 12.5 75 C 22.5 65 22.5 160 12.5 150 stroke-width=0 improv:classname=border/ /g g transform=matrix(1 0 0 1 150 112.5) improv:classname=image 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; image height=75 width=75 x=112.5 xlink:href=/images/Smiley.jpg y=75 improv:rotation=0/ path d=M 112.5 75 L 187.5 75 L 187.5 150 L 112.5 150 C 122.5 140 122.5 85 112.5 75 stroke-width=0 improv:classname=border/ /g g transform=matrix(1 0 0 1 10 430) improv:classname=text 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; text fill=rgb(0,0,0) font-family=F1 font-size=12 x=10 y=420.763671875 improv:rotation=0 width=289.9453125 height=11.26171875Ipsor Lopsumething and other things that will test stuff./text path d=M 10 420.763671875 L 299.9453125 420.763671875 L 299.9453125 432.025390625 L 10 432.025390625 L 10 420.763671875 stroke-width=0 improv:classname=border/ /g The XML that throws the error is: g transform=matrix(1 0 0 1 0 0) improv:classname=text id=ObjectE68 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; text fill=rgb(0,0,0) font-family=Arial font-size=12 x=57.1 y=185.2 improv:rotation=0 width=97.65 height=92/ path d=M 57.1 185.2 L 154.75 185.2 L 154.75 277.2 L 57.1 277.2 L 57.1 185.2 stroke-width=0
[flexcoders] Is the Text Layout Framework Forum down?
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] UITextField alignment question
Are you accounting for the 2 pixel border of the textfield? - Daniel Freiman On Wed, Jul 1, 2009 at 10:10 AM, ACasualObserver pof...@yahoo.com 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] Re: UITextField alignment question
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 pof...@yahoo.com 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 flexcoders%40yahoogroups.com, Daniel Freiman freima...@... wrote: Are you accounting for the 2 pixel border of the textfield? - Daniel Freiman On Wed, Jul 1, 2009 at 10:10 AM, ACasualObserver pof...@... 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]Importing a project into Flash Builder 4 from Flex Builder 3
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
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 mar...@moschitz.at 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
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 gosm...@adobe.com 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] Source Not Found in Flex Builder Debug
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 markgoldin_2...@yahoo.com 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
Project Properties - Flex Build Path - Library Path - Framework Linkage - Merged Into Code On Mon, May 11, 2009 at 11:17 AM, markgoldin_2000 markgoldin_2...@yahoo.com wrote: incorporating the Flex code into your project How do I do that? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman freima...@... 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 markgoldin_2...@... 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
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 flexcoders%40yahoogroups.com, Daniel Freiman freima...@... wrote: Project Properties - Flex Build Path - Library Path - Framework Linkage - Merged Into Code On Mon, May 11, 2009 at 11:17 AM, markgoldin_2000 markgoldin_2...@... wrote: incorporating the Flex code into your project How do I do that? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Daniel Freiman FreimanCQ@ 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 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
Sorry, check that. What actual class is not showing the source? On Mon, May 11, 2009 at 11:57 AM, Daniel Freiman freima...@gmail.comwrote: 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 flexcoders%40yahoogroups.com, Daniel Freiman freima...@... wrote: Project Properties - Flex Build Path - Library Path - Framework Linkage - Merged Into Code On Mon, May 11, 2009 at 11:17 AM, markgoldin_2000 markgoldin_2...@... wrote: incorporating the Flex code into your project How do I do that? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Daniel Freiman FreimanCQ@ 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 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
[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] E4x. Strange behavior when modifying XML. Help needed.
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 lytvyn...@yahoo.com wrote: I have XML instance like that: var xml:XML = data summary type='text'test/summary title type='text'test/title /data 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: data summary type='text'test/summary title type='text'test/title summaryThis is my summary/summary titleThis is new title/title /data which is a big problem for me! What's wrong here?
Re: [flexcoders] 100,000 buttons
Are you trying to do something conceptually like this: Application Script list.dataprovider = new Array(1000); /Script List itemRenderer=mx.controls.Button / /Application - Daniel Freiman On Tue, May 5, 2009 at 8:18 AM, Paul Andrews p...@ipauland.com wrote: - Original Message - From: ew6014 ew6...@yahoo.com ew6014%40yahoo.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com 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
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 flexcoders%40yahoogroups.com, Pedro Sena sena.pe...@... 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
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 msl...@mslinn.com wrote: I would like to filter out all elements with type=file from the following XML. That turns out to be rather difficult because node/ elements are nested. Any suggestions? ?xml version=1.0 encoding=UTF-8? node name=classes type=dir uri=file:/classes/ node name=spring-beans-2.0.dtd type=file uri=file:/classes/spring-beans-2.0.dtd /node name=.svn type=dir uri=file:/classes/.svn/node name=props type=dir uri=file:/classes/.svn/props/ /node name=text-base type=dir uri=file:/classes/.svn/text-base/node name=sample.log4j.xml.svn-base type=file uri=file:/classes/.svn/text-base/sample.log4j.xml.svn-base //nodenode name=format type=file uri=file:/classes/.svn/format /node name=prop-base type=dir uri=file:/classes/.svn/prop-base/node name=sample.log4j.xml.svn-base type=file uri=file:/classes/.svn/prop-base/sample.log4j.xml.svn-base //nodenode name=entries type=file uri=file:/classes/.svn/entries /node name=tmp type=dir uri=file:/classes/.svn/tmp/node name=props type=dir uri=file:/classes/.svn/tmp/props/ /node name=text-base type=dir uri=file:/classes/.svn/tmp/text-base/ /node name=prop-base type=dir uri=file:/classes/.svn/tmp/prop-base/ //node/nodenode name=com type=dir uri=file:/classes/com/node name=.svn type=dir uri=file:/classes/com/.svn/node name=props type=dir uri=file:/classes/com/.svn/props/ /node name=text-base type=dir uri=file:/classes/com/.svn/text-base/ /node name=format type=file uri=file:/classes/com/.svn/format /node name=prop-base type=dir uri=file:/classes/com/.svn/prop-base/ /node name=entries type=file uri=file:/classes/com/.svn/entries /node name=tmp type=dir uri=file:/classes/com/.svn/tmp/node name=props type=dir uri=file:/classes/com/.svn/tmp/props/ /node name=text-base type=dir uri=file:/classes/com/.svn/tmp/text-base/ /node name=prop-base type=dir uri=file:/classes/com/.svn/tmp/prop-base/ //node/nodenode name=kahootz type=dir uri=file:/classes/com/kahootz/node name=activemq.xml type=file uri=file:/classes/com/kahootz/activemq.xml /node name=context type=dir uri=file:/classes/com/kahootz/context/node name=remote-jms-context.xml type=file uri=file:/classes/com/kahootz/context/remote-jms-context.xml /node name=.svn type=dir uri=file:/classes/com/kahootz/context/.svn/node name=props type=dir uri=file:/classes/com/kahootz/context/.svn/props/ /node name=text-base type=dir uri=file:/classes/com/kahootz/context/.svn/text-base/node name=jms-context.xml.svn-base type=file uri=file:/classes/com/kahootz/context/.svn/text-base/jms-context.xml.svn-base /node name=remote-jms-context.xml.svn-base type=file uri=file:/classes/com/kahootz/context/.svn/text-base/remote-jms-context.xml.svn-base //nodenode name=format type=file uri=file:/classes/com/kahootz/context/.svn/format /node name=prop-base type=dir uri=file:/classes/com/kahootz/context/.svn/prop-base/node name=jms-context.xml.svn-base type=file uri=file:/classes/com/kahootz/context/.svn/prop-base/jms-context.xml.svn-base /node name=remote-jms-context.xml.svn-base type=file uri=file:/classes/com/kahootz/context/.svn/prop-base/remote-jms-context.xml.svn-base //nodenode name=entries type=file uri=file:/classes/com/kahootz/context/.svn/entries /node name=tmp type=dir uri=file:/classes/com/kahootz/context/.svn/tmp/node name=props type=dir uri=file:/classes/com/kahootz/context/.svn/tmp/props/ /node name=text-base type=dir uri=file:/classes/com/kahootz/context/.svn/tmp/text-base/ /node name=prop-base type=dir uri=file:/classes/com/kahootz/context/.svn/tmp/prop-base/ //node/nodenode name=server-context.xml type=file uri=file:/classes/com/kahootz/context/server-context.xml /node name=jms-context.xml type=file uri=file:/classes/com/kahootz/context/jms-context.xml //nodenode name=space type=dir uri=file:/classes/com/kahootz/space/node name=context type=dir uri=file:/classes/com/kahootz/space/context/node name=remote-space-context.xml type=file uri=file:/classes/com/kahootz/space/context/remote-space-context.xml /node name=.svn type=dir uri=file:/classes/com/kahootz/space/context/.svn/node name=props type=dir uri=file:/classes/com/kahootz/space/context/.svn/props/ /node name=text-base type=dir uri=file:/classes/com/kahootz/space/context/.svn/text-base/node name=space-context.xml.svn-base type=file uri=file:/classes/com/kahootz/space/context/.svn/text-base/space-context.xml.svn-base /node name=local-space-context.xml.svn-base type=file uri=file:/classes/com/kahootz/space/context/.svn/text-base/local-space-context.xml.svn-base /node name=remote-space-context.xml.svn-base type=file
Re: [flexcoders] Maximize Minimize
FlexLib. Look for the mdi component. - Daniel Freiman On Tue, Apr 21, 2009 at 1:41 AM, senthil kumar senthilkumari...@yahoo.co.in 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 tr...@nts3rd.com* wrote: From: Tracy Spratt tr...@nts3rd.com 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
Yeah, it just felt inelegant to do manual, untyped serialization. 2009/4/13 Josh McDonald j...@joshmcdonald.info 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 freima...@gmail.com 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 tim.r...@carsales.com.au 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/
[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 ▼ ▲
Re: [flexcoders] Serialize Java ResultSet To Flex
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 tim.r...@carsales.com.au 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 ▼ ▲
Re: [flexcoders] IE6 RemoteObject calls fail under HTTPS
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 rafaelfaria.gru...@gmail.comwrote: 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
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?
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 apth...@liberty.edu 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 flexcoders%40yahoogroups.com, Rob Kunkle r...@... 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] String Encoding Issue Over AMF
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
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 valdhorli...@embarqmail.comwrote: 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 flexcoders%40yahoogroups.com, Daniel Freiman freima...@... 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
I'm using Zend Framework. I can't find an comparable method. On Wed, Jan 14, 2009 at 1:58 PM, aphexyuri yuriv...@yahoo.co.uk wrote: Have you played around with $gateway-setCharsetHandler() in gateway.php? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman freima...@... 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 valdhorli...@...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 flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Daniel Freiman FreimanCQ@ 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
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 ra...@mariposa.us 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 yuriv...@yahoo.co.uk wrote: Have you played around with $gateway-setCharsetHandler() in gateway.php? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman freima...@... 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 valdhorli...@...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 flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Daniel Freiman FreimanCQ@ 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] TextFormat's leading
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
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. --
Re: [flexcoders] Text multi-wrapping bugs
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] 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 [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] Flash player 10 required for my swf?
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 cervantes_vive@ yahoo.com[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] about MVC
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] Measuring a vbox after I add children to it
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] Setting text on a text node in e4x
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] Re: Measuring a vbox after I add children to it
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: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script 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(); } /mx:Script /mx:VBox 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! ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=creationCompleteHandler(); mx:Script 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(); } /mx:Script /mx:VBox
Re: [flexcoders] Re: Measuring a vbox after I add children to it
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] Setting text on a text node in e4x
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]code%40mark.carter.name 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] Case sensitive XML?
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 param name=movie value= http://www.youtube.com/v/Y9HMn6bd-v8hl=enfs=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 PARAM NAME=movie VALUE= http://www.youtube.com/v/Y9HMn6bd-v8hl=enfs=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] Re: HTML real caret position
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 flexcoders%40yahoogroups.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 flexcoders%40yahoogroups.com, Daniel Freiman FreimanCQ@ 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 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 '!--pagebreak--' at a certain caret index. This works fine when I use the textarea.text property but when I use textarea.htmlText, it inserts the '!--pagebreak-- 7 characters before the caret. This is because it counted the format 'B/B' as indices. To illustrate what I meant. Take a look: TEXT INSERTING: The BUnited States/B 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 BUnited States/B 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 !--pagebreak--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 lt;!--pagebreak--gt; \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] HTML real caret position
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 '!--pagebreak--' at a certain caret index. This works fine when I use the textarea.text property but when I use textarea.htmlText, it inserts the '!--pagebreak-- 7 characters before the caret. This is because it counted the format 'B/B' as indices. To illustrate what I meant. Take a look: TEXT INSERTING: The BUnited States/B 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 BUnited States/B 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 !--pagebreak--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 lt;!--pagebreak--gt; \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] Problem with scaleX for system fonts!
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] Re: Open Source SDK SVN down
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 flexcoders%40yahoogroups.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/* http://opensource.adobe.com/svn/* http://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] Rich Text Editor Problem
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...
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 = Entries Entry type=text MetaData itemid1234/itemid /MetaData /Entry Entry type=text MetaData itemid1234/itemid /MetaData /Entry Entry type=text MetaData itemid12345/itemid /MetaData /Entry /Entries 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
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 img src='smile.jpg'/ 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 img element would be treated the same as the b and i 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 Ryan.Graham@ phoenix.edu 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 p. Example (not exactly what flex does, but you get the picture hopefully): pText bbold text/b iitalic text/i some more text/p converts to something like this pText /ppbbold text/b/pp /ppiitalic text/i/pp some more text/p 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 img / 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
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: group id=1 namefred/name namebob/name namepeter/name /group 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] e4x problem - filtering elements based on multiple child conditions
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]code%40mark.carter.name wrote: Ok, that subject is a bit vague but here's an example of what I mean: group id=1 namefred/name namebob/name namepeter/name /group 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
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()==fredname.text().toLowerCase()==bob) the toLowerCase is just because i needed case insensitivity... --- In flexcoders@yahoogroups.com flexcoders%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: group id=1 namefred/name namebob/name namepeter/name /group 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
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()==fredname.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]code%40mark.carter.name 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()==fredname.text().toLowerCase()==bob) the toLowerCase is just because i needed case insensitivity... --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 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: group id=1 namefred/name namebob/name namepeter/name /group 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] unable to use debug mode
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] XMLListCollection.AddItemAt() silently fails
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] Preventing cutpaste in Flex3 application
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 cutpaste in a flex3 web application, or in general to prevent users from performing cutpaste 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
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] How do I set the url path manually in my swf file
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
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] kuntamayu%40gmail.com To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com 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 flexcoders%40yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: kuntamayu [EMAIL PROTECTED] To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com 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 flexcoders%40yahoogroups.com, Paul Andrews paul@ wrote: - Original Message - From: kuntamayu kuntamayu@ To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com 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 any modification. End users aren't normally given swfs - they are generally either provided with an application that they install, or they go to a web page. Just what is your plan? If they use a web page there's no need to have everything in a single swf, if they have an application an installer can install an application file plus any other files required for customisation. Your proposed solution is fraught with difficullty as an automated process. Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Toby Ashley lowpitch@ 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
Re: [flexcoders] Who is Robert Thompson?
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
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 flexcoders%40yahoogroups.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?
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 interface for programming and generating .SWF's (or hopefully .P3D's if Papervision3D hopefully goes out on their own since it appears Adobe cannot be trusted and is getting prideful and greedy in my opinion (what they're trying to do now with Acrobat is a joke; and I thought that before the discoveries of last week) - Encouraging Papervision3D to go out on their own and take this great opportunity in time and be the next FutureSplash by developing their own
Re: [flexcoders] breakpoints not being triggered
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] How to upgrade Flex 3 to 3.0.1?
(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
Re: [flexcoders] Debug Termination
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] Debug Termination
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
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] allowing CDATA in inline XML of ActionScript code of MXML
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(SAMPLEINFO![CDATA[Cool stuff about Unicorns in Unicode text here.]+]+/INFO/SAMPLE); - Daniel Freiman On Wed, Aug 13, 2008 at 2:44 PM, Keith [EMAIL PROTECTED] wrote: When I declare an inline XML object in the actionscript of my MXML document, how do I keep the compiler from throwing errors when I have CDATA in my XML? (The mx:Script already uses CDATA for actionscript) private function init():void { var doc:XML= SAMPLE INFO![CDATA[Cool stuff about Unicorns in Unicode text here.]]/INFO /SAMPLE; Alert.show(doc.toXMLString()); } -- Keith H -- www.keith-hair.net
Re: [flexcoders] Flex Trademarks: How do we play nice?
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
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] Debug Mode Prematurely Terminating
I had a problem like this when I moved to my new computer last week. Inexplicably, changing the html template to include the parameter wmode = opaque fixed it. I agree this doesn't make any sense, but according to googling it has worked for other people and it worked for me. - Daniel Freiman On Sun, Jul 20, 2008 at 2:43 AM, kenny14390 [EMAIL PROTECTED] wrote: In both Eclipse and Flex Builder 3, the Debug mode prematurely terminates. I have an error in my code, which isn't being picked up by the compiler, so it's hard to debug. Regardless of break points, the debugger will launch the app in the browser and then immediately terminate, not checking for any errors even though I'm getting them. Also, upon pressing the Debug button, the IDE used to automatically switch to Debug mode but not anymore. My code couldn't possibly screw up Eclipse's debugging mode, right? If both Eclipse and Flex Builder have this save behavior, is it even worth reinstalling?
Re: [flexcoders] Re: Debug Mode Prematurely Terminating
In your project in Flex Builder there should be an html-template folder with a file index.template.html. It's a normal html file except that it has some ${var} style includes (which you can ignore for now). Find the second AC_FL_RunContent javascript call in the file (the first takes care of the flash player update, the second one is for your swf), and just add the aforementioned wmode, opaque pair to the list passed to the call. So your code may end up looking like: AC_FL_RunContent( src, playerProductInstall, FlashVars, MMredirectURL=+MMredirectURL+'MMplayerType='+MMPlayerType+'MMdoctitle='+MMdoctitle+, width, ${width}, height, ${height}, align, middle, id, ${application}, quality, high, bgcolor, ${bgcolor}, name, ${application}, wmode, opaque, allowScriptAccess,sameDomain, type, application/x-shockwave-flash, pluginspage, http://www.adobe.com/go/getflashplayer; ); You may need to do a project clean after that (I don't remember if the changes will automatically pass through). More complete info can be found here: http://livedocs.adobe.com/flex/3/html/wrapper_01.html - Daniel Freiman On Sun, Jul 20, 2008 at 10:42 AM, kenny14390 [EMAIL PROTECTED] wrote: I'm glad to hear I'm not the only one with this weird problem. How do you change the html template? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: I had a problem like this when I moved to my new computer last week. Inexplicably, changing the html template to include the parameter wmode = opaque fixed it. I agree this doesn't make any sense, but according to googling it has worked for other people and it worked for me. - Daniel Freiman On Sun, Jul 20, 2008 at 2:43 AM, kenny14390 [EMAIL PROTECTED] wrote: In both Eclipse and Flex Builder 3, the Debug mode prematurely terminates. I have an error in my code, which isn't being picked up by the compiler, so it's hard to debug. Regardless of break points, the debugger will launch the app in the browser and then immediately terminate, not checking for any errors even though I'm getting them. Also, upon pressing the Debug button, the IDE used to automatically switch to Debug mode but not anymore. My code couldn't possibly screw up Eclipse's debugging mode, right? If both Eclipse and Flex Builder have this save behavior, is it even worth reinstalling?
Re: [flexcoders] Huge File Size w/ Embedded Font
Unfortunately, I'm already doing both of those. Since you're response didn't start of with that's weird I'm assuming this type of behavior is a known edge case and I shouldn't be looking for a bug somewhere. Does anyone else have any creative/outside the box solutions (a way to smooth font instructions to simplify a font, etc)? - Daniel Freiman On Thu, Jul 17, 2008 at 1:42 AM, Alex Harui [EMAIL PROTECTED] wrote: Trimming out characters you don't need is your only hope, or loading the font later if you don't need it right away -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Freiman *Sent:* Wednesday, July 16, 2008 12:47 PM *To:* flexcoders *Subject:* [flexcoders] Huge File Size w/ Embedded Font I have a a 300k true type font that I want to load into my app via a RSL. When I do the embedding in Flash 8 or 9 to create the RSL, the movie size jumps 1.2 megs. I think the reason for this is that it is a handwriting font and the font characters are incredibly complicated (the I takes 280 instructions to render). I've trimmed the included characters down as much as I can. Does anyone else have any suggestions of how to get this size down? Or is there an improvement on the instructions in the docs? Or are there any Flash resources that may be better able to answer this question? - Daniel Freiman
[flexcoders] Huge File Size w/ Embedded Font
I have a a 300k true type font that I want to load into my app via a RSL. When I do the embedding in Flash 8 or 9 to create the RSL, the movie size jumps 1.2 megs. I think the reason for this is that it is a handwriting font and the font characters are incredibly complicated (the I takes 280 instructions to render). I've trimmed the included characters down as much as I can. Does anyone else have any suggestions of how to get this size down? Or is there an improvement on the instructions in the docs? Or are there any Flash resources that may be better able to answer this question? - Daniel Freiman
Re: [flexcoders] Cast XMLList with 1 child to XML
Instead of casting I would just retrieve the XML from the list: var myXML : XML = myXMLList[0]; - Daniel Freiman On Mon, Jul 14, 2008 at 2:13 AM, Rajan Jain [EMAIL PROTECTED] wrote: Hi I think it is better to use XMLList.length(). IF you one child it will be 1. Hope this helps. Thanks ilikeflex - Original Message From: Sergey Kovalyov [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, July 14, 2008 1:50:26 AM Subject: [flexcoders] Cast XMLList with 1 child to XML Hi All! Is it correct to cast XMLList with 1 child to XML like this: var myXMLList : XMLList = sourceXML..item. (@id == 1); // It is guaranteed that only one node with name == item and attribute id == 1 exists in sourceXML. var myXML : XML = XML(myXMLList) ; Actually it works and it fails only when I change the sourceXML thus there are more then one node with name == item and attribute id == 1 in it. In this case exception is thrown. But I would like to know is it correct approach in general or not. Sergey.
Re: [flexcoders] Re: Wacky padding issue with textArea by setting fontSize
Do you have a small code example? - Daniel Freiman On Mon, Jul 14, 2008 at 4:02 PM, djhatrick [EMAIL PROTECTED] wrote: Actually, the problem is more with the fact that the textArea doesn't render all the text, i noticed when i scroll to a specific point, the text jumps on, as if the text field doesn't render correctly, with large amounts of text inside, o boy! This will need to fixed, what a problem. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, djhatrick [EMAIL PROTECTED] wrote: I have a textArea that is inside a vbox inside a canvas. The text area has about 2000 words. When I scale the fontSize up, at some font sizes, the textArea adds about 1500 pixels of padding to the top and the bottom of the textArea. Help, this is yicky. Thanks, Patrick
Re: [flexcoders] Re: Right click context menus
Rick's code isn't working for you? That's weird. I double checked my code, and I'm adding the context menu to the textField's parent component. So I'm not sure what's going on here. What framework/player versions are you using? - Daniel Freiman On Mon, Jun 30, 2008 at 12:07 PM, sbx33 [EMAIL PROTECTED] wrote: Well, I'm not sure what I'm doing wrong, but when I put this code in exactly, and right click in the text area, all I see in the context menu are Cut, Copy, Paste, and Select All. The only way to see a context menu with BAR! in it, is to click the very edge of the text area. This really isn't what I'm looking for. I really need to add menu items to the Cut-Copy-Paste-Select All menu. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rick Winscot [EMAIL PROTECTED] wrote: The mechanism for adding a custom context menu item to a standard context menu is the same as adding it to a text sensitive context menu. 1. Create a context menu 2. Create a context menu item 3. Add the custom menu item to the context menu 4. Associate the context menu with the control (in this case the text whatnot control) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init(); layout=absolute mx:Script ![CDATA[ public function init():void { var ctx:ContextMenu = new ContextMenu(); var mit:ContextMenuItem = new ContextMenuItem( BAR! ); ctx.customItems.push( mit ); foo.contextMenu = ctx; } ]] /mx:Script mx:TextArea id=foo x=401 y=249/ /mx:Application Right click in the text area and - Voila! Foo bar baby! Rick Winscot From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of sbx33 Sent: Thursday, June 26, 2008 7:44 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Right click context menus Unfortunately, I'm not sure what to even try. If anyone else has any ideas, please let me know. Thanks! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman FreimanCQ@ wrote: I can't find where in my code I am doing it, but I am. I don't remember caring about the distinction between the two types of context menus. So just try it and it will probably work. - Daniel Freiman On Tue, Jun 24, 2008 at 12:46 PM, sbx33 sbx33@ wrote: Hello! Per the Flex documentation: Flash Player has three types of context menus: the standard menu (which appears when you right-click in Flash Player), the edit menu (which appears when you right-click a selectable or editable text field), and an error menu (which appears when a SWF file has failed to load into Flash Player). Only the standard and edit menus can be modified with the ContextMenu class. I have been able to add custom menu items to the standard menu however, I'm wondering if anyone knows how to add custom menu items to the edit menu on a flex component, such as a TextArea. The code I am using to add items to the standard menu is: var newCM:ContextMenu = new ContextMenu(); var newCMI:ContextMenuItem = new ContextMenuItem(New Item); newCM.customItems.push(newCMI); TIA! -Mac
Re: [flexcoders] Right click context menus
I can't find where in my code I am doing it, but I am. I don't remember caring about the distinction between the two types of context menus. So just try it and it will probably work. - Daniel Freiman On Tue, Jun 24, 2008 at 12:46 PM, sbx33 [EMAIL PROTECTED] wrote: Hello! Per the Flex documentation: Flash Player has three types of context menus: the standard menu (which appears when you right-click in Flash Player), the edit menu (which appears when you right-click a selectable or editable text field), and an error menu (which appears when a SWF file has failed to load into Flash Player). Only the standard and edit menus can be modified with the ContextMenu class. I have been able to add custom menu items to the standard menu however, I'm wondering if anyone knows how to add custom menu items to the edit menu on a flex component, such as a TextArea. The code I am using to add items to the standard menu is: var newCM:ContextMenu = new ContextMenu(); var newCMI:ContextMenuItem = new ContextMenuItem(New Item); newCM.customItems.push(newCMI); TIA! -Mac
Re: [flexcoders] Flex TextArea's HTML Tag Support
http://livedocs.adobe.com/flex/3/langref/flash/text/TextField.html#htmlText This is the documentation for TextField, but TextArea uses a TextField to render text which is why this is the relevant documentation. - Daniel Freiman On Wed, Jun 25, 2008 at 7:11 AM, Patrick McDaniel [EMAIL PROTECTED] wrote: Hello All - Does anyone know off hand or is it listed somewhere what HTML tags you can put in the TextArea component? I know you can do the basics like font color, bold, underline, and italics, but are there others? Also has anyone run into where you change the color of the font Flex puts some wild line breaks in? Thanks, Patrick
Re: [flexcoders] Grouping ContextMenuItems
Double check the ContextMenuItem constructor in the docs: http://livedocs.adobe.com/flex/3/langref/flash/ui/ContextMenuItem.html#ContextMenuItem() - Daniel Freiman On Wed, Jun 25, 2008 at 3:36 PM, linusgraybill [EMAIL PROTECTED] wrote: How on earth do you control whether or not a line separates custom ContextMenuItems? I would like to have two items with no line between them, and then a line, and then one more item. The code below is producing a line between every menu item. Many thanks! Linus [Bindable] private var EventLogMenu:ContextMenu; private function init():void { var EventLogMenu:ContextMenu = new ContextMenu; EventLogMenu.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenu_menuSelect); EventLogMenu.hideBuiltInItems(); var deviceProp:ContextMenuItem = new ContextMenuItem(View Device Properties, true); deviceProp.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItem_menuItemSelect); var eventProp:ContextMenuItem = new ContextMenuItem(View Event Properties, true); eventProp.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItem_menuItemSelect); var ping:ContextMenuItem = new ContextMenuItem(Ping, true); ping.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItem_hello); EventLogMenu.customItems.push(deviceProp, eventProp, ping); this.contextMenu = EventLogMenu; }
Re: [flexcoders] Re: Context menu
You can't get rid of those two (limitation of the player). - Daniel Freiman On Sat, Jun 21, 2008 at 8:01 PM, markgoldin_2000 [EMAIL PROTECTED] wrote: I am using this: var menu:ContextMenu = new ContextMenu(); menu.hideBuiltInItems(); but when I run my program and click on a cell with the right mouse I have my items alone with standard Settings, About ... items. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: hideBuiltInItems From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Saturday, June 21, 2008 1:08 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Context menu How can I remove all builtin items? Thanks
Re: [flexcoders] Scrolling - Firefox 2/3 vs IE
The flex framework shouldn't care about the browser, so in some way this will probably be traced back to the player (Stage, Application, SystemManager or their events?). In all cases where I have seen things like this, the previous statement has turned out to be true. - Daniel Freiman On Sun, Jun 22, 2008 at 11:43 PM, Richard Rodseth [EMAIL PROTECTED] wrote: I don't have a simple test case to share yet, but we are seeing scrollbars (not at the application level) which appear as desired on Firefox 2, but not on Firefox 3 or IE. Anyone else run into any such anomalies? - Richard
Re: [flexcoders] Abstract type and cannot be instantiated.
AS3 doesn't support abstract classes, but sometimes libaries will get around this by creating a class that functions like an abstract class and have each function throw a custom error unless the function is overridden. So it looks like something in the sax library is throwing that. - Daniel Freiman On Mon, Jun 23, 2008 at 2:47 PM, gnu wolf [EMAIL PROTECTED] wrote: Hi, Is there a way around this? Is it true that AS 3 does *not* support abstract classes (classes that cannot be instantiated, only extended)? I'm getting this error from my flex application: org.xml.sax.SAXException: {urn: core_2008_1.platform.webservices.netsuite.com}Record is an abstract type and cannot be instantiated TIA. Clem
Re: [flexcoders] Scrolling - Firefox 2/3 vs IE
It wouldn't be that you're doing anything strange w/ one of those classes, but you might be hitting a subtle idiosyncrasy of their functionality. But then again, this is only an educated guess, and you know your code better than i do. - Daniel Freiman On Mon, Jun 23, 2008 at 5:29 PM, Richard Rodseth [EMAIL PROTECTED] wrote: I spoke too soon. Firefox 3 on Mac is OK. Firefox 2 on WIndows is OK. Firefox 3 and IE on Windows are not. We're using SWFObject 2. I don't believe I'm doing anything funky with Stage, Application or SystemManager. Portions of the layout are created at runtime, and I naturally suspect my somewhat-cobbled-together custom component for tiled layout, even though it's hard for me to imagine how a platform difference could creep in there. On Mon, Jun 23, 2008 at 8:27 AM, Daniel Freiman [EMAIL PROTECTED]FreimanCQ%40gmail.com wrote: The flex framework shouldn't care about the browser, so in some way this will probably be traced back to the player (Stage, Application, SystemManager or their events?). In all cases where I have seen things like this, the previous statement has turned out to be true. - Daniel Freiman On Sun, Jun 22, 2008 at 11:43 PM, Richard Rodseth [EMAIL PROTECTED]rrodseth%40gmail.com wrote: I don't have a simple test case to share yet, but we are seeing scrollbars (not at the application level) which appear as desired on Firefox 2, but not on Firefox 3 or IE. Anyone else run into any such anomalies? - Richard
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
That's exactly what I do. In fact that's the only thing I use this email address for. On Wed, Jun 18, 2008 at 12:37 AM, Doug McCune [EMAIL PROTECTED] wrote: Out of morbid curiosity, am I the only one who has multiple email lists all being filtered into the same mega-list? I have flexcoders, flexcomponents, apollocoders, papervision, degrafa, flexlib, and flexjobs all dropped into a mondo folder in gmail. I color code each list accordingly so I can at a glance see which list a message is from, but typically I read them all in the master list. Nobody else does this? Somehow I can stay on top of it all, although I'm sure you could argue that at times it's certainly not helping my productivity :) Doug On Tue, Jun 17, 2008 at 9:17 PM, Bjorn Schultheiss [EMAIL PROTECTED] bjorn.mailinglists%40gmail.com wrote: cool. This discussion needs some resolving though. I'm all for the creation of another 15 lists. With all the cross-posting, subject-meta, gmail, stats, my-left-arm-is-longer-than-my-right arguments, my vote is still with the split. best-practices, architecture, components, unit-testing, deployment, flash-flex, remote services, java-flex architectures, design ux, announcements, etc.. lets do it. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: I think of Best Practices and Architecture/Concepts as separate but overlapping categories so I guess that's why I thought no one else brought it up. On Tue, Jun 17, 2008 at 11:57 PM, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Also, to Bjorn, that's a point I hadn't thought of. The idea of having an arch/concepts list might be interesting. The two questions I would have would be: 1) would the questions on this list have any connection to Flex Anatole mentioned it earlier in a 'Best Practices' list. For example at MAX thy had that Best Practices panel and some interesting topics were brought up and discussed. From my point of view I'm always learning. It would be an interesting read for me. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Daniel Freiman FreimanCQ@ wrote: I agree that a FAQ seems like a good idea no matter what. Is anyone against this idea independent of the argument of whether or not to split the list? As far as splitting lists, I still think if people want to propose potential new lists, they need to be much more explicit about what the list will be for. I'll take the enterprise example. Let's assume for a second it has only one correct meaning (which is an assumption I agree with, but many people disagree with me on that). Enterprise has become a buzzword with many different commonly understood meanings, and most of those meanings are vague. There's no way for everyone on the list to be sure that we're talking about the same thing unless someone explicitly spells out what we are talking about (I'm not going to because I'm against having a enterprise list given every way I know to interpret the word). And if we don't have a common understanding of the proposal we can't efficiently criticize/support/amend the proposal. I'm not saying there has to be a fine line separating the lists, but it should at least be a fuzzy line. Also, to Bjorn, that's a point I hadn't thought of. The idea of having an arch/concepts list might be interesting. The two questions I would have would be: 1) would the questions on this list have any connection to Flex other than the fact that the users code in Flex (I think it probably would) or would it just be piggybacking on the user base; 2) Will it avoid stratification of the user base (i.e. will it be practically accessible to users of all skill levels)? Lastly, I'm going to reiterate my opinion that we shouldn't separate the lists based on skill/level difficulty. The distinction is too fuzzy (Too much cross-posting and too much posting to the wrong list). Sometimes you don't know if you're question is advanced or not until you get the answer. I've had a few times where I've asked what I thought was a simple question and the response from Gordon was I talked to a guy on the player team... If a question has a one line answer it can't be complex...unless the one line required going through the player or compiler code to understand it (sorry for the overstatement). - Daniel Freiman On Tue, Jun 17, 2008 at 10:31 PM, Douglas Knudsen douglasknudsen@ wrote: Having been on this list since 2004, yeah back when the Iteration folks were not Adobe Robe Wearers yet, I've seen this discussion come up a few times. I've asked for a associated FAQ a few times
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
If a topic falls into multiple categories wouldn't it be logical to post to all lists that apply. Otherwise there might be a knowledgeable person out there you didn't reach. Wouldn't that be legitimate cross-posting? - Daniel Freiman On Wed, Jun 18, 2008 at 11:44 AM, Anatole Tartakovsky [EMAIL PROTECTED] wrote: Hello Tom, How is 1 list simpler than 1 list ? The same way threads by the topic are simplier then unsorted individual email - you read only the ones you need and fold the rest. While you can argue that you can sort and fold messages with some client email customization, it is not a trivial task unless your server or client supports it. Basically weborb is 10 messages a day, apollo is 1 and flexcomponents are 2 - I can manage that in my daily emails. Imagine that we separated the main list in subtopics and one of them would be dashboards, charts and BI - getting 5-10 messages a day - would you rather moderate that or whole list? Would it get up in your inbox? What are the chances that a single mail would get missed by specialist? What about the quality of the answer? Visibility of all questions and answers on the topic? Am I the only one who thinks that libraries place books by category for convenience and access simplicity? There is nothing simple about fishing in 100+ items. Tom, as BI specialist you know firsthand that sorting data in the beginning eliminates order of magnitude processing later. Let us apply it to our daily life. But if there are too many they'll just post to them all. There are 2 types of crossposting people - the ones who did not receive the answer in the previous forum and the ones who cross post from the get go. The first type is OK - moderator or users can point them to a different forum. There are periods in flexcomponents that every second message gets RTFM or go to flexcoders responses. The second type needs some discipline. Here is what moderators and users do - saying this is not appropriate forum, remove the message to make life easier for the rest, giving warning bans for a day - however harsh it sounds, it works. The goal is to service the community - not to do somebodies homework. If the forums are speedy and high quality the crossposting ceases. I have seen heavily moderated product forums on compuserve (yes, before Internet) 15 years ago. You had less then one hour response (datetime US) time on 90+% of the questions. The volume was about 500 messages across 20 forums. General list was getting about 100 threads, the rest were much smaller, The answers would be actually correct ones. Vendors would have team of community moderators that would answer 50%+ of the questions in their domain - with multiple moderators per topic. There was very little repetition of the questions as people could search much better. Things come in cycles. Please consider this as best practices from the historical point. *Now for the next cycle - can single list be better then multiple lists - the answer is yes, but not now* The only way I can see single as an alternative to multiple list is to enforce tagging of the questions. That in turn means next generation of email clients or forcing everybody to use RSS type readers instead of email. We will get to it in a few years, its requires serious update to the email system. Next generations of email that are to be spam proof can make topics/tagging exchange a part of handshake protocol. Till then there is no enforceable way to sort the messages on the senders end. Sincerely, Anatole Tartakovsky On Wed, Jun 18, 2008 at 5:02 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 17 Jun 2008, Anatole Tartakovsky wrote: Multiple lists enforce thinking if it is appropriate before posting. Maybe. But if there are too many they'll just post to them all. Moderators can ban/redirect unappropriate message. Flexcomponents often redirect new users to flexcoders if the question is not about components. You almost never see questions on UI design in weborb. See what I and Matt said - I think we're on the same page here. All in all - let us have the simplest thing possible - multiple list - w How is 1 list simpler than 1 list ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
I agree that the definition of Enterprise is fuzzy here. It's a definition of how well something is supposed to work. It's technology agnostic (in theory only). Everything that interacts with the Flex could go in this group if the project specifications demand a certain level of application functioning. I love the idea of a UI/UX group, but I think it needs to be defined in less general terms as well. If I'm trying to upgrade the UX of a datagrid, that might go in this group, but I imagine that this group wouldn't originally be intended for this purpose and might not have the expertise to solve this problem. This just needs to be more tightly defined, I'm guessing towards the designer side of the community/users. I think the actionscript group idea would have many cross postings. Imagine you're a coder who only uses actionscript. Every time you post you have to figure out which group to post to. When you get this one wrong people are going to get annoyed. Also, it may be hard to know if you're problem is actionscript based when you start. You may get an error in the framework which turns out to be because you have a complicated data algorithm in actionscript that screwed up first. On Tue, Jun 17, 2008 at 12:32 AM, Josh McDonald [EMAIL PROTECTED] wrote: Drop actionscriptcoders and rename enterprise to RPC (or FlexRemoting or something), and I'm in. 95% of funky flex question are actionscript questions - unless it's an advanced actionscript list for things like VM internals stuff, in which case case perhaps it just needs a name change. Everybody likes to think what they're doing is enterprise. What we're doing definitely counts (Oracle *loves* us), but we're all SOAP - we don't use LCDS at all, so if people think enterprise is mainly for LCDS stuff we're going to get confusion. Didn't know about ApolloCoders, I think I'll go subscribe :) Definitely like the idea of an announce list, it could be moderated or you could subscribe to it as a daily / weekly digest. -Josh On Tue, Jun 17, 2008 at 2:10 PM, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Existing - FlexCoders - FlexComponents - ApolloCoders - FlexJobs New - EnterpriseFlex - FlexUIDesign - FlexAnnouncements - ActionscriptCoders ? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: 1. 101 Is creating a new group for this necessary or is flexcoders already handling this? 2. Coding (AS3/MXML) The name seems too abstract, what area are we targeting? Is is to show off new ideas or syntax questions. 3. Design and UI ( Flash/Components/CSS/Skin) Love it! Can we replace UI with UX : ) 4. Enterprise/Best Practices/Frameworks Does this include WebOrb/Blaze/LCDS ? 5. AIR - not big yet, but definitely a separate group of folks Apollocoders exists. not sure what the traffic is like. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh McDonald dznuts@ wrote: That's not a bad list of categories at all Anatole. It would be best if there's still some sort of (read-only?) meta-list that shows all messages, and if it were smart enough that you could read the all list and replies went to the correct lists it'd be a pretty good common ground I think. I'm no mailing-list-guy though, so no idea if that's feasible. -Josh On Tue, Jun 17, 2008 at 1:37 PM, Anatole Tartakovsky anatole.tartakovsky@ wrote: Matt, Splitting the last 500 topics in groups it would be: 1. 101 2. Coding (AS3/MXML) 3. Design and UI ( Flash/Components/CSS/Skin) 4. Enterprise/Best Practices/Frameworks 5. AIR - not big yet, but definitely a separate group of folks there Thank you Anatole Tartakovsky Farata Systems On Mon, Jun 16, 2008 at 11:28 PM, Matt Chotin mchotin@ wrote:t Practices/Frameworks I do think 12 is way too high a number BTW. Would recommend capping at 5 absolute max. On 6/16/08 8:28 PM, Matt Chotin mchotin@mchotin%40adobe.com wrote: Hey guys, If you think that splitting the lists is the right thing to do for the larger community then I'm not going to stop you. I think we were right in the past to recommend against the split, but I can see Anatole's point that traffic has stagnated and we'd certainly like the community to thrive. We'll certainly try to pay attention to as much as possible (not like it's me doing much but you know some Adobe folks are quite active), but no guarantees on how it will go. The Adobe forums themselves are definitely lacking, primarily because we can't access them via email. There is a project going on within Adobe to improve the experience drastically, and we definitely intend to split forums there (and hopefully convince everyone to come back over and move away from Yahoo
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
I agree that a FAQ seems like a good idea no matter what. Is anyone against this idea independent of the argument of whether or not to split the list? As far as splitting lists, I still think if people want to propose potential new lists, they need to be much more explicit about what the list will be for. I'll take the enterprise example. Let's assume for a second it has only one correct meaning (which is an assumption I agree with, but many people disagree with me on that). Enterprise has become a buzzword with many different commonly understood meanings, and most of those meanings are vague. There's no way for everyone on the list to be sure that we're talking about the same thing unless someone explicitly spells out what we are talking about (I'm not going to because I'm against having a enterprise list given every way I know to interpret the word). And if we don't have a common understanding of the proposal we can't efficiently criticize/support/amend the proposal. I'm not saying there has to be a fine line separating the lists, but it should at least be a fuzzy line. Also, to Bjorn, that's a point I hadn't thought of. The idea of having an arch/concepts list might be interesting. The two questions I would have would be: 1) would the questions on this list have any connection to Flex other than the fact that the users code in Flex (I think it probably would) or would it just be piggybacking on the user base; 2) Will it avoid stratification of the user base (i.e. will it be practically accessible to users of all skill levels)? Lastly, I'm going to reiterate my opinion that we shouldn't separate the lists based on skill/level difficulty. The distinction is too fuzzy (Too much cross-posting and too much posting to the wrong list). Sometimes you don't know if you're question is advanced or not until you get the answer. I've had a few times where I've asked what I thought was a simple question and the response from Gordon was I talked to a guy on the player team... If a question has a one line answer it can't be complex...unless the one line required going through the player or compiler code to understand it (sorry for the overstatement). - Daniel Freiman On Tue, Jun 17, 2008 at 10:31 PM, Douglas Knudsen [EMAIL PROTECTED] wrote: Having been on this list since 2004, yeah back when the Iteration folks were not Adobe Robe Wearers yet, I've seen this discussion come up a few times. I've asked for a associated FAQ a few times, but there was no interest from the Iteration folks on this or splitting up things, no offense Alistair or Stephen you more than rocked with helping this community. I'd certainly agree to a good FAQ be made available and sent to the list monthly for all to be reminded and have it linked at the footer. Bjorn has a good point later in this thread about the idea that answers are terse due to volume. Matt, I do agree with your #1, but #2 and #3 sounds too much like list mommies or invitations for list mommies. Something quite uncommon to the best of my recollection on flexcoders is the real need for list mommies. I'm in Anatole's camp on this, having multiple lists could be beneficial to all as well as the community. Do we know this for a fact? Nope, my crystal ball isn't helping, but it has with many other topics in the past. Conversely it may have hindered others, but perhaps because the introduction of split lists was premature, who knows. Hey, there are already multiple lists, besides flexcomponents there is HOF_Flex for one and the India based list too, I'm sure there are others. I suggest we start off with a couple very generic variants. flexcoders_enterprise seems ok to me, those that work with enterprise tools would find it obvious. leave flexcoders as is, add in a designer centric list, and a advanced list and go from there, revisit in a few months to see how it went. Oh, BTW there are other email readers that do threaded tricks like GMail...though I don't use them. :) DK On Tue, Jun 17, 2008 at 1:48 PM, Matt Chotin [EMAIL PROTECTED]mchotin%40adobe.com wrote: Hey folks, let's calm down a little here, K? Alright, based on what I've been seeing people say, here's my suggestion. 1) Let's get an FAQ going that can be edited by moderators or members of the community. This will be about common problems that folks run into. One suggestion of course from me would be that we use the Cookbook for how-to type questions. But for things that don't seem like they're cookbook appropriate, we can put them in the FAQ. I like the idea of doing it in Buzzword, though Buzzword docs won't come up in Google. Long-term I think the right place might be in whatever we set up in the Adobe Developer Center. But for now how about we just allocate a page off of the opensource wiki. We can pick some moderators who can edit the page and I will get them added so they can take care of it. We can also add the link to the FAQ
Re: [flexcoders] Re: Splitting FlexCoders in smaller, focused groups
I think of Best Practices and Architecture/Concepts as separate but overlapping categories so I guess that's why I thought no one else brought it up. On Tue, Jun 17, 2008 at 11:57 PM, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Also, to Bjorn, that's a point I hadn't thought of. The idea of having an arch/concepts list might be interesting. The two questions I would have would be: 1) would the questions on this list have any connection to Flex Anatole mentioned it earlier in a 'Best Practices' list. For example at MAX thy had that Best Practices panel and some interesting topics were brought up and discussed. From my point of view I'm always learning. It would be an interesting read for me. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: I agree that a FAQ seems like a good idea no matter what. Is anyone against this idea independent of the argument of whether or not to split the list? As far as splitting lists, I still think if people want to propose potential new lists, they need to be much more explicit about what the list will be for. I'll take the enterprise example. Let's assume for a second it has only one correct meaning (which is an assumption I agree with, but many people disagree with me on that). Enterprise has become a buzzword with many different commonly understood meanings, and most of those meanings are vague. There's no way for everyone on the list to be sure that we're talking about the same thing unless someone explicitly spells out what we are talking about (I'm not going to because I'm against having a enterprise list given every way I know to interpret the word). And if we don't have a common understanding of the proposal we can't efficiently criticize/support/amend the proposal. I'm not saying there has to be a fine line separating the lists, but it should at least be a fuzzy line. Also, to Bjorn, that's a point I hadn't thought of. The idea of having an arch/concepts list might be interesting. The two questions I would have would be: 1) would the questions on this list have any connection to Flex other than the fact that the users code in Flex (I think it probably would) or would it just be piggybacking on the user base; 2) Will it avoid stratification of the user base (i.e. will it be practically accessible to users of all skill levels)? Lastly, I'm going to reiterate my opinion that we shouldn't separate the lists based on skill/level difficulty. The distinction is too fuzzy (Too much cross-posting and too much posting to the wrong list). Sometimes you don't know if you're question is advanced or not until you get the answer. I've had a few times where I've asked what I thought was a simple question and the response from Gordon was I talked to a guy on the player team... If a question has a one line answer it can't be complex...unless the one line required going through the player or compiler code to understand it (sorry for the overstatement). - Daniel Freiman On Tue, Jun 17, 2008 at 10:31 PM, Douglas Knudsen [EMAIL PROTECTED] wrote: Having been on this list since 2004, yeah back when the Iteration folks were not Adobe Robe Wearers yet, I've seen this discussion come up a few times. I've asked for a associated FAQ a few times, but there was no interest from the Iteration folks on this or splitting up things, no offense Alistair or Stephen you more than rocked with helping this community. I'd certainly agree to a good FAQ be made available and sent to the list monthly for all to be reminded and have it linked at the footer. Bjorn has a good point later in this thread about the idea that answers are terse due to volume. Matt, I do agree with your #1, but #2 and #3 sounds too much like list mommies or invitations for list mommies. Something quite uncommon to the best of my recollection on flexcoders is the real need for list mommies. I'm in Anatole's camp on this, having multiple lists could be beneficial to all as well as the community. Do we know this for a fact? Nope, my crystal ball isn't helping, but it has with many other topics in the past. Conversely it may have hindered others, but perhaps because the introduction of split lists was premature, who knows. Hey, there are already multiple lists, besides flexcomponents there is HOF_Flex for one and the India based list too, I'm sure there are others. I suggest we start off with a couple very generic variants. flexcoders_enterprise seems ok to me, those that work with enterprise tools would find it obvious. leave flexcoders as is, add in a designer centric list, and a advanced list and go from there, revisit in a few months to see how it went. Oh, BTW there are other email readers that do threaded tricks like GMail...though I don't use them
Re: [flexcoders] Splitting FlexCoders in smaller, focused groups
This issue gets brought up periodically (and once by me), and at those times the mods have convinced me that we shouldn't (or at minimum had an argument against that was as good as the argument for). However, at this point in time, I think you have a point. In the past, I've answered more questions than I do now. Some of that is because I have been busy at work, and some of that is because a variety of reasons that are probably related to the group size. But I think splitting up the groups by user experience or complexity is a bad idea. For every new user at whom I just want to scream Read the docs! there are many who simply need a push in the right direction or have found a bug/idiosyncrasy in flex that they have no hope of figuring out unless they have someone with a little more experience telling them that they aren't going crazy. And we want those novices on the same list as the veterans. If a significant portion of the knowledgeable user base flees from the newbees, those new adopters won't have as good a chance of having their answers solved and the growth and quality of the community will be harmed. (I'm not saying it will take a nose dive or anything, but it won't be as good as it could be.) I think I could make a similar arguement for people who might be making the jump between intermediate to veteran, or business class, to enterprise class. (I know right now I'm on the border between business and enterprise class.) I agree that we should have some different lists differentiated on content. Key word there being 'some.' The more we divide, the more our knowledge is divided. Let's not go overboard. But I think with the release of BlazeDS, remoting now has enough traffic to get it's own group and we could define a clear set of content that would be in that group. A third group (or actually a forth group after flexcoders, flexcomponents, and remoting) might be useful, but I wouldn't endorse the idea unless someone else can suggest a good idea of what would go in that space that would be clearly differentiated by content, and allow users of all skill levels to join. - Daniel Freiman On Mon, Jun 16, 2008 at 9:10 PM, Anatole Tartakovsky [EMAIL PROTECTED] wrote: Dear All, Flexcoders has huge problem. In the last 15 month it is very much stagnant in terms of message count and participation. It is not growing and dropping members as fast as it gets them. I believe this group has overgrown the optimal size about a year ago and needs to be divided in more focused smaller groups. My mail box get 100+ messages a day on all kinds of topic - unless I can spend 30+ minutes that day to sort them out it goes directly into garbage can. Most people in the company unsubscribed from it 18 month ago. Most of veteran developers I know either unsubscribed or stopped looking in this mess greatly diminishing the quality of the responses. As a result group mostly host new developers and looses most of experienced ones after very short period of time. Further delay of breaking this group hinders usefulness of the group for all of us as now we have significant amount of users that are being forced out. I believe it is time to archive flexcoders and branch (12?) targeted new user groups I would like to see people suggesting user subgroups and WiKi topics for Flex community site to go with each group - providing best posts in more systematic way. I suggest the following Yahoo groups ( created couple for your convenience). Flex101: http://tech.groups.yahoo.com/group/flex101/ Post message: [EMAIL PROTECTED] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] EnterpriseFlex: http://tech.groups.yahoo.com/group/enterpriseflex/ Post message: [EMAIL PROTECTED] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] FlexUI FlexDesign FlexSDK FlexDeployment FlexFlash FlexFrameworks FlexBestPractices EnterpriseFlex: FlexBlazeDS: weborb: Sincerely, Anatole Tartakovsky Farata Systems
Re: [flexcoders] Re: Math.abs() Limitation?
I'll have to double check, but I'm don't think the code was doing the right thing either, because: Math.abs(Number.MAX_VALUE - 1290) - Math.abs(Number.MAX_VALUE - 1284); // returns 0 On Fri, Jun 13, 2008 at 1:58 PM, Mike Morearty [EMAIL PROTECTED] wrote: Daniel, this is a bug in Flex Builder, which occurs when displaying the values of Numbers whose value is greater than 0x7FFF. I'll get a fix in ASAP. Thanks for the feedback, and sorry for the inconvenience. To be clear, the Flex Builder debugger's Variables view is showing the wrong value, but the code is doing the right thing, and trace() is showing the right thing. - Mike Morearty, Adobe Flex Builder team --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: What did I mean? I'm not sure. For some reason I thought that floats loose precision at near the end of their range, but even if that is true, that wouldn't explain the lose of precision that large. In any event, I retried the following code: var t1:Number = Number.MAX_VALUE; var t3:Number = Number.MAX_VALUE - 1290; var t4:Number = Number.MAX_VALUE - 1284; var t5:Number = Math.abs(Number.MAX_VALUE - 1290); var t6:Number = Math.abs(Number.MAX_VALUE - 1284); var a1:Number = t3 - t4; var a2:Number = Math.abs(t3 - t4); var a3:Number = t5 - t6; var a4:Number = (Number.MAX_VALUE - 1290) - (Number.MAX_VALUE - 1284); var a5:Number = Math.abs(Number.MAX_VALUE - 1290) - Math.abs(Number.MAX_VALUE - 1284); var a6:Number = Math.abs((Number.MAX_VALUE - 1290) - (Number.MAX_VALUE - 1284)); The debugger reported all of the first group of variable values as 9223372036854775807 [0x7fff] and the traces of these values reported all of the values as 1.79769313486231e+308 This is not the same results that I remember getting previously where t3 != t4. The second group all have values of 0. When i have time I'll look into this more. - Daniel Freiman On Wed, Jun 11, 2008 at 2:04 AM, Gordon Smith [EMAIL PROTECTED] wrote: Number.MAX_VALUE doesn't have enough precision to handle what I was trying to do. What do you mean by this? A Number, being 64 bits, actually has both more precision and more range than int, which is 32 bits. For example, in addition to storing fractional values, it can store integers much larger than int.MAX_VALUE. Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On Behalf Of *Daniel Freiman *Sent:* Friday, June 06, 2008 2:10 PM *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Math.abs() Limitation? I figured it out. The trace made it obvious (as opposed the debugger which is what I was previously using). I was using Number.MAX_VALUE, not int.MAX_VALUE. Number.MAX_VALUE doesn't have enough precision to handle what I was trying to do. Thanks, - Daniel Freiman On Fri, Jun 6, 2008 at 2:29 PM, Gordon Smith [EMAIL PROTECTED] wrote: What do you get when you trace out the following values? int.MAX_VALUE - 1290 Math.abs(int.MAX_VALUE - 1290) int.MAX_VALUE - 1284 Math.abs(int.MAX_VALUE - 1284) Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On Behalf Of *Alex Harui *Sent:* Friday, June 06, 2008 11:18 AM *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com *Subject:* RE: [flexcoders] Math.abs() Limitation? What if you use temporary variables? -- *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On Behalf Of *Daniel Freiman *Sent:* Friday, June 06, 2008 9:09 AM *To:* flexcoders *Subject:* [flexcoders] Math.abs() Limitation? According to my code the following statement returns true. Math.abs(int.MAX_VALUE - 1290) == Math.abs(int.MAX_VALUE - 1284) I tried converting everything to type Number that didn't help. Getting ride of the abs() makes the calculation work correctly but then I don't have the absolute value. Thoughts? - Daniel Freiman
Re: [flexcoders] Re: Math.abs() Limitation?
That's the explanation I've been looking for. I think we were really close to it a few times and just missed it (for example the not enough precision comment). So this isn't a bug as much as a limitation of the definition of Number (which I think is based on a standard implementation of float?). The original problem should have been that i was getting: Math.abs(Number.MAX_VALUE - 1290) == Math.abs(Number.MAX_VALUE - 1284); // returns true I wounder if I only imagined Math.abs() making a difference (I thought I tested the difference)? Either way, int.MAX_VALUE has been working so I'm happy. Thanks, - Daniel Freiman On Fri, Jun 13, 2008 at 3:43 PM, Gordon Smith [EMAIL PROTECTED] wrote: Now that you're using Number.MAX_VALUE rather than int.MAX_VALUE, this difference *should* evaluate to 0. The reason is that Number.MAX_VALUE is a huge value, approximately 1.79769313486231e+308, with 309 digits to the left of the decimal point. Number, being only 64 bits, can't represent all of these... it represents the 15 or 16 most-significant digits, with an exponent telling where the decimal point goes. The next-to-the-maximum value that Number can represent is something like 1.79769313486230e+308, where the least-significant of the digits stores is a 0 instead of a 1. (Actually they're stored in binary, not decimal, but that's another story.) So when you subtract a puny value like 1290, it's like doing 179769313486231??... -1290 - 179769313486231??... You get the same thing you started with, because the mathematically exact result is closer to the maximum value than to the next-to-the-maximum value of Number. If you subtract a much larger value like 1e+294 you'll start affecting the least significant digit. Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Freiman *Sent:* Friday, June 13, 2008 12:26 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Math.abs() Limitation? I'll have to double check, but I'm don't think the code was doing the right thing either, because: Math.abs(Number.MAX_VALUE - 1290) - Math.abs(Number.MAX_VALUE - 1284); // returns 0 On Fri, Jun 13, 2008 at 1:58 PM, Mike Morearty [EMAIL PROTECTED] wrote: Daniel, this is a bug in Flex Builder, which occurs when displaying the values of Numbers whose value is greater than 0x7FFF. I'll get a fix in ASAP. Thanks for the feedback, and sorry for the inconvenience. To be clear, the Flex Builder debugger's Variables view is showing the wrong value, but the code is doing the right thing, and trace() is showing the right thing. - Mike Morearty, Adobe Flex Builder team --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: What did I mean? I'm not sure. For some reason I thought that floats loose precision at near the end of their range, but even if that is true, that wouldn't explain the lose of precision that large. In any event, I retried the following code: var t1:Number = Number.MAX_VALUE; var t3:Number = Number.MAX_VALUE - 1290; var t4:Number = Number.MAX_VALUE - 1284; var t5:Number = Math.abs(Number.MAX_VALUE - 1290); var t6:Number = Math.abs(Number.MAX_VALUE - 1284); var a1:Number = t3 - t4; var a2:Number = Math.abs(t3 - t4); var a3:Number = t5 - t6; var a4:Number = (Number.MAX_VALUE - 1290) - (Number.MAX_VALUE - 1284); var a5:Number = Math.abs(Number.MAX_VALUE - 1290) - Math.abs(Number.MAX_VALUE - 1284); var a6:Number = Math.abs((Number.MAX_VALUE - 1290) - (Number.MAX_VALUE - 1284)); The debugger reported all of the first group of variable values as 9223372036854775807 [0x7fff] and the traces of these values reported all of the values as 1.79769313486231e+308 This is not the same results that I remember getting previously where t3 != t4. The second group all have values of 0. When i have time I'll look into this more. - Daniel Freiman On Wed, Jun 11, 2008 at 2:04 AM, Gordon Smith [EMAIL PROTECTED] wrote: Number.MAX_VALUE doesn't have enough precision to handle what I was trying to do. What do you mean by this? A Number, being 64 bits, actually has both more precision and more range than int, which is 32 bits. For example, in addition to storing fractional values, it can store integers much larger than int.MAX_VALUE. Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On Behalf Of *Daniel Freiman
Re: [flexcoders] How to support both PERCENT and ABSOLUTE values in one attribute?
I wrote up a description of the PercentProxy metadata tag a long time ago. It was for Flex 2, but I think it still applies to Flex 3 as well. Also, see the docs. http://nondocs.blogspot.com/2007/04/metadatapercentproxy.html - Daniel Freiman On Thu, Jun 12, 2008 at 3:49 PM, Baz [EMAIL PROTECTED] wrote: Hi, A really convenient feature of flex is how you can provide either a PERCENT or ABSOLUTE measurement for WIDTH or HEIGHT of containers, and the compiler figures out which is which for you. I have a component called Content which is composed of two other components called LeftColumn and RightColumn. I would like for whoever is using the Content component to be able to supply a leftColumnWidth in either PERCENT or ABSOLUTE. The value would then get passed directly into the WIDTH attribute of the internal sub-component LeftColumn. Basically, I just need to pass-through a value from one component to another. The problem is what data type to make the leftColumnWidth property? A STRING does not accept the absolute values, and a NUMBER does not accept percentages. The framework itself uses a compiler directive called PERCENTPROXY to solve this issue before it even gets to the data type, but is that what I should do too just to pass a value from one component to another? Thanks for reading this, Baz
Re: [flexcoders] Re: OOP and Work for Hire
I've stayed away from this conversation because I agree with Doug that this conversation has been kind of intense and in some cases borderline ridiculous. But if he's bowing out I have to speak up and say he has been correct on almost everything. To OVERSIMPLIFY: Copyright protects code. Patents protect algorithms. If they patent it, you can't use the algorithm again, and thus not the code that implements that algorithm either. If they copyright it (which in the U.S. happens automatically), then you can't use the code. Generally, (although not universally) you can use algorithm unencumbered. That being said, you may be able to use small pieces of the code if they are not specific to the project. (an example from other industries: a specific line of a movie script maybe be protected by copyright, but the line I'm tired. definitely can't be protected by copyright because it's already ubiquitous and the concept behind it is universal, also I so far have ignored fair use). To be safe, don't copy and paste code because that it may be infringement no matter what. These distinctions are admittedly HIGHLY subjective (as noted by all of my equivocating phrases). Lastly, we seem to be ignoring (or conflating) the definition of work for hire which is different from both of the above. Honestly, I don't know the legal definition of work for hire, so I'm not going to try to define it legally. Based on what I've read, work for hire (the legal definition) may not even cover software code in which case the contract would be the only thing that matters. I'm not sure of that one. Many contracts sign over the rights to the copyright to the company. Patents are a more thorny issue in this case so I'm going to ignore them, but note that they are an issue. Most importantly, I have seen work for hire contracts that sign over to the company any rights to your own ideas (code or otherwise) which are derived from the project. (You're going to need a lawyer to interpret the previous sentence properly.) Also, I've seen some contracts that sign over your code, even if you've previously used that code before (so you'd loose control of parts of your code library) so watch out for that. Also, a disclaimer. We're on the internet. Laws differ from country to country. So it's possible people (including me) have been giving you advice on the incorrect set of law (I'm in the U.S.), and so far, I don't think anyone has claimed to be a lawyer. To get back to your original question, you make them sound reasonable, so I think you just need to tell them why you want to keep non-exclusive rights to your code. They're probably know how to deal with that. I would make sure to explicitly include previously written code in an the exempted list as well as implementations, algorithms and UI that can deal with data in a manner not specific to the project (and get a lawyer to translate what I just said, because I'm not even sure I know). I sit here in the t-shirt I got for getting into law school and am thinking that I'm glad I didn't go because our job is so much more fun. Two, or three cents from a non-lawyer. - Daniel Freiman On Thu, Jun 12, 2008 at 11:16 AM, Doug McCune [EMAIL PROTECTED] wrote: I'm bowing out of this discussion. Things have gotten far too polarized and nit-picky. However, I still feel it is worthwhile to at least chime in one more time because I think some of the points raised here leave developers with wrong and dangerous information. The overall opinion that you don't need to worry about re-using your source code from other clients' projects is simply false, and has the potential to get you into a lot of legal trouble. If you find yourself copying code from work you did for a previous client, please please go back and re-read the contract you signed, and be sure that you properly understand what you're doing and the legal implications. When it comes to these issues it is always better to err on the side of caution. I'll stop giving my opinion on what's right or wrong, and just say that as a developer, you need to have a thorough understanding of IP law before you go down that road, so read up and please don't rely on mailing lists for legal advice :) Doug On Thu, Jun 12, 2008 at 5:44 AM, b_alen [EMAIL PROTECTED] wrote: You can use it again definitely otherwise no one here would be allowed to do even a sorting algorithm ever again. Come on, some guys even went so far that every single digital line of code is client's. So even the mx:Button / I can't implement ever again, because it belongs to the customer. Algorithm, you can probably use it again. It depends how obvious or unique it is. In theory, algorithms / approaches to solving problems are not patentable. In reality such algorithms may be patentable or considered trade secrets. Depends, but usually there are changes for the better in each iteration. Even if you sit down to implement the algorithm a second
Re: [flexcoders] Math.abs() Limitation?
What did I mean? I'm not sure. For some reason I thought that floats loose precision at near the end of their range, but even if that is true, that wouldn't explain the lose of precision that large. In any event, I retried the following code: var t1:Number = Number.MAX_VALUE; var t3:Number = Number.MAX_VALUE - 1290; var t4:Number = Number.MAX_VALUE - 1284; var t5:Number = Math.abs(Number.MAX_VALUE - 1290); var t6:Number = Math.abs(Number.MAX_VALUE - 1284); var a1:Number = t3 - t4; var a2:Number = Math.abs(t3 - t4); var a3:Number = t5 - t6; var a4:Number = (Number.MAX_VALUE - 1290) - (Number.MAX_VALUE - 1284); var a5:Number = Math.abs(Number.MAX_VALUE - 1290) - Math.abs(Number.MAX_VALUE - 1284); var a6:Number = Math.abs((Number.MAX_VALUE - 1290) - (Number.MAX_VALUE - 1284)); The debugger reported all of the first group of variable values as 9223372036854775807 [0x7fff] and the traces of these values reported all of the values as 1.79769313486231e+308 This is not the same results that I remember getting previously where t3 != t4. The second group all have values of 0. When i have time I'll look into this more. - Daniel Freiman On Wed, Jun 11, 2008 at 2:04 AM, Gordon Smith [EMAIL PROTECTED] wrote: Number.MAX_VALUE doesn't have enough precision to handle what I was trying to do. What do you mean by this? A Number, being 64 bits, actually has both more precision and more range than int, which is 32 bits. For example, in addition to storing fractional values, it can store integers much larger than int.MAX_VALUE. Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Freiman *Sent:* Friday, June 06, 2008 2:10 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Math.abs() Limitation? I figured it out. The trace made it obvious (as opposed the debugger which is what I was previously using). I was using Number.MAX_VALUE, not int.MAX_VALUE. Number.MAX_VALUE doesn't have enough precision to handle what I was trying to do. Thanks, - Daniel Freiman On Fri, Jun 6, 2008 at 2:29 PM, Gordon Smith [EMAIL PROTECTED] wrote: What do you get when you trace out the following values? int.MAX_VALUE - 1290 Math.abs(int.MAX_VALUE - 1290) int.MAX_VALUE - 1284 Math.abs(int.MAX_VALUE - 1284) Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Alex Harui *Sent:* Friday, June 06, 2008 11:18 AM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Math.abs() Limitation? What if you use temporary variables? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Freiman *Sent:* Friday, June 06, 2008 9:09 AM *To:* flexcoders *Subject:* [flexcoders] Math.abs() Limitation? According to my code the following statement returns true. Math.abs(int.MAX_VALUE - 1290) == Math.abs(int.MAX_VALUE - 1284) I tried converting everything to type Number that didn't help. Getting ride of the abs() makes the calculation work correctly but then I don't have the absolute value. Thoughts? - Daniel Freiman
[flexcoders] Math.abs() Limitation?
According to my code the following statement returns true. Math.abs(int.MAX_VALUE - 1290) == Math.abs(int.MAX_VALUE - 1284) I tried converting everything to type Number that didn't help. Getting ride of the abs() makes the calculation work correctly but then I don't have the absolute value. Thoughts? - Daniel Freiman
Re: [flexcoders] Math.abs() Limitation?
I figured it out. The trace made it obvious (as opposed the debugger which is what I was previously using). I was using Number.MAX_VALUE, not int.MAX_VALUE. Number.MAX_VALUE doesn't have enough precision to handle what I was trying to do. Thanks, - Daniel Freiman On Fri, Jun 6, 2008 at 2:29 PM, Gordon Smith [EMAIL PROTECTED] wrote: What do you get when you trace out the following values? int.MAX_VALUE - 1290 Math.abs(int.MAX_VALUE - 1290) int.MAX_VALUE - 1284 Math.abs(int.MAX_VALUE - 1284) Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Alex Harui *Sent:* Friday, June 06, 2008 11:18 AM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Math.abs() Limitation? What if you use temporary variables? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Freiman *Sent:* Friday, June 06, 2008 9:09 AM *To:* flexcoders *Subject:* [flexcoders] Math.abs() Limitation? According to my code the following statement returns true. Math.abs(int.MAX_VALUE - 1290) == Math.abs(int.MAX_VALUE - 1284) I tried converting everything to type Number that didn't help. Getting ride of the abs() makes the calculation work correctly but then I don't have the absolute value. Thoughts? - Daniel Freiman
Re: [flexcoders] how to keep slide thumb in hslide can not be dragged
Will mouseEnabled = false; work? On Wed, Jun 4, 2008 at 3:23 PM, markflex2007 [EMAIL PROTECTED] wrote: Hi I did this but it just move back and I need set the hslide value from code and do not allow it draggable.I need the hslide just show the result. mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:HSlider id=h1 x=89 y=173 minimum=0 maximum=10 value=4 width=260 thumbPress=getvalue() allowTrackClick=false liveDragging=false change =keepvalue()/ mx:Script ![CDATA[ import mx.controls.Alert; private var temp:Number; private function keepvalue():void{ h1.value = temp; } private function getvalue():void{ temp = h1.value; } ]] /mx:Script /mx:Application Please give me a idea Thanks Mark