[flexcoders] Re: Embedded Fonts and Flash Builder 4.01
Thanks Alex, I guess I was thrown off by the warning text which had it as 'embedAsCff not 'embedAsCFF'. I fixed that and then removed -managers=flash.fonts.AFEFontManager from my compiler settings and the warnings disappeared. I was also thrown off that I thought Halo components required embedAsCFF to be set to false but that no longer seems to be the case. Jeff --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: 4.x has new requirements around getting the embedAsCFF flag correctly, but there shouldn't be anything else. BTW, note that it is embedAsCFF. I don't think embedAsCff will work. Styles defined in the module now supercede styles defined in the parent. Maybe some global selector in the module is blocking lookup into the parent? Or maybe it is just a bug. See if you can make a simple test case. On 7/23/10 9:17 AM, Battershall, Jeff jeff.battersh...@... wrote: Alex, I'm hoping you can look at this - I read your article about fonts and swf loading - could be related to what I'm describing. However, what I am doing is pretty vanilla. I've got a CSS file where some font embedding is being done and I'm setting, ebmedAsCff= true or false depending on whether the component is question is spark or halo, but it seems with the warnings I'm getting that the ebmedAsCff portion of my style definition is being ignored. It would seem that there is: 1) a change in how font embedding is being done or 2) some additional thing I have to do to ensure that style definitions as defined in the parent application are available to modules or 3) that the 4.01 changes have some unforeseen consequences Note I'm seeing this behavior whether I'm using Flex 4.1 or 4.0. Jeff -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Jeff Sent: Friday, July 23, 2010 7:29 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Embedded Fonts and Flash Builder 4.01 With the release of Flash Builder 4.01, suddenly I'm getting a lot of runtime warnings about the need to set embedAsCff=true in my modular application, even though this is already set in the CSS file that embeds the font, which is loaded in the parent application. What could I be doing wrong? -- 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 -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Value Object --- Object Proxy --- huh???
Not sure it's worth the trouble, but did you have some particular technique in mind? I think I might have asked about this before, but if MXML had a way to do constructor injection it could also help frameworks like Mate so they don't need tags with attributes called arguments. On Fri, Jul 23, 2010 at 3:46 PM, Alex Harui aha...@adobe.com wrote: You could write your set functions to be write-once. On 7/23/10 11:35 AM, Richard Rodseth rrods...@gmail.com wrote: Getting a little off-topic, but in case anyone's interested: http://www.developer.com/lang/other/article.php/3874551/Clojure-Immutability-at-the-Language-Level.htm One Flex-specific wrinkle is that if you define a class with a 1 argument constructor and getters only, you can't instantiate it in MXML. And in AS3, you can't have mutliple constructors. I'm not sure, but I imagine some of the serialization libraries for JSON etc might have issues too if you don't have the zero-argument constructor. On Fri, Jul 23, 2010 at 11:25 AM, Richard Rodseth rrods...@gmail.com wrote: Yes, obviously. But not the same thing. If you write your VO’s to have only get functions, they are effectively immutable. On 7/23/10 8:56 AM, Richard Rodseth rrods...@gmail.com http://rrods...@gmail.com wrote: Interesting. I haven't used that one either. The docs emphasize the addEventListener capability, which I guess distinguishes this from plain old Object, which can also hold arbitrary properties. http://livedocs.adobe.com/flex/3/langref/mx/utils/ObjectProxy.html As an aside, I would love to have language support for designating VOs as immutable. On Thu, Jul 22, 2010 at 6:11 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com wrote: ObjectProxy is a generic VO. It is dynamic and can hold any properties and values. And it is slow. Best to create custom Vos that are strongly typed. On 7/22/10 2:52 PM, mark.embrey mark.c.emb...@gmail.com http://mark.c.emb...@gmail.com http://mark.c.emb...@gmail.com wrote: I'm trying to wrap my feeble brain around these concepts. Are they the same? -similar? -completely different? Your feedback will be appreciated by this greenhorn. Mark -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: Issue with item renderer in Flex 3
Use DataGrid_witStyle at flexdiary.blogspot.com. This sort of thing is exactly why I wrote it. Check out the itemRenderer example I provided if you need to use style properties that don't exist in your itemRenderer's base class. Note that at least part of your problem is coming from the fact that you're doing the set style in set data() rather than in an override of updateDisplayList(). Reread the docs on the component life cycle, and check out Alex and Gordon's article on that topic in Flex Authority. I think you can still get the issue as a download, though you may have to pay for it. What it will save you in learning curve will be well worth it. HTH; Amy --- In flexcoders@yahoogroups.com, shameer.forflex shameer.forf...@... wrote: Hi All, I am facing a problem in using item renderers. I have a checkbox as an item renderer in a datagrid. When I check/uncheck the checkbox, the color of the checkbox should change from its default color to yellow. And on click of a save button, I am saving the changes to the database and refreshes the grid. But what happens then is,due to the recycling of renderers, the yellow checkbox is appearing on some other row/column. I know that this happens because I am not resetting the yellow to default color. I also don't know where to reset the yellow to default color. This is what I did,.. on click of check box, in the click handler, i set the yellow color setStyle('fillColors',['#eccd12', '#e9d76c','#eccd12', '#e9d76c']); setStyle('fillAlphas',['1','1','1','1']); also set a boolean variable isEdited to true In override public function set data():void { if(isEdited) { //set yellow setStyle('fillColors',['#eccd12', '#e9d76c','#eccd12', '#e9d76c']); setStyle('fillAlphas',['1','1','1','1']); } else { //set default color setStyle('fillColors',['#FF', '#CC','#FF', '#EE']); setStyle('fillAlphas',['0.6','0.4','0.75','0.65']); } } This doesnt solve the problem. Can someone please help me in this? Thanks Shameer
Re: [flexcoders] Value Object --- Object Proxy --- huh???
For some setters you can test against null to know if the value was previously set, otherwise you’d need flags. Then ignore or throw an error. On 7/24/10 8:04 AM, Richard Rodseth rrods...@gmail.com wrote: Not sure it's worth the trouble, but did you have some particular technique in mind? I think I might have asked about this before, but if MXML had a way to do constructor injection it could also help frameworks like Mate so they don't need tags with attributes called arguments. On Fri, Jul 23, 2010 at 3:46 PM, Alex Harui aha...@adobe.com wrote: You could write your set functions to be write-once. On 7/23/10 11:35 AM, Richard Rodseth rrods...@gmail.com http://rrods...@gmail.com wrote: Getting a little off-topic, but in case anyone's interested: http://www.developer.com/lang/other/article.php/3874551/Clojure-Immutability-at-the-Language-Level.htm One Flex-specific wrinkle is that if you define a class with a 1 argument constructor and getters only, you can't instantiate it in MXML. And in AS3, you can't have mutliple constructors. I'm not sure, but I imagine some of the serialization libraries for JSON etc might have issues too if you don't have the zero-argument constructor. On Fri, Jul 23, 2010 at 11:25 AM, Richard Rodseth rrods...@gmail.com http://rrods...@gmail.com wrote: Yes, obviously. But not the same thing. If you write your VO’s to have only get functions, they are effectively immutable. On 7/23/10 8:56 AM, Richard Rodseth rrods...@gmail.com http://rrods...@gmail.com http://rrods...@gmail.com wrote: Interesting. I haven't used that one either. The docs emphasize the addEventListener capability, which I guess distinguishes this from plain old Object, which can also hold arbitrary properties. http://livedocs.adobe.com/flex/3/langref/mx/utils/ObjectProxy.html As an aside, I would love to have language support for designating VOs as immutable. On Thu, Jul 22, 2010 at 6:11 PM, Alex Harui aha...@adobe.com http://aha...@adobe.com http://aha...@adobe.com wrote: ObjectProxy is a generic VO. It is dynamic and can hold any properties and values. And it is slow. Best to create custom Vos that are strongly typed. On 7/22/10 2:52 PM, mark.embrey mark.c.emb...@gmail.com http://mark.c.emb...@gmail.com http://mark.c.emb...@gmail.com http://mark.c.emb...@gmail.com wrote: I'm trying to wrap my feeble brain around these concepts. Are they the same? -similar? -completely different? Your feedback will be appreciated by this greenhorn. Mark -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Re: Embedded Fonts and Flash Builder 4.01
If you are using MXFTEText.css then the Halo components can use CFF fonts. Otherwise, sounds like there is still something unexplained going on. On 7/24/10 4:18 AM, Jeff jbarts1...@yahoo.com wrote: Thanks Alex, I guess I was thrown off by the warning text which had it as 'embedAsCff not 'embedAsCFF'. I fixed that and then removed -managers=flash.fonts.AFEFontManager from my compiler settings and the warnings disappeared. I was also thrown off that I thought Halo components required embedAsCFF to be set to false but that no longer seems to be the case. Jeff --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: 4.x has new requirements around getting the embedAsCFF flag correctly, but there shouldn't be anything else. BTW, note that it is embedAsCFF. I don't think embedAsCff will work. Styles defined in the module now supercede styles defined in the parent. Maybe some global selector in the module is blocking lookup into the parent? Or maybe it is just a bug. See if you can make a simple test case. On 7/23/10 9:17 AM, Battershall, Jeff jeff.battersh...@... wrote: Alex, I'm hoping you can look at this - I read your article about fonts and swf loading - could be related to what I'm describing. However, what I am doing is pretty vanilla. I've got a CSS file where some font embedding is being done and I'm setting, ebmedAsCff= true or false depending on whether the component is question is spark or halo, but it seems with the warnings I'm getting that the ebmedAsCff portion of my style definition is being ignored. It would seem that there is: 1) a change in how font embedding is being done or 2) some additional thing I have to do to ensure that style definitions as defined in the parent application are available to modules or 3) that the 4.01 changes have some unforeseen consequences Note I'm seeing this behavior whether I'm using Flex 4.1 or 4.0. Jeff -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Jeff Sent: Friday, July 23, 2010 7:29 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Embedded Fonts and Flash Builder 4.01 With the release of Flash Builder 4.01, suddenly I'm getting a lot of runtime warnings about the need to set embedAsCff=true in my modular application, even though this is already set in the CSS file that embeds the font, which is loaded in the parent application. What could I be doing wrong? -- 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 -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui