RE: [flexcoders] Send an automatic Password
Use whatever server you have available to you (i.e. php, coldfusion) Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of christophe_jacquelin Sent: Wednesday, August 12, 2009 10:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Send an automatic Password Hello, How to automatically send a password to a customer of my Flex Application when I receive his paiement by a system like Paypal ? Thank you, Christophe, No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.50/2296 - Release Date: 08/12/09 06:09:00
RE: [flexcoders] How to run an AIR app in headless mode?
In your -app.xml file you need to have this: systemChromenone/systemChrome In your main WindowedApplication tag, you need this attribute: showFlexChrome=false Also, you'll need to minimize the native window that comes with the AIR application or close it without exiting the app Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Gautam P Sent: Wednesday, August 12, 2009 1:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to run an AIR app in headless mode? I have done this on a linux machine and it works. air app can run in headless mode, but not your flash app (on ur browser). you need to disable GUI on linux and then have xvfb installed to get the air app working in headless mode. On Wed, Aug 12, 2009 at 6:15 AM, Sonia Guptasoniagup...@yahoo.com mailto:soniagupta9%40yahoo.com wrote: I have to call an AIR app from my Flash app but in headless mode.. I know the command of FLFile.runCommandLine (but what will go here?); P.S: I am running this code on Windows machine. -- 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-1e62 079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.50/2296 - Release Date: 08/12/09 06:09:00
RE: [flexcoders] ItemRender - Access Specific Item at Run-time
When does the state need to change? You probably need to be looking for some kind of an event (ListEvent most likely) Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Baz Sent: Wednesday, August 12, 2009 2:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ItemRender - Access Specific Item at Run-time I have a custom ItemRender that uses an ArrayCollection dataProvider. Everything loads up and displays nicely, but I am having a heck of a time finding out how to get at a specifc item in the list to change its state - something like myDataContainer.ItemArray[10].state = my_custom_state to get at the 10th item. Bear in mind its not the source ArrayCollection that I need to get at, that's no problem, its access to the components that get created from the ArrayCollection that I'm looking for. Is there a way? Thanks very much. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.50/2296 - Release Date: 08/12/09 06:09:00
RE: [flexcoders] Re: open source imageCFC
Look up cf-talk and post it there. This is definitely not a flex question. You're better off using the built in image utilities in CF8 if you have access to that version. It works way better than imageCFC. If not, look at the help files and example documentation or check the forum. Start here: http://www.opensourcecf.com/imagecfc/ Image manipulation is not a simple thing and you're probably not going to get someone to just hand you a script. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Tuesday, August 11, 2009 7:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: open source imageCFC I don't think anybody here has used imageCFC. You would be better off posting to the imageCFC forum. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , stinasius stinas...@... wrote: Helloo any help?
RE: [flexcoders] cairngorm convention: vo or model?
Directory structure is just used for packaging. So, you keep all your views together. But when you think about it, views rarely contain their own data. Likewise, commands are in commands, vo’s should all be in vo. FYI, the default Cairngorm structure has commands and events at the same level as control, not inside of control Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jorge Maiquez Sent: Thursday, August 06, 2009 10:42 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] cairngorm convention: vo or model? Ok, so if I’m understanding you correctly, you don’t have a problem storing a VO in some part of the model (assuming that the VO is used for both transport and storage)? In my Cairngorm project, the directory structure looks like this: business control commands events model view vo So if I do what you suggest, and allow for a VO to reside in the model, then the model will contain stuff that does not reside in the model directory, which feels kinda weird to me. I know I’m being very fussy over something very trivial :-) From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of claudiu ursica Sent: 06 August 2009 16:01 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] cairngorm convention: vo or model? You are right, If your data is only transport stuff and then get rid of it it does not justify to put it in the model. If you need your data displayed in the view then your data will probably be in the model. It depends on your business case. The VO is just a name in the end... you can label a class with VO or not it is how you use it what matters. You can transport data with VO objects (classes with no methods) and put it inside other model classes (put a clone method inside that class to move data from VO). But in many cases this is not justified. For example you want to login, you get the username and pass form the textfield inside a VO. Attach that VO as a payload to the cairngorm event and send it to the server via command/delegate etc ... That is a case where you just transport data ... no need ot store it in the model ... If you get data from the server like some products and want to display them in the view, you can pu them in the model and use the model as a dataprovider for a list or whatever ... C _ From: Jorge Maiquez jmaiq...@yahoo.com To: flexcoders@yahoogroups.com Sent: Thursday, August 6, 2009 4:50:14 PM Subject: RE: [flexcoders] cairngorm convention: vo or model? What about transient data? I was always under the impression that VO’s (or DTO’s or whatever they’re called) were more like throw-away objects: you use them to transfer data to/from a server, but that’s it. So if I label something as being a VO (e.g. ConversationVO) , then I don’t expect to find that class in the “model” classpath because I am not storing data in it. Consequently, I would not expect my view to bind to it. Does that make sense? I guess all I’m asking is: would you label something as being a VO and then bind your view to it? Symantics, I know, but I’m trying to figure out whether I’m the only one who thinks it’s weird :-) From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of claudiu ursica Sent: 06 August 2009 14:23 To: flexcod...@yahoogro ups.com Subject: Re: [flexcoders] cairngorm convention: vo or model? Ultimately the data should be in the model, and the view binds to the model. However depending on your needs you could notify the view from the command using responders. Check the UM Cairngorm extensions for this. HTH, Claudiu _ From: Jorge Maiquez jmaiq...@yahoo. com To: flexcod...@yahoogro ups.com Sent: Thursday, August 6, 2009 3:07:15 PM Subject: [flexcoders] cairngorm convention: vo or model? I have a some doubts about implementing Cairngorm correctly (and I guess MVC in general). I’m trying to decide where to place some of my data storing/transferrin g classes, and I was wondering if anyone has any rules of thumb for this kind of thing. These are the guidelines that I have been following until now: 1) the class only transfers data to/from a server: postfix “VO” and put it in the vo folder 2) the class only stores data for the local application: put it in the model folder 3) the class does both of the above: put it in the model folder (don’t postfix “VO”) I’m working with someone who does (1) even when the class is never sent across the wire. What’s the “right” way to do this? And also: I’ve read somewhere that VO’s should not contain any logic, and that you should be able to initialise all of its properties via the constructor. What do you think? TIA! -Jorge
RE: [flexcoders] Re: Flex scheduler application
My app takes advantage of the built-in support for SQLite which comes with the AIR runtime. There's just a .db file stored on the user's machine where the data is at. I built it using Cairngorm so it'd be really easy to modify the service to communicate with a server rather than SQLite Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of joyfulrodger Sent: Monday, August 03, 2009 10:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex scheduler application Jake, Thanks for your reply. What I was thinking of doing was passing the clients time from flex to coldfusion, working out the time difference between the client computer and my coldfusion server and then storing both the reminder time with the offset from my server time. Then when my reminder script runs it will work out the selected reminder time. But as you say this may be an issue with the DST. I really like your scheduler though. As a small app it works well. I have yet to try using air. Does the application communicate with a database on your server? Do you use any backend technology like coldfusion etc? I would be interested in seeing your code for interests sake if you wouldn't mind? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jake Churchill j...@... wrote: It will use whatever the client computer's current date/time is. It only takes daylight savings time into account if the client's computer has it set correctly and you'd be surprised how many times that doesn't happen. My company wrote a stock charting application and ran into some issues with this. I suggest attempting to do date operations on the server and pass the current date/time into the flex app on load. I recently wrote an AIR (Flex) reminder application (http://www.reynacho.com/projects/reminder-application/). If this is the type of thing you need, I'd be happy to share some of the code with you. It uses a SQLite DB to store everything and depends entirely on the computer's time settings Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of joyfulrodger Sent: Sunday, August 02, 2009 9:10 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Flex scheduler application Hey all, I have been assigned a new project where i have to code a reminder scheduling application in flex with a coldfusion backend and sqlserver db. Basically user will select an hour when they receive a reminder to do a task. Its intended to be deployed world wide so I have to take into consideration time zones. What i wanted to know is, how is the date in flex worked out if i create a new date variable like so. var myDate:Date = new Date(); Will it pick up the time in the client computers timezone? Will it allow for daylight savings time? All help much appreciated. Thanks, Dave No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.392 / Virus Database: 270.13.41/2277 - Release Date: 08/03/09 05:57:00
RE: [flexcoders] Flex scheduler application
It will use whatever the client computer's current date/time is. It only takes daylight savings time into account if the client's computer has it set correctly and you'd be surprised how many times that doesn't happen. My company wrote a stock charting application and ran into some issues with this. I suggest attempting to do date operations on the server and pass the current date/time into the flex app on load. I recently wrote an AIR (Flex) reminder application (http://www.reynacho.com/projects/reminder-application/). If this is the type of thing you need, I'd be happy to share some of the code with you. It uses a SQLite DB to store everything and depends entirely on the computer's time settings Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of joyfulrodger Sent: Sunday, August 02, 2009 9:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex scheduler application Hey all, I have been assigned a new project where i have to code a reminder scheduling application in flex with a coldfusion backend and sqlserver db. Basically user will select an hour when they receive a reminder to do a task. Its intended to be deployed world wide so I have to take into consideration time zones. What i wanted to know is, how is the date in flex worked out if i create a new date variable like so. var myDate:Date = new Date(); Will it pick up the time in the client computers timezone? Will it allow for daylight savings time? All help much appreciated. Thanks, Dave
[flexcoders] Events and Inheritance
I am still confused about how to make an event come through to an inherited class. For example, in Container.as there is a scroll event. Canvas directly extends Container. When I add canvas inside MXML I can handle the scroll event because it comes through from Container to Canvas. However, I have an example where I have a base component that dispatches an event. When I add an inheriting component to MXML, I can't see the event being dispatched by the base component. Or at least I don't get code hints like the above scroll example. Can anyone explain this to me? Thanks! Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103
RE: [flexcoders] Events and Inheritance
You know what, nevermind. I started another example from scratch and it inherited fine. I'm not sure what my problem was but it's working. Thanks! Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jake Churchill Sent: Friday, July 17, 2009 9:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Events and Inheritance I am still confused about how to make an event come through to an inherited class. For example, in Container.as there is a scroll event. Canvas directly extends Container. When I add canvas inside MXML I can handle the scroll event because it comes through from Container to Canvas. However, I have an example where I have a base component that dispatches an event. When I add an inheriting component to MXML, I can't see the event being dispatched by the base component. Or at least I don't get code hints like the above scroll example. Can anyone explain this to me? Thanks! Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 Checked by AVG - www.avg.com Version: 8.5.387 / Virus Database: 270.13.18/2243 - Release Date: 07/17/09 06:08:00
[flexcoders] Custom Events in multiple components
I ran into something that I've never come across before and now curiosity is killing me. I had a base component, call it ComponentBase. I made this component dispatch a custom event using the appropriate event metadata. I have another component which extends ComponentBase, call it SubComponent. SubComponent gets used in mxml. I want the event that I set up in ComponentBase to be available in mxml the same as if I had added it to SubComponent. Does that make sense? How do I get a custom event from a base component to come through to it's children components? Thanks! Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103
RE: [flexcoders] Listen for event of unknown type?
Yes, listed for Event (all events extend this class) Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of luvfotography Sent: Thursday, July 09, 2009 12:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Listen for event of unknown type? Hi, I'm using swfloader to load a swf and want to listen for all events, but I don't know the event types or names, Is this possible?? thanks,
RE: [flexcoders] very urgent PlZZZZZZZ Accessing webservices
Maybe a crossdomain policy issue? Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of vin.flex Sent: Wednesday, July 01, 2009 9:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] very urgent PlZZZ Accessing webservices Hi there, I got an urgent situation. I have developed a flex app accessing the data through webservices developed in C# .NET. webservices and my flex app reside in two different boxes. and webservices are not available for outside public. Everthing is working fine within the network. But when I access in production it is not able to load the WSDL. Can any body tell me how to make a request to the load webservice from the box hosting flex app(may be using proxies)? any help will be really appreciated. thanks vin Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database: 270.13.1/2212 - Release Date: 07/01/09 05:53:00
RE: [flexcoders] Charting questions
Add the following right after your code: mx:horizontalAxisRenderers mx:AxisRenderer axis= {monthLabels} labelRotation = 45 / /mx:horizontalAxisRenderers Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of inevative Sent: Friday, June 19, 2009 3:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Charting questions Hey peepsJust looking for some help with some charting related tasks. - Can you rotate the axis labels on a LineChart? All the examples i have used seem to work fine on BarChart but not on LineChart - Consider the following... mx:horizontalAxis mx:DateTimeAxis dataUnits=days interval=1 title=Date displayLocalTime=true parseFunction=parseDate id=monthLabels / /mx:horizontalAxis Is it possible to specify the number of axis points and labels? Using the DateTimeAxis is seems to just try and work out where to plot them but i want to specify at what intervals to put markers. - Is it possible to get the color value of a chart line or legend marker? I want to use the colors for something else and need them to match (other than specifying my own colors). Thanks for any help you can give.. Steve No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.80/2187 - Release Date: 06/19/09 06:53:00
RE: [flexcoders] Trying Smooth slide transitions with List control item renders or a Repeater...
Here's an example of how to do it: http://www.axelscript.com/2008/09/25/building-a-simple-slider-component/ Axel and I used this on http://www.clickstatssports.com/index.cfm Click the close button in the top right of the flex app to see it slide. Then click on something else. Basically, this is just a grouping of canvases. The source code is on Axel's blog. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Todd Sent: Wednesday, June 17, 2009 9:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Trying Smooth slide transitions with List control item renders or a Repeater... Hello All, I have a HorizontalList that has an ItemRenderer that displays an Image. The HorizontalList only displays one of my images at a time. I'm trying to make a transition where the next image slides into the screen. Now, since itemRenderers are recycled, I probably can't use a List control. So, I'm open to using a Repeater. I've worked with transitions in the ViewStack before. Any suggestions or links to slideshow samples that have images slide into place? Thanks No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.73/2180 - Release Date: 06/17/09 05:53:00
RE: Re[flexcoders] moteObject endpoint= vs. Flex settings
To my knowledge, there is now benefit or detriment to doing it either way. I do the same thing and I know other people who do also. I actually find it easier to deploy this way because I always have some kind of config xml file that loads at startup which contains things like the domain and endpoint in it. That way, when I deploy an app, the only thing I need to worry about changing is the config file. I don't spend a bunch of time trying to figure out server configurations and difference between my environment and a production/staging environment. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of mikeashields Sent: Wednesday, June 17, 2009 7:59 PM To: flexcoders@yahoogroups.com Subject: Re[flexcoders] moteObject endpoint= vs. Flex settings Primarily because I cannot seem to understand the CF Root Folder / Webroot / Root URL for a non-localhost setup (ie //DevServer/ColdFusion8/wwwroot along with http://testingIP:8500/projname???) I have taken to using the endpoint property in RemoteObject as follows: mx:RemoteObject destination=ColdFusion source=test.cfcs.QuoteService endpoint=http://174.1.159.113:8500/flex2gateway/; method=getQuote arguments={event.symbol} What is the downside of this??? I assume if the CF-Flex settings are set properly then flex uses those to set the endpoint so in theory the benefit would be not having to enter endpoint in each time (in which case I actually prefer the verbiosity of the above method) but is there any other reason/benefit to either not using the endpoint OR to setting up the CF-Flex link?? -- View this message in context: http://www.nabble.com/RemoteObject-endpoint%3D-vs.-Flex-settings-tp24084746p 24084746.html Sent from the FlexCoders mailing list archive at Nabble.com.
RE: [flexcoders] checkBox event
Look at the Change event: http://livedocs.adobe.com/flex/3/langref/mx/controls/Button.html#event:chang e Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markflex2007 Sent: Monday, June 15, 2009 1:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] checkBox event Hi, I use the follow, I can get the data before it changed this.addEventListener(MouseEvent.CLICK , onChnage); which event the checkbox will send out after it changed so I can get the updated value. Thanks No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.70/2177 - Release Date: 06/15/09 05:54:00
RE: [flexcoders] How to play a wav audio file in flex
I saw this too. I don't think it was a matter of the question not being valid. I just think it's a matter of immediately asking if anyone has done the work for him. That seems to happen a bit on this list. I'm not saying I won't take a great piece of code if I find it but my first instinct is to try to write it myself. Sorry, just had to butt in here. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeffry Houser Sent: Tuesday, June 16, 2009 9:58 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to play a wav audio file in flex I didn't see his previous question, but I thought this one was rather valid. The reason to use wav files instead of mp3s is quality. If you are building any sort of sound editing or mixing program; that higher quality counts for a lot. Converting to mp3 for distribution often makes a lot of sense; although there are sometimes business reasons for not distributing mp3s commercially. For The Flex Show, we take wav files, edit them, and turn them into mp3 for distribution. It works quite well and gives us better quality than we'd have starting w/ an mp3. Krunal, As best I know, if you want to play wav files in Flex you are stuck writing your own codec. If you Google around, I have seen projects that can get Ogg Vorbis files to play. Perhaps you can use some of the techniques in that to get wav files to play. Kenneth Sutherland wrote: Having just looked at your emails (this plus previous one), this list is for questions and not for just getting someone else to do your code. Try looking at the livedocs http://livedocs.adobe.com/flex/3/langref/index.html or Google for flex examples. In respect to the wav file, why would you wish to use a wav file. The Sound class can handle mp3 very easily so just convert your wav files (which IMHO you should be doing anyway), there are tones of free convertors out there. If you're looking for examples on implementing something the check out http://blog.flexexamples.com/index.php?s=sound or http://dougmccune.com/blog/2008/05/02/screenshot-step-by-step-instructions-o f-how-to-use-the-flex-coverflow-component/ Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Krunal Panchal Sent: 16 June 2009 10:35 To: Flex Coder Cc: Jignesh Patel - SPEC Subject: [flexcoders] How to play a wav audio file in flex Hi Friends, How to play a wav audio file in flex ( action script)? is there any third party swc ? Regards, _ Krunal Panchal | Senior Software Engineer * panchal_...@yahoo.com Disclaimer _ This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. _ -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.73/2180 - Release Date: 06/16/09 07:41:00
RE: [flexcoders] CartesianChart not recognized in Flex SDK 3.3
Are you sure the compiler settings are set to use the new SDK? I'm using SDK 3.3 and am actually working on a CartesianChart as I'm writing this. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Siraj R. Khan Sent: Tuesday, June 16, 2009 1:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] CartesianChart not recognized in Flex SDK 3.3 I recently upgraded to Flex SDK 3.3, but after that my flex application has started giving compile time error for CartesianChart: 1046: Type was not found or was not a compile-time constant: CartesianChart Any help would be highly appreciated. Thanks, Siraj Khan khan_si...@yahoo.com mailto:khan_siraj%40yahoo.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.73/2180 - Release Date: 06/16/09 07:41:00
RE: [flexcoders] Charting dataFunction issues
Sorry, I meant to follow up on this yesterday. Thanks for your reply but I figured it out. I had the wrong type of horizontal axis applied so when I was returning an xField value it was actually drawing the chart off to the right somewhere. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sam Lai Sent: Friday, June 12, 2009 9:27 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Charting dataFunction issues Can you try removing some of those series to isolate the problem? Also, can we see the console output from the trace statements in seriesDataFunction? Maybe the values are out of bounds? Some sample data would be useful too if that's possible. 2009/6/12 Jake Churchill j...@cfwebtools.com: Charting people, please help! Im using examples right out of Adobes guides and several other guides Ive found online on how to use a series dataFunction. The issue is that when I try to use the dataFunction, I get nothing. The Series doesnt display at all. When I go back to using yField, everything is fine. Below is the MXML for the chart and series. The dataprovider is an ArrayCollection of VOs with the following properties: public var ceiling:Number; public var costOfProd:Number; public var cropProfileID:Number; public var floor:Number; public var historyDt:Date; public var insGuarantee:Number; public var revenue:Number; Here is the dataFunction that Im using (straight out of an example from http://flexdiary.blogspot.com/2008/08/charting-example.html) which I changed to work with my data: public function seriesDataFunction( series:Series, item:UserRevenueHistoryVO, fieldName:String ):Object { var returnValue:Object = null; switch( fieldName ) { case xValue: returnValue = item.historyDt; break; case yValue: returnValue = 25; break; case minValue: returnValue = item.ceiling; break; } trace(fieldName + + returnValue); return returnValue; } Finally, heres the chart code. The Line Series work fine because Im using yField. If I switch the AreaSeries to yField instead of dataFunction, they work as well but I need to do some work with the ceiling data in this case. mx:CartesianChart id = chart width = 100% height = 100% showDataTips = true dataProvider = {Model.instance.acUserRevenueHistory} mx:series mx:AreaSeries id = floorSeries showDataEffect = {seriesEffect} displayName = Floor form = step dataFunction = dataFunc mx:areaStroke mx:Stroke weight = 1 alpha = 100 color = 0x00 / /mx:areaStroke mx:areaFill mx:SolidColor color=0xE9E4C7 alpha=1 / /mx:areaFill /mx:AreaSeries mx:LineSeries id = revenueSeries showDataEffect = {seriesEffect} displayName = Actual Revenue form = curve yField = revenue mx:lineStroke mx:Stroke weight = 2 alpha = 100 color = 0x00 / /mx:lineStroke /mx:LineSeries mx:LineSeries id = costOfProductionSeries showDataEffect = {seriesEffect} displayName = Cost of Production yField = costOfProd mx:lineStroke
RE: [flexcoders] Itemrenderers style?
I've had issues with this before that were solved by putting the style stuff inside updateDisplayList. I'm not sure if that's better or worse than putting it in commitProperties. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, June 10, 2009 11:53 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Itemrenderers style? Not sure what is going on, but the renderers get their styleNames set by the List class. I see you trying to set it in two other places as well. Not sure who's going to win in that case. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Tuesday, June 09, 2009 3:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Itemrenderers style? Below is my custom item renderer, but the styles in my style source do not show up when the itemrenderer is used in a datagrid. I have a tootlip style and it shows up every where in the app, but inside the itemrender. TIA ?xml version=1.0 encoding=utf-8? LinkButton xmlns=http://ns.adobe.com/mxml/2009 http://ns.adobe.com/mxml/2009 styleName=callOutHeader color=#00 maxWidth=270 label={da...@name} labelPlacement=left toolTip=IP Adress : {da...@ip} left=5 rollOver={event.target.setStyle('textDecoration', 'underline') } rollOut={event.target..setStyle('textDecoration', 'none')} Style source=assets/style/style.css / Script ![CDATA[ public function handleClick(e:Event):void{ navigateToURL( new URLRequest( true ? 'www.google.com' ), '_self' ); } override protected function commitProperties():void{ this.styleName = this.className; } ]] /Script /LinkButton No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.59/2165 - Release Date: 06/10/09 05:52:00
RE: [flexcoders] URL pound sign questions
Why not use some kind of SES URL parser like Ionic or apache's mod_rewrite and strip that off. Or you could set up a 404 page that attempts to look up the user based on whatever is after the '/' and pass the corresponding user info to Flex. I'd pass just the ID then grab the rest of the data as necessary through remoting. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of creativepragmatic Sent: Tuesday, June 09, 2009 12:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] URL pound sign questions Hello Everyone, I have 2 questions about the url pound sign: 1. Flex includes the pound symbol at the end of every URL (http://www.mysite.com/folder/# http://www.mysite.com/folder/ ). Is it possible to remove the pound symbol (http://www.mysite.com/folder/)? 2. In a social networking site, could 'user' in the URL, www.socialsite.com/user, be parsed by Flex to display that user's profile? This does not seem possible but a client asked for it. Thank you in advance for any useful insights, Orville No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.56/2162 - Release Date: 06/09/09 05:53:00
RE: [flexcoders] cannot convert flash.display::Bitmap to mx.core.IUIComponent.
addChild expects an mx.core.iUIComponent which Bitmap is not. You're data types are not matching up because you are adding everything to a Canvas. You'll probably need to write a custom component that contains a public property to store your bitmap children to. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of flexaustin Sent: Thursday, June 04, 2009 11:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] cannot convert flash.display::Bitmap to mx.core.IUIComponent. Why would I be getting this error? Canvas xmlns=http://ns.adobe.com/mxml/2009; width=100% height=100% maxHeight=125 maxWidth=125 Script ![CDATA[ import flare.util.Displays; import flash.display.BitmapData; // Take a bitmapdata object and shove it in the bitmapholder canvas public function shoveInBitmap( bm:BitmapData) : void { bitmapHolder.addChild( new Bitmap(bm) ); } // Clear out all children from bitmapholder canvas public function clearBitmap() : void { bitmapHolder.removeAllChildren(); } ]] /Script Group id=backGroundForZP width=100% height=100% left=0 top=0 Rect height=100% width=100% left=0 top=0 fill SolidColor color=0x00 / /fill stroke SolidColorStroke color=0xCC weight=2 / /stroke /Rect /Group Group id=mainBMPHolder width=80% height=80% left={ (backGroundForZP.parent.width - mainBMPHolder.width) / 2} top={ (backGroundForZP.parent.height - mainBMPHolder.height) / 2} /Group Canvas id=bitmapHolder backgroundColor=0xCC width=100% height=100% /Canvas /Canvas No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.53/2154 - Release Date: 06/04/09 05:53:00
RE: [flexcoders] FlexBuilder Question
In the Navigator pane there is an icon with arrows going left and right. It's called Link with Editor. I think that's what you want. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Libby Sent: Wednesday, June 03, 2009 10:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FlexBuilder Question What option is it that, when you close a file, causes the Navigator to switch focus back to the previous area you were in before you opened the file? It doesn't do this in FlexBuilder plugin in eclipse, but it does it in regular FlexBuilder and it drives me crazy! not that I had that far to go... :)
RE: [flexcoders] SuperTab Navigator Help
You'll probably have to override the createChildren method and place it where it needs to go. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ajayashish Sent: Monday, June 01, 2009 5:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SuperTab Navigator Help I am using supertab Navigator in one of the application i am designing. The idea is that... the user is asked for his education information in one tab.. which is must... if he has more information then he can click on the button and one more tab is added in the navigation. At present the button is placed at the bottom of the window. I want to give it a look like the IE7. Where the add button is placed next to the tabs. Can anyone help. Just to clear i am a UI designer and am not into a lot of coding. But yes i do understand it a bit as much is needed in the designing part. Please help and give me some examples if you have... -- View this message in context: http://www.nabble.com/SuperTab-Navigator-Help-tp23812236p23812236.html Sent from the FlexCoders mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.48/2148 - Release Date: 06/01/09 06:09:00
[flexcoders] AIR Computer Locking
Anyone know how to recognize if a computer is locked or not (Windows XP) in AIR? I have an app that runs on the taskbar by the time. It periodically displays notifications which are placed at the bottom right of the screen. I get that position using Screen.mainScreen.visibleBounds. This works just fine when the computer is unlocked. However, when the computer is locked, the visibleBounds does not recognize the existence of the taskbar, so when I unlock the computer, half the notification is below the task bar. I can think of a couple ways around this problem, I just wanted to know if there was an easy way to find out if the computer is currently locked or not. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103
RE: [flexcoders] AIR Computer Locking
That's how I'm going to work around it. I just thought it'd be cool if there was a way to natively grab certain system info (outside of the network stuff) Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Rick Winscot Sent: Monday, June 01, 2009 3:02 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] AIR Computer Locking What are your 'couple ways around this problem.' Are you thinking of using system idle? Is there a direct (easy) way to do this? None that I know of... typically these kinds of operations require a system call which would be OS specific and wouldn't be available to AIR without significant effort. Is there any reason you can't capture that point when the application starts and then re-use it for subsequent notifications? Cheers, Rick Winscot On 6/1/09 3:37 PM, Jake Churchill j...@cfwebtools.com wrote: Anyone know how to recognize if a computer is locked or not (Windows XP) in AIR? I have an app that runs on the taskbar by the time. It periodically displays notifications which are placed at the bottom right of the screen. I get that position using Screen.mainScreen.visibleBounds. This works just fine when the computer is unlocked. However, when the computer is locked, the visibleBounds does not recognize the existence of the taskbar, so when I unlock the computer, half the notification is below the task bar. I can think of a couple ways around this problem, I just wanted to know if there was an easy way to find out if the computer is currently locked or not. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.48/2148 - Release Date: 06/01/09 06:09:00
RE: [flexcoders] Run time Warning
Convert the XML to an arraycollection of VOs and make the entire VO class bindable. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Thursday, May 28, 2009 8:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Run time Warning warning: unable to bind to property 'ext' on class 'XML' (class is not an IEventDispatcher) It's coming from: mx:FormItem label=Ext required=true includeInLayout=false mx:TextInput id=ext focusOut=c.formatNumbers(ext, salesreps) width=10% text={salesreps.selectedItem.ext} restrict=0-9/ /mx:FormItem where salesreps is a DataGrid with an XML as a dataProvider. Any idea?
RE: [flexcoders] String To Date Conversion
new Date( Date.parse( your_string_variable ) ); Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of yogesh patel Sent: Tuesday, May 26, 2009 7:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] String To Date Conversion Dear all , I have a String like Tue May 26 18:12:55 IST 2009. How to convert this string into Date object ? Thanks Regards, Yogesh Patel _ Own a website.Get an unlimited package.Pay next to nothing.* Click here!. http://in.rd.yahoo.com/tagline_ysb_website/*http:/in.business.yahoo.com/ _ Explore and discover exciting holidays and getaways with Yahoo! India Travel Click http://in.rd.yahoo.com/tagline_Travel_1/*http:/in.travel.yahoo.com/ here! No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.39/2133 - Release Date: 05/25/09 08:16:00
RE: [flexcoders] dnd list items
http://www.axelscript.com/2008/03/26/creating-a-dragimage-from-your-uicomponent/ This is a blog post a friend of mine wrote about this. Specifically you want this method: public function getUIComponentBitmapData( target : UIComponent ) : BitmapData { var bd:BitmapData = new BitmapData( target.width, target.height ); var m:Matrix = new Matrix(); bd.draw( target, m ); return bd; } This gets bitmap data for whatever UIComponent you may be using for the renderer. Then, here’s his function to initiate dragging: private function doDrag(e:MouseEvent):void { //create an aliase for easier coding for the uicomponent var target:UIComponent = e.currentTarget as UIComponent; //http://www.actionscript.org/forums/showthread.php3?t=152558 var lvImageClone:Image = new Image(); lvImageClone.source = new Bitmap(getUIComponentBitmapData(target)); var lvDragSource:DragSource = new DragSource(); lvDragSource.addData( target, items ); // Call the DragManager doDrag() method to start the drag. DragManager.doDrag(target, lvDragSource, e, lvImageClone, 0, 0, dragImageAlpha); } What is important here is the last line. DragManager.doDrag takes the alpha as a parameter so you can have a fully transparent background. You’ll have to add the border yourself. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of thomas parquier Sent: Monday, May 25, 2009 5:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] dnd list items Hi, I'm using a list and custom items can be dnd'd. But the proxy has a white background with a grey border (which the itemrenderer doesnt have), and the whole proxy is a bit transparent. How to get a completely transparent background and no border ? thomas --- http://www.web-attitude.fr/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net mailto:sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.39/2133 - Release Date: 05/25/09 08:16:00
RE: [flexcoders] Value Objects
I think it's more for the code hints than anything J Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Rowe Sent: Tuesday, May 26, 2009 5:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Value Objects The use of 'VO's in Flex has always confused me, largely because as everyone I've spoken to has explained it, all a 'Value' object is is just a Model object - therefore WTF are they being referred to as 'VO's when 'Object' (or Model object) would suffice. My understanding is that the Object representation's deep structure references objects ByRef, but Transfer Objects reference nonserializable/non-native objects by id. That is, if you have Dog { id:int; parent:Dog; } the TO becomes DogTO {id:int; parentID:int;} I'm still yet to have anyone explain it to me in a way which contradicts this way of looking at things. --Tim _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Nate Beck Sent: Wednesday, 27 May 2009 7:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Value Objects Hey Mike, You'll see VO and DTO used interchangeably, I believe this is because Cairngorm used to use Data Transfer Object and then switched to Value Objects at some point. That being said... this article gives a very basic example of passing data to and from a server strictly typed, which is what you are trying to accomplish. http://flex.sys-con.com/node/505875 ( ick syscon... anyone know where the real article is? ) The key is the using the [RemoteClass(alias=java.package.Class)], so that when Flex serializes and de-serializes the object, it knows what corresponding class on the server your object represents. I seem to recall that when creating VOs (or DTOs) with a ColdFusion service, you needed to add extra methods to assist in the serialization. Maybe someone else add to this? I've been out of CF for a while now. On Tue, May 26, 2009 at 2:42 PM, mikeashields mikeashie...@hotmail.com wrote: I've come via a MySql to CF to Flex learning path. As such, 1.) my flex app uses mx:RemoteObject with source= pointing at a CFC (in wwwroot/test/cfcs directory). 2.) Said cfc calls a MySql STORED PROCEDURE which returns (say) a list of owners (id, firstname, lastname, etc). 3.) CF passes this back to Flex (apparently in the form of an Object?). 4.) Flex then binds this returned data to a mx:DataGrid. Now I've read extensively on VOs (as well as Cairngorm/MVC) yet don't fully understand either the why or the how. Assuming as basic an example as possible, I need to use AS3 to first define then instantiate an ownerVO, then a function to populate the ownerVO with the results of the RemoteObject then I populate the DataGrid with ownerVOs Comments and/or directions to appropriate learning resources appreciated. -- Cheers, Nate http://blog.natebeck.net
RE: [flexcoders] chart labelRotation problem
It seems like I’ve gotten this working before. At least on the axis I did but I had to embed the font for it to work. I think by default, Flex can only rotate the system font or one that’s embedded in the app. Here’s a link to the widget I did with this: http://www.sonburst.com/lfg/LFG401kAssetAccumulationChart/LFG401kAssetAccumulationChart4.html The right vertical axis has rotation applied. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Vikram Singh Sent: Saturday, May 23, 2009 5:32 AM To: Flex Coders Subject: [flexcoders] chart labelRotation problem Hello Friends, I am facing problem in labelRotation of ColumnChart. Can we use labelRotation with ColumnChart ?? If no, which one is suitable option? I want to display label (Text type as well as Numbers) of horizontal axis at 45 degree of rotation. any idea please Regards, Vikram _ Cricket on your mind? Visit the ultimate cricket website. Enter http://in.rd.yahoo.com/tagline_cricket_1/*http:/beta.cricket.yahoo.com now!
RE: [flexcoders] Re: LineChart Magic
Nice. I don't see a lot of charting examples but this is nice because I'm about to start a project plotting multiple items dealing with commodities and futures and I'm sure I'll need to customize it quite a bit. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jdizowat Sent: Friday, May 22, 2009 10:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LineChart Magic So I whipped out my wand and wrote a custom LineSegmentRenderer which extends ShadowLineRenderer. I used updateDisplayList to loop through the lineSeriesItems to draw my custom line. What I'm charting is surgical cases by day in a given month. What I wanted to show was a linechart that had weekends colored differently so we'd know why the case counts plateaued. I feel like I've just done my first bit of advanced coding in actionscript. I know this isn't very advanced, but hopefully it will help someone else trying to achieve a similar effect. I've left out some of the logic code, but you'll get the idea. var items:Array = (data as LineSeriesSegment).items; for (var i:int = 0; i items.length; i++) { // get the graphics object var g:Graphics = graphics; if (isWeekend) { // use weekend lineStyle g.lineStyle(3, 0x99, 1); } else { // use the weekday lineStyle g.lineStyle(2, 0xF2F2F2, 1); } // move to the starting point if we are at the first item if (i==0) g.moveTo(thisItem.x, thisItem.y); // draw if we are not the last item if (!lastItem) { g.lineTo(nextItem.x, nextItem.y); } } No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.36/2126 - Release Date: 05/22/09 06:03:00
RE: [flexcoders] Form validation in Flex?
It would probably be better to have all forms extend a base component and handle validation there. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markflex2007 Sent: Friday, May 22, 2009 10:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Form validation in Flex? Hi, I have many forms that need do form validation. Do you think if I can have a common Flex component to do all the form validation. Thanks for your help. Mark
RE: [flexcoders] Any ideas on how to embed a styleDeclaration swf compile time?
You wouldn't embed the SWF if you are loading it using StyleManager. The Stylemanager makes an HTTP request for the compiled CSS file. Here's an example of something that I did recently: var o:Object = Application.application.parameters; if( o.hasOwnProperty('sessionid') ) Model.instance.sessionID = o.sessionid; if( o.hasOwnProperty('site_id') ) Model.instance.site_id = o.site_id; if( o.hasOwnProperty('config') ) { Model.instance.configFile = o.config + .xml; Model.instance.styleDeclarations = o.config + .swf; } if( Model.instance.styleDeclarations ) StyleManager.loadStyleDeclarations(path_to_your_compiled_css_swf+Model.ins tance.styleDeclarations,true,true); I load a config parameter in from FlashVars and based on that I load styles. In order to compile the css to a SWF, just right click on it and select that option. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of a.scavarelli Sent: Thursday, May 21, 2009 3:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Any ideas on how to embed a styleDeclaration swf compile time? I am currently having to load one swf into a swf-loading application; but one of the swf's has a styling swf attached to it. The problem is that I can only load one swf and so I need the styling swf to be embedded into the main swf somehow. StyleManager.loadStyleDeclarations(theme.swf); [Embed(source=assets/workspace_rb_en_US.swf)] [Bindable] public var theme:Class; seems to only accept a url input so if i were to embed the swf how would I load it? Any help would be greatly appreciated as I don't know how to go about this :) No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.35/2124 - Release Date: 05/21/09 06:22:00
RE: [flexcoders] DataGrid highlight issues
Thanks for the reply. I was able to figure out what the problem was (at least what I think it was). The drawRowBackground method in the Datagrid class was somehow getting called twice after processing all the data that I mentioned. In the first call, it set the highlight color correctly for the selected rows. In the second call, it cleared the highlight colors out. Now, I'm stuck in Flex 2 for this project but I did some digging in the Flex 3 code (which is how I found this). I made some changes to the method from Flex 3 to make it compatible with Flex 2 and added some logic to simply grab the selectionColor and manually apply it in the rows with selected items. About your drawSelectionIndicator suggestion, it was being called and seemed to be working but the drawRowBackgrounds() method got called after that which somehow lost the selectionColor and cleared it out. Thanks for your help. I hopefully have a working solution now. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Tuesday, May 19, 2009 8:06 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DataGrid highlight issues Try setting selectedIndex=-1 before you reset it to the correct values. Maybe it thinks certain rows already are drawn? You can set a breakpoint in drawSelectionIndicator to see if it is trying to draw Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jake Churchill Sent: Tuesday, May 19, 2009 1:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid highlight issues I have a simple datagrid with double clicking enabled. Double clicking runs a long process of getting a bunch of data. The datagrid itself is not affected by any of the data changes. After the process is done, it is impossible to select an item in the datagrid. The selectedIndex and selectedItem both get set, just the highlight is missing so the user doesn't know that the row they clicked is selected. I tried creating a custom datagrid class extending datagrid and trapping Item Click events and manually calling updateDisplaylist() but that did not help. If I click and use a modifier key (SHIFT or CTRL) the highlight works. Does anyone have any ideas of how to fix this? Thanks in advance. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.34/2122 - Release Date: 05/19/09 06:21:00
RE: [flexcoders] Re: VO Issues
If you are using ColdFusion for your server, you can return a typed structure rather than registering the object mappings. Like this: Struct[__TYPE__] = com.rottmanj.model.vo.CompanyVO; Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Wednesday, May 20, 2009 10:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: VO Issues I think we'd need to see more code to help you more. Usually, something is being casted with as and it doesn't match the data type, it will throw null. I would try removing the class alias, and see what happens. Also, try calling registerClassAlias(com.rottmanj.model.vo.CompanyVO) In your startup, if that doesn't work, try just populating a generic object. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeremy Rottman rottmanl...@... wrote: I have written a vo that for some odd reason always comes up null when I try to populate it. Everything I have tried comes up with the same results. I could use an extra set of eyes to see if there is something small I am missing. Any help with this is greatly appreciated. CompanyVO: package com.rottmanj.model.vo { import mx.collections.ArrayCollection; [RemoteClass(alias=com.rottmanj.model.vo.CompanyVO)] [Bindable] public class CompanyVO { public var company_uuid:String = ; public var company_indst:String = ; public var company_class:String = ; public var description:String = ; public var isPriv:Boolean = false; public var alt_id:String = ; public var entity_name:String = ; public var create_who:String = ; // address vo public var address_id:String = ; public var address1:String = ; public var unit_type:String = ; public var unit_number:String = ; public var address2:String = ; public var city:String = ; public var state_prov:String = ; public var code_zip:String = ; public var country:String = ; public var type:String = ; public function CompanyVO() { } } } Populating the VO: [Bindable] public var companyVO:CompanyVO; private function sSelectCompany(event:ListEvent):void { companyVO = event.itemRenderer.data as CompanyVO trace(ObjectUtil.toString(companyVO)); } When a user clicks on a row in a datagrid, sSelectCompany is called via itemDoubleClick=sSelectCompany(event). This works perfectly fine. This is the result I get from tracing out the event.itemRenderer.data (Object)#0 address1 = address2 = address_id = alt_id = ALC05042009_0001 city = code_zip = company_class = Schol company_indst = Elect company_uuid = COM05042009_0001 country = create_who = description = This is agreat Company entity_name = Test Company isPriv = 0 mx_internal_uid = F1EC080D-498D-9825-761F-5DF5E33C39DF state_prov = type = unit_number = unit_type = I have tested my coldfusion code and it returns the proper VO. I have verified that case is not the issue. component com.rottmanj.model.vo.CompanyVO ADDRESS1 [empty string] ADDRESS2 [empty string] STATE_PROV [empty string] ALT_ID ALC05042009_0001 DESCRIPTION This is agreat Company CODE_ZIP [empty string] ADDRESS_ID [empty string] ISPRIV 0 CITY [empty string] COUNTRY [empty string] COMPANY_UUID COM05042009_0001 UNIT_NUMBER [empty string] ENTITY_NAME Test Company TYPE [empty string] COMPANY_INDST Elect UNIT_TYPE [empty string] COMPANY_CLASS Schol CREATE_WHO [empty string] No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.339 / Virus Database: 270.12.34/2122 - Release Date: 05/20/09 06:22:00
RE: [flexcoders] Call a Flex Function by Name
I would separate the classname out into another argument in your XML, so in your example that's not working, you'd have: menuitem id=OpenAlertsWindowMenuOption label=Open Alerts Window callbackClass=ProjectProperties callback=setValue arguments=ShowAlertsWindow, true / Then you'd have to dynamically instantiate that class and call the assigned method. I have a couple tutorials on my blog about doing this: http://jake.cfwebtools.com/2009/04/08/dynamically-instantiate-a-class/ http://jake.cfwebtools.com/2009/05/15/flex-dynamic-casting-of-data/ The 2nd one deals with data casting which might not be as relevant but I still do the class stuff dynamically. Here's an example of what this might look like for you: var className:Class = Class( getDefinitionByName( getQualifiedClassName( ProjectProperties ) ) ); var function:Function = className[setValue]; function.call(className[or null], parmaters.); FYI, this code is completely untested, just trying to give you an idea. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of edlueze Sent: Tuesday, May 19, 2009 6:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Call a Flex Function by Name I'm using a Menu control. Normally I'd catch the Menu's control event and then act on whatever selection the user made with something like a switch block. But I wanted to see if I could be more clever and embed the function name and parameters in the XML Menu data provider itself, like this: mx:XML id=xmlFormMenuOptions Menu id=MenuOptions menuitem id=AddNewChartMenuOption label=Add Chart... callback=AddNewChartButton_click arguments= / menuitem id=RenameChartMenuOption label=Rename Chart... callback=PopUpTextBox arguments=RenameChart, RenameChartButtonTextBox, {nameChartSelected} enabled={selectedChartingPanelTableCell} / menuitem id=DeleteChartMenuOption label=Delete Chart callback=PopUpCheckBox arguments=DeleteChart, DeleteChartButtonCheckBox enabled={selectedChartingPanelTableCell} / menuitem id=RaiseChartOrderMenuOption label=Raise Chart Order callback=RaiseChartOrderButton_click arguments= enabled={RaiseChartOrderButton.enabled} / menuitem id=LowerChartOrderMenuOption label=Lower Chart Order callback=LowerChartOrderButton_click arguments= enabled={LowerChartOrderButton.enabled} / menuitem id=OpenAlertsWindowMenuOption label=Open Alerts Window callback=ProjectProperties.setValue arguments=ShowAlertsWindow, true / menuitem id=ChartingPanelWhatAmIMenuOption label=What am I? callback=PopUpMessage arguments=ChartingPanelWhatAmIMenuOption, null / menuitem id=HelpMenuOption label=Help callback= / /Menu /mx:XML If you look at each menuitem/ you'll see a 'callback' attribute and an 'arguments' attribute. The arguments are comma-delineated that I need to parse into an Array and scrub: for example, by converting string references into real ones like this: if( this.hasOwnProperty(arg) ) arrayArguments[i] = this[arg]; I then have been successful in using the callLater function like this: callLater(this[callback], arrayArguments); So far so good - it works great! But I've hit a tiny snag. If the function is in a foreign class then everything falls apart. For example, this won't work: callback = ProjectProperties.setValue arguments = ShowAlertsWindow, true Because there is no such thing as this[ProjectProperties.setValue] the callLater function can't handle it. I can easily build a little stub but I'm hoping to keep things clean and elegant. I've been searching for a way to call-by-name in Flex but haven't found one (except for callLater). Is there a way I can do this?
[flexcoders]
I have a simple datagrid with double clicking enabled. Double clicking runs a long process of getting a bunch of data. The datagrid itself is not affected by any of the data changes. After the process is done, it is impossible to select an item in the datagrid. The selectedIndex and selectedItem both get set, just the highlight is missing so the user doesn't know that the row they clicked is selected. I tried creating a custom datagrid class extending datagrid and trapping Item Click events and manually calling updateDisplaylist() but that did not help. If I click and use a modifier key (SHIFT or CTRL) the highlight works. Does anyone have any ideas of how to fix this? Thanks in advance. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103
[flexcoders] DataGrid highlight issues
I have a simple datagrid with double clicking enabled. Double clicking runs a long process of getting a bunch of data. The datagrid itself is not affected by any of the data changes. After the process is done, it is impossible to select an item in the datagrid. The selectedIndex and selectedItem both get set, just the highlight is missing so the user doesn't know that the row they clicked is selected. I tried creating a custom datagrid class extending datagrid and trapping Item Click events and manually calling updateDisplaylist() but that did not help. If I click and use a modifier key (SHIFT or CTRL) the highlight works. Does anyone have any ideas of how to fix this? Thanks in advance. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103
RE: [flexcoders] Doing math with Date()
Look up Date on livedocs. You can access all parts of the date and I believe you can do natural comparison as well, i.e. if( date1 != date2 ). Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Laurence MacNeill Sent: Monday, May 18, 2009 9:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Doing math with Date() I have a list of events in a table, and I need to check and see if someone has selected two events that time-conflict with one another. How do I do math with the Date() function in Flex to see if two events occur at the same time or not? Are there other date-and-time functions in Flex? Thanks, Laurence MacNeill Mableton, Georgia, USA
RE: [flexcoders] Building RSS Reader in AIR
Im not sure itd be worth implementing cairngorm because an RSS reader would simply be an HTTPService call. Ive seen examples of this done in a single MXML file. If you wanted to have more interaction or save the feeds locally and then compare with the remote feed, you might want cairngorm There used to be an example on Adobes website of how to build an AIR application and it walked you through building an RSS reader. This was back when it was Apollo so Im not sure if youll still be able to find it but itd be worth the looking. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Benoit Villière Sent: Friday, May 15, 2009 4:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Building RSS Reader in AIR Hello everyone, Do you have any drawbacks/recommandations, even tutorials or Open Source apps to help me build my feed reader in AIR? I'm thinking about using Cainghorn as a MVC framework, as it looks to be the less unofficial one around here. Am I right? Thanks to anyone who'll take the time to read this post, and even more to people who'll answer! Good day, Benoit Villière
RE: [flexcoders] Source Not Found in Flex Builder Debug
It probably means the error is from a class in a SWC file. Are you importing any SWC files? This happens to me if I screw something up in Cairngorm or FlexLib (both SWC files) Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Monday, May 11, 2009 9:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Source Not Found in Flex Builder Debug When I run my app from the Builder I am getting an SDK run-time error that does not open a source file but instead shows: Source not found How do I fix it? Thanks
RE: [flexcoders] Bug in Flex scrolling?
My friend Axel Jensen wrote a blog about this including a fix for it. It has to do with the item renderers being re-used and re-populated by the list control. His example is a tileList with images pulled from a server. The blog is here: http://www.axelscript.com/2009/03/30/itemrenderer-tilelist-issues/ and the example is here: http://www.axelscript.com/2009/03/30/itemrenderer-tilelist-issues/ Hope it helps! Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Denis Sent: Tuesday, May 05, 2009 10:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Bug in Flex scrolling? Hi everybody, Very often, when I use the container/list/datagrid with scrolling, scrolling when dragging scrolling pad causes incorrect rendering of the controls that are being scrolled. If I use the up/down button (the scroll speed is slow), the rendering comes out OK. Whenever I use the scroll pad and scroll very slow, the rendering is also fine. Only when I scroll fast, the rendering is very often incorrect. Also, if i hover over combobox controls which are not rendered correctly, they redraw themselves in correct positions. Is this a bug in Flex or is this due to incorrect configuration of controls? How can this be fixed? Your help is greatly appreciated! Many thanks Denis No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.325 / Virus Database: 270.12.18/2098 - Release Date: 05/05/09 08:05:00
RE: [flexcoders] Violated by Sandbox
I ran into a similar issue recently (not sure if it's exactly the same but I was getting data from a different server). I had to do this: // set security to allow the calling domain (needed to get live data from dev server) Security.allowDomain(Model.instance.domain); Security.loadPolicyFile(Model.instance.domain + /crossdomain.xml); Model.instance.domain ended up being http://www.myproductionserver. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jdizowat Sent: Tuesday, April 21, 2009 3:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Violated by Sandbox So I just got violated by the Sandbox Violation #2148 Error. I'm trying to deploy my first flex app. I have an xml file used as a chart pod list. Each pod element has it's own web service url. It's the same url with a different chartID passed to get different data. Anyway, I've been debugging the application with the pods.xml file being loaded via HTTPService in src/pods.xml. The chart HTTPService calls were just to xml files as well for testing. I have the web service on the production server. I changed the pods.xml path from src/pods.xml to http://myProductionServer/site/pods.xml and I changed the individual chart urls in pods.xml to point to my .NET web service. I get the Sandbox Violation error on the server and even when I change everything back and debug. I have a crossdomain file with the * wildcard for the domain on the server. It's in my Inetpub/wwwroot folder. I have not changed any compiler settings. What's the best way to manage local to server deployments, and why do I still get the error locally since I changed everything back? Thanks, Jason No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.287 / Virus Database: 270.12.1/2071 - Release Date: 04/21/09 08:30:00
RE: [flexcoders] Re: Violated by Sandbox
Yes, I did it when I deployed it because I had to deploy it to a staging server before it went on the production server. I don't think you'd need it if you deploy it directly to production but if you're allowing the same domain the SWF was loaded from, it's not going to mess anything up. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jdizowat Sent: Tuesday, April 21, 2009 4:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Violated by Sandbox Do you do this in the deployed swf as well or just locally? Like I said, I'm getting that #2148 Sandbox Violation error locally now, too. Thanks for the help. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jake Churchill j...@... wrote: I ran into a similar issue recently (not sure if it's exactly the same but I was getting data from a different server). I had to do this: // set security to allow the calling domain (needed to get live data from dev server) Security.allowDomain(Model.instance.domain); Security.loadPolicyFile(Model.instance.domain + /crossdomain.xml); Model.instance.domain ended up being http://www.myproductionserver. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of jdizowat Sent: Tuesday, April 21, 2009 3:50 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Violated by Sandbox So I just got violated by the Sandbox Violation #2148 Error. I'm trying to deploy my first flex app. I have an xml file used as a chart pod list. Each pod element has it's own web service url. It's the same url with a different chartID passed to get different data. Anyway, I've been debugging the application with the pods.xml file being loaded via HTTPService in src/pods.xml. The chart HTTPService calls were just to xml files as well for testing. I have the web service on the production server. I changed the pods.xml path from src/pods.xml to http://myProductionServer/site/pods.xml and I changed the individual chart urls in pods.xml to point to my .NET web service. I get the Sandbox Violation error on the server and even when I change everything back and debug. I have a crossdomain file with the * wildcard for the domain on the server. It's in my Inetpub/wwwroot folder. I have not changed any compiler settings. What's the best way to manage local to server deployments, and why do I still get the error locally since I changed everything back? Thanks, Jason No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.287 / Virus Database: 270.12.1/2071 - Release Date: 04/21/09 08:30:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.287 / Virus Database: 270.12.1/2071 - Release Date: 04/21/09 08:30:00
RE: [flexcoders] Link/Hand Cursor
useHandCursor=true buttonMode=true Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of byte.sensei Sent: Thursday, April 16, 2009 9:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Link/Hand Cursor Flex seems to be sporadic at changing the cursor to a link/hand cursor when rolled over components that allow clicks/linking. I can't find any properties that make it easy to change the cursor on roll-over of an image that is a link, for example. I don't need custom cursors or anything, I'm just interested in changing the default cursor into a hand/link cursor when the mouse is over a particular UI component. What's the best way to accomplish this? No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.287 / Virus Database: 270.11.58/2062 - Release Date: 04/16/09 08:12:00
RE: [flexcoders] How can I receive the smallest value within an Array?
array = array.sort(); smallest = array[0]; Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Paul Andrews Sent: Thursday, April 16, 2009 11:44 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How can I receive the smallest value within an Array? Just for the future, most people would do this: for ( var i:int =1; iarray.length; i++) - Original Message - From: - - mailto:sailorse...@yahoo.com To: flexcoders@yahoogroups.com Sent: Thursday, April 16, 2009 5:06 PM Subject: Re: [flexcoders] How can I receive the smallest value within an Array? I got it: public function maxValue(array:Array):int { var value:int = array[0]; var i:int = new int(0); for (i; iarray.length; i++) { if (array[i]value) { value = array[i]; } } return value; } public function minValue(array:Array):int { var value:int = array[0]; var i:int = new int(0); for (i; iarray.length; i++) { if (array[i]value) { value = array[i]; } } return value; } _ From: sailorsea21 sailorse...@yahoo.com To: flexcoders@yahoogroups.com Sent: Thursday, April 16, 2009 11:56:01 AM Subject: [flexcoders] How can I receive the smallest value within an Array? Hi everyone, if I have an array as var boxSize:Array = new Array(25, 45, 32, 70, 50, 46, 80, 10); Is there a function that will return me the smallest value within that array? Thanks. -David No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.287 / Virus Database: 270.11.58/2062 - Release Date: 04/16/09 08:12:00
RE: [flexcoders] flex chart problem
You can set the type of vertical Axis you want to use. The LinearAxis class takes an interval property which might be what you are looking for. Here is an example (take from Adobe’s livedoc examples): http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_08.html mx:verticalAxis mx:LinearAxis title=linear axis minimum=10 maximum=100 interval=10 / /mx:verticalAxis Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Vikram Singh Sent: Friday, April 10, 2009 7:43 AM To: Flex Coders Subject: [flexcoders] flex chart problem chart having dynamic Yaxis and Xaxis range. max range is get from database. problem is if max. Yaxis is small like(3,2,1), it will display in decimal sequence. (1, 1.2, 1.4, 1.6, 1.8, 2, 2.2like) want to display only pure numbers in charts. I have tried many things but not get it. Is there any idea to get it?? how can i solve this? _ Add more friends to your messenger and enjoy! Invite http://in.rd.yahoo.com/tagline_messenger_6/*http:/messenger.yahoo..com/invite/ them now. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.285 / Virus Database: 270.11.51/2052 - Release Date: 04/10/09 06:39:00
RE: [flexcoders] Creating RemoteObject in ActionScript as dataProvider for ComboBox
What is your remote object returning?? Send your remote object's result to a function and then set your dataprovider. This will allow you to debug it and find out what is being returned. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of brad.bueche Sent: Thursday, April 02, 2009 6:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Creating RemoteObject in ActionScript as dataProvider for ComboBox I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.ComboBox; public var cbx:ComboBox = new ComboBox(); private function addPanelChild():void { var buttonName:String; cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,handleCreationComplete); cbx.labelField = Label; addChild(cbx); } private function handleCreationComplete(e:FlexEvent):void{ conn.getData(); } ]] /mx:Script mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject mx:Button id=btn1 label=test click=addPanelChild(); / /mx:Application
Re: [flexcoders] Number of connexions
It'd be based on the number of simultaneous connections allowed by the web server. The SWF is downloaded to the client's computer. Same with remoting calls. Connections generally don't last very long but it should be limited by the web server's connection settings. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 christophe_jacquelin wrote: Hello, How did we know the max number of connexions (users) that are possible on my flex application ? How to we compute it ? Thank you, Christophe,
Re: [flexcoders] Images
the space is probably caused by the default horizontal spacing in the HBox. Take that down to 0 and it'll probably work fine. Darrin Kay wrote: Ok I am stuck and I am sure it is simple. I have a HBox and I am I have a image in there, now I want to put another image in there and have it butt up against the first so it will look like one, but it puts a space between the images? Also how can I take a slice of a image (say a bar) and have it stretch to a certain width? thanks
Re: [flexcoders] try, catch, finally ...
I use try-catch but rarely do I find a need for finally. Finally is optional and it is only needed if you absolutely need some piece of code to run regardless of whether the code hits the try or the catch. Personally, I feel like try/catch blocks are just good practice. Maybe it was only the finally that was giving you trouble. Hard to say without the code. -Jake SJF wrote: Technically, it's good practice/professional to use try-catch-finally blocks in your actionscript logic. This ensures a robust, easily debugg-able application. However, can anyone comment if they actually use try-catch-finally or whether anyone is for or against it's use. I ask because I've received an application (which streams vidoe) that was blowing out numerous users CPUs to 100%. Upon further investigation, it appears that a netstream event is firing 20 times a second, and within the listener (listener function that is) for the event, there is a try-catch-finally block. I removed the try-catch-finally and CPU usage halved on my machine. Anyone care to comment for or against try-catch-finally and it's use. Steve.
Re: [flexcoders] Another on try-catch-finally ...
No, the try/catch block is a good thing. I'm not sure what updateListArray() does but there is always a potential for an error. What if bPollingDatabase is not yet created, then an error will be thrown. The empty catch simply means that IF an error happens, nothing special is done to correct it. SJF wrote: I have a head-cold (hence the possibly obvious answer to this question) and a block of code as such: function checkResponder(e:Event = null):void { try { bPollingDatabase = true; updateListArray(); } catch (err:Error) { // } } Now considering there is no code in the 'catch' block, there can be absolutely no benefit whatsoever to using try-catch-finally in the above instance. Is this correct?
Re: [flexcoders] Air upload - File IO Error - port issue
Looks like the server might not be set to listen on port 80 if it's not working in the browser either. It is possible to do port forwarding at the domain level so maybe port 80 is somewhere being forwarded and is actually hitting another port on the server. If that's not the case then you've stumped me too :) moyosaned wrote: While uploading a file with File.upload I'm getting a 400 bad request. Now sniffing the activity, it show it's going to www.myserver.com:80/upload.php Now throwing this (www.myserver.com:80/upload.php) in the browser gives a not found and using www.myserver.com/upload.php will give me the feedback I need. Any ideas how to solve this?
Re: [flexcoders] adding an event listener (in MX:Button) to pass a parameter and an Event Object
pass event to your function as well. It is of type MouseEvent and is already available to the click parameter, just needs to be passed in like this: MX:Button id=someButton click=fooFunction(event,barParameter)/ tom s wrote: I have a button defined in Flex that passes a parameter to a function when clicked MX:Button id=someButton click=fooFunction(barParameter)/ But I want to know the id of the button that triggered the event whilst executing fooFunction. I know that if I register an event listener in AS then I can: someButton.addEventListener(MouseEvent.CLICK, fooFunction) (As I will be able to get at it via the target of the Event) But how do I setup the event listening (in AS or MXML) so that I can both pass a parameter AND know the target? thanks tom
Re: [flexcoders] Looking for what this[iscalled]
I call it array notation but I'm not sure if that's technically correct Nate Pearson wrote: What's it called when I call something by using a string? Like when I do this[someObject].height = 10 someObject is a string. Thanks! -Nate
Re: [flexcoders] Cairngen UM Extensions on Vista
To create event/command sequences Tom Chiverton wrote: On Wednesday 05 Nov 2008, Jake Churchill wrote: I'm using the Cairngorm-2.2.1-Extensions-r76.swc and using the build.xml ant scripts in cairngenum. If you have the .swc, why are you trying to run their ant task anyway ?
Re: [flexcoders] Cairngen UM Extensions on Vista
If there's another way, let me know. I'm not familiar enough with cairngen or cairngenum to know another way around it without using the ant tasks Tom Chiverton wrote: On Thursday 06 Nov 2008, Jake Churchill wrote: To create event/command sequences Why does this mean running their ant task ?
Re: [flexcoders] Re: ArryCollection Columns.
You might be able to use flash.utils.describeType() to get at the properties of the AC if you don't know them. Although, what I generally id convert the query to a structure in which case you would be able to return an array or structure key containing the columns. Paul Kukiel wrote: No. It's a simple array collection. Ie a ColdFusion query being passed back to Flex. Eg Select firstName, lastName, age From person So in flex it's Ac[0].firstName = Paul ect But I don't know ac[0].columName so is there a way to loop over the properties of the object at ac[0]? Paul *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *valdhor *Sent:* Thursday, 6 November 2008 3:25 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: ArryCollection Columns. Are you working with multi-dimensional arrays or arrays of objects? If the former, see the docs: http://livedocs.adobe.com/flex/3/html/help.html?content=10_Lists_of_data_5.html#119820 http://livedocs.adobe.com/flex/3/html/help.html?content=10_Lists_of_data_5.html#119820 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Paul Kukiel [EMAIL PROTECTED] wrote: I wish to loop over an array collection and access all the elements (columns) so the arrayCollection looks like [1].columnOne [1].columnTwo [1].columnThree [2].columnOne [2].columnTwo [2].columnThree I need to loop over the rows and columns, but don't know the column names, any ideas. The array collection data is a query returned from ColdFusion. Paul.
Re: [flexcoders] Cairngen UM Extensions on Vista
I'm using the Cairngorm-2.2.1-Extensions-r76.swc and using the build.xml ant scripts in cairngenum. I'm trying to use this in my own application. As I said everything else works in the ANT scripts, just not this one target due to prompting. Tom Chiverton wrote: On Tuesday 04 Nov 2008, Jake Churchill wrote: I am trying to use Cairngen with UM Extensions to create-sequence on Windows Vista. I am getting an error saying: java.lang.UnsatisfiedLinkError: no swt-win32-3346. The other build.xml targets work fine but this one has prompting. Are you building the UM .swc, or your own application ?
[flexcoders] Cairngen UM Extensions on Vista
I am trying to use Cairngen with UM Extensions to create-sequence on Windows Vista. I am getting an error saying: java.lang.UnsatisfiedLinkError: no swt-win32-3346. The other build.xml targets work fine but this one has prompting. Everything I find indicates this is related to Vista but I have yet to find a fix. I've tried all of the different packages that they recommend installing and moving the swt DLL file to the system32 directory but still no luck. Does anyone have any ideas? Thanks! -Jake Churchill
Re: [flexcoders] Distributing AIR applications on Widows and Mac
Check out this article by David Tucker. I used this very one and it worked great! http://www.adobe.com/devnet/air/articles/air_badge_install.html Here's another: http://www.adobe.com/devnet/air/articles/badge_for_air.html -Jake Churchill jenonflex wrote: Hi All, I want to distribute my AIR application packaged along with the AIR installer. I heard this is possible, but can anyone help me on how this can be done, and what tools to use etc both on Windows and Mac. Thank you, regards, -Jen
Re: [flexcoders] mx:Metadata?
I usually have seen used and use it like this: mx:Metadata [Event( name=eventName,type=fully.qualified.classpath )] /mx:Metadata markflex2007 wrote: Hi, I confuse with mx:Metadata now I have the following mx:Metadata in code mx:Metadata [Event('add')] [Event('update')] [Event('cancel')] /mx:Metadata Do you think the following code work with the mx:Metadata? dispatchEvent( new Event( add ) ); Thanks Mark