Re: [flexcoders] pixel font [old] issue
Thanks Jon! i wil try that... ary --- Jon Bradley [EMAIL PROTECTED] wrote: Search archives. Another embedding fonts thread was discussed up about a week ago (Embed Flash Font was the subject). Text of my post is below, which works for all pixel fonts I've tested so far (provided you use the proper font size in the Flex CSS document). First step is to put a dynamic text field on the stage in Flash, set your font for the field and choose the character(s) you wish to embed. Make sure the text field is set to use Bitmap Text (whatever the drop down is). You do not have control over the characters after this step, so all your embedding is done in Flash (ie, no unicode control in Flex CSS). The use of font-weight: normal and fontAntiAliasType: normal are necessary, from what I recall. You have no control over this in Flex for pixel fonts. The following steps are: -- 1. Don't name the embedded font in the Flash 8 swf file the same as the system font. 2. Open the Flash 8 SWF back up into Flash 8 IDE (or CS3 IDE). When you do that, do a list variables - Debug List Variables. Make note of the 'exported' font name that Flash used for the font. That name is what you'll use in Flex. For example, on using a pixel font (Kroeger 05_56), I exported the Flash 8 SWF file, the embedded symbol name ended up as kroeger 05_56_8pt_st. And in Flex, I used this in the CSS as follows: @font-face { src: url(../fonts/Kroeger.swf) ; fontFamily: kroeger 05_56_8pt_st; font-weight: normal; } And defining the usage of that font, recognizing that in this case it's a pixel font and doesn't use the advanced anti aliasing .assetInfoTitle { color:#66; fontFamily: kroeger 05_56_8pt_st; font-weight: normal; fontSize: 8; fontAntiAliasType: normal; } Hopefully that will get you on your way. best, Jon On Sep 22, 2007, at 3:56 PM, Ary wrote: yes i try both already ...embeding .ttf files and make a dynamic text on swf file, i choose embeding dynamic text ,embedding ttf doesnt work at all, while embedding swf is working, but blurred text, i define normal,italic and bold in font face already...i even got fontantialiastype set to advanced rather than normal (i get it from a site, although it still blurred). Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV. http://tv.yahoo.com/
[flexcoders] AIR HTML control a tag problem with target _blank
In the air html control if I put in the html a href=www.google.com target=_blankgoogle/a AIR does not launch a new browser window with google .. any ideas why? If I make navigateToUrl call with a _blank a new bowser window is launched ... why cant he HTML control do it? Is there something special that I need to do to make this work?
[flexcoders] Need Help With This Error -- No service is configured to handle messages of type
I am trying to use Flex Data Services on jboss and I get this error when I try to access my mxml page. Does anyone know what causes this error [MessagingError message='No service is configured to handle messages of type 'flex.data.messages.DataMessage'.'] at mx.messaging.config::ServerConfig$/getServiceIdForMessage() at mx.data::Metadata$iinit() at mx.data::ConcreteDataService$iinit() at mx.data::ConcreteDataService$/getService() at mx.data.mxml::DataService/set destination() at AssemblerTest/::_DataService1_i() at AssemblerTest$iinit() at _AssemblerTest_mx_managers_SystemManager/create() at mx.managers::SystemManager/::initializeTopLevelWindow() at mx.managers::SystemManager/::docFrameHandler() MXML Code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* layout=horizontal creationComplete=ds.fill(customers) mx:DataService id=ds destination=customer autoCommit=false autoSyncEnabled=false/ mx:ArrayCollection id=customers/ mx:Panel title=Customer List width=100% height=100% mx:DataGrid id=dg width=100% height=100% dataProvider={customers} enabled={!ds.commitRequired} mx:columns mx:DataGridColumn dataField=email headerText=Email editable=false/ mx:DataGridColumn dataField=firstName headerText=FirstName editable=false/ /mx:columns /mx:DataGrid /mx:Panel /mx:Application Assembler Code package com.photo.assemblers.customer; import flex.data.assemblers.AbstractAssembler; import java.util.Collection; import java.util.List; import java.util.Collections; import com.elasticpath.domain.customer.Customer; import com.elasticpath.domain.customer.impl.CustomerImpl; public class CustomerAssembler extends AbstractAssembler { public Collection fill(List list) { System.out.println(CCAED); Customer cust = new CustomerImpl(); cust.setEmail([EMAIL PROTECTED]); cust.setFirstName(Amit); return Collections.singletonList(cust); } }
RE: [flexcoders] Are you going to MAX?
Okay, I will not be there guys but give my thanks to those @ adobe for developing such a nice app.. Edtrade; Proud Happy Member --- flexcoders@yahoogroups.com [EMAIL PROTECTED] wrote: I will be there! Dimitrios Gianninas Development Team Lead / Moderator Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Beh alf Of ben.clinkinbeard Sent: Friday, September 21, 2007 9:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Are you going to MAX? Just curious how many people from the list will be in Chicago. Ben -- WARNING --- This electronic message and its attachments may contain confidential, propr ietary or legally privileged information, which is solely for the use of th e intended recipient. No privilege or other rights are waived by any unint ended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it an d all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is un authorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des rens eignements confidentiels, exclusifs ou légalement privilégiés destin és au seul usage du destinataire visé. L'expéditeur original ne reno nce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autoris ation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le li re et le supprimer, ainsi que toutes ses pièces jointes, de votre systè me. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destina taire visé ne sont pas autorisés et pourraient être illégaux. Si v ous avez reçu ce courrier électronique par erreur, veuillez en aviser l 'expéditeur. Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/
RE: [flexcoders] Are you going to MAX?
Okay, I will not be there guys just give my thanks to those @ adobe for developing such a nice app.. Edtrade; Proud Happy Member --- flexcoders@yahoogroups.com [EMAIL PROTECTED] wrote: I will be there! Dimitrios Gianninas Development Team Lead / Moderator Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Beh alf Of ben.clinkinbeard Sent: Friday, September 21, 2007 9:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Are you going to MAX? Just curious how many people from the list will be in Chicago. Ben -- WARNING --- This electronic message and its attachments may contain confidential, propr ietary or legally privileged information, which is solely for the use of th e intended recipient. No privilege or other rights are waived by any unint ended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it an d all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is un authorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des rens eignements confidentiels, exclusifs ou légalement privilégiés destin és au seul usage du destinataire visé. L'expéditeur original ne reno nce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autoris ation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le li re et le supprimer, ainsi que toutes ses pièces jointes, de votre systè me. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destina taire visé ne sont pas autorisés et pourraient être illégaux. Si v ous avez reçu ce courrier électronique par erreur, veuillez en aviser l 'expéditeur. Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
[flexcoders] Re: Custom Components Data
Thank You So Much I just could not figure that out, you have been a great help. Thanks Alot!!!
RE: [flexcoders] pixel font [old] issue
You might take a look at this, too. HYPERLINK http://www.minifonts.com/tips.htmlhttp://www.minifonts.com/tips.html The second major topic on the page deals with using pixel fonts with Flash. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ary Sent: Sunday, September 23, 2007 2:03 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] pixel font [old] issue Thanks Jon! i wil try that... ary --- Jon Bradley HYPERLINK mailto:jbradley%40postcentral.com[EMAIL PROTECTED] wrote: Search archives. Another embedding fonts thread was discussed up about a week ago (Embed Flash Font was the subject). Text of my post is below, which works for all pixel fonts I've tested so far (provided you use the proper font size in the Flex CSS document). First step is to put a dynamic text field on the stage in Flash, set your font for the field and choose the character(s) you wish to embed. Make sure the text field is set to use Bitmap Text (whatever the drop down is). You do not have control over the characters after this step, so all your embedding is done in Flash (ie, no unicode control in Flex CSS). The use of font-weight: normal and fontAntiAliasType: normal are necessary, from what I recall. You have no control over this in Flex for pixel fonts. The following steps are: -- 1. Don't name the embedded font in the Flash 8 swf file the same as the system font. 2. Open the Flash 8 SWF back up into Flash 8 IDE (or CS3 IDE). When you do that, do a list variables - Debug List Variables. Make note of the 'exported' font name that Flash used for the font. That name is what you'll use in Flex. For example, on using a pixel font (Kroeger 05_56), I exported the Flash 8 SWF file, the embedded symbol name ended up as kroeger 05_56_8pt_st-. And in Flex, I used this in the CSS as follows: @font-face { src: url(../fonts/-Kroeger.swf) ; fontFamily: kroeger 05_56_8pt_st-; font-weight: normal; } And defining the usage of that font, recognizing that in this case it's a pixel font and doesn't use the advanced anti aliasing .assetInfoTitle { color:#66; fontFamily: kroeger 05_56_8pt_st-; font-weight: normal; fontSize: 8; fontAntiAliasType: normal; } Hopefully that will get you on your way. best, Jon On Sep 22, 2007, at 3:56 PM, Ary wrote: yes i try both already ...embeding .ttf files and make a dynamic text on swf file, i choose embeding dynamic text ,embedding ttf doesnt work at all, while embedding swf is working, but blurred text, i define normal,italic and bold in font face already...i even got fontantialiastype set to advanced rather than normal (i get it from a site, although it still blurred). -_-_-_-_-_-_ Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV. HYPERLINK http://tv.yahoo.com/http://tv.yahoo.-com/ No virus found in this outgoing message. Checked by AVG. Version: 7.5.488 / Virus Database: 269.13.28/1023 - Release Date: 9/22/2007 1:27 PM
[flexcoders] LCDS and FLEX 3
Hi All, at the moment I'm developing a flex application prototype. I use the AdvancedDatagrid, so I chose Flex 3 beta. I also need to have LCDS, so I installed LCDS 2.5 . In Flexbuilder I normally choose the option user compiler on server when I create a new flex project. Unfortunately in LCDS 2.5 there is a compiler for Flex 2, so I'm not able to use the AdvacedDatagrid. As a workaround I always compile in FB3 beta and put the swf files in my J2EE sever. In my opinion this is not the best approach, so I watched out for some example how to replace the Flex compiler in LCDS by the newest Flex beta version. I wasn't successful, no how-to at all. Is there a simple approach to replace Flex 2 by Flex 3 beta in LCDS? Thank you in advance, Christoph
[flexcoders] Re: Setting the crossdomain.xml file for WebService in a diffferent path than ro
FYI. I created a JIRA(SDK-12799) with a sample illustrating the issue . Thx-Claude Hussenet --- In flexcoders@yahoogroups.com, Claude Hussenet [EMAIL PROTECTED] wrote: Yes,I did specify a WSDL. As noticed in my previous email the crossdomain.xml is loaded from the web ROOT domain at the instanciation of the WebService regardless of calling the method flash.system.Security.loadPolicyFile. When I call the method loadPolicyFile,the crossdomain.xml file is loaded TWICE.Once from the location specified by loadPolicyFile and twice from the web ROOT domain. Let me know if I miss something. Thx-Claude --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: I'm not well-versed on webservice. Did you specify a wsdl? Maybe it is getting loaded before you hit send. When do you try to get the policy file? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent: Saturday, September 22, 2007 12:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Setting the crossdomain.xml file for WebService in a diffferent path than root I am getting the Security error before calling the send method . Using an HTTP Proxy(Fiddler)I have noticed that whatever file is set to the loadPolicyFile method a SECOND request after is executed to load the policy file from the web root domain !! So Fiddler reports 2 HTTP requests to the security policy file when my component is loaded. One to the policy file identifies by the method flash.system.Security.loadPolicyFile A second to the security file defined in the same root domain which does not exist in my case. Let me know what is wrong ? Thx-CLaude --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: a.b.com is not the same domain as d.b.com. You should be able to use a file from a different folder in a.b.com. Did you get it before calling send on the webservice? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Claude Hussenet Sent: Saturday, September 22, 2007 7:34 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Setting the crossdomain.xml file for WebService in a diffferent path than root I would like to be able to deploy the crossdomain file in the same domain name as the webservice but NOT in the root domain. Possible solution would be able to set the path of the crossdomain file before the initialization of the webservice on the client side. I tried the following method without any success : flash.system.Security.loadPolicyFile (http://samedomainasmyws:sameportas http://samedomainasmyws:sameportas myws/onefolder/onsubfolder/crossdomain.xml http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdo http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdo mai n.xml ); Do I miss something ? Thx for your help. Claude Hussenet
RE: [flexcoders] JPGEncoder with progress support?
the corelib version This class is now an official part of Flex 3: mx.graphics.codec.JPEGEncoder. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bradley Sent: Saturday, September 22, 2007 11:03 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] JPGEncoder with progress support? Sure does Doug! Thanks for the tips. I'm actually re-writing the corelib version now to make it more efficient for larger images. Right now encoding a 2k image takes much longer than I'm happy with. :) I was doing a bit more research and will be breaking it up into 'chunks' with progress events, hopefully. If I get a good result I'll post back the code to the corelib project. peace, jon On Sep 22, 2007, at 1:38 PM, Doug McCune wrote: This is doable, but requires a little more work than you probably think. To do this you would modify JPEGEncoder, if you're using Moxie take a look at the JPEGEncoder class around line 121. You'll see this double for loop: for (var ypos:int = 0; ypos height; ypos += 8) { for (var xpos:int = 0; xpos width; xpos += 8) { RGB2YUV(source, xpos, ypos, width, height); DCY = processDU(YDU, fdtbl_Y, DCY, YDC_HT, YAC_HT); DCU = processDU(UDU, fdtbl_UV, DCU, UVDC_HT, UVAC_HT); DCV = processDU(VDU, fdtbl_UV, DCV, UVDC_HT, UVAC_HT); } } As far as I can tell that's where the bulk of the processing happens. What you're going to want to do is add progress events dispatching in there. But simply dispatching progress events isn't going to be enough. That would effectively give you notifications for progress of encoding, but since flash player is single threaded, your display won't ever have time to update while those for loops are running. So you'll need to split the processing up into smaller tasks and insert idle times between them. You'll want to use the Timer class to make your code wait for a given period (I've found that even just a few milliseconds is enough for the display to update). I would split up the algorithm to process one row at a time (so basically that inner for loop gets turned into its own function). Then have the function that processes a row start a timer once it's completed, and once that timer completes, then run the function for the next row and so on until you finish. That was you can dispatch a progress event for each row and the display will have time to update. Hope some of that makes sense. Doug
Re: [flexcoders] Memory usage by flex
without knowing what you are doing, there may not be much that anyone can point to. One thing that does that is if you have drawing routines on the graphic object in some updateDisplaylist handler. I did that on two occasions and am much more sensitive to that now than before. Are you using any dynamic drawing like lineTo, fills, etc? On 9/23/07, mohneeshs [EMAIL PROTECTED] wrote: Hi I am new to flex. I came across a behavior of flex memory usage for which i am not able to find any explanation . When i open my app in the browser the memory usage by the browser increases without performing any event on the app. I have all my listeners registered with weak references. I have seen this thing happening on Flex version 2, IE 6 and firefox 2. Any pointers about what all can be the factors which will cause this? Thanks and Regards -- Arpit Mathur Lead Software Engineer, Comcast Interactive Media --- post your flex tips on http://flextips.corank.com
Re: [flexcoders] JPGEncoder with progress support?
Yea - but I haven't bothered to dl the flex 3 sdk yet. Ah, so much to do... :) Plus, I think it could use some some speeding up and control over whether or not to distribute the processing into chunks or as one continuous processed block. On Sep 23, 2007, at 12:43 PM, Gordon Smith wrote: the corelib version This class is now an official part of Flex 3: mx.graphics.codec.JPEGEncoder.
Re: [flexcoders] JPGEncoder with progress support?
on using timer for screen updates: Is there any advantage (or disadvantage) of that vs. callLater ? On 9/23/07, Gordon Smith [EMAIL PROTECTED] wrote: the corelib version This class is now an official part of Flex 3: mx.graphics.codec.JPEGEncoder. - Gordon -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Jon Bradley *Sent:* Saturday, September 22, 2007 11:03 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] JPGEncoder with progress support? Sure does Doug! Thanks for the tips. I'm actually re-writing the corelib version now to make it more efficient for larger images. Right now encoding a 2k image takes much longer than I'm happy with. :) I was doing a bit more research and will be breaking it up into 'chunks' with progress events, hopefully. If I get a good result I'll post back the code to the corelib project. peace, jon On Sep 22, 2007, at 1:38 PM, Doug McCune wrote: This is doable, but requires a little more work than you probably think. To do this you would modify JPEGEncoder, if you're using Moxie take a look at the JPEGEncoder class around line 121. You'll see this double for loop: for (var ypos:int = 0; ypos height; ypos += 8) { for (var xpos:int = 0; xpos width; xpos += 8) { RGB2YUV(source, xpos, ypos, width, height); DCY = processDU(YDU, fdtbl_Y, DCY, YDC_HT, YAC_HT); DCU = processDU(UDU, fdtbl_UV, DCU, UVDC_HT, UVAC_HT); DCV = processDU(VDU, fdtbl_UV, DCV, UVDC_HT, UVAC_HT); } } As far as I can tell that's where the bulk of the processing happens. What you're going to want to do is add progress events dispatching in there. But simply dispatching progress events isn't going to be enough. That would effectively give you notifications for progress of encoding, but since flash player is single threaded, your display won't ever have time to update while those for loops are running. So you'll need to split the processing up into smaller tasks and insert idle times between them. You'll want to use the Timer class to make your code wait for a given period (I've found that even just a few milliseconds is enough for the display to update). I would split up the algorithm to process one row at a time (so basically that inner for loop gets turned into its own function). Then have the function that processes a row start a timer once it's completed, and once that timer completes, then run the function for the next row and so on until you finish. That was you can dispatch a progress event for each row and the display will have time to update. Hope some of that makes sense. Doug -- Arpit Mathur Lead Software Engineer, Comcast Interactive Media --- post your flex tips on http://flextips.corank.com
Re: [flexcoders] Are you going to MAX?
I am there :) On 9/23/07, Ed Capistrano [EMAIL PROTECTED] wrote: Okay, I will not be there guys just give my thanks to those @ adobe for developing such a nice app.. Edtrade; Proud Happy Member --- flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [EMAIL PROTECTED]dimitrios.gianninas%40optimalpayments.com wrote: I will be there! Dimitrios Gianninas Development Team Lead / Moderator Optimal Payments Inc. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Beh alf Of ben.clinkinbeard Sent: Friday, September 21, 2007 9:44 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Are you going to MAX? Just curious how many people from the list will be in Chicago. Ben -- WARNING --- This electronic message and its attachments may contain confidential, propr ietary or legally privileged information, which is solely for the use of th e intended recipient. No privilege or other rights are waived by any unint ended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it an d all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is un authorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des rens eignements confidentiels, exclusifs ou légalement privilégiés destin és au seul usage du destinataire visé. L'expéditeur original ne reno nce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autoris ation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le li re et le supprimer, ainsi que toutes ses pièces jointes, de votre systè me. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destina taire visé ne sont pas autorisés et pourraient être illégaux. Si v ous avez reçu ce courrier électronique par erreur, veuillez en aviser l 'expéditeur. __ Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow -- Arpit Mathur Lead Software Engineer, Comcast Interactive Media --- post your flex tips on http://flextips.corank.com
[flexcoders] Re: Memory usage by flex
The best resource I've found for memory management was written up by Grant Skinner: http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html He also wrote an article which is somewhat shorter on the Adobe Flex site. --- In flexcoders@yahoogroups.com, mohneeshs [EMAIL PROTECTED] wrote: Hi I am new to flex. I came across a behavior of flex memory usage for which i am not able to find any explanation . When i open my app in the browser the memory usage by the browser increases without performing any event on the app. I have all my listeners registered with weak references. I have seen this thing happening on Flex version 2, IE 6 and firefox 2. Any pointers about what all can be the factors which will cause this? Thanks and Regards
[flexcoders] Re: Real size of components
Hey guys... this.validateNow() doesn't work... the width property doesn't refresh after that call... and the listener for the updateComplete Event wouldn't work much for me, because i'm laying out the panels and I need the width and height immediatly... Is there any way to get the size immediatly? I could use the updateComplete handler, but rather leave it as a last choice... Thanx a lot, DaNooB --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Use validateNow() or validateClient(). ValidateSize is for internal use by the framework and calling it by itself isn't guaranteed to work. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Arpit Mathur Sent: Saturday, September 22, 2007 11:49 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Real size of components Would this work? component.percentWidth = 50 component.percentHeight = 50 component.validateSize() trace(component.measuredWidth) I have never really used the validation thing so I am curious. Its how I would imagine it would work. On 9/21/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: It sounds like you are expecting to set percentWidth and immediately have the width change. Flex visual components don't work like this. Typically when you set properties, the component enters a kind of invalid state until the LayoutManager updates it. If you wait until the component dispatches an updateComplete event, the width should then be correct. - Gordon From: flexcoders@yahoogroups.com http://ups.com/ [mailto: flexcoders@ mailto:flexcoders@ yahoogroups.com http://yahoogroups.com ] On Behalf Of Sandeep Malik Sent: Friday, September 21, 2007 6:57 AM To: [EMAIL PROTECTED] ups.com http://ups.com/ Subject: [flexcoders] Re: Real size of components I guess you should use getExplicitOrMeasuredWidth() and getExplicitOrMeasuredHeight(). Regards, Sandeep --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard ben.clinkinbeard@ wrote: measuredWidth and measuredHeight I think. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Daniel danielterraza@ wrote: Hey guys... I'm setting the size of a panel through the percentWidth property, but when I ask for the width of the component it doesn't give me the real size... How can I know the real size when I set width and height through percentage? Thanx, DaNooB. -- Arpit Mathur Lead Software Engineer, Comcast Interactive Media --- post your flex tips on http://flextips.corank.com http://flextips.corank.com
RE: [flexcoders] Re: Real size of components
I think you need to call validateNow() on the component's parent. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Sent: Sunday, September 23, 2007 11:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Real size of components Hey guys... this.validateNow() doesn't work... the width property doesn't refresh after that call... and the listener for the updateComplete Event wouldn't work much for me, because i'm laying out the panels and I need the width and height immediatly... Is there any way to get the size immediatly? I could use the updateComplete handler, but rather leave it as a last choice... Thanx a lot, DaNooB --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Use validateNow() or validateClient(). ValidateSize is for internal use by the framework and calling it by itself isn't guaranteed to work. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Arpit Mathur Sent: Saturday, September 22, 2007 11:49 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: Real size of components Would this work? component.percentWidth = 50 component.percentHeight = 50 component.validateSize() trace(component.measuredWidth) I have never really used the validation thing so I am curious. Its how I would imagine it would work. On 9/21/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: It sounds like you are expecting to set percentWidth and immediately have the width change. Flex visual components don't work like this. Typically when you set properties, the component enters a kind of invalid state until the LayoutManager updates it. If you wait until the component dispatches an updateComplete event, the width should then be correct. - Gordon From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com http://ups.com/ [mailto: flexcoders@ mailto:flexcoders@ yahoogroups.com http://yahoogroups.com http://yahoogroups.com ] On Behalf Of Sandeep Malik Sent: Friday, September 21, 2007 6:57 AM To: [EMAIL PROTECTED] ups.com http://ups.com/ Subject: [flexcoders] Re: Real size of components I guess you should use getExplicitOrMeasuredWidth() and getExplicitOrMeasuredHeight(). Regards, Sandeep --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , ben.clinkinbeard ben.clinkinbeard@ wrote: measuredWidth and measuredHeight I think. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Daniel danielterraza@ wrote: Hey guys... I'm setting the size of a panel through the percentWidth property, but when I ask for the width of the component it doesn't give me the real size... How can I know the real size when I set width and height through percentage? Thanx, DaNooB. -- Arpit Mathur Lead Software Engineer, Comcast Interactive Media --- post your flex tips on http://flextips.corank.com http://flextips.corank.com http://flextips.corank.com http://flextips.corank.com
[flexcoders] Data Management in Flex : Add/Edit/Delete
Hi there, I am really new into Flex programming. I have been through a few tutorials and I really liked it. I am not sure though how to make a very simple task. Suppose I have a simple form and I want to update an SQL table when I enter some values in there. I want when I click submit to do that. In order to achieve this, do I need the livecycle data services ? Is that a 'must' ? Or, do I need the ColdFusion - Flex integration to do that? I have noticed that it is very simple to read data from an external XML file. But how can I update records to a database? Anybody has a really very simple example on this? thanks, George
RE: [flexcoders] Data Management in Flex : Add/Edit/Delete
Hi, Using LCDS is not a must but it does have advanced features that you might need depending on your application. If you want to update a DB then you do need a server side portion thats for sure. There are many ways to do this: 1) use Flex to call a WebService which is either done in Java, .NET, CF, PHP or whatever 2) use Flex's HTTPService to call a JSP/ASP/CF/PHP server page 3) use Flex RemoteObject to call a Java class or CF object Dimitrios Gianninas Development Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of George Georgiou Sent: Sunday, September 23, 2007 3:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Data Management in Flex : Add/Edit/Delete Hi there, I am really new into Flex programming. I have been through a few tutorials and I really liked it. I am not sure though how to make a very simple task. Suppose I have a simple form and I want to update an SQL table when I enter some values in there. I want when I click submit to do that. In order to achieve this, do I need the livecycle data services ? Is that a 'must' ? Or, do I need the ColdFusion - Flex integration to do that? I have noticed that it is very simple to read data from an external XML file. But how can I update records to a database? Anybody has a really very simple example on this? thanks, George -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
Re: [flexcoders] Data Management in Flex : Add/Edit/Delete
3) use Flex RemoteObject to call a Java class or CF object Or .NET, PHP service http://www.themidnightcoders.com/ http://www.themidnightcoders.com/weborb/dotnet/ http://www.themidnightcoders.com/weborb/php/index.htm - Original Message - From: Dimitrios Gianninas [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, September 23, 2007 10:16 PM Subject: RE: [flexcoders] Data Management in Flex : Add/Edit/Delete Hi, Using LCDS is not a must but it does have advanced features that you might need depending on your application. If you want to update a DB then you do need a server side portion thats for sure. There are many ways to do this: 1) use Flex to call a WebService which is either done in Java, .NET, CF, PHP or whatever 2) use Flex's HTTPService to call a JSP/ASP/CF/PHP server page 3) use Flex RemoteObject to call a Java class or CF object Dimitrios Gianninas Development Team Lead Optimal Payments Inc.
[flexcoders] own metadata tags
Hello, it is possible to define my own metadata tags? thank you
Re: [flexcoders] Data Management in Flex : Add/Edit/Delete
I have gone through tutorials on how to read data from the HTTPService. How can I send back to the server data to be added into an sql table? any examples? Thanks, George use Flex's HTTPService to call a JSP/ASP/CF/PHP server page On 9/23/07, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Hi, Using LCDS is not a must but it does have advanced features that you might need depending on your application. If you want to update a DB then you do need a server side portion thats for sure. There are many ways to do this: 1) use Flex to call a WebService which is either done in Java, .NET, CF, PHP or whatever 2) use Flex's HTTPService to call a JSP/ASP/CF/PHP server page 3) use Flex RemoteObject to call a Java class or CF object *Dimitrios Gianninas* *Development Team Lead* *Optimal Payments Inc.* -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *George Georgiou *Sent:* Sunday, September 23, 2007 3:41 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Data Management in Flex : Add/Edit/Delete Hi there, I am really new into Flex programming. I have been through a few tutorials and I really liked it. I am not sure though how to make a very simple task. Suppose I have a simple form and I want to update an SQL table when I enter some values in there. I want when I click submit to do that. In order to achieve this, do I need the livecycle data services ? Is that a 'must' ? Or, do I need the ColdFusion - Flex integration to do that? I have noticed that it is very simple to read data from an external XML file. But how can I update records to a database? Anybody has a really very simple example on this? thanks, George *AVIS IMPORTANT* *WARNING* Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender.
RE: [flexcoders] Re: Setting the crossdomain.xml file for WebService in a diffferent path than ro
The WSDL is fetched in creationComplete and could cause a crossdomain.xml fetch as well. So, depending on when you call loadPolicyFile, one fetch of the policy file and wsdl may already be underway. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claude Hussenet Sent: Saturday, September 22, 2007 8:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Setting the crossdomain.xml file for WebService in a diffferent path than ro Yes,I did specify a WSDL. As noticed in my previous email the crossdomain.xml is loaded from the web ROOT domain at the instanciation of the WebService regardless of calling the method flash.system.Security.loadPolicyFile. When I call the method loadPolicyFile,the crossdomain.xml file is loaded TWICE.Once from the location specified by loadPolicyFile and twice from the web ROOT domain. Let me know if I miss something. Thx-Claude --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I'm not well-versed on webservice. Did you specify a wsdl? Maybe it is getting loaded before you hit send. When do you try to get the policy file? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Claude Hussenet Sent: Saturday, September 22, 2007 12:34 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Setting the crossdomain.xml file for WebService in a diffferent path than root I am getting the Security error before calling the send method . Using an HTTP Proxy(Fiddler)I have noticed that whatever file is set to the loadPolicyFile method a SECOND request after is executed to load the policy file from the web root domain !! So Fiddler reports 2 HTTP requests to the security policy file when my component is loaded. One to the policy file identifies by the method flash.system.Security.loadPolicyFile A second to the security file defined in the same root domain which does not exist in my case. Let me know what is wrong ? Thx-CLaude --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: a.b.com is not the same domain as d.b.com. You should be able to use a file from a different folder in a.b.com. Did you get it before calling send on the webservice? 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 Claude Hussenet Sent: Saturday, September 22, 2007 7:34 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Setting the crossdomain.xml file for WebService in a diffferent path than root I would like to be able to deploy the crossdomain file in the same domain name as the webservice but NOT in the root domain. Possible solution would be able to set the path of the crossdomain file before the initialization of the webservice on the client side. I tried the following method without any success : flash.system.Security.loadPolicyFile (http://samedomainasmyws:sameportas http://samedomainasmyws:sameportas http://samedomainasmyws:sameportas http://samedomainasmyws:sameportas myws/onefolder/onsubfolder/crossdomain.xml http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdo http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdo http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdo http://samedomainasmyws:sameportasmyws/onefolder/onsubfolder/crossdo mai n.xml ); Do I miss something ? Thx for your help. Claude Hussenet
RE: [flexcoders] SWFLoader onRoll: can it be set in Actionscript?
Call addEventListener in the handler for the complete event. creationComplete is probably too soon. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks Sent: Saturday, September 22, 2007 8:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWFLoader onRoll: can it be set in Actionscript? I've got a swfloader that I want to assign it's rollOver / rollOut handler to call only after it's creationComplete fires - can I do it in actionscript? In other worse, I've a page that loads in - and if the user's cursor is right over the area of the swfloader as it's being drawn, it gets all screwed up; is there a simple way of setting this?
RE: [flexcoders] Datagrid Sorting by Row
You can catch headerRelease event, call preventDefault, then get the columns, shuffle the order of the columns and re-set it on the DataGird From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Saturday, September 22, 2007 9:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid Sorting by Row I am not even sure if this is possible, but here it comes anyways. I have two arrays that I am using to create a the dataprovider for a datagrid. The first grid tranMonth holds the data for the dynamic columns that I am creating. It holds the column header, and data field. The second grid holds all the data that is populating the datagrid. It looks something like this transData(sort:2007, janTotal:0, febTotal:5, etc). The over all sort that I am trying to do is allow the user to sort by the year they select. So that the month(column) with the most transactions now becomes the first column in the grid. Any help with this would be greatly appreciated.
[flexcoders] Re: own metadata tags
Yes, you can define custom metadata tags. You will need to add that tag in the flex-config.xml file (where 'Bindable' etc tags are added). This will let compiler know that it needs to keeps these tags in compilation. You can then access these tags through describeType() method. Regards, Sandeep --- In flexcoders@yahoogroups.com, hannes.stockner [EMAIL PROTECTED] wrote: Hello, it is possible to define my own metadata tags? thank you
[flexcoders] upload file to base64
Hi all Can I convert an uploading file to base64 from flex2.0.. Im using filereference for uploading a file. Thanks in advance Slash
Re: [flexcoders] Setting selectedIndex
I finally got around to trying scrollToIndex(). No dice. Recall that my list is repeated, and the instances have no scrollbars because their rowcount gets set to the number of items. I'm looking for a scrollSelectionIntoView recipe that works even if the list is nested. Thanks. On 9/19/07, Alex Harui [EMAIL PROTECTED] wrote: Good. Try scrollToIndex() From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Wednesday, September 19, 2007 5:04 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Setting selectedIndex It did the trick, and designating uniqueness of my proxies by implementing IUID makes perfect sense. I half expected something like this to happen, but I did the proxy list early on, and had not had any other issues with it. Now I just need to figure out how to scroll the selection into view. Thanks again. On 9/19/07, Alex Harui [EMAIL PROTECTED] wrote: We use UID for selection mgmt, but there still might be issues in setting selectedItem, selectedIndex, so no guarantees From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Wednesday, September 19, 2007 3:28 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Setting selectedIndex Excellent. I see this is explained here: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=about_dataproviders_057_02.html I'll look into implementing IUID. Many thanks. On 9/19/07, Alex Harui [EMAIL PROTECTED] wrote: The list relies on uids, If your proxy has the same uid for an index that might help From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Wednesday, September 19, 2007 3:11 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Setting selectedIndex Thanks Alex. I narrowed it down to my ProxyList, which returns a new (small) object each time getItemAt is called. I figured these would get garbage collected (and that getItemAt would only get called for visible items), but if the List component is hanging onto them and using them, that's not going to work. Is that the case? Or does List rely on IList methods (willTrigger perhaps?) that I may not have implemented correctly. I'd hate to give up my proxy list, unless there is a better way to handle large data sets. On 9/19/07, Alex Harui [EMAIL PROTECTED] wrote: Should just work, but you can try calling invalidateList() (not invalidateDisplayList()). I'd try it on a List outside of a Repeater. If that makes a difference, check the recycling options on Repeater. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Wednesday, September 19, 2007 1:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting selectedIndex I am able to clear the selection of a list programmatically, by setting: myList.selectedIndex = -1 but setting the selection to a specific index is not working. The previous highlighting goes away, and based on watching the list in the debugger, the property does seem to change, but the new selection is not highlighted. Do I need to invalidate something in addition to just setting the property? In case it matters - the list is inside a component which is repeated in a Repeater. - there is an item renderer - the data provider is a custom IList implementation. But all other use cases (user click, up-down arrows, clearing selection programmatically) work perfectly. Thanks.