[flexcoders] Synonym Issue
I want to question anybody who know about synonym issue. In my AIR app, I have text area component to compose some document. I want to have synonym function in order to when I click any word in text area, the app show list of synonym word that I can replace this word by another word. I have searched in google but no result. Maybe someone in our forum know about the issue, and can show me a way that I can follow. Thank in advanced any help!!!
RE: [flexcoders] round timer
Look for the Gauge components Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of makeflex Sent: Thursday, March 19, 2009 4:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] round timer I'm looking for either a component or source code for a circle timer. something similar to this http://flashden.net/item/adjustable-circle-timer-in-casinostyle/10304. That one won't work for me because it's simply to jagged. Can anyone point me in the right direction?
[flexcoders] Arraycollection to xml
Hi all, I am using advanceddatagrid with treestructure. I used Arraycollection as Dataprovider for advanceddatagrid.Now i want to convert the Arraycollection to xml for storing it to database with php as backend. How is it possible. Please help me
RE: [flexcoders] variable rowHeight in tilelist
If you're trying to avoid scrollbars, you must not have that many tiles so use mx:Grid Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stinasius Sent: Thursday, March 19, 2009 1:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] variable rowHeight in tilelist how can i have a tilelist with variable rowHeights. i have data populating the tile list with diffrent heights and would like to avoid scroll bars.
[flexcoders] bind a text area to a field that i return from a query with a remoteObject
how can i bind a text area(or text input) to a field that i return from a query with a remoteObject?
[flexcoders] problem with XML in flex
I need to generate XML with data fetch from database. I am using PHP. then send this generated XML to Flex application and display in flex component like (tree, list or Grid). but i am not getting how to generate XML and passed to Flex? any easy protocol for communicating between Flex and PHP?? any idea do you have... please help me. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
RE: [flexcoders] How do I create a clickable line in Flex?
If the line is drawn in a Sprite or UIComponent you can click on it. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of denkzeug_de Sent: Thursday, March 19, 2009 2:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I create a clickable line in Flex? Hi all, I'm currently working on a swimlane (activity) diagram tool, and I'm looking for a way to make the lines that connect the items clickable. So far, everything I could come up as ideas seemed to be dirty hacks or at least complicated workarounds. Is there any tested and reliable way to draw lines that would be clickable and selectable (for example to delete them or rearrange them). Perhaps I'm missing something very obvious?? Thanks for any input, best regards, Christoph
RE: [flexcoders] Re: Convert Air app. to Flex
Right, you are using FB to compile your app. You need to change the nature of your project from AIR to Flex so that FB will run it as a Flex App rather than an AIR app (If you just ran the compiled swf through the browser, it should work fine). FB isn't that nice at changing project natures, but there's a hacky fix you can make. Open up the .project file (note the period on the front) and remove the apollonature nature from the list, and make sure the flex and actionscript ones are in the list. It should look something like, natures naturecom.adobe.flexbuilder.project.flexnature/nature naturecom.adobe.flexbuilder.project.actionscriptnature/nature /natures Next go into the project properties and under Builders make sure only the Flex builder is checked. If the AIR one is checked remove it. Open up the run dialog and set up a new configuration for your app, create it under the Flex Application part of the tree, and set up the config normally. Tah da! You should be able to run it in FB now (assuming I haven't missed any steps out... doing this from memory!) Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: 19 March 2009 15:58 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Convert Air app. to Flex I did. Here is what I am getting when I am running it: Command: Flex SDK installation path..\adl.exe project path\bin-debug\projectname-app.xml project path\bin-debug\ Output from command: invocation forwarded to primary instance
RE: [flexcoders] Re: A ModuleLoader issue
In the shared code module examples, I would put historyMgr in the shared code module and load it before anything else. Note that if you use the cached framework rsl correctly it should take care of the HistoryMgr problem. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of grg_blls Sent: Thursday, March 19, 2009 11:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: A ModuleLoader issue Hi Alex, hi Rob, thanks both for your replies. Rob I 've tried your suggestion but it didn't help.. So after visiting Alex's blog, doing some more reading and further invastigation (debugging) of my problem, I have come now to the following: - Alex is right about the Singletons. I traced the exact step where the app throws that error as in the following code from HistoryManager.as: private static function get impl():IHistoryManager { if (!_impl) { _impl = IHistoryManager( Singleton.getInstance(mx.managers::IHistoryManager)); } return _impl; } Now as I described in the first place, I was unloading/loading modules by the standard procedure (and I had the problem). Running the loop as desribed initially, when the flow reaches the line if (!_impl), the condition calculates true and goes in to update _impl, and so throws the error (the second time it runs). If instead I don't unload module1a the first time client (role=Customer) is logged out and then he runs again this option that loads again module1a, the if (!_impl) condition, comes false, jumps to return _impl; line, and all goes well - no error thrown.. This proves the point Alex said, but now I wonder what good is there to have a module loaded all the time just in case the client decides to run this option again.. before actually closing his browser.. I believe this defeats the purpose and I rather have to consider re-writting that module1a in a totally different style. I hope this is clear enough.. What is your advise ? Thank you again for helping me gaining insight in this esoteric problem.. George --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, rob_mcmichael rob_mcmich...@... wrote: --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: See the modules presentation on my blog. That's the shared-code problem. Singletons need to be in the main app or a shared-code module. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of grg_blls Sent: Wednesday, March 18, 2009 4:37 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] A ModuleLoader issue Hi all, I have the following problem with my current development. A client is loging in the system either as customer or admin and accordingly the main application through module manager loads either module1 or module2. If a client is logged as customer (i.e. module1 is loaded), he is offered a number of choices, leading to loading one of module1a, module1b, etc. In every case the procedure is a unload previous/load next module through: public function createModule(m:ModuleLoader, s:String):void{ m.url = s; m.loadModule(); } public function removeModule(m:ModuleLoader):void { m.unloadModule(); } Finally that client is logged out when finished. Now if he does a new login as a customer, module1 loads and offers again the customers options, but if he tries the same option (which leads to loading module1a), an error is thrown, with the following message from the Flash Player: An ActionScript error has occured TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::historymanageri...@683d219 to mx.managers.IHistoryManager. at mx.managers::HistoryManager$/get impl()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:96] at mx.managers::HistoryManager$/register()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\HistoryManager.as:134] at mx.containers::ViewStack/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\ViewStack.as:649] at mx.containers::TabNavigator/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\TabNavigator.as:504] at mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5670] at mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:519] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:639] at
RE: [flexcoders] httpservice formatted as Object 0 = 0 but 1 = 1
Thansk for the insightful reply. I'm new to flex and am working on an application that was created long before I started on it. I have been refering to existing code to progress my knowledge and have also been reviewing best practices online. The existing code doesn't use strongly typed objects but that is what I'm used to so my development has been using that methodology, actually the boolean assignment is occurning while mapping to a VO. I will use e4x from now on. Thanks again for taking the time to enlighten me. Greg From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Thursday, March 19, 2009 9:20 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] httpservice formatted as Object 0 = 0 but 1 = 1 This is probably happening because you have left the resultFormat at the default object. The object decoder attempts to be smart and changes the xml strings into what it thinks the data types should be. It often guesses wrong. Set the resultFormat=e4x and you will get your data reliably. It will always be strings, but it will be the strings that were sent. There are other reasons not to use resultFormat=object as well. Best practice (with HTTPService) is to get the XML in pure e4x form, then convert it yourself into an ArrayCollection of strongly typed value objects. Tracy Spratt, Lariat Services, development services available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gregory Kelley Sent: Thursday, March 19, 2009 7:19 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] httpservice formatted as Object 0 = 0 but 1 = 1 That is the problem with the object being inconsistent. Since any string representation is not 0 it becomes true. So in order to get around the bug I have to do boolean(int(value)); That way if value comes back as a stirng it is properly cast to an int then to a boolean. If it comes back as an int then the int(value) is irrelevant and it is still cast to a boolean correctly. Greg From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Maciek Sakrejda Sent: Thursday, March 19, 2009 3:18 PM To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: RE: [flexcoders] httpservice formatted as Object 0 = 0 but 1 = 1 Could this have something to do with the fact that 0 coerced to a Boolean is false and '0' is true, whereas both 1 and '1' are true? -Original Message- From: flexcoders@yahoogroups.com on behalf of Gregory Kelley Sent: Thu 3/19/2009 9:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] httpservice formatted as Object 0 = 0 but 1 = 1 I have the following line in the xml returned from the call. rsp stat=ok typePartner/type object inv_text_end_dt= is_comm_paid=0 override_type_id= / /rsp When I reference event.result.rsp.is_comm_paid the result is 0 Now if I pull a record where the value is 1 then the xml looks like rsp stat=ok typePartner/type object inv_text_end_dt= is_comm_paid=1 override_type_id= / /rsp When I reference event.result.rsp.is_comm_paid the result is 1 Anyone see this before? If I need to create a sample I can but it would be late next week, For now I cast it as int then let it get coerced into a boolean. Thanks, Greg
Re: [flexcoders] How do I create a clickable line in Flex?
You can use the drawing API (ie. graphics.lineStyle(), g.lineTo(), etc...) and draw your line on a component layer (UIComponent for instance). Then just add event listeners to the component instance for click, mousedown, etc... There's plenty of documentation for the drawing API methods, and their usage. The only thing that shows in an empty UIComponent instance is the stuff you draw, so once you add to a Canvas or something, the drawn portions will receive the interaction (ie. your line) Brendan On Thu, Mar 19, 2009 at 4:18 PM, denkzeug_de pin...@cognity.de wrote: Hi all, I'm currently working on a swimlane (activity) diagram tool, and I'm looking for a way to make the lines that connect the items clickable. So far, everything I could come up as ideas seemed to be dirty hacks or at least complicated workarounds. Is there any tested and reliable way to draw lines that would be clickable and selectable (for example to delete them or rearrange them). Perhaps I'm missing something very obvious?? Thanks for any input, best regards, Christoph -- Brendan Meutzner http://www.meutzner.com/blog/ http://www.riajobs.com
[flexcoders] Re: SQLAssembler createItem issue
I found resolution, sorry for all my typos too :) For someone else with the same issue, in the data-management.xml: create-item sqlINSERT INTO tracking(visits, description, created) VALUES (#visits#, #description#, #created#)/sql id-querySELECT LAST_INSERT_ID()/id-query !-- MySQL syntax to retrieve value of autoincremented column -- /create-item The id-querySELECT LAST_INSERT_ID()/id-query solved issue. Cheers Wayne --- In flexcoders@yahoogroups.com, wayne_badu_johnson wayne.a.john...@... wrote: Hi all I am having some issues with createItem, oddly enough when I attempt to create a second item, the first createItem works fine and pushes data. I have seen a couple posts around this but no resolution. Flex 3 Using lcds 2.6.1 The FaultResult: Local.Call.Failed faultString = Item with id 'tracking.hibernate#:#0' already exists. Error on destination 'tracking.hibernate' I would assume that I would have to hadnle any id as the first record is written correctly and auto-increment setup in table is all functioning as expected. It looks like some reference is being tripped up when the second attempt to create a new record is call. I have tried releasing/refreshing fill etc but no go. Any thoughts would be appreciated. Cheers Wayne Some snippets that I hope make sense: !-- Tracking.as -- package { [Managed] [RemoteClass] public class Tracking { public function Tracking() {} public var trackid:int; public var description:String=; public var visits:String=; public var created:Date; } } !-- MXML/AS -- /** Call to create item */ tracking = new Tracking(); tracking.description = StringUtil.trim(descriptionInput.text); tracking.visits = StringUtil.trim(visitsInput.text); tracking.created = new Date(); var ir:ItemReference = hibernateUsers.createItem(tracking); var token:AsyncToken = hibernateUsers.commit(); -- data-management.xml destination config -- destination id=tracking.hibernate properties use-transactionstrue/use-transactions sourceflex.data.assemblers.SQLAssembler/source scopeapplication/scope metadata identity property=trackid/ /metadata network session-timeout20/session-timeout paging enabled=false pageSize=20/ throttle-inbound policy=IGNORE max-frequency=50/ throttle-outbound policy=IGNORE max-frequency=500/ /network server database driver-classcom.mysql.jdbc.Driver/driver-class urljdbc:mysql://localhost:3306/xxdb/url username/username password/password login-timeout30/login-timeout /database fill nameall/name sqlSELECT * FROM tracking/sql /fill get-item sqlSELECT * FROM tracking WHERE trackid = #trackid#/sql /get-item create-item sqlINSERT INTO tracking (visits, description, created) VALUES (#visits#, #description#, #created#)/sql /create-item update-item sqlUPDATE tracking SET visits=#visits#, description=#description#, created=#created# WHERE trackid=#_PREV.trackid#/sql /update-item delete-item sqlDELETE FROM tracking WHERE trackid=#trackid#/sql /delete-item count nameall/name sqlSELECT count(*) FROM tracking/sql /count count nameexists/name sqlSELECT count(*) FROM tracking WHERE description = #description#/sql /count /server /properties /destination
[flexcoders] Pb with DateField
Hello, I have a DateField that is a birth date. But is is long to set the year of the birth date. Do you know another component or solution ? Thank you, Christophe,
[flexcoders] Activate Text Area
Hello, I have several Text Area in a same Panel. How to activate the cursor at the beginning of a given text area by program ? Thank you, Christophe,
[flexcoders] Gallery Drag and Drop
Hello, I have 2 Tile List of images (2 galleries). How to do drag and drop between the 2 galleries ? Thank you, Christophe
Re: [flexcoders] round timer
Hi, unfortunately I cannot give you any code since is company property. However we have something similar. It was designed in flash (some circular paths and masks will do the trick) and exported as a flex asset. This is embedded in a flex component which update the timer via a binding. The animation goes for 100 ticks an the input can be simulated with a timer or you can get input form server or wherever... So every tick change (1,2,3 ...) triggers a goToAndStop(tickNo) inside the flash round timer and the animation updates smoothly... HTH somehow, Claudiu From: makeflex makef...@yahoo.com To: flexcoders@yahoogroups.com Sent: Friday, March 20, 2009 1:55:12 AM Subject: [flexcoders] round timer I'm looking for either a component or source code for a circle timer. something similar to this http://flashden. net/item/ adjustable- circle-timer- in-casinostyle/ 10304. That one won't work for me because it's simply to jagged. Can anyone point me in the right direction?
RE: [flexcoders] checkbox and text input
Certainly this can be done. It is not difficult, it just has several parts. Make sure each step works before going on to the next. * Get your data * Put it in an ArrayCollection * Populate the dataGrid with that Array collection * Create a filter, using a hard coded IP address * Create the checkbox * In the click event handler of the CheckBox, Apply the filter if it is selected. Remove the filter if it is not. * Add the IP textInput control * Change the filter to use the value in the TextInput That is it. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dieyana Abu Bakar Sent: Thursday, March 19, 2009 9:32 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] checkbox and text input oh...can it been done?i have post this questions everywhere and none of them is answered.i'm stuck with both of this.but i think the checkbox part i can try to do it.but for the input part(when user input a text,it will search for that particular text) ,i don't know.could you show me? _ From: Tracy Spratt tspr...@lariatinc.com To: flexcoders@yahoogroups.com Sent: Tuesday, March 17, 2009 9:21:28 PM Subject: RE: [flexcoders] checkbox and text input That task has several parts. Which have you done successfully and which do you need help with? Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro ups.com http://ups.com/ [mailto: flexcod...@yahoogro ups.com ] On Behalf Of diana_usim Sent: Tuesday, March 17, 2009 4:34 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] checkbox and text input hye i've got a problem to build my checkbox.i have a checkbox with label IP address and a text input beside it. i want to be able to input any IP address and when i click the checkbox button it will filter the datagrid according to IP address input earlier.it http://earlier.it/ like a combination of 'search' and checkbox.but i don't know how to do this. can you show me how to work on this one??i'm ready to learn form the expert!!
RE: [flexcoders] swf file size changes from build to build?
Can you guys compare link-reports of the two builds? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Fotis Chatzinikos Sent: Thursday, March 19, 2009 10:01 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] swf file size changes from build to build? Peter, i think you got it! After a clean build the swf size is 886K on the second build it becomes 1086KB On Thu, Mar 19, 2009 at 4:42 PM, Peter Farland pfarl...@adobe.commailto:pfarl...@adobe.com wrote: I would have to agree with Maciek as on seeing the file size differences I was skeptical it would just be timestamps causing the difference (although the point that the consecutive compiles will not result in the exact same bytes is a valid one). Fotis, I'd be interested if you could investigate whether forcing a clean first before building results in the same file size, where as incremental compilations lead to the larger variants in file size that you're seeing? Have you tried running each differently sized SWF to see if they behave or look different? A guess at what may cause something like this would be a bug during prelink where perhaps a different set of style-mixins are getting linked in. If you could save the different sized SWFs you could use something like SWF Dump to look at the contents to see what was different. Pete From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Fotis Chatzinikos Sent: Thursday, March 19, 2009 4:46 AM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] swf file size changes from build to build? Hi Gordon, I meant that changes are minimal (I am not adding or removing a 3d library or any embedded fonts). Adding a couple of actionscript lines / removing a couple of lines resulted in variations of about 200K in swf size... Maybe its something to do with builder? Sometimes it cleans better than others? I do not know what is going on but in the last couple of days I was adding new bits of code which at some point resulted in the small file - I said cool! I possibly removed a couple of references to some unused classes or something similar and then after a couple of compile/build the size went up again... I just thought of asking on the forum in case somebody else had seen something similar... Thanks for the reply. Its not a big problem, but still 200K is about 15-20% file size change... On Thu, Mar 19, 2009 at 5:52 AM, Gordon Smith gosm...@adobe.commailto:gosm...@adobe.com wrote: I think Alex was joking. He was simpily confirming that you don't get the same size each time you build (although I'm surprised by the size of the variation). What did you mean by myIntVar = 1 instead of 0? The SWFs should execute exactly the same. - Gordon From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Romeo Obane Sent: Wednesday, March 18, 2009 8:18 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] swf file size changes from build to build? I'm quite puzzled of what you've said about right date and time, what do you mean by that? Is the right date and time affects the swf file size? On Thu, Mar 19, 2009 at 5:47 AM, Alex Harui aha...@adobe.commailto:aha...@adobe.com wrote: Just wait for the right date and time. SWFs are zipped and there is some date/time bytes in the SWF that affect the compression table. No two builds are the same. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of fotis.chatzinikos Sent: Wednesday, March 18, 2009 9:55 AM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: [flexcoders] swf file size changes from build to build? Hi, I am working on a project where the debug build is about 1MB. The problem is that from build to build i have seen the resulting swf changing sizes. The builds do not add or remove any code, its just minor changes ie myIntVar = 1 instead of 0. Last 5 builds: 1. 1086 KB 2. 1086 KB 3. 894 KB 4. 933 KB 5. 1087 KB I am not sure yet if this happens in the release build as well... Anybody seen that before? PS: Else i will keep rebuilding until i get the smaller possible size to publish... (just joking) -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.commailto:fotis.chatzini...@gmail.com, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.commailto:fotis.chatzini...@gmail.com,
Re: [flexcoders] problem with XML in flex
Vikram, you may have heard of google. Flex + PHP First result: http://www.adobe.com/devnet/flex/flex_php.html Paul - Original Message - From: Vikram Singh To: flexcoders@yahoogroups.com Sent: Friday, March 20, 2009 5:48 AM Subject: [flexcoders] problem with XML in flex I need to generate XML with data fetch from database. I am using PHP. then send this generated XML to Flex application and display in flex component like (tree, list or Grid). but i am not getting how to generate XML and passed to Flex? any easy protocol for communicating between Flex and PHP?? any idea do you have... please help me. -- Bring your gang together. Do your thing. Find your favourite Yahoo! Group.
[flexcoders] Synonym Issue
I want to question anybody who know about synonym issue. In my AIR app, I have text area component to compose some document. I want to have synonym function in order to when I click any word in text area, the app show list of synonym word that I can replace this word by another word. I have searched in google but no result. Maybe someone in our forum know about the issue, and can show me a way that I can follow. Thank in advanced any help!!!
[flexcoders] Formatting a TextInput
Hello, I want that a TextInput to have always the same format : 000/000 with 0 replacing by different numbers. How to force a TextInput to be in a given format ? Thank you, Christophe,
[flexcoders] Flex app fails when moved to server hosting web services
I have a Flex application that runs fine from my desktop. When I move the files to a virtual machine that already hosts the web services for the app, it no longer works as expected. Now, when the app creates a WebService and calls an operation, I see that the WSDL if located and downloaded, but the operation never executes. Via Charles, I see a 404 Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml. While I do not call any services at xmlsoap.org, it is part of the namespaces in my web services. Any suggestions as to correcting this problem on the VM?
RE: [flexcoders] Combobox Problem
Did you handle recycling properly? Have you read the item renderer category on my blog? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of venkat eswar Sent: Thursday, March 19, 2009 1:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Combobox Problem I have a problem with combobox.I will explain in detail.In my application i have an advanceddatagrid.it has 4 comboboxes as itemrenderer.two comboboxes loads dynamic datas from php.my problem is adding rows to datagrid refreshes the value of the selected combobox. And this problem is only for combo having dynamic values..How to solve this .Please help me. My code is shown below public function onAssignedToLoad(event:Event):void { var xmlStr:String = event.target.data.toString(); var xmlDoc:XMLDocument = new XMLDocument(xmlStr); var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true); var obj:Object = decoder.decodeXML(xmlDoc); asignArr = new ArrayCollection(); for(var i:int = 0; i obj.User.Username.length; i++ ) { asignArr.addItem(obj.User.Username[i]); } initializeValues(); } private function initializeValues():void { objDefault = new Object(); objDefault.image = ; objDefault.task = ; objDefault.assignedto = asignArr; objDefault.target = new Date(); objDefault.priority = ; objDefault.status = ; } private function add():void { var object:Object = new Object(); object = ObjectUtil.copy(objDefault); arrCol.addItemAt(object,adg.selectedIndex + 1); }
Re: [flexcoders] Gallery Drag and Drop
On Friday 20 Mar 2009, christophe_jacquelin wrote: I have 2 Tile List of images (2 galleries). How to do drag and drop between the 2 galleries ? DragManager. -- Tom Chiverton Helping to collaboratively industrialize dot-com magnetic essential interfaces as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Activate ItemRenderer in AdvancedDataGrid
Hi helper, I have an Hirarchy data grid, I actualy took the adobe sample http://inovativeflexdevolopment.blogspot.com/ What is does is creating ObjectHierarchicalData that implements IHierarchicalData. the dataprovider is set accordingly and all looks great. In my grid I can see the parents and all its sub parent and childrens. My problem is when I want to use columns ItemRenderer(cellValueRenderer). public class cellValueRenderer extends HBox implements IDropInListItemRenderer { private var _listData:DataGridListData; private var updatedDP:ArrayCollection; public var adg:AdvancedDataGrid=new AdvancedDataGrid(); private var ohd:ObjectHierarchicalData; public function cellValueRenderer():void{ super(); } override public function set data(value:Object):void { if(value != null) { super.data = value; removeAllChildren(); var label:Label =new Label(); label.text = value[DataGridListData(listData).dataField]; addChild(label); } } override public function get data():Object { return super.data; } public function get listData():BaseListData { return _listData; } public function set listData(value:BaseListData):void { _listData = DataGridListData(value); } override protected function commitProperties():void{ super.commitProperties(); } } } I add this to my AS: var rendererProviders:Array = new Array(); rendererProviders = setRendererProvider(); for each(var ItemRenderer:AdvancedDataGridRendererProvider in rendererProviders){ this.resultTBLADG.rendererProviders.push(ItemRenderer); } columns.addItem(name); columns.addItem(op1); columns.addItem(op2); columns.addItem(op3); columns.addItem(op4); columns.addItem(op5); var rendererProvider:AdvancedDataGridRendererProvider; var rendererProviders:Array = new Array(); for (var i:int = 0; i columns.length; i++){ var colName:String = columns.getItemAt(i) as String; rendererProvider = new AdvancedDataGridRendererProvider(); rendererProvider.columnIndex=i; var renderer_:IFactory= new ClassFactory(cellValueRenderer); rendererProvider.renderer= renderer_; rendererProvider.dataField=colName; rendererProviders.push(rendererProvider); } return rendererProviders; } On my grid I can see the parent folder, but when I click (the Itemrenderer is activated) I see the children but flat without the hirarchy:( although the parent have sub parents, it doesnt show it. I guess its because I added a Label each time. How can I use the set data() that will show me all hirarchy of the tree? Label is no good here. I need to use the exact DataSource in the example (with parent child attributes) I realy need your help. Thanks a lot Jo
[flexcoders] Flex 2 Store That Works In Flex 3?
When I import the Flex Store that was created in version 2, I run the application but it loads about 75% and then stops. I know Adobe noted that some changes might be necessary for the Flex 2 store to run properly in Flex 3. Does anyone have those changes that must be made or a source link of the store running in 3?
[flexcoders] Re: Formatting a TextInput
You can get more info on formatting data at [ http://www.adobe.com/devnet/flex/quickstart/formatting_data/ ]. You might also want to consider validating the data so check out [ http://www.adobe.com/devnet/flex/quickstart/validating_data/ ]. --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, I want that a TextInput to have always the same format : 000/000 with 0 replacing by different numbers. How to force a TextInput to be in a given format ? Thank you, Christophe,
Re: [flexcoders] httpservice formatted as Object 0 = 0 but 1 = 1
Thanks Tracy for the wonderfull description, Greg, Use this piece of code cmdHttpService.addEventListener(ResultEvent.RESULT, CmdHandler); cmdHttpService.resultFormat = e4x; cmdHttpService.useProxy = false; cmdHttpService.contentType = text/xml ; cmdHttpService.addEventListener(FaultEvent.FAULT, CmdFaultHandler); // This is the Command Fault Handler public function CmdFaultHandler(event:FaultEvent):void { trace(FaultHandler); trace(Cmd is Invalid ); var faultstring:String = event.fault.faultString; Alert.show(FaultHandler, faultstring); } public function CmdHandler(event:ResultEvent):void { trace(Command ResultHandler); var resultXML:XML = new XML(event.result) as XML; // u can use resultXML as a pure XML } -- Regards, Paresh M. More Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@gmail.com On Fri, Mar 20, 2009 at 9:50 AM, Gregory Kelley gkel...@pngmail.com wrote: Thansk for the insightful reply. I'm new to flex and am working on an application that was created long before I started on it. I have been refering to existing code to progress my knowledge and have also been reviewing best practices online. The existing code doesn't use strongly typed objects but that is what I'm used to so my development has been using that methodology, actually the boolean assignment is occurning while mapping to a VO. I will use e4x from now on. Thanks again for taking the time to enlighten me. Greg -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Tracy Spratt *Sent:* Thursday, March 19, 2009 9:20 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] httpservice formatted as Object 0 = 0 but 1 = 1 This is probably happening because you have left the resultFormat at the default “object”. The object decoder attempts to be smart and changes the xml strings into what it thinks the data types should be. It often guesses wrong. Set the resultFormat=”e4x” and you will get your data reliably. It will always be strings, but it will be the strings that were sent. There are other reasons not to use resultFormat=”object” as well. Best practice (with HTTPService) is to get the XML in pure e4x form, then convert it yourself into an ArrayCollection of strongly typed value objects. Tracy Spratt, Lariat Services, development services available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Gregory Kelley *Sent:* Thursday, March 19, 2009 7:19 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] httpservice formatted as Object 0 = 0 but 1 = 1 That is the problem with the object being inconsistent. Since any string representation is not 0 it becomes true. So in order to get around the bug I have to do boolean(int(value)); That way if value comes back as a stirng it is properly cast to an int then to a boolean. If it comes back as an int then the int(value) is irrelevant and it is still cast to a boolean correctly. Greg -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Maciek Sakrejda *Sent:* Thursday, March 19, 2009 3:18 PM *To:* flexcoders@yahoogroups.com; flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] httpservice formatted as Object 0 = 0 but 1 = 1 Could this have something to do with the fact that 0 coerced to a Boolean is false and '0' is true, whereas both 1 and '1' are true? -Original Message- From: flexcoders@yahoogroups.com on behalf of Gregory Kelley Sent: Thu 3/19/2009 9:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] httpservice formatted as Object 0 = 0 but 1 = 1 I have the following line in the xml returned from the call. rsp stat=ok typePartner/type object inv_text_end_dt= is_comm_paid=0 override_type_id= / /rsp When I reference event.result.rsp.is_comm_paid the result is 0 Now if I pull a record where the value is 1 then the xml looks like rsp stat=ok typePartner/type object inv_text_end_dt= is_comm_paid=1 override_type_id= / /rsp When I reference event.result.rsp.is_comm_paid the result is 1 Anyone see this before? If I need to create a sample I can but it would be late next week, For now I cast it as int then let it get coerced into a boolean. Thanks, Greg
[flexcoders] Re: Formatting a TextInput
You can use Flex Framework formatter classes, for a demonstration on how to use them check out the short (6 mins) video Formatting Data from Adobe's Flex in a week tutorial [ http://www.adobe.com/devnet/flex/videotraining/ ] It's on Day 3. --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, I want that a TextInput to have always the same format : 000/000 with 0 replacing by different numbers. How to force a TextInput to be in a given format ? Thank you, Christophe,
[flexcoders] Re: problem with XML in flex
Have you done Adobe's Exchanging Data Tutorial [ http://learn.adobe.com/wiki/display/Flex/Part+II.+Exchanging+Data ]? This tutorial should provide the help you need. You retrieve XML and Plain Text data from ColdFusion, PHP, Java and ASP.NET servers. --- In flexcoders@yahoogroups.com, Vikram Singh vikisingh...@... wrote: I need to generate XML with data fetch from database. I am using PHP. then send this generated XML to Flex application and display in flex component like (tree, list or Grid). but i am not getting how to generate XML and passed to Flex? any easy protocol for communicating between Flex and PHP?? any idea do you have... please help me. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
[flexcoders] Re: Activate Text Area
I am not sure that I've understood your requirement correctly, but I think you need to use the setFocus() method of the FocusManager to place the focus on the first form item you want to place the cursor in. --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, I have several Text Area in a same Panel. How to activate the cursor at the beginning of a given text area by program ? Thank you, Christophe,
Re: [flexcoders] URLLoader, FileReference and file download from server - Open or Save options
Vijay, this works for me for png files. I don't expect pdf to behave differently // Flex navigateToURL(new URLRequest(url), _self); //Java servlet response.setContentType(image/png); response.addHeader(Content-Disposition, attachment; filename=\ + name + .png\); response.setContentLength(bytes.length); response.getOutputStream().write(bytes); hth charles On Mar 19, 2009, at 4:49 PM, Vijay Ganesan wrote: Anyone know how I could give the user the Open or Save choice on download of a file using URLLoader or FileReference or something else?
Re: [flexcoders] problem with XML in flex
Vikram, U can use string and concat it in the form of XML, and then send to FLEX using Httpservice, FLEX, have a xml parser so u need not have to worry -- Regards, Paresh M. More Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@gmail.com On Fri, Mar 20, 2009 at 11:18 AM, Vikram Singh vikisingh...@yahoo.inwrote: I need to generate XML with data fetch from database. I am using PHP. then send this generated XML to Flex application and display in flex component like (tree, list or Grid). but i am not getting how to generate XML and passed to Flex? any easy protocol for communicating between Flex and PHP?? any idea do you have... please help me. -- Bring your gang together. Do your thing. Find your favourite Yahoo! Group.http://in.rd.yahoo.com/tagline_groups_9/*http://in.promos.yahoo.com/groups/
[flexcoders] Re: problem with XML in flex
Type adobe flex cms into youtube and you will find a member mikenku who created a cms in flex but as an air. That air program then creates an xml file and uploads it. Hope some code there helps.
Re: [flexcoders] checkbox and text input
private function ValidateIP():Boolean { // Validate IP Address var pattern:RegExp = /\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/; if ( pattern.exec(String(ti_ipAddress.text)) == null ) { Alert.show(Please Enter a Valid IP Address); return false; } else return true; } This function would tell whether the IP is valid or invalid, Now on the Combobox, u can write a function on Change event and looks it would run -- Regards, Paresh M. More Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@gmail.com On Fri, Mar 20, 2009 at 7:01 AM, Dieyana Abu Bakar diana_u...@yahoo.comwrote: oh...can it been done?i have post this questions everywhere and none of them is answered.i'm stuck with both of this.but i think the checkbox part i can try to do it.but for the input part(when user input a text,it will search for that particular text) ,i don't know.could you show me? -- *From:* Tracy Spratt tspr...@lariatinc.com *To:* flexcoders@yahoogroups.com *Sent:* Tuesday, March 17, 2009 9:21:28 PM *Subject:* RE: [flexcoders] checkbox and text input That task has several parts. Which have you done successfully and which do you need help with? Tracy Spratt, Lariat Services, development services available -- *From:* flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] *On Behalf Of *diana_usim *Sent:* Tuesday, March 17, 2009 4:34 AM *To:* flexcod...@yahoogro ups.com *Subject:* [flexcoders] checkbox and text input hye i've got a problem to build my checkbox.i have a checkbox with label IP address and a text input beside it. i want to be able to input any IP address and when i click the checkbox button it will filter the datagrid according to IP address input earlier.it like a combination of 'search' and checkbox.but i don't know how to do this. can you show me how to work on this one??i'm ready to learn form the expert!!
Re: [flexcoders] Cursors and datagrids
Jason , The right way is var cursor1:IViewCursor = dataGrid.dataProvider.createCursor(); while(!cursor1.afterLast) { cursor1.moveNext(); } On Thu, Mar 19, 2009 at 9:09 PM, Jason Nichols jason...@gmail.com wrote: I'm not sure if I'm missing something regarding cursors and datagrids... I'm trying to implement a 'find within datagrid functionality' generically. I had things working doing it the hard way of just looping through the arraycollection and doing a compare for each cell within the datagrid. Then I decided to implement the same thing using cursors, and the fun began. In some cases I'm able to find the object, in others I crash out. I've defined a cursor = dataGrid.dataProvider.createCursor(); looping through with the cursors works, and I'm able to get the correct item for cursor.current. I fail with Error #1009 at internal::findItem() ... ListCollectionView.as:954when I do: dataGrid.selectedItem = cursor.current; Am I missing something? I didn't think I needed to sort anything if I wasn't using any of the find methods on the cursor, but it seems like behind the scenes flex is doing find and failing. At this point I may just go back to looping through arraycollection, but to me, it seems far less elegant than the cursor solution. Thanks, j
Re: [flexcoders] swf file size changes from build to build?
Alex, I never used the link-report option before but what i get makes no sense: clean build: link-report file size 94KB - no references to my custom components or external libraries - away3d,etc... total symbols: 177 - total external symbols: 118 - size (bytes) 499601 - optimized size: 277159 inc-build: link-report file size 403KB - with references to all my custom components and libraries... total symbols: 761 - total external symbols: 242 - size (bytes) 2251166 - optimized size: 1358188 Both swfs play normally, both (optimized) sizes are wrong. In the first build the optimized size is way lower than the output (880K), in the second build the optimized size is higher than the output swf (which is 1080K) On Fri, Mar 20, 2009 at 6:41 AM, Alex Harui aha...@adobe.com wrote: Can you guys compare link-reports of the two builds? Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Fotis Chatzinikos *Sent:* Thursday, March 19, 2009 10:01 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] swf file size changes from build to build? Peter, i think you got it! After a clean build the swf size is 886K on the second build it becomes 1086KB On Thu, Mar 19, 2009 at 4:42 PM, Peter Farland pfarl...@adobe.com wrote: I would have to agree with Maciek as on seeing the file size differences I was skeptical it would just be timestamps causing the difference (although the point that the consecutive compiles will not result in the exact same bytes is a valid one). Fotis, I’d be interested if you could investigate whether forcing a clean first before building results in the same file size, where as “incremental” compilations lead to the larger variants in file size that you’re seeing? Have you tried running each differently sized SWF to see if they behave or look different? A guess at what may cause something like this would be a bug during prelink where perhaps a different set of style-mixins are getting linked in. If you could save the different sized SWFs you could use something like SWF Dump to look at the contents to see what was different. Pete *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Fotis Chatzinikos *Sent:* Thursday, March 19, 2009 4:46 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] swf file size changes from build to build? Hi Gordon, I meant that changes are minimal (I am not adding or removing a 3d library or any embedded fonts). Adding a couple of actionscript lines / removing a couple of lines resulted in variations of about 200K in swf size... Maybe its something to do with builder? Sometimes it cleans better than others? I do not know what is going on but in the last couple of days I was adding new bits of code which at some point resulted in the small file - I said cool! I possibly removed a couple of references to some unused classes or something similar and then after a couple of compile/build the size went up again... I just thought of asking on the forum in case somebody else had seen something similar... Thanks for the reply. Its not a big problem, but still 200K is about 15-20% file size change... On Thu, Mar 19, 2009 at 5:52 AM, Gordon Smith gosm...@adobe.com wrote: I think Alex was joking. He was simpily confirming that you don't get the same size each time you build (although I'm surprised by the size of the variation). What did you mean by myIntVar = 1 instead of 0? The SWFs should execute exactly the same. - Gordon *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Romeo Obane *Sent:* Wednesday, March 18, 2009 8:18 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] swf file size changes from build to build? I'm quite puzzled of what you've said about right date and time, what do you mean by that? Is the right date and time affects the swf file size? On Thu, Mar 19, 2009 at 5:47 AM, Alex Harui aha...@adobe.com wrote: Just wait for the right date and time. SWFs are zipped and there is some date/time bytes in the SWF that affect the compression table. No two builds are the same. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *fotis.chatzinikos *Sent:* Wednesday, March 18, 2009 9:55 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] swf file size changes from build to build? Hi, I am working on a project where the debug build is about 1MB. The problem is that from build to build i have seen the resulting swf changing sizes. The builds do not add or remove any code, its just minor changes ie myIntVar = 1 instead of 0. Last 5
Re: [flexcoders] Re: problem with XML in flex
Thanks :) From: Michael mem4...@cox.net To: flexcoders@yahoogroups.com Sent: Friday, 20 March, 2009 1:23:39 PM Subject: [flexcoders] Re: problem with XML in flex Type adobe flex cms into youtube and you will find a member mikenku who created a cms in flex but as an air. That air program then creates an xml file and uploads it. Hope some code there helps. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
Re: [flexcoders] bind a text area to a field that i return from a query with a remoteObject
bind the textarea's text to a bindable string: [Bindable] private var myText:String ; mx:textarea text={myText}.../ and then on your remote response: myText = remoteResultText On Fri, Mar 20, 2009 at 9:25 AM, johndoematrix johndoemat...@yahoo.comwrote: how can i bind a text area(or text input) to a field that i return from a query with a remoteObject? -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Drag and Drop
Hello, How to make Drag and Drop between 2 mx:Image ? Thank you, Christophe,
[flexcoders] Re: Formatting a TextInput
Faster yet ... sample below define the formatters: == mx:NumberFormatter id=numberFormatter useNegativeSign=true/ mx:NumberFormatter id=percentFormatter useNegativeSign=true precision=2/ mx:DateFormatter id=shortDateDisplay formatString=MM/DD// mx:CurrencyFormatter id=currencyFormatter precision=2 rounding=nearest / Use in your code: = txtCurrentBalance.text = currencyFormatter.format(account.currentCashBalance); txtGainPct.text = percentFormatter.format((gain / account.initialCashBalance) * 100); --- In flexcoders@yahoogroups.com, stuarthuss huss.stu...@... wrote: You can use Flex Framework formatter classes, for a demonstration on how to use them check out the short (6 mins) video Formatting Data from Adobe's Flex in a week tutorial [ http://www.adobe.com/devnet/flex/videotraining/ ] It's on Day 3. --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacquelin@ wrote: Hello, I want that a TextInput to have always the same format : 000/000 with 0 replacing by different numbers. How to force a TextInput to be in a given format ? Thank you, Christophe,
Re: [flexcoders] Drag and Drop
On Friday 20 Mar 2009, christophe_jacquelin wrote: How to make Drag and Drop between 2 mx:Image ? DragManager, like I said ~4h ago in reply to your other post. Having read the extensive documentation and example code, what is your specific problem ? -- Tom Chiverton Helping to confidentially initiate B2B sexy synergies as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] Flex app fails when moved to server hosting web services
I'd take a look at the soap:address location=... / in the WSDL for your service and port (typically towards the bottom of the WSDL) and note the host that is being contacted. What location is mentioned here? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 2:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex app fails when moved to server hosting web services I have a Flex application that runs fine from my desktop. When I move the files to a virtual machine that already hosts the web services for the app, it no longer works as expected. Now, when the app creates a WebService and calls an operation, I see that the WSDL if located and downloaded, but the operation never executes. Via Charles, I see a 404 Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml. While I do not call any services at xmlsoap.org, it is part of the namespaces in my web services. Any suggestions as to correcting this problem on the VM?
Re: [flexcoders] Embedding/visualizing special characters issue
Funnily enough it was just the font missing the characters. What was driving me crazy is that Flash IDE when putting the textfield in the field was generously embedding another font to render the missing characters. So the textfield created in the IDE was magically embedding two fonts and was able to render all the characters. Cheers, chr 2009/3/20 Peter Farland pfarl...@adobe.com: Hey Christian, Make sure there are no null chars 0x00 in the String as the display of such Strings are truncated at the first null char. What version of Flex are you using? Are you using an @font-face to embed your font? If so, can you post a snippet showing the complete @font-face rule? Can you provide the fontsmanagers section of your Flex SDK /frameworks/flex-config.xml? Also, you could try adding -Dtrace.font as JVM args to get the compiler to print out more debug information about embedding fonts while compiling. If you're using mxmlc.exe, you can add these to the java.args property in the /bin/jvm.config file of your Flex SDK. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Christian Giordano Sent: Thursday, March 19, 2009 8:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Embedding/visualizing special characters issue Hi guys, this is getting a bit mad, can anyone manage to embed and visualize characters like: ř (U+0159) ? I'm trying to embed an OpenType font (AvantGarde) to be able to show Chek chars, like: ůěČžíýř And regardless the unicodeRange, there is no way to make it see it :S Also other chars of the string are not visible. I tried from Flash IDE too, without success unless they are typed on the instance itself, for this reason I'm considering it can be a problem of string handling more than font embedding. Any idea how I could sort this? Cheers, chr -- 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 -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Drag and Drop
Christophe, Do you know the story about the wolf, the sheep and crying out wolf without a purpose? If not google for it :-) PS: Explanation: If you keep asking 20 questions a day on simple staff, without reading any tutorials, people will get pissed of and will not reply even when you need real help... On Fri, Mar 20, 2009 at 4:26 PM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, How to make Drag and Drop between 2 mx:Image ? Thank you, Christophe, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: Item Rendererer Question
Tracy, You are right... i am polling with my service These duplicates are happening when my service is polling and items are added to the collection while a filter is already there.. So I guess I need to store the underlying collection and check there... too... This has me scratching my head a bit scratch, scratch, any suggestion as to how to manage this? Thanks, Patrick --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Renderers are manipulated by the lists and the framework based on the underlying data. Have you verified your dataProvider content? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Tuesday, March 17, 2009 9:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Item Rendererer Question I have custom ItemRenderers, after a filter Function, it looks like my itemRenderers are not being cleared out, I have double the items in my list. How do I make sure they are reset and their visual content is removed after I perform a refresh() Thanks, Patrick
[flexcoders] getRect returns content area, not display area?
In the following example, I'm trying to get the rectangle of theParent from the perspective of theGrandparent (theParent.getRect(theGrandparent)). Here is the traced output: 0 0 100 250 0 0 100 100 I expected the rectangle of theParent to have a height of 100, which is its constrained height. Instead, the rectangle has a height of 250, presumably including the height of theChild. So getRect() looks like its returning _content_ height and not _display_ height. Is this right? My application problem is that I'm trying to select all objects intersecting a selection rectangle. I was getting the rectangles of all children (using getRect) and calling intersects() on them. It was then that I noticed that children that scrolled were returning rectangles larger than their display area on the screen. What should I be doing instead? Build the rectangle myself with theParent.width and theParent.height? Example follows: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute applicationComplete=onApplicationComplete(event) mx:Script ![CDATA[ import mx.events.FlexEvent; private function onApplicationComplete(e:FlexEvent):void { var theParentRect:Rectangle; theParentRect = theParent.getRect(theGrandparent); trace(theParentRect.x, theParentRect.y, theParentRect.width, theParentRect.height); trace(theParent.x, theParent.y, theParent.width, theParent.height); } ]] /mx:Script mx:Canvas id=theGrandparent width=200 height=200 backgroundColor=#00ff00 mx:Canvas id=theParent width=100 height=100 backgroundColor=#ff mx:Canvas id=theChild width=50 height=250 backgroundColor=#ff/ /mx:Canvas /mx:Canvas /mx:Application
[flexcoders] Add components to custom folder
How can I add my components to the Components custom folder? I am using Builder 3. Thanks
[flexcoders] Re: Flex app fails when moved to server hosting web services
The SOAP:address points to the location of my gSOAP CGI for the service. The address points to the same machine on which I am attempting to host the Flex Application. When I run the application in Debug under Flex Builder, I do not see this issue about the xmlsoap.org/crossdomain.xml. --- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote: I'd take a look at the soap:address location=... / in the WSDL for your service and port (typically towards the bottom of the WSDL) and note the host that is being contacted. What location is mentioned here? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 2:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex app fails when moved to server hosting web services I have a Flex application that runs fine from my desktop. When I move the files to a virtual machine that already hosts the web services for the app, it no longer works as expected. Now, when the app creates a WebService and calls an operation, I see that the WSDL if located and downloaded, but the operation never executes. Via Charles, I see a 404 Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml. While I do not call any services at xmlsoap.org, it is part of the namespaces in my web services. Any suggestions as to correcting this problem on the VM?
[flexcoders] Re: Item Rendererer Question
Maybe check if the item already exists before adding it to the collection. Greg --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: Tracy, You are right... i am polling with my service These duplicates are happening when my service is polling and items are added to the collection while a filter is already there.. So I guess I need to store the underlying collection and check there... too... This has me scratching my head a bit scratch, scratch, any suggestion as to how to manage this? Thanks, Patrick --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Renderers are manipulated by the lists and the framework based on the underlying data. Have you verified your dataProvider content? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Tuesday, March 17, 2009 9:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Item Rendererer Question I have custom ItemRenderers, after a filter Function, it looks like my itemRenderers are not being cleared out, I have double the items in my list. How do I make sure they are reset and their visual content is removed after I perform a refresh() Thanks, Patrick
[flexcoders] Re: Gallery Drag and Drop
See this FB3 help sys topic: Using Drag and Drop --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote: On Friday 20 Mar 2009, christophe_jacquelin wrote: I have 2 Tile List of images (2 galleries). How to do drag and drop between the 2 galleries ? DragManager. -- Tom Chiverton Helping to collaboratively industrialize dot-com magnetic essential interfaces as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Flex app fails when moved to server hosting web services
Also, I removed the call to the operation completely and see that the failed request for the crossdomain.xml from xmlsoap.org is generated by the loading of the WSDL: ws = new WebService(); ws.loadWSDL(mywsdlloc); -- the GET is successful, but it subsequently requests http://schemas.xmlsoap.org/crossdomain.xml, which produces a 404 --- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote: I'd take a look at the soap:address location=... / in the WSDL for your service and port (typically towards the bottom of the WSDL) and note the host that is being contacted. What location is mentioned here? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 2:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex app fails when moved to server hosting web services I have a Flex application that runs fine from my desktop. When I move the files to a virtual machine that already hosts the web services for the app, it no longer works as expected. Now, when the app creates a WebService and calls an operation, I see that the WSDL if located and downloaded, but the operation never executes. Via Charles, I see a 404 Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml. While I do not call any services at xmlsoap.org, it is part of the namespaces in my web services. Any suggestions as to correcting this problem on the VM?
Re: [flexcoders] Add components to custom folder
right click src, add folder components create / move your components there and then whenever you need to use them ad the following in root component : xmlns:ns2=components.* then you hust do: ns2:yourcustomcomponent On Fri, Mar 20, 2009 at 7:11 PM, markgoldin_2000 markgoldin_2...@yahoo.comwrote: How can I add my components to the Components custom folder? I am using Builder 3. Thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: round timer
You may be able to adapt this FB3 help sys topic example: Example: Simple analog clock Greg --- In flexcoders@yahoogroups.com, claudiu ursica the_bran...@... wrote: Hi, unfortunately I cannot give you any code since is company property. However we have something similar. It was designed in flash (some circular paths and masks will do the trick) and exported as a flex asset. This is embedded in a flex component which update the timer via a binding. The animation goes for 100 ticks an the input can be simulated with a timer or you can get input form server or wherever... So every tick change (1,2,3 ...) triggers a goToAndStop(tickNo) inside the flash round timer and the animation updates smoothly... HTH somehow, Claudiu From: makeflex makef...@... To: flexcoders@yahoogroups.com Sent: Friday, March 20, 2009 1:55:12 AM Subject: [flexcoders] round timer I'm looking for either a component or source code for a circle timer. something similar to this http://flashden. net/item/ adjustable- circle-timer- in-casinostyle/ 10304. That one won't work for me because it's simply to jagged. Can anyone point me in the right direction?
Re: [flexcoders] bind a text area to a field that i return from a query with a remoteObject
or even something along these lines: mx:RemoteObject id=foo ... mx:method name=someFunction ... / /mx:RemoteObject mx:TextInput text={foo.someFunction.lastResult.fieldName} On Fri, Mar 20, 2009 at 7:15 AM, Fotis Chatzinikos fotis.chatzini...@gmail.com wrote: bind the textarea's text to a bindable string: [Bindable] private var myText:String ; mx:textarea text={myText}.../ and then on your remote response: myText = remoteResultText On Fri, Mar 20, 2009 at 9:25 AM, johndoematrix johndoemat...@yahoo.com wrote: how can i bind a text area(or text input) to a field that i return from a query with a remoteObject? -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: Pb with DateField
Your description of the problem is not sufficient. Please describe it in greater detail. --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, I have a DateField that is a birth date. But is is long to set the year of the birth date. Do you know another component or solution ? Thank you, Christophe,
Re: [flexcoders] Re: Sound class Security Sandbox violation ONLY on Internet Explorer - ID3 related
Ok, after some more debuging testing, this is the situation: IE will correctly load and play an mp3 (without an ID3 handler) only if crossdomain.xml is missing. If crossdomain is there but does not explicitly allow all - or it does not contain the new player 10 tags exception is thrown... Should I fill a bug? Alex? On Fri, Mar 20, 2009 at 12:19 AM, Fotis Chatzinikos fotis.chatzini...@gmail.com wrote: To make things a bit clearer, the docs say that mp3 should play without problems IF YOU DO NOT TRY to access its ID3 info... That is the case with Firefox... In IE (7) its seems that a request to get the ID3 info is attempted, even though I do not try to access the sound object's ID3 info... Anybody from Adobe? Thanks again, Fotis On Fri, Mar 20, 2009 at 12:15 AM, Fotis Chatzinikos fotis.chatzini...@gmail.com wrote: Thanks for the tip Mike, but its more complicated than that. I can play staff from localhost without any problems... What i am trying to do is parse several rss feeds from various sites and create something like a 'radio' component. I do not have access to all these servers to upload the correct security policies, but it is really strange that Firefox (without using the ID3 handler that requires a policy file) plays ok while IE (7) does not. I will have a look at the library you point in case they do something different. Thanks, Fotis On Thu, Mar 19, 2009 at 3:58 PM, orthatg orth.m...@gmail.com wrote: Try loading the mp3 from your localhost instead. If you're still having issues try using this open source playlist manager to make your player; it will handle all that stuff for you. http://code.google.com/p/mediacorelib/ Cheers! Mike Orth www.mikeorth.com --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, fotis.chatzinikos fotis.chatzini...@... wrote: Hi, I am trying to make a simple mp3 player. At first i got errors when i was trying to get the ID3 info via the Sound class ID3 handler. I fixed it by removing the ID3 handler and audio plays OK in Firefox. The problem is that in Internet Explorer 7 I get the following exception: SecurityError: Error #2122: Security sandbox violation: Sound.id3: http://localhost:8084/Main.swf/[[DYNAMIC]]/2 cannot access http://someplace.com/Ganglians%20-%20Hair.mp3. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. Inspecting the Sound object in the debugger shows the following info (in the ID3 filed of the sound class): id3 = exception thrown by getter Why is flash in IE trying to load ID3 info without me explicitly setting the ID3 handler? Any way to bypass this? Thanks in advance, Fotis -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
RE: [flexcoders] Re: Flex app fails when moved to server hosting web services
Hmm, if it's not the SOAP address location, then perhaps there is a WSDL or Schema import or include? Can you look around in the types section? Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 1:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services Also, I removed the call to the operation completely and see that the failed request for the crossdomain.xml from xmlsoap.org is generated by the loading of the WSDL: ws = new WebService(); ws.loadWSDL(mywsdlloc); -- the GET is successful, but it subsequently requests http://schemas.xmlsoap.org/crossdomain.xml, which produces a 404 --- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote: I'd take a look at the soap:address location=... / in the WSDL for your service and port (typically towards the bottom of the WSDL) and note the host that is being contacted. What location is mentioned here? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 2:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex app fails when moved to server hosting web services I have a Flex application that runs fine from my desktop. When I move the files to a virtual machine that already hosts the web services for the app, it no longer works as expected. Now, when the app creates a WebService and calls an operation, I see that the WSDL if located and downloaded, but the operation never executes. Via Charles, I see a 404 Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml. While I do not call any services at xmlsoap.org, it is part of the namespaces in my web services. Any suggestions as to correcting this problem on the VM? -- 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
[flexcoders] Re: Arraycollection to xml
You could parse the ArrayCollection and build up JSON data, then pass the data to PHP and convert to XML there. --- In flexcoders@yahoogroups.com, venkat eswar cooler...@... wrote: Hi all, I am using advanceddatagrid with treestructure. I used Arraycollection as Dataprovider for advanceddatagrid.Now i want to convert the Arraycollection to xml for storing it to database with php as backend. How is it possible. Please help me
[flexcoders] Re: Flex app fails when moved to server hosting web services
There is an import: import namespace=http://schemas.xmlsoap.org/soap/encoding/; schemaLocation=http://schemas.xmlsoap.org/soap/encoding// --- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote: Hmm, if it's not the SOAP address location, then perhaps there is a WSDL or Schema import or include? Can you look around in the types section? Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 1:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services Also, I removed the call to the operation completely and see that the failed request for the crossdomain.xml from xmlsoap.org is generated by the loading of the WSDL: ws = new WebService(); ws.loadWSDL(mywsdlloc); -- the GET is successful, but it subsequently requests http://schemas.xmlsoap.org/crossdomain.xml, which produces a 404 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: I'd take a look at the soap:address location=... / in the WSDL for your service and port (typically towards the bottom of the WSDL) and note the host that is being contacted. What location is mentioned here? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 2:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex app fails when moved to server hosting web services I have a Flex application that runs fine from my desktop. When I move the files to a virtual machine that already hosts the web services for the app, it no longer works as expected. Now, when the app creates a WebService and calls an operation, I see that the WSDL if located and downloaded, but the operation never executes. Via Charles, I see a 404 Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml. While I do not call any services at xmlsoap.org, it is part of the namespaces in my web services. Any suggestions as to correcting this problem on the VM? -- 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] Pb with DateField
use a textinput/drop down to select year, then set the datechoosers year programatically and enable the datechooser to select month and day in the selected year On Fri, Mar 20, 2009 at 10:57 AM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, I have a DateField that is a birth date. But is is long to set the year of the birth date. Do you know another component or solution ? Thank you, Christophe, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Re: Item Rendererer Question
Do what Greg suggests in the other mail, or make sure that your polling function returns only new items...(quicker and les bandwidth) On Fri, Mar 20, 2009 at 4:43 PM, djhatrick djhatr...@yahoo.com wrote: Tracy, You are right... i am polling with my service These duplicates are happening when my service is polling and items are added to the collection while a filter is already there.. So I guess I need to store the underlying collection and check there... too... This has me scratching my head a bit scratch, scratch, any suggestion as to how to manage this? Thanks, Patrick --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tracy Spratt tspr...@... wrote: Renderers are manipulated by the lists and the framework based on the underlying data. Have you verified your dataProvider content? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of djhatrick Sent: Tuesday, March 17, 2009 9:18 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Item Rendererer Question I have custom ItemRenderers, after a filter Function, it looks like my itemRenderers are not being cleared out, I have double the items in my list. How do I make sure they are reset and their visual content is removed after I perform a refresh() Thanks, Patrick -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: Flex app fails when moved to server hosting web services
After removing said import, everything works fine. Assuming the import is extraneous, my issue is with the WSDL generated by gSOAP and not specific to Flex. --- In flexcoders@yahoogroups.com, wubac1 wub...@... wrote: There is an import: import namespace=http://schemas.xmlsoap.org/soap/encoding/; schemaLocation=http://schemas.xmlsoap.org/soap/encoding// --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Hmm, if it's not the SOAP address location, then perhaps there is a WSDL or Schema import or include? Can you look around in the types section? Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 1:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services Also, I removed the call to the operation completely and see that the failed request for the crossdomain.xml from xmlsoap.org is generated by the loading of the WSDL: ws = new WebService(); ws.loadWSDL(mywsdlloc); -- the GET is successful, but it subsequently requests http://schemas.xmlsoap.org/crossdomain.xml, which produces a 404 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: I'd take a look at the soap:address location=... / in the WSDL for your service and port (typically towards the bottom of the WSDL) and note the host that is being contacted. What location is mentioned here? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 2:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex app fails when moved to server hosting web services I have a Flex application that runs fine from my desktop. When I move the files to a virtual machine that already hosts the web services for the app, it no longer works as expected. Now, when the app creates a WebService and calls an operation, I see that the WSDL if located and downloaded, but the operation never executes. Via Charles, I see a 404 Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml. While I do not call any services at xmlsoap.org, it is part of the namespaces in my web services. Any suggestions as to correcting this problem on the VM? -- 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
[flexcoders] Re: Arraycollection to xml
http://nsdevaraj.wordpress.com/2008/08/20/arraycollection-xml/ (This question's been asked so many times, it should be in an FAQ somewhere!) - Alex C --- In flexcoders@yahoogroups.com, greg_lafrance glafra...@... wrote: You could parse the ArrayCollection and build up JSON data, then pass the data to PHP and convert to XML there. --- In flexcoders@yahoogroups.com, venkat eswar cooleraga@ wrote: Hi all, I am using advanceddatagrid with treestructure. I used Arraycollection as Dataprovider for advanceddatagrid.Now i want to convert the Arraycollection to xml for storing it to database with php as backend. How is it possible. Please help me
RE: [flexcoders] Re: Flex app fails when moved to server hosting web services
There you go - the schema definition for SOAP 1.1 is implied for our processing of WSDL, so you could remove that import. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 1:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services There is an import: import namespace=http://schemas.xmlsoap.org/soap/encoding/; schemaLocation=http://schemas.xmlsoap.org/soap/encoding// --- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote: Hmm, if it's not the SOAP address location, then perhaps there is a WSDL or Schema import or include? Can you look around in the types section? Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 1:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services Also, I removed the call to the operation completely and see that the failed request for the crossdomain.xml from xmlsoap.org is generated by the loading of the WSDL: ws = new WebService(); ws.loadWSDL(mywsdlloc); -- the GET is successful, but it subsequently requests http://schemas.xmlsoap.org/crossdomain.xml, which produces a 404 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: I'd take a look at the soap:address location=... / in the WSDL for your service and port (typically towards the bottom of the WSDL) and note the host that is being contacted. What location is mentioned here? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 2:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex app fails when moved to server hosting web services I have a Flex application that runs fine from my desktop. When I move the files to a virtual machine that already hosts the web services for the app, it no longer works as expected. Now, when the app creates a WebService and calls an operation, I see that the WSDL if located and downloaded, but the operation never executes. Via Charles, I see a 404 Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml. While I do not call any services at xmlsoap.org, it is part of the namespaces in my web services. Any suggestions as to correcting this problem on the VM? -- 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 -- 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
[flexcoders] NativeDragEvents require MouseEvent listener?
I've just come across a really strange bug (at least I hope it's a bug, as it seems like bad behavior to me.) - Subclass a Canvas in an ActionScript component - Add listeners for NativeDragEvent.NATIVE_DRAG_ENTER and NATIVE_DRAG_DROP (make the listeners simply trace a confirmation message) - Place the new component in an AIR app and see if the listeners fire. In my test, and in an app I'm working on, they don't. Now, add another listener for any MouseEvent (i.e. CLICK). This listener doesn't have to do anything, but relaunch the app and - suddenly - the NativeDragEvent listeners fire! It doesn't matter if you include flash.events.MouseEvent, or if you make a reference to a MouseEvent object (to ensure it's compiled in) - you have to have the listener registered or it won't work. Can anyone verify this so I know I'm not going crazy? :) Or even better, can anyone explain this behavior? I'm using Flex SDK 3.3. Thanks, - Ken
[flexcoders] Re: Add components to custom folder
But what if I want to use it from a different project? --- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... wrote: right click src, add folder components create / move your components there and then whenever you need to use them ad the following in root component : xmlns:ns2=components.* then you hust do: ns2:yourcustomcomponent On Fri, Mar 20, 2009 at 7:11 PM, markgoldin_2000 markgoldin_2...@...wrote: How can I add my components to the Components custom folder? I am using Builder 3. Thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@...,
[flexcoders] Re: Flex app fails when moved to server hosting web services
Thanks, Pete. If I remove the import will that import other client types (C++, Java, etc) negatively? --- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote: There you go - the schema definition for SOAP 1.1 is implied for our processing of WSDL, so you could remove that import. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 1:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services There is an import: import namespace=http://schemas.xmlsoap.org/soap/encoding/; schemaLocation=http://schemas.xmlsoap.org/soap/encoding// --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Hmm, if it's not the SOAP address location, then perhaps there is a WSDL or Schema import or include? Can you look around in the types section? Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 1:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services Also, I removed the call to the operation completely and see that the failed request for the crossdomain.xml from xmlsoap.org is generated by the loading of the WSDL: ws = new WebService(); ws.loadWSDL(mywsdlloc); -- the GET is successful, but it subsequently requests http://schemas.xmlsoap.org/crossdomain.xml, which produces a 404 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: I'd take a look at the soap:address location=... / in the WSDL for your service and port (typically towards the bottom of the WSDL) and note the host that is being contacted. What location is mentioned here? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 2:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex app fails when moved to server hosting web services I have a Flex application that runs fine from my desktop. When I move the files to a virtual machine that already hosts the web services for the app, it no longer works as expected. Now, when the app creates a WebService and calls an operation, I see that the WSDL if located and downloaded, but the operation never executes. Via Charles, I see a 404 Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml. While I do not call any services at xmlsoap.org, it is part of the namespaces in my web services. Any suggestions as to correcting this problem on the VM? -- 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 -- 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
[flexcoders] Re: Datefield Itemrenderer problem
Your dataField for the column with the DateField is dt but I think it should be date. When you change it to date though it seems the string cannot be converted to a date. Might need a labelFunction. --- In flexcoders@yahoogroups.com, venkat eswar cooler...@... wrote: I have a problem with datefield in advanceddatagrid.The problem is when i click the add button the datefield selected in the previous row will be removed.How to solve this. The code is shown below ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init() layout=absolute mx:Script ![CDATA[ import mx.events.ListEvent; import mx.controls.Alert; import mx.collections.ArrayCollection; [Bindable] private var taskCol:ArrayCollection; public function init():void { grid.initialize(); taskCol = new ArrayCollection(); } public function add():void { var month:int = new Date().month; var date:int = new Date().date; var year:int = new Date().fullYear; var today:String = year.toString() + / + month.toString() + / + date.toString(); taskCol.addItem({date: today,task: }); } ]] /mx:Script mx:AdvancedDataGrid id=grid x=136 y=141 dataProvider={taskCol} designViewDataType=tree mx:columns mx:AdvancedDataGridColumn id=targetid headerText=Target editable=false dataField=dt itemRenderer = mx.controls.DateField rendererIsEditor=true editorDataField=selectedDate/ mx:AdvancedDataGridColumn headerText=Column 2 dataField=task mx:itemRenderer mx:Component mx:ComboBox tabEnabled=true selectedIndex=1 change=data.priority=selectedItem; text={data.priority} mx:dataProvider mx:ArrayCollection mx:StringHigh/mx:String mx:StringMedium/mx:String mx:StringLow/mx:String /mx:ArrayCollection /mx:dataProvider /mx:ComboBox /mx:Component /mx:itemRenderer /mx:AdvancedDataGridColumn /mx:columns /mx:AdvancedDataGrid mx:Button x=396 y=250 label=Add click=add()/ /mx:Application
[flexcoders] Re: Flex app fails when moved to server hosting web services
For the sake of completeness for anyone else that may encounter this problem, I've found that for gSOAP, you can specify SOAP 1.1 when generating the WSDL with soapcpp -1. The (-1) argument also prevents the import statement from being added to the WSDL. --- In flexcoders@yahoogroups.com, wubac1 wub...@... wrote: Thanks, Pete. If I remove the import will that import other client types (C++, Java, etc) negatively? --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: There you go - the schema definition for SOAP 1.1 is implied for our processing of WSDL, so you could remove that import. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 1:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services There is an import: import namespace=http://schemas.xmlsoap.org/soap/encoding/; schemaLocation=http://schemas.xmlsoap.org/soap/encoding// --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Hmm, if it's not the SOAP address location, then perhaps there is a WSDL or Schema import or include? Can you look around in the types section? Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 1:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services Also, I removed the call to the operation completely and see that the failed request for the crossdomain.xml from xmlsoap.org is generated by the loading of the WSDL: ws = new WebService(); ws.loadWSDL(mywsdlloc); -- the GET is successful, but it subsequently requests http://schemas.xmlsoap.org/crossdomain.xml, which produces a 404 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: I'd take a look at the soap:address location=... / in the WSDL for your service and port (typically towards the bottom of the WSDL) and note the host that is being contacted. What location is mentioned here? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 2:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex app fails when moved to server hosting web services I have a Flex application that runs fine from my desktop. When I move the files to a virtual machine that already hosts the web services for the app, it no longer works as expected. Now, when the app creates a WebService and calls an operation, I see that the WSDL if located and downloaded, but the operation never executes. Via Charles, I see a 404 Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml. While I do not call any services at xmlsoap.org, it is part of the namespaces in my web services. Any suggestions as to correcting this problem on the VM? -- 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 -- 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] Re: Flex app fails when moved to server hosting web services
I doubt it - I've not yet seen a WSDL that needed to explicitly import the SOAP encoding schema for the types section. If you do end up needing it for some reason you'd have to establish a proxy or make a local copy of the schema to avoid Flash Player sandbox security restrictions. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 2:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services Thanks, Pete. If I remove the import will that import other client types (C++, Java, etc) negatively? --- In flexcoders@yahoogroups.com, Peter Farland pfarl...@... wrote: There you go - the schema definition for SOAP 1.1 is implied for our processing of WSDL, so you could remove that import. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 1:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services There is an import: import namespace=http://schemas.xmlsoap.org/soap/encoding/; schemaLocation=http://schemas.xmlsoap.org/soap/encoding// --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Hmm, if it's not the SOAP address location, then perhaps there is a WSDL or Schema import or include? Can you look around in the types section? Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 1:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex app fails when moved to server hosting web services Also, I removed the call to the operation completely and see that the failed request for the crossdomain.xml from xmlsoap.org is generated by the loading of the WSDL: ws = new WebService(); ws.loadWSDL(mywsdlloc); -- the GET is successful, but it subsequently requests http://schemas.xmlsoap.org/crossdomain.xml, which produces a 404 --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: I'd take a look at the soap:address location=... / in the WSDL for your service and port (typically towards the bottom of the WSDL) and note the host that is being contacted. What location is mentioned here? -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of wubac1 Sent: Friday, March 20, 2009 2:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex app fails when moved to server hosting web services I have a Flex application that runs fine from my desktop. When I move the files to a virtual machine that already hosts the web services for the app, it no longer works as expected. Now, when the app creates a WebService and calls an operation, I see that the WSDL if located and downloaded, but the operation never executes. Via Charles, I see a 404 Not Found for URL http://schemas.xmlsoap.org/crossdomain.xml. While I do not call any services at xmlsoap.org, it is part of the namespaces in my web services. Any suggestions as to correcting this problem on the VM? -- 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 -- 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 -- 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
[flexcoders] AMFPHP Question
Hi all, I have following issue, which I don't understand. I created a button which will add a record to the database. But before doing so I need to check if a similar record already exists. This is how I thought it could be solved: mx:RemoteObject id=myRemoteObject mx: method name =existRecord result =recordExistResultHandler(event)/ mx:RemoteObject/ if (myRemoteObject.existRecord.send(myRecord)) { Alert.show (Record already exists) } else { // Insert record into the database myRemoteObject.insertRecord.send(myRecord) } private function recordExistResultHandler (evt:ResultEvent) : Boolean { Alert.show (Result getting back from webserver is + evt.result.toString()); return evt.result; } The function existRecord on the webserver checks if a similar record already exists and sends a Boolean back. This works fine. To my opinion this should work as follows (supposing record is already in the database) : - Before executing my if-statement, it will check the condition (check if record already exists) - it send a request existSpell to the webserver which will query the database - num_rows is greater dan zero (meaning record already exists), the webserver will return TRUE to the resultHandler of flex-application - resultHandler is executed -- an Alert-windows appears telling Result getting back ...is TRUE and the value is returned to the if-statement. - Because condition is true -- an Alert-window appears telling Record already exists BUT ... THIS IS NOT HOW IT WORKS ? As a matter of fact the if-statement is executed first (Alert 'Record already exists') and afterwards I get the Alert telling the result of the webserver??? It's the opposite world. Am I missing something?? Thanks
[flexcoders] Re: Adding verticalaxis(es) via actionscript
--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: There you go. Try using matching data functions on your axes and serieses. I don't understand how a dataFunction could help put data on the correct axis, when it just formats the data for reading the xField and yField. I'm not saying it doesn't/can't work, I just can't visualize how it works, so it's a big stumbling block. The point of the reply, however, is the new 3.3 SDK: axis system now supports multiple axes Obviously something changed to support multiple axes and I'm trying to track down the changes. If you happen to have already found them, I'd appreciate a code snip or pointing to the doc that explains the change. Tref
[flexcoders] Confusion with custom components
I have a project that is used as a common library. I have added it to one of my application projects. Everything looks fine and it's working fine. In my common lib I have a number of custome compoments. One is a mxml component. When I choose my application mxlml file and switch to components Tab and open Custom folder I see all my custom components including mxml based one. Then I copy and pasted it into my common lib with a new name. so, it's exactly the same except a name. But when I go to Custom I dont see it there. I recompiled and rebuilt many times. Still it's not there. Any idea? Thanks
Re: [flexcoders] Embedding/visualizing special characters issue
I tried to add the parameter to the java compiling but doesn't seem to work. I'm using Ant and I'm on a mac. Cheers, chr 2009/3/20 Christian Giordano christ...@nuthinking.com: Funnily enough it was just the font missing the characters. What was driving me crazy is that Flash IDE when putting the textfield in the field was generously embedding another font to render the missing characters. So the textfield created in the IDE was magically embedding two fonts and was able to render all the characters. Cheers, chr 2009/3/20 Peter Farland pfarl...@adobe.com: Hey Christian, Make sure there are no null chars 0x00 in the String as the display of such Strings are truncated at the first null char. What version of Flex are you using? Are you using an @font-face to embed your font? If so, can you post a snippet showing the complete @font-face rule? Can you provide the fontsmanagers section of your Flex SDK /frameworks/flex-config.xml? Also, you could try adding -Dtrace.font as JVM args to get the compiler to print out more debug information about embedding fonts while compiling. If you're using mxmlc.exe, you can add these to the java.args property in the /bin/jvm.config file of your Flex SDK. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Christian Giordano Sent: Thursday, March 19, 2009 8:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Embedding/visualizing special characters issue Hi guys, this is getting a bit mad, can anyone manage to embed and visualize characters like: ř (U+0159) ? I'm trying to embed an OpenType font (AvantGarde) to be able to show Chek chars, like: ůěČžíýř And regardless the unicodeRange, there is no way to make it see it :S Also other chars of the string are not visible. I tried from Flash IDE too, without success unless they are typed on the instance itself, for this reason I'm considering it can be a problem of string handling more than font embedding. Any idea how I could sort this? Cheers, chr -- 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 -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] ADG Memory leak.
I've wasted most of the day trying to figure out why my application was leaking memory. I was dynamically adding and removing columns from the AdvancedDataGrid. I noticed that it was slowing down a lot. I naturally assumed that it was my custom item renderer and even after reading Alex's blog entry about using the profiler I couldn't figure out what was holding references to my item renderer. Anyway the error continued to happen after I commented out all the code in my item renderer. I even changed it to subclass AdvancedDataGridItemRenderer, still no joy. So I removed the custom item renderer and noticed that instead of my ItemRenderer the ADG didn't remove references to its own item renderer. Anyway I changed to a standard DataGrid and all worked correctly. The references were removed when garbage collection occurred I had to change my code a bit. This isn't really a question more of a complaint really. I don't know if it was my code or just a problem with the ADG though I suspect the latter. A couple of things I noticed with the standard DG. Firstly if setting the itemrenderer on the DG itself it also uses the same ItemRenderer on the header rows. Is this correct behaviour. Setting the ItemRenderer on the column seems to keep the normal header renderer. This I admit has me confused is this the way its supposed to work? How would I set all the cells to a custom IR and leave the headers alone? It seems inconsistent. I have read the excellent Articles on Alex's blog. Anyway that's all. Regards, Wes
RE: [flexcoders] Embedding/visualizing special characters issue
For ANT, you may have to provide the arguments using the jvmarg as child tag to mxmlc or compc instead of relying on /bin/jvm.config, e.g. something like: jvmarg line=-Dtrace.font/ Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Christian Giordano Sent: Friday, March 20, 2009 10:41 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Embedding/visualizing special characters issue I tried to add the parameter to the java compiling but doesn't seem to work. I'm using Ant and I'm on a mac. Cheers, chr 2009/3/20 Christian Giordano christ...@nuthinking.com: Funnily enough it was just the font missing the characters. What was driving me crazy is that Flash IDE when putting the textfield in the field was generously embedding another font to render the missing characters. So the textfield created in the IDE was magically embedding two fonts and was able to render all the characters. Cheers, chr 2009/3/20 Peter Farland pfarl...@adobe.com: Hey Christian, Make sure there are no null chars 0x00 in the String as the display of such Strings are truncated at the first null char. What version of Flex are you using? Are you using an @font-face to embed your font? If so, can you post a snippet showing the complete @font-face rule? Can you provide the fontsmanagers section of your Flex SDK /frameworks/flex-config.xml? Also, you could try adding -Dtrace.font as JVM args to get the compiler to print out more debug information about embedding fonts while compiling. If you're using mxmlc.exe, you can add these to the java.args property in the /bin/jvm.config file of your Flex SDK. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Christian Giordano Sent: Thursday, March 19, 2009 8:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Embedding/visualizing special characters issue Hi guys, this is getting a bit mad, can anyone manage to embed and visualize characters like: ř (U+0159) ? I'm trying to embed an OpenType font (AvantGarde) to be able to show Chek chars, like: ůěČžíýř And regardless the unicodeRange, there is no way to make it see it :S Also other chars of the string are not visible. I tried from Flash IDE too, without success unless they are typed on the instance itself, for this reason I'm considering it can be a problem of string handling more than font embedding. Any idea how I could sort this? Cheers, chr -- 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 -- 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 -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Add components to custom folder
Probably should have asked that, as well, in the first place. Create a library project and link it to your project, with a source path. Add the component to the library project using Fotis's instructions. -TH --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... wrote: But what if I want to use it from a different project? --- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzinikos@ wrote: right click src, add folder components create / move your components there and then whenever you need to use them ad the following in root component : xmlns:ns2=components.* then you hust do: ns2:yourcustomcomponent On Fri, Mar 20, 2009 at 7:11 PM, markgoldin_2000 markgoldin_2...@wrote: How can I add my components to the Components custom folder? I am using Builder 3. Thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation Fotis.Chatzinikos@,
[flexcoders] Re: AMFPHP Question
The remoteObject is asyncronous. This means that Flex sends the request off to the server and keeps going. The result of myRemoteObject.existRecord.send(myRecord) will always be true if Flex managed to send the request to the server. When the result comes back, Flex jumps to the function you have set. You will need to add your logic to the handler function you have set up. The way I would do it is to send the record. If the record already exists, send an error message back. If it doesn't exist, add it and send a success message back. This way, you only send the data once. --- In flexcoders@yahoogroups.com, secrit.service secrit-serv...@... wrote: Hi all, I have following issue, which I don't understand. I created a button which will add a record to the database. But before doing so I need to check if a similar record already exists. This is how I thought it could be solved: mx:RemoteObject id=myRemoteObject mx: method name =existRecord result =recordExistResultHandler(event)/ mx:RemoteObject/ if (myRemoteObject.existRecord.send(myRecord)) { Alert.show (Record already exists) } else { // Insert record into the database myRemoteObject.insertRecord.send(myRecord) } private function recordExistResultHandler (evt:ResultEvent) : Boolean { Alert.show (Result getting back from webserver is + evt.result.toString()); return evt.result; } The function existRecord on the webserver checks if a similar record already exists and sends a Boolean back. This works fine. To my opinion this should work as follows (supposing record is already in the database) : - Before executing my if-statement, it will check the condition (check if record already exists) - it send a request existSpell to the webserver which will query the database - num_rows is greater dan zero (meaning record already exists), the webserver will return TRUE to the resultHandler of flex-application - resultHandler is executed -- an Alert-windows appears telling Result getting back ...is TRUE and the value is returned to the if-statement. - Because condition is true -- an Alert-window appears telling Record already exists BUT ... THIS IS NOT HOW IT WORKS ? As a matter of fact the if-statement is executed first (Alert 'Record already exists') and afterwards I get the Alert telling the result of the webserver??? It's the opposite world. Am I missing something?? Thanks
RE: [flexcoders] Re: Arraycollection to xml
Further, to the original poster, if you want to update the server using xml, that suggests that xml is also your read format. Is that the case? If so, you must be converting the xml into an ArrayCollection when you retrieve it, is that so? (this happens automatically with the default resultFormat) If so, then why not skip the ArrayCollection entirely and work with XML or XMLListCollection, and avoid the xml generation step on the update? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of oneworld95 Sent: Friday, March 20, 2009 2:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Arraycollection to xml http://nsdevaraj. http://nsdevaraj.wordpress.com/2008/08/20/arraycollection-xml/ wordpress.com/2008/08/20/arraycollection-xml/ (This question's been asked so many times, it should be in an FAQ somewhere!) - Alex C --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, greg_lafrance glafra...@... wrote: You could parse the ArrayCollection and build up JSON data, then pass the data to PHP and convert to XML there. --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, venkat eswar cooleraga@ wrote: Hi all, I am using advanceddatagrid with treestructure. I used Arraycollection as Dataprovider for advanceddatagrid.Now i want to convert the Arraycollection to xml for storing it to database with php as backend. How is it possible. Please help me
RE: [flexcoders] AMFPHP Question
ALL RPC data service calls, including RemoteObject are *asynchronous*. And such calls are non-blocking. You must invoke your check call, then, in its result handler, do the conditional logic to invoke the insert. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of secrit.service Sent: Friday, March 20, 2009 2:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] AMFPHP Question Hi all, I have following issue, which I don't understand. I created a button which will add a record to the database. But before doing so I need to check if a similar record already exists. This is how I thought it could be solved: mx:RemoteObject id=myRemoteObject mx: method name =existRecord result =recordExistResultHandler(event)/ mx:RemoteObject/ if (myRemoteObject.existRecord.send(myRecord)) { Alert.show (Record already exists) } else { // Insert record into the database myRemoteObject.insertRecord.send(myRecord) } private function recordExistResultHandler (evt:ResultEvent) : Boolean { Alert.show (Result getting back from webserver is + evt.result.toString()); return evt.result; } The function existRecord on the webserver checks if a similar record already exists and sends a Boolean back. This works fine. To my opinion this should work as follows (supposing record is already in the database) : - Before executing my if-statement, it will check the condition (check if record already exists) - it send a request existSpell to the webserver which will query the database - num_rows is greater dan zero (meaning record already exists), the webserver will return TRUE to the resultHandler of flex-application - resultHandler is executed -- an Alert-windows appears telling Result getting back ...is TRUE and the value is returned to the if-statement. - Because condition is true -- an Alert-window appears telling Record already exists BUT ... THIS IS NOT HOW IT WORKS ? As a matter of fact the if-statement is executed first (Alert 'Record already exists') and afterwards I get the Alert telling the result of the webserver??? It's the opposite world. Am I missing something?? Thanks
[flexcoders] is a flash app completely contains within its object/div tag?
2 questions here...both very similar 1. Can a flash app expand, and in turn, make its enclosing div expand. i.e. if the flash app is at the bottom of a page, and it expands, will it increase the entire size of the page? I haven't been able to get this to work in my tests, so I am guessing the answer is no. 2. Can a flash app pop out and expand? i.e something like a lightbox effect, where it will be centered in the screen, in an expanded form. This is similar to the question above, but I thought it was worth asking. Thanks.
RE: [flexcoders] is a flash app completely contains within its object/div tag?
A Flex app can communicate with and run javascript in the html wrapper, so if it can be done with javascript, then yes to #1. The second might more complicated, but the same answer applies. Beyond that, I am pretty sure a swf is constrained by its object tag. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of gmoniey22 Sent: Friday, March 20, 2009 8:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] is a flash app completely contains within its object/div tag? 2 questions here...both very similar 1. Can a flash app expand, and in turn, make its enclosing div expand. i.e. if the flash app is at the bottom of a page, and it expands, will it increase the entire size of the page? I haven't been able to get this to work in my tests, so I am guessing the answer is no. 2. Can a flash app pop out and expand? i.e something like a lightbox effect, where it will be centered in the screen, in an expanded form. This is similar to the question above, but I thought it was worth asking. Thanks.
Re: [flexcoders] is a flash app completely contains within its object/div tag?
There are a few ways you can do what you want. You could make the flash object 100% both in width and height and then change the container div, or you could change the flash dimentions inside the flash object and then do the same for the containing div via external interface or any other way that lets you communicate with the html wrapper. Have done it in the past, but it was long ago and i cannot remember the exact details On Sat, Mar 21, 2009 at 2:49 AM, gmoniey22 gmonie...@yahoo.com wrote: 2 questions here...both very similar 1. Can a flash app expand, and in turn, make its enclosing div expand. i.e. if the flash app is at the bottom of a page, and it expands, will it increase the entire size of the page? I haven't been able to get this to work in my tests, so I am guessing the answer is no. 2. Can a flash app pop out and expand? i.e something like a lightbox effect, where it will be centered in the screen, in an expanded form. This is similar to the question above, but I thought it was worth asking. Thanks. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Is Flex Actionscript 3 programming language for a total newbie?
I am totally new to Flex 3 and AS3. But so far I am not understanding all the examples of Flex 3 language reference as well as AS3.I am using a book called Flex 3 essential guide with AS3 and I am also using Lynda.com Flex 3 essentials. But I am not understanding the all material. so I am wondering if I need to learn a beginner language before starting with Flex3? Or should I get more books on Flex AS3? I never did programming before. Thanks for your time.
RE: [flexcoders] Is Flex Actionscript 3 programming language for a total newbie?
You should learn the technology that lets you do what you want to do. Is there something that you want to build or create? Do you want to make a pretty, fancy web site? Do you want to build production shop floor machine controllers? Why do you want to learn programming? If you just want to start somewhere, then I think Action Script is as good language to start with as any. Still I suggest starting off with something to make. Maybe a recipe program for your wife, or a birthday reminder program for you or a car maintenance tracker, or . whatever. I have never liked doing tutorials myself, I would rather struggle to make something of my own, but that is just me. I am not understanding all the examples. I think this is in part because you don't *have* to. Not understanding is ok if you don't have a goal. If the example explains something you need to do, you will study it, and others like it, until you do understand. Reading about programming is like reading about music or chess or skiing or sex. Just start doing it. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of fred44455 Sent: Friday, March 20, 2009 11:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is Flex Actionscript 3 programming language for a total newbie? I am totally new to Flex 3 and AS3. But so far I am not understanding all the examples of Flex 3 language reference as well as AS3.I am using a book called Flex 3 essential guide with AS3 and I am also using Lynda.com Flex 3 essentials. But I am not understanding the all material. so I am wondering if I need to learn a beginner language before starting with Flex3? Or should I get more books on Flex AS3? I never did programming before. Thanks for your time.
[flexcoders] Re: is a flash app completely contains within its object/div tag?
hmm..so its seems that its possible with javascript...I was hoping to avoid this so that everything was flash based... As for my second question...is there no way to have the flash up use some kind of z-index and make itself look as if it was on top of the actual html page? Essentially, I want to have a flash app that looks the a small preview..and allows the user to expand it. At that point, something like a traditional lightbox would work perfectly, as all attention would be on it, and it would be front center.
RE: [flexcoders] Re: is a flash app completely contains within its object/div tag?
I can't speak definitively, not having attempted such a thing, but a Flex app runs in the Flash Player plugin which is instantiated by an object/embed tag in the browser. I doubt it can ignore its boundaries. That said, you could probably do what you describe with an absolutely positioned div holding the object/embed tag. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of gmoniey22 Sent: Saturday, March 21, 2009 1:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: is a flash app completely contains within its object/div tag? hmm..so its seems that its possible with javascript...I was hoping to avoid this so that everything was flash based... As for my second question...is there no way to have the flash up use some kind of z-index and make itself look as if it was on top of the actual html page? Essentially, I want to have a flash app that looks the a small preview..and allows the user to expand it. At that point, something like a traditional lightbox would work perfectly, as all attention would be on it, and it would be front center.