RE: [flexcoders] Re: WebService returning results, but event.result is null
Interestingly enough, setting the resultFormat to e4x does indeed properly populate the event.result. I'm guessing this has got to be some sort of parsing error in the WebService classes attempts to marshal the results as objects. Has anyone else run across this issue? Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 5:59 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null Something like: proxy.find.resultFormat = e4x; Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeff Tapper Sent: Friday, January 16, 2009 5:49 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null Ok,so, given im making a call like this: public function getMediaItems(eventId:Number):AsyncToken{ var req:Object = new Object(); req['event-id'] = eventId; var token:AsyncToken = proxy.find(req); token.addResponder(responder); return token; } How do I get a handle on the operation? (in this case, it's the find method of my service, proxy. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 5:31 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null Well, actually it is at the operation/method level. The default is object, which converts your soap xml into a tree of dynamic objects, and this has some issues. Change it to e4x, which will preserve the xml, to see if the behavior changes. Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeff Tapper Sent: Friday, January 16, 2009 5:20 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null I don't believe the mx.rpc.soap.WebService class has a resultFormat property, but, if it does, im using its default. I've only seen that property on HTTPService, not WebService Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 3:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null And what is your resultFormat? Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null HmCould you post the Soap response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
[flexcoders] WebService returning results, but event.result is null
Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom? Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of shawnsvacha Sent: Friday, January 16, 2009 12:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TextEvent.TEXT_INPUT preventDefault not working on Linux Has anyone run into this before? On Linux the preventDefault event for a TextEvent.TEXT_INPUT event does not hide the characters entered. This works fine on OSX and Windows, but not Linux. Here is example code: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:ns1=* ns1:CustomTextField x=10 y=10 width=500 height=22/ /mx:WindowedApplication package { import flash.events.TextEvent; import flash.text.TextField; import flash.text.TextFieldAutoSize; import flash.text.TextFieldType; import mx.core.UIComponent; public class CustomTextField extends UIComponent { public function CustomTextField() { var _customTF:TextField = new TextField(); _customTF.x = 0; _customTF.y = 0; _customTF.width = 480; _customTF.height = 22; _customTF.type = TextFieldType.INPUT; _customTF.multiline = true; _customTF.autoSize = TextFieldAutoSize.LEFT; _customTF.wordWrap = true; _customTF.maxChars = 1024; addChild(_customTF); _customTF.addEventListener(TextEvent.TEXT_INPUT, dontShowTextInput); } private function dontShowTextInput(e:TextEvent):void { e.preventDefault(); } } } image001.jpgimage002.jpg
RE: [flexcoders] Re: WebService returning results, but event.result is null
Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
RE: [flexcoders] Re: WebService returning results, but event.result is null
I don't believe the mx.rpc.soap.WebService class has a resultFormat property, but, if it does, im using its default. I've only seen that property on HTTPService, not WebService Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 3:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null And what is your resultFormat? Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null HmCould you post the Soap response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
RE: [flexcoders] Re: WebService returning results, but event.result is null
Nothing so simple as that, god, I wish it was that easy. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 5:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null The operation does and I believe it defaults to object. It has to be something simple. Have you checked the parameter on the resultEvent function? Maybe you have E and are calling e.result? I'm grasping at straws here. I have never seen event.result as null. Does WebService have an event.lastresult? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: I don't believe the mx.rpc.soap.WebService class has a resultFormat property, but, if it does, im using its default. I've only seen that property on HTTPService, not WebService Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 3:41 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null And what is your resultFormat? Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 3:18 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null HmCould you post the Soap response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtapper@ From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
RE: [flexcoders] Re: WebService returning results, but event.result is null
Ok,so, given im making a call like this: public function getMediaItems(eventId:Number):AsyncToken{ var req:Object = new Object(); req['event-id'] = eventId; var token:AsyncToken = proxy.find(req); token.addResponder(responder); return token; } How do I get a handle on the operation? (in this case, it's the find method of my service, proxy. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 5:31 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null Well, actually it is at the operation/method level. The default is object, which converts your soap xml into a tree of dynamic objects, and this has some issues. Change it to e4x, which will preserve the xml, to see if the behavior changes. Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeff Tapper Sent: Friday, January 16, 2009 5:20 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null I don't believe the mx.rpc.soap.WebService class has a resultFormat property, but, if it does, im using its default. I've only seen that property on HTTPService, not WebService Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, January 16, 2009 3:41 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: WebService returning results, but event.result is null And what is your resultFormat? Tracy Spratt Lariat Services Flex development bandwidth available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 16, 2009 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null HmCould you post the Soap response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper j...@... wrote: Oddly enough, I'm getting a ResultEvent, no faults at all. Jeff Tapper Senior Consultant digital primates IT Consulting Group R Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@... From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of valdhor Sent: Friday, January 16, 2009 2:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: WebService returning results, but event.result is null Are you getting a faultevent or a SoapFault? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Tapper jeff@ wrote: Has anyone dealt with situations where a webservice call is indeed completing properly, and the results can be seen in service capture, and the raw SOAP can be seen in event.message.body, but yet the event.result is coming through null? I'm battling that very issue now. Any advice or words of wisdom?
[flexcoders] what is the minimum version of FP supported by flex 3.2?
Will flex 3.2 apps run in FP 9.0.115, or do they require 9.0.124, anyone know? Jeff Tapper» Senior Consultant digital primates IT Consulting Group ® Phone: 847.824.7800, x222 | Fax: 847.655.2867 jtap...@digitalprimates.net
FW: [flexcoders] Re: How to group the displayObjects
The Flex 3 version of the book is indeed out now! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Thursday, April 03, 2008 2:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to group the displayObjects --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I can't really take the time to walk you through this. Hopefully others can help. The dragImage is basically a copy of an item, or a container that contains multiple copies of an item. You can draw just about anything as your dragImage. There's a good example in Flex 2 Training from the Source (not sure if the Flex 3 version is out yet) that shows creating a dragImage. HTH; Amy image001.jpgimage002.jpg
Re: [flexcoders] do you need CS Degree to get a job?
as one who is frequently in a position to hire kick-ass developers, i personally dont care if you have a CS degree or not. In our company most of our top people have either no degree, or a degree in something other than CS. This is not to say a CS degree isnt a worthwhile endeavor, but for me, as one who is frequently looking to hire developers, it is not something which enters into the equation for me at all. At 10:38 PM 2/19/2008, you wrote: Doug McCune wrote: The benefit of higher education is one question, but is largely unrelated to the question originally posed, which had to do with whether or not a CS degree would make the applicant more hireable. No question about it; having a degree will make you more hireable. The HR + Recruiters (AKA Gatekeepers) don't know anything about great code samples or how to evaluate the quality of your blog. For many of the jobs out there, you need to convince the gatekeepers to let you to speak to the People who can really evaluate your skills. And they need to use some form of cut-off to whittle down the number of applicants. A degree in a related field is one item. Certification is another. -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert http://www.adobe.com/communities/experts/members/JeffryHouser.htmlhttp://www.adobe.com/communities/experts/members/JeffryHouser.html My Company: http://www.dot-com-it.comhttp://www.dot-com-it.com My Podcast: http://www.theflexshow.comhttp://www.theflexshow.com My Blog: http://www.jeffryhouser.comhttp://www.jeffryhouser.com Jeff Tapper Senior Technologist Digital Primates IT Consulting Group [EMAIL PROTECTED] http://www.digitalprimates.net
Re: [flexcoders] Tools to monitor flex network traffic for debugging SOAP calls and responses (kinda urgent)?
while not free, I've found service capture to be incredibly valuable. At 07:20 PM 2/17/2008, you wrote: Firebug plugin for firefox or wireshark. Both are free Sent via BlackBerry from T-Mobile -Original Message- From: Josh McDonald [EMAIL PROTECTED] Date: Mon, 18 Feb 2008 10:13:28 To:flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: [flexcoders] Tools to monitor flex network traffic for debugging SOAP calls and responses (kinda urgent)? Hi Guys, Is there something good out there I can use to view the raw XML request/response data going to and from the server when making SOAP calls? A vcr proxy? An option in the debugger I don't know about? -Josh -- Therefore, send not to know For whom the bell tolls, It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Jeff Tapper Senior Technologist Digital Primates IT Consulting Group [EMAIL PROTECTED] http://www.digitalprimates.net
Re: [flexcoders] Access TWAIN scanners from Air
a colleague of mine has written an app to do this with AIR and Artemis and a handful of java classes. its pretty sweet. If used properly, AIR is anything but a joke. At 08:43 PM 1/20/2008, you wrote: Javier de la Torre wrote: Hi all, I would like to access the TWAIN API from an AIR application. I have been looking around and the only way I have found it is by using Artemis. Although accessing from Java would be great, there are great APIs out there, the Artemis connection looks very preliminar and with a deploying process that can be too hard. I have understood also that there is no way to run command line processes from AIR in thi version. Another idea I have heard is to create an external program that will provide me access to TWAIN through sockets connections. But then I would have to distribute the two things together, set up services in windows, uff... it sounds is gonna be complicate to distribute such a software. Any other idea? Don't use air. Its pretty much useless for this type of app as far as i can tell. It's a bit of a bad joke really. Pity. cheers, - shaun Jeff Tapper Senior Technologist Digital Primates IT Consulting Group [EMAIL PROTECTED] http://www.digitalprimates.net
Re: [flexcoders] setFocus on TextInput
to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/http://docs.yahoo.com/info/terms/. *Yahoo! Groups Sponsor* ADVERTISEMENT http://us.ard.yahoo.com/SIG=129jr0i3f/M=295196.4901138.6071305.3001176/D=groups/S=1705007207:HM/EXP=1090894624/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.comhttp://us.ard.yahoo.com/SIG=129jr0i3f/M=295196.4901138.6071305.3001176/D=groups/S=1705007207:HM/EXP=1090894624/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com *Yahoo! Groups Links* * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/http://docs.yahoo.com/info/terms/. Yahoo! Groups Sponsor ADVERTISEMENT http://us.ard.yahoo.com/SIG=129m79dkc/M=295196.4901138.6071305.3001176/D=groups/S=1705007207:HM/EXP=1090897521/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com click here -- Yahoo! Groups Links * To visit your group on the web, go to: * http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group/flexcoders/ * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. Jeff Tapper Founding Partner Tapper, Nimer and Associates Inc. [EMAIL PROTECTED] (718) 576-1775 (w) (718) 228-9365 (f)
Re: [flexcoders] www.flexgrocer.com down
The site is back up and running. Sorry for the inconvenience... At 08:29 PM 2/21/2007, Jeff Tapper wrote: April - We are working on getting the site back up, but in the mean time, you should be able to work with the xml files on the cd in the back of the book. At 09:47 AM 2/21/2007, April wrote: I'm working through the Adobe Flex 2 Training from the Source book and sometime yesturday the www.flexgrocer.com site went down making it impossible for me to run and test my applications. I've contacted Peachpit Press although I'm not sure if they were the correct contact, but I couldn't find anything on the adobe site. Does anyone have any idea on the status of getting this site back up - or who I should contact to let them know it is down? Thanks! April Jeff Tapper Founding Partner Tapper, Nimer and Associates Inc. mailto:jeff%40tappernimer.com[EMAIL PROTECTED] (718) 576-1775 Jeff Tapper Founding Partner Tapper, Nimer and Associates Inc. [EMAIL PROTECTED] (718) 576-1775
Re: [flexcoders] www.flexgrocer.com down
April - We are working on getting the site back up, but in the mean time, you should be able to work with the xml files on the cd in the back of the book. At 09:47 AM 2/21/2007, April wrote: I'm working through the Adobe Flex 2 Training from the Source book and sometime yesturday the www.flexgrocer.com site went down making it impossible for me to run and test my applications. I've contacted Peachpit Press although I'm not sure if they were the correct contact, but I couldn't find anything on the adobe site. Does anyone have any idea on the status of getting this site back up - or who I should contact to let them know it is down? Thanks! April Jeff Tapper Founding Partner Tapper, Nimer and Associates Inc. [EMAIL PROTECTED] (718) 576-1775 attachment: 57a2094.jpg
Re: [flexcoders] Can drag-able content within a container, update it's Scrollbars?
I think i need to respectfully disagree on this. For the type of panning of elements within a container, i think startDrag and stopDrag should suit his needs nicely. At 06:04 AM 2/4/2007, Michael Schmalle wrote: Hi Mike Check out the http://Panel.asPanel.as class for the standard way of dragging things in Flex. Don't use startDrag() and stopDrag(). You will see addEventListener() to the systemManager and stage. in the sm.MOUSE_MOVE is where your actual instance logic goes. As far as your scroll bars question; Put the SWFLoader in a canvas and you should get the desired effect as you pan. but... as I think about this more, there is something missing. Let me know what this info does for you. Peace, Mike On 2/4/07, Mike Anderson mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hello All, I have a Box Component, that contains a SWFLoader. When the SWFLoader's Content grows beyond the bounds of the Box Container, I have the Scrollbars automatically appear. This particular content that the SWFLoader houses, is always going to be a Map. Obviously, when viewing Maps, Panning and Zooming are commonplace - and I want to provide the users the ability to drag the Map Content around within the Box Component. Since I come from the Flash World, startDrag() and stopDrag() are very familiar commands to me, and of course those were the first Methods that came to mind, when making my Maps drag-able within my Flex App. Is startDrag() and stopDrag() still the preferred methods of moving content around on the screen, when it comes to Flex Apps? Now, I know there is the DragManager.as Class that comes bundled with Flex - but isn't that more for the purpose of Dragging one Component's Content, into another one? And then keeping track of any Data that should get sent along, whenever the Drop Event takes place? In this particular case, I just want to be able to Pan the Maps around. Will startDrag() and stopDrag() suffice in this instance? Also, is there a way where the Scrollbars on the Box Container, can sense the Content is being moved around, and to update the Scrollbar positions accordingly? How would I go about doing something like that? Thanks in advance, for any help you can offer. Mike -- Teoti Graphix http://www.teotigraphix.comhttp://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.comhttp://www.flex2components.com You can find more by solving the problem then by 'asking the question'. Jeff Tapper Founding Partner Tapper, Nimer and Associates Inc. [EMAIL PROTECTED] (718) 576-1775
Re: [flexcoders] Re: Adding columns in DataGrid dynamically
something like this should work (note, this code is off the top of my head and not tested) var colArray:Array = dg.columns; // remove column 3 var newColArray = colArray.splice(3,1); dg.columns = newColArray; At 12:00 PM 2/4/2007, sanjaypmg wrote: Hi, How can I delete a colum dynamicall? Thanks Sanjay --- In mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: You can reassign the grid's columns property to accomplish this. Array methods like push don't emit the events necessary for the component to detect that the array has changed, thus the component will not update. Try: public function populateData() { // code snipped var newCols: Array = []; newCols.push(new DataGridColumn(col1)); newCols.push(new DataGridColumn(col2)); dataGrid_columns = dataGrid_columns.concat(newCols); ... Reassigning dataGrid_columns to the new Array returned by the concat () method ought to be detected by the component and cause it to update. --- In mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com, Paul Neyman paul@ wrote: Is it possible to add DataGrid columns dynamically, after DataGrid has been initialized? I have the following scenario: User loads swf file with DataGrid component in it, and passes a url as parameter. ActionScript code makes an HttpRequest call to this url, receives Xml data, parses it into columns and displays it in the DataGrid. I do not know in advance, how many columns there will be. I tried to make 'columns' array bindable and add instances of DataGridColumn into it on the fly, but that has no effect on the DataGrid. While DataGrid is able to figure out itself, how many columns there are in a data provider, it sorts them in alphabetical order. I need to set my own order. Here's a code snippet: MXML: mx:DataGrid dataProvider={dataGrid_data} id = m_dataGrid columns={dataGrid_columns} initialize=makeCall () /mx:DataGrid mx:script [Bindable] public var dataGrid_data:ArrayCollection = new ArrayCollection(); [Bindable] public var dataGrid_columns:Array = new Array(); public function makeCall() { // code snipped ... populateData(dataGrid_data, dataGrid_columns); // code snipped } public function populateData() { // code snipped dataGrid_columns.push(new DataGridColumn(col1)); dataGrid_columns.push(new DataGridColumn(col2)); ... // add data to provider } While provider works perfectly, columns array does not affect the DataGrid at all. Is there any workaround for this? Thanks a lot. Jeff Tapper Founding Partner Tapper, Nimer and Associates Inc. [EMAIL PROTECTED] (718) 576-1775
[flexcoders] Omit Trace Statements?
Is there some compiler argument i can use to force the compiler to omit trace statements? I know Flash Studio always had that as an option, but in digging around in the docs, i cant find the equivalent for flex. can anyone point me in the right direction? thanks Jeff Tapper [EMAIL PROTECTED] Founding Partner Tapper, Nimer and Associates Inc.
[flexcoders] re:Creating SVG xml from within flex
nevermind, i figured it out shortly after hitting send... [EMAIL PROTECTED] = colorGroup.selectedValue.toString(); [EMAIL PROTECTED] = none; path[@stroke-width]= lineThickness.selectedLabel; == im creating a flex widget which converts flash player drawing api graphics into svg. So far, this has gone well, but i hit an ugly snag. it seems the svg spec uses stroke-width as the attribute to specify the width of a line, however, the flex compiler doesn't allow for hyphens in an attribute. does any one know of a work around for this, either on the flex side (tricking the compiler into letting me add [EMAIL PROTECTED] lineThickness.selectedLabel) or on the SVG side (any other way to specify a lineWidth which doesnt involve a hyphenated attribute? as always, any help greatly appreciated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Creating SVG xml from within flex
im creating a flex widget which converts flash player drawing api graphics into svg. So far, this has gone well, but i hit an ugly snag. it seems the svg spec uses stroke-width as the attribute to specify the width of a line, however, the flex compiler doesn't allow for hyphens in an attribute. does any one know of a work around for this, either on the flex side (tricking the compiler into letting me add [EMAIL PROTECTED] lineThickness.selectedLabel) or on the SVG side (any other way to specify a lineWidth which doesnt involve a hyphenated attribute? as always, any help greatly appreciated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] why does labelFunction need an...
it wants to pass you a reference to the dataGridColumn which is being rendered... At 04:49 PM 10/12/2006, Clint Tredway wrote: an empty second param? I created a labelFunction for a datagrid column to format a date and i got an error saying that the function expected 2 parameters but only got 1. In the help docs inside FB, the 1 labelFunction example I found only passed in 1 param... so why is it telling me it needs 2? I put an param that is empty and the error went away. I am just curious as to why this happened.. thanks -- diabetic? http://www.diabetesforums.com Albert Einstein - It's not that I'm so smart, it's just that I stay with problems longer. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Webservices from actionscript...
Take a look on my blog (http://jeff.mxdj.com), a few different examples there (search on as3 datamanager) Sent with Wireless Sync from Verizon Wireless Original Message From: Ken Bromberger [EMAIL PROTECTED] Date: 9/25/06 8:01 pm To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subj: [flexcoders] Webservices from actionscript... Hi!, Does any one have some good references/examples on calling webservices from actionscript? I would like to see some examples sending parameters etc to the webservice using actionscript. - Ken -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Can we run our existing Flex1.5 application on Flex2.0 platform?
not sure if anyone answered you on this or not, but the short answer is no. some level of code modification is neccessary. how much depends on the application itself. At 03:16 AM 9/21/2006, anjicn wrote: Can we run our existing Flex1.5 application on Flex2.0 platform without extra code-level modification? In other words, can we run the flex1.5 allplication just modifying some relevant configuration file? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] compiler warnings with [Bindable] internal
Is there some restriction about using [Bindable] on internal properties? It seems that i get compiler warnings if i have [Bindable] properties maked as internal, where if i mark the same property as either public or private, there is no warning. Is this a bug, or are we not meant to allow internal bindable properties? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Panel Windows Title Icon
Absolutely. If you look at the Panel subclass code from my blog that I mentioned in my previous post, you can see how i'm doing it for a number of projects. , At 09:11 AM 9/15/2006, mthielman11 wrote: One question I have had is, is it possible to put a button bar or something of that nature in the title bar area? It would be nice to use that space for a series of icon buttons or something. --- In flexcoders@yahoogroups.com, jgraham_us [EMAIL PROTECTED] wrote: You can also extend the Panel class that will give you access to the protected titleBar component of Panel, you can then do something like this. titleBar.addChild( yourTitleIcon ); You might also have to override layoutChrome and position the icon within the titleBar. --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanList@ wrote: I am working on styling my application, and I have searched throught the live docs/help files for flex. But I cant seem to find how to set the titleIcon to the right side of the window. Is there anyway to do this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] AutoSuggest TextField
I've built type-ahead boxes for clients before. to do it well requires a well architected and ultra fast back end. At 07:34 AM 9/14/2006, DJ Lift wrote: Hey there, Has anyone seen any auto suggest style text fields for flex? Similar to what google is doing? Thanks, mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Panel Windows Title Icon
take a look at my MaxRestrorePanel class... http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm At 08:00 PM 9/14/2006, Jeremy Rottman wrote: I am working on styling my application, and I have searched throught the live docs/help files for flex. But I cant seem to find how to set the titleIcon to the right side of the window. Is there anyway to do this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] DragEnter and Panels
I am still battling a drag drop issue with panels. It seems, that when the parent of a panel is a valid drop target, but the panel is not, that the panel's DragEnter event isn't fired (which ultimately changes the cursor), until the dragged element crosses over a child of the panel. This is causing us some odd issues. One pattern I've found to this bug is that it only appears when the Panel is launched via the popup manager. Here is a simple test case: TestPanel.mxml ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; title=Lalala width=400 height=300 dragEnter=doDragEnter(event) mx:Text width= 350 text=jadfh asdfkjh akjfahkjh asdkfh kasdjfhk ajhfkj adhfkjhasdfk jhasdfkj ahs dfk jsd hf kjasd hfkja sdhfk jsdah fkj sdh k kfjsdhf/ mx:TextInput/ mx:Label text=lalala/ mx:Script ![CDATA[ import mx.events.DragEvent; private function doDragEnter(event:DragEvent):void{ trace(this.className + .doDragEnter); } ]] /mx:Script /mx:Panel MainApp.mxml == ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=popup() dragEnter=DragManager.acceptDragDrop(event.target as IUIComponent) mx:Script ![CDATA[ import mx.managers.PopUpManager; import mx.core.IUIComponent; import mx.managers.DragManager; import mx.core.DragSource; private function popup():void{ var win:TestPanel = PopUpManager.createPopUp (this,TestPanel,false) as TestPanel; win.x = 200; win.y= 200; } private function doDrag(event:MouseEvent):void{ var ds:DragSource = new DragSource(); var dragInitiator:*= event.currentTarget; ds.addData(data,format); DragManager.doDrag(dragInitiator,ds,event); } ]] /mx:Script mx:Box backgroundColor=#ff mouseDown=doDrag(event) height=50 width=50/ /mx:Application If you run this app, you'll notice that dragging the red box over the borders or title area do not show the appropriate feedback (red x cursor), but it will, if you drag over the children of the panel (Text, TextInput or Label). Has anyone found a valid work around for this? Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Anyone actually able to save data from flex
well, the server side method needs to be built to accept the xml. in our case, we found it easier to build webservice methods and pass it a single xml argument, rather than working with a servlet/.asp page to accept it as an http get/post. I'm sure you could do it with httpService, but i havent personally done it that way. At 10:32 AM 8/30/2006, mthielman11 wrote: do you mind me asking how. We can not even get this very simple sample to work. ?xml version=1.0 encoding=utf-8? mx:Application pageTitle=Flex 2 Style Explorer xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% mx:HTTPService id=srvsave url=http://0.0.0.4:8080/ZebraServer/store?a=b; method=POST resultFormat=e4x contentType=application/xml / mx:XML id=dataModel format=e4x physician testabc/test /physician /mx:XML mx:Script ![CDATA[ import mx.controls.Alert; //public var xmldata = parentDocument.parentDocument.phyRequest.lastResult; private function storePhysician_Basics():void { srvsave.send(dataModel); } ]] /mx:Script mx:Button label=Save click=storePhysician_Basics();/ /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Anyone actually able to save data from flex
I do this all the time without any issues, to both java and .net backends. No FDS involved, just pushing xml back and forth with WebServices. At 10:08 AM 8/30/2006, mthielman11 wrote: I started another topic on this below, but this is a more general question. We have been pulling our hair out trying to save xml data back to server from flex. We can retrieve and view data from the server fine but can not save. We have tried at least 5-10 different methods and even tried using every code sample we could find. None of them have worked. We either get stream errors or no xml data getting to the server. So we are wondering if the whole thing is just broken in flex. It does not seem possible that NONE of our exmaples have worked. We have looked at this every which way and nothing is working. All we want to do is send XML data from a form back to a server. Thats it. It should not be this hard to finds information on this. Has anyone actually gotten data from flex to a DB without FDS using XML? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex 2 patch timeline
Jack- I think you misunderstand what Matt said. He didn't say they aren't working on fixes, he said it hasnt been their top priority. If you have an issue, he recommended you contact their support team. I have said this before, but I would not have a single customer if I told them I could not fix the software they purchased because I was working on another version. Again, its not an issue of not being able to fix bugs, many companies have a process in place to allow for handling their customers needs. In the adobe case, if something isnt working as you would expect, there is the support channel. drop them an email or give them a call, and they can help solve the issue you are having. They are the ones who are best able to determine if you are doing something wrong, or if its a bug in the code which needs to be fixed. I wouldnt be at all surprised if their were a number of minor patches available through the support channels. I dont know that there are, but if I were them, and I had a few fixes to specific bugs that havent been reported by the community at large, but instead by a few customers, I would probably give the fixes as needed, rather than make a whole new big push. Then again, thats just my thought process. Sadly, I dont have a whole support team working for me, so i need to deal with bugs in my code as they crop up. At 03:18 PM 8/30/2006, Jack Caldwell wrote: Matt or anyone else at Adobe. I agree that the quality of Flex Builder 2 is good . . . . very good . . . . however . . . . I know nothing will probably change since Adobe is the big software company, and I am only a single customer(Flex Builder 2 w/charting), but this position disturbs me. It reminds me of the construction industry when a contractor builds or remodels my house. I have paid for the work and I find problems but the contractor is off working on another house and doesn't have the time or resources to fix the problems in a timely manner. To be honest, I could care less about a Mac version . . . . AND I know those wanting a Mac version could care less about a Windows version. So please no bashing from the Mac side. It appears that Adobe has not allocated enough resources to the development team where they can have 2 groups. As I recall, it was said on this forum, soon after Flex 2 was released the development team received new Macs to begin work on a Mac version. Why did Adobe not already have a plan and resources in place. This type of thing is done all the time. While I do not expect that every single bug be issued a release patch, it would be very nice and customer friendly to have a bug fix release plan in place and implement that plan. Especially in the first 6-9 months of a major release. I haven't encountered a bug that I know of. But when I do, I will probably have spent many hours or days thinking I did not write the code right only to find out later is was a bug. Wasted time . . . . money. I have said this before, but I would not have a single customer if I told them I could not fix the software they purchased because I was working on another version. I really do not understand why large software companies employ this type of bug fix and update plan. I only hope Adobe will rethink their strategy and implementation of releasing bug fixes. My .02 or actually $ 749 for Flex Builder 2 w/charting. Thanks, Jack From: flexcoders@yahoogroups.com [ mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Wednesday, August 30, 2006 10:21 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2 patch timeline Are there specific bugs youre looking to be addressed? Based on direct feedback as well as observation from the various public forums weve been pretty pleased with the quality of the release so weve held off on rushing out an updater while we work on things like the Mac release of Flex Builder. Doesnt mean were not fixing bugs, but weve decided to try to address more issues in a longer cycle rather than fewer issues quickly. If theres a specific issue that is blocking your work use the wish form (http://www.adobe.com/go/wish) to submit it and indicate so. There are also plenty of official support options available to help as well ( http://www.adobe.com/support/programs/flex/?tab:plans=1) Matt From: flexcoders@yahoogroups.com [ mailto:flexcoders@yahoogroups.com] On Behalf Of Adam Reynolds Sent: Wednesday, August 30, 2006 2:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2 patch timeline Before I dive headlong into my first full Flex 2 project, can anybody from Adobe give me an update as to when/if there will be a patch for Flex 2? Adam __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development
Re: [flexcoders] NumberValidator question
The fundamental problem isn't a non-broadcast event, its that a non required NumberValidator, as designed, will not return an error state if a string is passed to it. This doesn't meet my needs on my current (or likely any), project. I've sub-classed it so that even when its non-required, it will show an error state if the element in question is a string in not a number (NaN). I know in previous versions of flex, the number validator behaved as I expected, and was easily capable of showing a Not a number error, whether or not the field was required, which was the cause of my concern. The fix was easy enough (~30 line sub class), so its no big deal. At 06:38 AM 8/29/2006, Michael Schmalle wrote: Hi sam, Well, that comment came for a programmer. ;-) Strictly looking at the code as if I was going to tie it to another class, not mxml for validation. I guess the comment was more straight from my developer mind and through not really seeing the 'process' all the way through I said it. As far at what you said, that makes sense. You might want to ask Jeff the same question as to what he is doing extending and needing NaN. As far as me and the event, well that was more philosophical. :) Peace, Mike On 8/29/06, Samuel Reuben mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Hi Michael, You have mentioned that it shoud send some sort of message with the event. What do you want this for? The error tips are shown for the inputs that are not number. So like any other validator it doesn't show any error tip when it is right. The error tips that are shown are meant to be readable to the common user and not be cryptic. ?xml version=1.0 encoding=iso-8859-1? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml; mx:NumberValidator source={numberInput} domain=real property=text/ mx:TextInput id=numberInput width=100%/ mx:Button label=Click Me! / /mx:Application Trying to understand what is needed here, thanks, -sam On 8/28/06, Michael Schmalle mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Yeah, I guess if I would have looked into the superclass I would have saw that. :) That is odd and I to wonder why they at least didn't send some sort of message with the event then just saying it is VALID. Maybe they are expecting you to catch NaN before any invalidation occurs but, that still doesn't make sense either. Peace, Mike On 8/28/06, Jeff Tapper mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: it is, unfortunately, the place they call that doesnt perform valiation. if (isRealValue(value) || required) { return processValidation(value, suppressEvents); } else { // Just return valid return new ValidationResultEvent(ValidationResultEvent.VALID); } so, if isRealValue returns false, they dispatch a valid event and do no more checking. I've subclassed NumberValidator to make it work as i would expect. Seems an odd choice that a NumberValidator wont validate that the input isnt a number. At 01:14 PM 8/28/2006, you wrote: Hi, seems like the logicve is there; /** * Determines if the value is not null and not NaN value. */ override protected function isRealValue(value:Object):Boolean { return ((value != null) !isNaN(Number(value))); } Peace, Mike On 8/28/06, Jeff Tapper mailto:jeff%40tapper.net[EMAIL PROTECTED] wrote: Am i missing something basic, or does the NumberValidator not contain the infrastructure to ensure that the specified value is a number? I'm nearly certian that the NumberValidator could perform a NaN check as well as validating from within a range. Do we need to roll that ourselves in Flex 2? -- What goes up, does come down. -- What goes up, does come down. -- What goes up, does come down. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Having trouble with basic xml loading...
try this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initApp() layout=absolute mx:Script ![CDATA[ import flash.net.*; import flash.events.*; private var myLoader:URLLoader; private var myXML:XML = new XML(); private function initApp():void{ var XML_URL:String = order.xml; var myXMLURL:URLRequest = new URLRequest(XML_URL); myLoader = new URLLoader(myXMLURL); myLoader.addEventListener(complete ,xmlLoaded); } private function xmlLoaded(evtObj:Event):void { myXML = XML(myLoader.data); trace(Data loaded.); trace(myXML); } ]] /mx:Script /mx:Application At 12:15 AM 8/29/2006, Kyle wrote: Hello all, I am a somewhat seasoned veteran in Flash, but am finding myself having a lot of trouble with Flex. I am trying to do a simple XML load from an external file and am running into a lot of errors. The two reported errors are: 1) Access of undefined property myLoader 2) Access of undefined property xmlLoaded Any help that anyone can provide, or any links to some simply flex2 xml loading tutorials would be greatly appreciated! Thanks, Kyle My complete mxml code looks is as follows: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import flash.net.*; import flash.events.*; var myXML:XML = new XML(); var XML_URL:String = order.xml; var myXMLURL:URLRequest = new URLRequest(XML_URL); var myLoader:URLLoader = new URLLoader(myXMLURL); myLoader.addEventListener(complete ,xmlLoaded); function xmlLoaded(evtObj:Event) { myXML = XML(myLoader.data); trace(Data loaded.); } ]] /mx:Script /mx:Application !-- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] NumberValidator question
Am i missing something basic, or does the NumberValidator not contain the infrastructure to ensure that the specified value is a number? I'm nearly certian that the NumberValidator could perform a NaN check as well as validating from within a range. Do we need to roll that ourselves in Flex 2? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] NumberValidator question
it is, unfortunately, the place they call that doesnt perform valiation. if (isRealValue(value) || required) { return processValidation(value, suppressEvents); } else { // Just return valid return new ValidationResultEvent(ValidationResultEvent.VALID); } so, if isRealValue returns false, they dispatch a valid event and do no more checking. I've subclassed NumberValidator to make it work as i would expect. Seems an odd choice that a NumberValidator wont validate that the input isnt a number. At 01:14 PM 8/28/2006, you wrote: Hi, seems like the logicve is there; /** * Determines if the value is not null and not NaN value. */ override protected function isRealValue(value:Object):Boolean { return ((value != null) !isNaN(Number(value))); } Peace, Mike On 8/28/06, Jeff Tapper [EMAIL PROTECTED] wrote: Am i missing something basic, or does the NumberValidator not contain the infrastructure to ensure that the specified value is a number? I'm nearly certian that the NumberValidator could perform a NaN check as well as validating from within a range. Do we need to roll that ourselves in Flex 2? -- What goes up, does come down. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: specifying a percentage width in script?
take a look at the .percentWidth property. At 03:35 PM 8/28/2006, e_baggg wrote: You have to calculate that yourself. Add an event listener for resize and which calls a function that calculates and resets the width. private function resizeHandler () : void { //if parent is an HBox that is set to 100% spacer.width = parent.width; } --- In flexcoders@yahoogroups.com, Doug Arthur [EMAIL PROTECTED] wrote: How can I specify spacer.width = 100%??? It throws an error because 100% is not an int. Thanks! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Resizable, Collapsible, Draggable Panel??
I've got examples of resizable and collapsible on my blog: http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm http://jeff.mxdj.com/sizeabletitlewindow.htm At 12:05 PM 8/22/2006, Megan wrote: Hi everyone. I've been trying to make a panel for an application that has quite a few features. It would need to be manually resizable (not just using states) when you mouse over the lower right hand corner and drag, it needs to be draggable and minimizable/maximizable. I've used the Popup Manager to make the windows draggable, and to be able to switch focus if there are multiple windows. I have found quite a few different examples for the resize feature, but all the ones I could find are from before Flex 2.0 was released, and I can't fix all the errors that come up! Examples I have found include: http://www.flexdaddy.info/2005/03/06/resizable-and-collapsable-titlewindow-flex-15/ (the main one I've been working with) http://www.coenraets.com/viewarticle.jsp?articleId=89 http://ria.richtechmedia.com/2006/03/10/resize-panel-revisited/ (haven't been able to get the code for this one) If anyone can help with the Actionscript code in the first example especially, that would be awesome. Or if someone could give me a really simple example that is resizable I would appreciate it so much. Thank you for any help!! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Resizable, Collapsible, Draggable Panel??
oops, looks like i missed an update in there. In MaxRestorePanel, you can simply change private function doRestore(event:Event){ to private function doRestore(event:Event):void{ and likewise private function doRestore(event:Event){ should be private function doRestore(event:Event):void{ In SizeableTitleWindow, you can add protected const HEADER_PADDING:int=25; just before protected function getHeaderHeight():Number (i think its around line 125 or so). Sorry for the confusion. At 01:24 PM 8/22/2006, Megan wrote: Thank you! I did come across these examples, I knew there were a couple I had forgotten to mention. I'm not sure why I didn't look into them more. Right now I'm getting two 1008 warnings in the MaxRestorePanel.as, one that the return value for function doRestore has no type declaration and one that the return value for the function doMaximize has no type declaration. I can get the component to show up when I put it in an application, but it doesn't do anything. In SizeableTitleWindow, I get a 1120 error Access of undefined property HEADER_PADDING. If I could get some help on fixing those I'd appreciate it. I'm so close!! :D Thanks so much! --- In flexcoders@yahoogroups.com, Jeff Tapper [EMAIL PROTECTED] wrote: I've got examples of resizable and collapsible on my blog: http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm http://jeff.mxdj.com/sizeabletitlewindow.htm At 12:05 PM 8/22/2006, Megan wrote: Hi everyone. I've been trying to make a panel for an application that has quite a few features. It would need to be manually resizable (not just using states) when you mouse over the lower right hand corner and drag, it needs to be draggable and minimizable/maximizable. I've used the Popup Manager to make the windows draggable, and to be able to switch focus if there are multiple windows. I have found quite a few different examples for the resize feature, but all the ones I could find are from before Flex 2.0 was released, and I can't fix all the errors that come up! Examples I have found include: http://www.flexdaddy.info/2005/03/06/resizable-and-collapsable-titlewindow-flex-15/ (the main one I've been working with) http://www.coenraets.com/viewarticle.jsp?articleId=89 http://ria.richtechmedia.com/2006/03/10/resize-panel-revisited/ (haven't been able to get the code for this one) If anyone can help with the Actionscript code in the first example especially, that would be awesome. Or if someone could give me a really simple example that is resizable I would appreciate it so much. Thank you for any help!! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Disabling a nested menu item in a menu bar?
Anyone have a clue how to disable a menu bar item, when it is not the top level? Given a structure like this: menuItem label=File menuItem label=New / menuItem label=Open / menuItem label=Save / /menuItem I can easily get a handle on the root node (File), by accessing myMenu.menuItems[0], however, i'm banging my head against the wall trying to get a handle on Save as a MenuBarItem, as the File item doesnt seem to have child items representing the others. Can someone point me in the right direction here? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Disabling a nested menu item in a menu bar?
unfortunately not, its populated dynamically at run time. Any other ideas on how to address a nested child of the menu? --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Jeff, You can handle this with binding. Something like this: menuItem label=File enabled={model.FileMenuEnabledFlags(0)} menuItem label=New enabled={model.FileMenuEnabledFlags (1)}/ menuItem label=Open enabled={model.FileMenuEnabledFlags (2)}/ menuItem label=Save enabled={model.FileMenuEnabledFlags (3)}/ /menuItem model.FileMenuEnabledFlags is an array of Boolean values. -TH --- In flexcoders@yahoogroups.com, jeff tapper jeff@ wrote: Anyone have a clue how to disable a menu bar item, when it is not the top level? Given a structure like this: menuItem label=File menuItem label=New / menuItem label=Open / menuItem label=Save / /menuItem I can easily get a handle on the root node (File), by accessing myMenu.menuItems[0], however, i'm banging my head against the wall trying to get a handle on Save as a MenuBarItem, as the File item doesnt seem to have child items representing the others. Can someone point me in the right direction here? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Disabling a nested menu item in a menu bar?
Sadly, thats where the problems started for me. I'm able to get at the top level items, using getMenuAt or even using the menuItems array, but sadly, i cant seem to get a handle on the first child menu var myMenu:MenuBar = myMenuBar; var nextLevel:* = myMenu.getMenuAt(0); // throws error Property menuItems not found on mx.controls.Menu var firstNestedChild:* = nextLevel.menuItems; // throws error (Property getMenuAt not found on mx.controls.Menu) var firstNestedChild:* = nextLevel.getMenuAt(0); so, coming back to the original question, what syntax can i use to get a handle on the nested children MenuBarItems? --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Bummer - sorry, Probably need to look at MenuBar.getMenuAt(index). -TH --- In flexcoders@yahoogroups.com, jeff tapper jeff@ wrote: unfortunately not, its populated dynamically at run time. Any other ideas on how to address a nested child of the menu? --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Jeff, You can handle this with binding. Something like this: menuItem label=File enabled={model.FileMenuEnabledFlags (0)} menuItem label=New enabled={model.FileMenuEnabledFlags (1)}/ menuItem label=Open enabled={model.FileMenuEnabledFlags (2)}/ menuItem label=Save enabled={model.FileMenuEnabledFlags (3)}/ /menuItem model.FileMenuEnabledFlags is an array of Boolean values. -TH --- In flexcoders@yahoogroups.com, jeff tapper jeff@ wrote: Anyone have a clue how to disable a menu bar item, when it is not the top level? Given a structure like this: menuItem label=File menuItem label=New / menuItem label=Open / menuItem label=Save / /menuItem I can easily get a handle on the root node (File), by accessing myMenu.menuItems[0], however, i'm banging my head against the wall trying to get a handle on Save as a MenuBarItem, as the File item doesnt seem to have child items representing the others. Can someone point me in the right direction here? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Adjusting registration point?
Does anyone know if there is a built in mechanism in AS3 to adjust a DispalyObject's registration point? I've written an AS2 class to do this with previous versions, but before i port that over to as3, I'm curious if anyone has found an easier way. What I'm looking to do is control where an image grows or shrinks from as its x and y scale are adjusted. any thoughts? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Creating State using ActionScript
Yes! I've had to do just that, and blogged about it. http://jeff.mxdj.com/as3viewstates.htm At 03:59 PM 8/10/2006, Sergey Kovalyov wrote: Hi All! Does anybody have experience creating view states using ActionScript, not in MXML? Imagine, I have two view states, defined in MXML and I want to extend this structure with one more state in ActionScript class inherited from this MXML. How to do that? Thank you in advance. Regards, Sergey. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Adjusting registration point?
Ick, thats no fun at all! At 05:05 PM 8/11/2006, you wrote: There is no concept of a registration point for a DisplayObject (or for a UIComponent). You'll have to implement what you want to do by changing the DisplayObject's x and y properties at the same time as you change scaleX and scaleY, in order to keep a particular registration point at a fixed location. - Gordon -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper Sent: Friday, August 11, 2006 5:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adjusting registration point? Does anyone know if there is a built in mechanism in AS3 to adjust a DispalyObject's registration point? I've written an AS2 class to do this with previous versions, but before i port that over to as3, I'm curious if anyone has found an easier way. What I'm looking to do is control where an image grows or shrinks from as its x and y scale are adjusted. any thoughts? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Simple Date Stuff
how about this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=horizontal mx:DateField id=one selectedDate={date1} / mx:DateField id=two selectedDate={date2}/ mx:Script ![CDATA[ [Bindable] private var date1:Date = new Date(); [Bindable] private var date2:Date = new Date(date1.getFullYear(),date1.getMonth(),date1.getDate()-30); ]] /mx:Script /mx:Application At 12:55 PM 8/9/2006, richmcgillicuddy wrote: With the DateField MXML component, how would I initialize the dates of 2 date components to today and 30 days ago. I've tried the following: var aDate :Date = new Date(); var aSecondDate : Date = new Date(); // Does not work below //aSecondDate -= 30; // Does not compile below dtStartDate.selectedDate = aSecondDate - Date(0, , 30); // Works but does not set the selected Date. Will set the Text field but // the SelectedDate is still null dtStartDate.selectedDate = aSecondDate; dtEndDate.selectedDate = aDate ; Is there a simple example of date arithmetic? Is the selectedDate field the best way to pull out the selectedDate from the DateField component? Is there a way to initialize these on startup? Will the display localize to the dateformat of the viewing browser for localization? Rich -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Is there a way to put a close X on the tabnavigator
You can subclass mx.controls.tabBarClasses.Tab, and add override the createChildren method to create the close button, override the updateDisplayList to position the button. Then, you need to subclass mx.controls.TabBar to make use of your new Tab class instead of the existing one. Then, you can subclass TabNavigator, to use your new TabBar class instead of the existing one. Its really not that tough to do. At 02:43 PM 8/1/2006, flxcoder wrote: I have a way of removing the tab from the tabnavigator using tabs.removeTabAt(x), but I am looking for a way to add an X on top of the tab, something similar to the way editors in eclipse do. any clues? any ideas? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] style for color of DivdedBox thumb?
Heres an odd question. Does anyone know if there is a style property to set the color of the thumb (the little thing you click on and interact with) for a Divided Box? I thought maybe the dividerColor would do it, but trying that reinforces what the docs say about it: Color of the dividers when the user presses or drags the dividers if the liveDragging property is set to false My client wants to make the thumb really stand out as the users are not particularly savvy, and the fear is the user my not see the thumb. Is the only option to create a new skin, or is there some simpler way to color the thumb? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] mark/bookmark functionality in flex builder 2
Take a look at Window Other Views Basic Bookmarks At 02:31 PM 7/31/2006, udumki wrote: Hi, Does anyone know how to use bookmarking in fb2? I can set a bookmark by right-clicking and selecting Bookmarks... in the left gutter of the code editor, but once it is set, I can't remove it or quickly jump to it. Does anyone know the shorcut keys to set, jump to, and remove bookmarks in Flex Builder 2? Thanks in advance. -Ud -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: DataProvider on DataGrid access by index
Do you mean by the index of the column or index of the row? Within the row of the selectedItem, you could get the values of each column doing something like this (note, this is written in email client, not FB, so typos are not only possible, they are likely): var row:Object = dg.selectedItem; var cols:Array = dg.columns; for(var i:int=0;icolumns.length;i++){ var col:DataGridColum = dg.columns[i]; var colProp:String = col.dataField; var thisColsVal = row[colProp]; } At 12:50 PM 7/30/2006, howardescholz wrote: Would selectedIndex work? --- In flexcoders@yahoogroups.com, ddanone2 [EMAIL PROTECTED] wrote: I fill the DataProvider of a DataGrid with an array, when the user selects a row i retrieve the selected row with selectedItem property. I want to get the value of each column not acessing by the dataField but acessing by an index, is that possible ? Thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Tools for listing objects
Ok, I get it. So, if i were to write a method which forced a bunch of anonymouse objects to be created, the GC should fire, and i should be able to tell if it worked? Let me give that a try. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Using a dictionary isn't completely reliable because the garbage collector will only free up what it needs. If the window isn't taking too much space the collector may not go ahead and clean it up for a while. The weak reference only says take it if you need it but it's not guaranteed that if the only reference is weak that it will disappear immediately. That's why we trigger garbage collection by creating a bunch of objects, it's to force the GC into thinking it needs the space for allocation. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeff tapper Sent: Thursday, July 27, 2006 9:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Tools for listing objects Really, what im looking for, is some way to check if an object no longer exists. I thought a weak reference in the dictionary might work for me, but after 14 hours of inactivity, those weak references are still there. Am i misunderstanding the nature of a weak reference? Is there some other way that I can test to see if a given object still exists? --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Matt Chotin mchotin@ wrote: There's no way to know if garbage collection was forced. Create a method does does a for loop that creates 10,000 objects into mid- air. For (var i:int=0; I 1; i++) New Object(); That should trigger the garbage collector hopefully. From: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com ] On Behalf Of jeff tapper Sent: Thursday, July 27, 2006 5:56 AM To: flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Re: Tools for listing objects Well, that experiment failed as well. 14 hours later, the same objects are still listed in the dictionary. Wed Jul 26 17:07:23 GMT-0400 2006 Testing56:Testing56 Testing19:Testing19 Testing38:Testing38 Thu Jul 27 08:50:31 GMT-0400 2006 Testing56:Testing56 Testing19:Testing19 Testing38:Testing38 Am I misunderstanding the usage of Weak References in the Dictionary? Does anyone have any idea how this can be used to keep track of what objects exist and which dont? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , jeff tapper jeff@ wrote: Ok, heres a sketch of what im trying now. App.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical creationComplete=initApp() mx:Script ![CDATA[ import mx.managers.PopUpManager; import mx.managers.PopUpManagerChildList; import mx.core.IFlexDisplayObject; private var screenDict:Dictionary; private var scr1:IFlexDisplayObject; private function initApp():void{ screenDict = new Dictionary(true); } public function createScreen (parent:DisplayObjectContainer, screen:Class,modal:Boolean=false):IFlexDisplayObject{ var s:IFlexDisplayObject = PopUpManager.createPopUp(parent, screen, modal,PopUpManagerChildList.APPLICATION); screenDict[s] = s.name return s; } public function showObjects():void{ trace(new Date()); for (var i:* in screenDict){ trace(i+:+screenDict[i]); } } public function removeScreen (screen:IFlexDisplayObject):void{ PopUpManager.removePopUp(screen); } private function makeScreen():void{ if(scr1 == null){ scr1 = createScreen (this,Testing,false); } } private function destroyScreen():void{ removeScreen(scr1); scr1 = null; } ]] /mx:Script mx:Button click=makeScreen() label=make/ mx:Button click=destroyScreen() label=kill/ mx:Button click=showObjects() label=show/ /mx:Application Testing.mxml = ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=400 height=300 mx:Button click=this.dispatchEvent(new Event('foo'))/ /mx:Panel Now, as i run this, if i click make, kill, make, kill, show, The trace shows: Wed Jul 26 17:07:14 GMT-0400 2006 Testing58:Testing58 Testing20:Testing20 Testing39:Testing39 Implying that the screens arent really being destroyed. Perhaps I didnt wait long enough, so 5 minutes
[flexcoders] Re: Is there a hashmap or similar datastructure in flex/as3?
Take a look at the flash.utils.Dictionary class. --- In flexcoders@yahoogroups.com, flxcoder [EMAIL PROTECTED] wrote: Is there a hashmap or similar datastructure in flex/as3? I need a way to store indexes and data. a set data structure would also be nice. Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Tools for listing objects
Well, that experiment failed as well. 14 hours later, the same objects are still listed in the dictionary. Wed Jul 26 17:07:23 GMT-0400 2006 Testing56:Testing56 Testing19:Testing19 Testing38:Testing38 Thu Jul 27 08:50:31 GMT-0400 2006 Testing56:Testing56 Testing19:Testing19 Testing38:Testing38 Am I misunderstanding the usage of Weak References in the Dictionary? Does anyone have any idea how this can be used to keep track of what objects exist and which dont? --- In flexcoders@yahoogroups.com, jeff tapper [EMAIL PROTECTED] wrote: Ok, heres a sketch of what im trying now. App.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=initApp() mx:Script ![CDATA[ import mx.managers.PopUpManager; import mx.managers.PopUpManagerChildList; import mx.core.IFlexDisplayObject; private var screenDict:Dictionary; private var scr1:IFlexDisplayObject; private function initApp():void{ screenDict = new Dictionary(true); } public function createScreen (parent:DisplayObjectContainer, screen:Class,modal:Boolean=false):IFlexDisplayObject{ var s:IFlexDisplayObject = PopUpManager.createPopUp(parent, screen, modal,PopUpManagerChildList.APPLICATION); screenDict[s] = s.name return s; } public function showObjects():void{ trace(new Date()); for (var i:* in screenDict){ trace(i+:+screenDict[i]); } } public function removeScreen (screen:IFlexDisplayObject):void{ PopUpManager.removePopUp(screen); } private function makeScreen():void{ if(scr1 == null){ scr1 = createScreen (this,Testing,false); } } private function destroyScreen():void{ removeScreen(scr1); scr1 = null; } ]] /mx:Script mx:Button click=makeScreen() label=make/ mx:Button click=destroyScreen() label=kill/ mx:Button click=showObjects() label=show/ /mx:Application Testing.mxml = ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Button click=this.dispatchEvent(new Event('foo'))/ /mx:Panel Now, as i run this, if i click make, kill, make, kill, show, The trace shows: Wed Jul 26 17:07:14 GMT-0400 2006 Testing58:Testing58 Testing20:Testing20 Testing39:Testing39 Implying that the screens arent really being destroyed. Perhaps I didnt wait long enough, so 5 minutes later, I tried the same thing, with the same results. Maybe 5 minutes isnt long enough, so I'll leave it running over night and try again in the morning. But, the fundemental question is, have i done enough to remove the screens? Should the garbage collector clean the unused ones up, or have i somehow left a reference lingering? We have a very complex app, which I want to ensure we clean up all unused objects, but im having trouble finding a way to verify they are removed. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] TextLineMetrics anyone?
Has anyone successfully used TextLineMetrics with multiline text fields? All my experiments are showing that it always computes assuming a single, not wrapping line of text. I'm not sure if im using it wrong (the most likely scenario), if its a documentation error, or a bug. According to the docs, the TextLineMetrics width property should be the width of the text within a text field, however, I'm finding if I have a Text control with a width of 300, and a few lines of text within it, the width property shows the width as if it were on one line of text, and the height is indicating the height of a single line of text. Here is an example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Style .bigRed{ font-family:Arial; font-size:40; color:#33; } /mx:Style mx:HBox mx:Button label=Measure click=measureTheText()/ mx:Button label=Style click=doStyle()/ mx:Button label=Clear Style click=clearTheStyle()/ /mx:HBox mx:TextInput id=enteredText/ mx:Text id=output text={enteredText.text} width=300 / mx:Script ![CDATA[ import mx.controls.Alert; private function measureTheText():void{ var tlm:TextLineMetrics = output.measureText (enteredText.text); var h:int = tlm.height; var w:int = tlm.width; Alert.show(text is + w.toString() +x+h.toString ()); } private function doStyle():void{ output.setStyle(styleName,bigRed) } private function clearTheStyle():void{ output.clearStyle(styleName); } ]] /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: TextLineMetrics anyone?
Jesse - not sure I'm following you. An mx:Text / control doesnt seem to have an autosize property. They inherently automatically size themselves to fit the contained text. Am i misunderstanding you? --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: Out of curiosity, turn on autoSize = left; - Original Message - From: jeff tapper [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, July 27, 2006 10:14 AM Subject: [flexcoders] TextLineMetrics anyone? Has anyone successfully used TextLineMetrics with multiline text fields? All my experiments are showing that it always computes assuming a single, not wrapping line of text. I'm not sure if im using it wrong (the most likely scenario), if its a documentation error, or a bug. According to the docs, the TextLineMetrics width property should be the width of the text within a text field, however, I'm finding if I have a Text control with a width of 300, and a few lines of text within it, the width property shows the width as if it were on one line of text, and the height is indicating the height of a single line of text. Here is an example: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Style .bigRed{ font-family:Arial; font-size:40; color:#33; } /mx:Style mx:HBox mx:Button label=Measure click=measureTheText()/ mx:Button label=Style click=doStyle()/ mx:Button label=Clear Style click=clearTheStyle()/ /mx:HBox mx:TextInput id=enteredText/ mx:Text id=output text={enteredText.text} width=300 / mx:Script ![CDATA[ import mx.controls.Alert; private function measureTheText():void{ var tlm:TextLineMetrics = output.measureText (enteredText.text); var h:int = tlm.height; var w:int = tlm.width; Alert.show(text is + w.toString() +x+h.toString ()); } private function doStyle():void{ output.setStyle(styleName,bigRed) } private function clearTheStyle():void{ output.clearStyle(styleName); } ]] /mx:Script /mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Drag and Drop with TitleWindow
I had this issue recently as well. Try dropping this into the AS file for your TitleWindow component: override public function localToContent(point:Point):Point { return point; } --- In flexcoders@yahoogroups.com, csewhiff [EMAIL PROTECTED] wrote: I'm having a problem getting the dragEnter event to fire properly on a TitleWindow. I have a DataGrid with a TabBar above it. I change the contents of the DataGrid depending on which tab is selected and items can be dragged from the grid and dropped on a tab to add the item to that tabs list of items. This all worked fine when it was a VBox in the main application. When I tried to move it to a TitleWindow and make it pop up, the dragEnter event fires when the item is dragged below the tabs, not on the tabs. The distance below the tabs where the event fires appears to be about the same as the height of the top border in the TitleWindow. Almost like it's not taking the top border in to account. Horizontally, it appears to be firing at the correct position. I have set the backgroundColor of the TitleWindow so that is not the problem. I have dragEnabled of the DataGrid set to true and manually added dragEnter, dragOver and dragDrop events to the TabBar. Any ideas? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Tools for listing objects
Really, what im looking for, is some way to check if an object no longer exists. I thought a weak reference in the dictionary might work for me, but after 14 hours of inactivity, those weak references are still there. Am i misunderstanding the nature of a weak reference? Is there some other way that I can test to see if a given object still exists? --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: There's no way to know if garbage collection was forced. Create a method does does a for loop that creates 10,000 objects into mid- air. For (var i:int=0; I 1; i++) New Object(); That should trigger the garbage collector hopefully. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeff tapper Sent: Thursday, July 27, 2006 5:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Tools for listing objects Well, that experiment failed as well. 14 hours later, the same objects are still listed in the dictionary. Wed Jul 26 17:07:23 GMT-0400 2006 Testing56:Testing56 Testing19:Testing19 Testing38:Testing38 Thu Jul 27 08:50:31 GMT-0400 2006 Testing56:Testing56 Testing19:Testing19 Testing38:Testing38 Am I misunderstanding the usage of Weak References in the Dictionary? Does anyone have any idea how this can be used to keep track of what objects exist and which dont? --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , jeff tapper jeff@ wrote: Ok, heres a sketch of what im trying now. App.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical creationComplete=initApp() mx:Script ![CDATA[ import mx.managers.PopUpManager; import mx.managers.PopUpManagerChildList; import mx.core.IFlexDisplayObject; private var screenDict:Dictionary; private var scr1:IFlexDisplayObject; private function initApp():void{ screenDict = new Dictionary(true); } public function createScreen (parent:DisplayObjectContainer, screen:Class,modal:Boolean=false):IFlexDisplayObject{ var s:IFlexDisplayObject = PopUpManager.createPopUp(parent, screen, modal,PopUpManagerChildList.APPLICATION); screenDict[s] = s.name return s; } public function showObjects():void{ trace(new Date()); for (var i:* in screenDict){ trace(i+:+screenDict[i]); } } public function removeScreen (screen:IFlexDisplayObject):void{ PopUpManager.removePopUp(screen); } private function makeScreen():void{ if(scr1 == null){ scr1 = createScreen (this,Testing,false); } } private function destroyScreen():void{ removeScreen(scr1); scr1 = null; } ]] /mx:Script mx:Button click=makeScreen() label=make/ mx:Button click=destroyScreen() label=kill/ mx:Button click=showObjects() label=show/ /mx:Application Testing.mxml = ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=400 height=300 mx:Button click=this.dispatchEvent(new Event('foo'))/ /mx:Panel Now, as i run this, if i click make, kill, make, kill, show, The trace shows: Wed Jul 26 17:07:14 GMT-0400 2006 Testing58:Testing58 Testing20:Testing20 Testing39:Testing39 Implying that the screens arent really being destroyed. Perhaps I didnt wait long enough, so 5 minutes later, I tried the same thing, with the same results. Maybe 5 minutes isnt long enough, so I'll leave it running over night and try again in the morning. But, the fundemental question is, have i done enough to remove the screens? Should the garbage collector clean the unused ones up, or have i somehow left a reference lingering? We have a very complex app, which I want to ensure we clean up all unused objects, but im having trouble finding a way to verify they are removed. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Drag and Drop with TitleWindow
While I would love to take credit for the fix, it was really Jason Szeto at Adobe who figured it out. Thanks Jason! --- In flexcoders@yahoogroups.com, gotgoose09 [EMAIL PROTECTED] wrote: I had this same problem as well. http://groups.yahoo.com/group/flexcoders/post? act=replymessageNum=44103 Jeff your solution works! --- In flexcoders@yahoogroups.com, csewhiff wiff@ wrote: I'm having a problem getting the dragEnter event to fire properly on a TitleWindow. I have a DataGrid with a TabBar above it. I change the contents of the DataGrid depending on which tab is selected and items can be dragged from the grid and dropped on a tab to add the item to that tabs list of items. This all worked fine when it was a VBox in the main application. When I tried to move it to a TitleWindow and make it pop up, the dragEnter event fires when the item is dragged below the tabs, not on the tabs. The distance below the tabs where the event fires appears to be about the same as the height of the top border in the TitleWindow. Almost like it's not taking the top border in to account. Horizontally, it appears to be firing at the correct position. I have set the backgroundColor of the TitleWindow so that is not the problem. I have dragEnabled of the DataGrid set to true and manually added dragEnter, dragOver and dragDrop events to the TabBar. Any ideas? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Tools for listing objects
Does any one know of a tool like OptimizeIt! for java, or like List Objects in Flash Studio for finding all objects currently in existance? We are looking to verify that we have truely cleaned up objects no longer in use, and released them to the GC, but without a tool like this, we cant tell what exists and what doesnt. Does anyone have any tips? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Tools for listing objects
Matt- Your solutions didnt work for me, I suspect its because all the children we create/destroy in this app are done via the popup manager. Regardless how many children we created that way, I'm always finding that: this.childDescriptors.toString(); var o:Object = ObjectUtil.getClassInfo(Application.application); trace(ObjectUtil.toString(o)); and Application.application.getChildren().toString() return the same things, whether there is 0 or 100 windows open. So far, the best I've found for our needs is: var childList:IChildList = this.systemManager.rawChildren; for(var i:int=0;ichildList.numChildren;i++){ trace(childList.getChildAt(i)); } My fear is that there may be orphans, windows which have been removed from the display list but which are still active in memory. Any idea how to check on that? --- In flexcoders@yahoogroups.com, Matt Horn [EMAIL PROTECTED] wrote: I don't know about those tools you mention, but some ideas for listing available objects: 1) trace(this.childDescriptors.toString()); 2) var o:Object = ObjectUtil.getClassInfo(Application.application); trace(ObjectUtil.toString(o)); 3) trace(Application.application.getChildren().toString()); hth, matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeff tapper Sent: Wednesday, July 26, 2006 10:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tools for listing objects Does any one know of a tool like OptimizeIt! for java, or like List Objects in Flash Studio for finding all objects currently in existance? We are looking to verify that we have truely cleaned up objects no longer in use, and released them to the GC, but without a tool like this, we cant tell what exists and what doesnt. Does anyone have any tips? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Tools for listing objects
Darn, I've been able to prove to myself that the object can still exist in memory but not be in the rawchildren. How can i get a handle on these orphans? Do I need to resort to creating a Dictionary Object with weak keys, and store an reference of every object created in there? Is there a more elegant solution? --- In flexcoders@yahoogroups.com, jeff tapper [EMAIL PROTECTED] wrote: Matt- Your solutions didnt work for me, I suspect its because all the children we create/destroy in this app are done via the popup manager. Regardless how many children we created that way, I'm always finding that: this.childDescriptors.toString(); var o:Object = ObjectUtil.getClassInfo(Application.application); trace(ObjectUtil.toString(o)); and Application.application.getChildren().toString() return the same things, whether there is 0 or 100 windows open. So far, the best I've found for our needs is: var childList:IChildList = this.systemManager.rawChildren; for(var i:int=0;ichildList.numChildren;i++){ trace(childList.getChildAt(i)); } My fear is that there may be orphans, windows which have been removed from the display list but which are still active in memory. Any idea how to check on that? --- In flexcoders@yahoogroups.com, Matt Horn mhorn@ wrote: I don't know about those tools you mention, but some ideas for listing available objects: 1) trace(this.childDescriptors.toString()); 2) var o:Object = ObjectUtil.getClassInfo (Application.application); trace(ObjectUtil.toString(o)); 3) trace(Application.application.getChildren().toString()); hth, matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jeff tapper Sent: Wednesday, July 26, 2006 10:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tools for listing objects Does any one know of a tool like OptimizeIt! for java, or like List Objects in Flash Studio for finding all objects currently in existance? We are looking to verify that we have truely cleaned up objects no longer in use, and released them to the GC, but without a tool like this, we cant tell what exists and what doesnt. Does anyone have any tips? Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Tools for listing objects
Ok, heres a sketch of what im trying now. App.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=initApp() mx:Script ![CDATA[ import mx.managers.PopUpManager; import mx.managers.PopUpManagerChildList; import mx.core.IFlexDisplayObject; private var screenDict:Dictionary; private var scr1:IFlexDisplayObject; private function initApp():void{ screenDict = new Dictionary(true); } public function createScreen (parent:DisplayObjectContainer, screen:Class,modal:Boolean=false):IFlexDisplayObject{ var s:IFlexDisplayObject = PopUpManager.createPopUp(parent, screen, modal,PopUpManagerChildList.APPLICATION); screenDict[s] = s.name return s; } public function showObjects():void{ trace(new Date()); for (var i:* in screenDict){ trace(i+:+screenDict[i]); } } public function removeScreen (screen:IFlexDisplayObject):void{ PopUpManager.removePopUp(screen); } private function makeScreen():void{ if(scr1 == null){ scr1 = createScreen (this,Testing,false); } } private function destroyScreen():void{ removeScreen(scr1); scr1 = null; } ]] /mx:Script mx:Button click=makeScreen() label=make/ mx:Button click=destroyScreen() label=kill/ mx:Button click=showObjects() label=show/ /mx:Application Testing.mxml = ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Button click=this.dispatchEvent(new Event('foo'))/ /mx:Panel Now, as i run this, if i click make, kill, make, kill, show, The trace shows: Wed Jul 26 17:07:14 GMT-0400 2006 Testing58:Testing58 Testing20:Testing20 Testing39:Testing39 Implying that the screens arent really being destroyed. Perhaps I didnt wait long enough, so 5 minutes later, I tried the same thing, with the same results. Maybe 5 minutes isnt long enough, so I'll leave it running over night and try again in the morning. But, the fundemental question is, have i done enough to remove the screens? Should the garbage collector clean the unused ones up, or have i somehow left a reference lingering? We have a very complex app, which I want to ensure we clean up all unused objects, but im having trouble finding a way to verify they are removed. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: has anyone ever disabled selectability for a textArea??
did you declare an xml namespace for it in the mxml page which calls it? something like xmlns:view=* At 05:47 PM 7/25/2006, you wrote: package { import mx.controls.TextArea; class MyTextArea extends TextArea { protected override function createChildren():void { super.createChildren(); textField.selectable = false; } } } And then use view:MyTextArea / instead. Thanks. I think I have this setup properly but now I'm getting a The prefix view for element view:myTextArea is not bound compiler error. Is there something I'm missing so Flex can recognize my new class? The class is packaged in with all of my other .as custom classes. I can include it and recognize it in the Actionscript, but this view command doesn't seem to be working in the mxml. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006 Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Reference to View Stack Failing
it would probably be helpful if you sent a larger snippet of code. the error implies the view stack hasnt been created at the time the whatsNext method is called. So, this inherently leads to a few questions... How is the ViewStack instantiated? Is it a direct child of the Application? Is it created in a ViewState with addChild? Is it in another viewStack? How is whatsNext called? When is it first called? At 03:49 PM 7/24/2006, you wrote: Yes, all the custom components are from the demand namespace and are Panels. They all load fine, it's the reference to the view stack itself that is failing,. Are the custom components used from the demand namespace containers? ViewStack requires them to be container components. Make sure all of the components used in the ViewStack extend a container component. That should solve your problem They do, unless I'm misunderstanding you. All the referenced components are Panels.. ?? ethan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006 Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Reference to View Stack Failing
Rob - I was looking for an example of what Ethan was doing which wasnt working :) At 04:02 PM 7/24/2006, Rob Rusher wrote: Sample: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxmlhttp://www.adobe.com/2006/mxml; xmlns:demand=components.* mx:Script ![CDATA[ public function whatsNext(e:Event, next:String):void { if( next==tps ) { demandStack.selectedIndex=1; } } ]] /mx:Script mx:ViewStack id=demandStack width=100% height=100% demand:test id=contactInfo/ demand:test2 id=touchPlans/ /mx:ViewStack mx:Button label=Call Method click=this.whatsNext( event, 'tps' )/ /mx:Application test and test2 are empty components that extend Box and Panel, respectively. Works without issue. There is something else to your problem. Break it down to a simple example as I did and then build it back up. On 7/24/06, Ethan Miller mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Yes, all the custom components are from the demand namespace and are Panels. They all load fine, it's the reference to the view stack itself that is failing,. Are the custom components used from the demand namespace containers? ViewStack requires them to be container components. Make sure all of the components used in the ViewStack extend a container component. That should solve your problem They do, unless I'm misunderstanding you. All the referenced components are Panels.. ?? ethan -- -- Regards, Rob Rusher Adobe Certified Breeze, ColdFusion MX and Flex 2 Instructor m: 303-885-7044 im: robrusher No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.4/396 - Release Date: 7/24/2006 Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Strange issue with drag and drop between Lists
I'm running into a similar issue. I can tell you that the height of the dead space is directly related to the header height of the Panel (or title window in your case). To prove this out, try adding headerHeight=100 to the root titleWindow tag. --- In flexcoders@yahoogroups.com, Pan Troglodytes [EMAIL PROTECTED] wrote: Well, I can certainly confirm what you're seeing. It's not just a dead area at the top, it seems it's thinking you're still in the box when you're actually below it. So it seems like there's something screwed up in its detection of where the mouse is that only comes out in popups. I'd say you have a pretty solid test case to submit to http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform On 7/20/06, gotgoose09 [EMAIL PROTECTED] wrote: I'm beginning to think that this is a bug. Is there something I'm missing here? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, gotgoose09 thegoosmans@ wrote: In one of my projects, I create a new TitleWindow that has two Lists in which can drag items from one to the other. However, when I try dragging items from one to the other, there is a blank space at the top of each list that I can not drop items into - I have to drop the items in the bottom of the list. If I have the same two lists not in a TitleWindow, dragging and dropping works fine, with no barrier. You can view the problem at the link below, and recreate the problem with the steps below. http://www.thegoosmans.com/flexproblem/TitleWindowDragAndDrop.swf http://www.thegoosmans.com/flexproblem/TitleWindowDragAndDrop.swf Hi, to recreate my problem: 1. Create a new project (basic) 2. In the application mxml file, paste this code in: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ import mx.managers.PopUpManager; private function makePopUp():void { PopUpManager.createPopUp(this, MyPopup, true); } ]] /mx:Script mx:Button label=Make Popup id=bPopup click=makePopUp (); / mx:HBox mx:List id=list1 dragEnabled=true dragMoveEnabled=true dropEnabled=true width=100 height=100 mx:dataProvider mx:StringItem 1/mx:String mx:StringItem 2/mx:String /mx:dataProvider /mx:List mx:List id=list2 dragEnabled=true dragMoveEnabled=true dropEnabled=true width=100 height=100 / /mx:HBox /mx:Application 3. Create a new MXML Component, base it off of TitleWindow, call it MyPopup.mxml 4. Paste this code into that file: ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:HBox mx:List id=list1 dragEnabled=true dragMoveEnabled=true dropEnabled=true width=100 height=100 mx:dataProvider mx:StringItem 1/mx:String mx:StringItem 2/mx:String /mx:dataProvider /mx:List mx:List id=list2 dragEnabled=true dragMoveEnabled=true dropEnabled=true width=100 height=100 / /mx:HBox /mx:TitleWindow 5. Run the application. 6. Try dragging items from list to list on the main application. Then, click the button and try dragging and dropping, notice the difference in where you can drop items. -- Jason Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] creationPolicy=all for view states?
Is there an equivilent to creationPolicy=all for view states? I'd love to have the ability to have all the child elements in a view automatically created in the few times when i need them to be, much like we can do with creationPolicy for viewStacks Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: creationPolicy=all for view states?
nevermind, i found it. mx:AddChild position=lastChild creationPolicy=all --- In flexcoders@yahoogroups.com, jeff tapper [EMAIL PROTECTED] wrote: Is there an equivilent to creationPolicy=all for view states? I'd love to have the ability to have all the child elements in a view automatically created in the few times when i need them to be, much like we can do with creationPolicy for viewStacks Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] what is wrong with this code?
Try mx:Label x=10 y=316 text=[EMAIL PROTECTED] width=169/ At 08:29 AM 7/18/2006, arnold_charming wrote: Hi! I'm having difficulties to find out what is wrong with this code. Please help me out. Kategorije.mxml --- ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxmlhttp://www.adobe.com/2006/mxml; layout=absolute width=245 height=465 title=Kategorije mx:XML source=http://localhost/~arnold/bla/izpisKategorij.xmlhttp://localhost/~arnold/bla/izpisKategorij.xml; id=reqKategorije/ mx:List x=10 id=bla y=10 width=205 height=298 dataProvider={reqKategorije.kategorija} labelField=@label textAlign=center/ mx:Label x=10 y=316 text={bla.selectedItem.label} width=169/ /mx:Panel --- izpisKategorij.xml --- kat kategorija label=X data=3/ kategorija label=Zi data=1 / kategorija label=Rlec data=2 / kategorija label=Sci data=4 / kategorija label=Pkti data=5 / /kat --- The XML is displayed in mx:List tag but I can check which item is selected. What could be wrong? selectedIndex works fine, but not selectedItem. No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.1/389 - Release Date: 7/14/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.1/389 - Release Date: 7/14/2006 Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] deleting a node with e4x
does anyone know the syntax to remove a particular node from an xml object using e4x? Working with a structure like this, I want to be able to remove one node. Is the only approach to get a handle on the subpart node and set its children without the first subsection? I'm thinking there must be an easier way... thoughts? report part name=node1 ... section name=section1 .../ section name=section2 .../ /part part subpart name=subpart1 subsection name=subsection1 .../- I'd like to remove this element subsection name=subsection2 .../ /subpart section name=section3 .../ /part /report -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 7/13/2006 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: deleting a node with e4x
thanks! At 09:34 AM 7/14/2006, you wrote: Use the delete operator. delete report.part[1].subpart[0].subsection[0]; --- In mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com, Jeff Tapper [EMAIL PROTECTED] wrote: does anyone know the syntax to remove a particular node from an xml object using e4x? Working with a structure like this, I want to be able to remove one node. Is the only approach to get a handle on the subpart node and set its children without the first subsection? I'm thinking there must be an easier way... thoughts? No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 7/13/2006 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ attachment: 13bd68d.jpg No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 7/13/2006
RE: [flexcoders] Spring Enable Flex
We are using spring to manage the classes flex interacts with on one of our projects. At 04:13 PM 7/13/2006, Allen Riddle wrote: Im not having any issues, its just nice because its one less configuration format to learn. -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Thursday, July 13, 2006 2:06 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Spring Enable Flex Probably not can u describe the problem/issue you are having? Dimitrios Gianninas RIA Developer Optimal Payments Inc. -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Riddle Sent: Thursday, July 13, 2006 10:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Spring Enable Flex Does anybody (Adobe developers???) know if Adobe has any plans to Spring enable Flex? I think it would really help out with configuration. Allen Riddle Sofware Development x3217 AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 7/13/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.10.0/388 - Release Date: 7/13/2006 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Pagination feature in Flex 2
That feature is built into FDS At 07:41 AM 7/11/2006, tinywhistles wrote: Hi Does Flex 2 provide pagination support in the UI? For eg. there is a huge amount of data coming from the server, and I need to display them in chunks of ten at a time on the UI. Is there any out-of-the-box component which we can use for this? Alternatively can anyone share how to do this? I need to paginate the data and show them in the DataGrid control. Thanks `Rohan No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006 Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ attachment: 2e6c78c.jpg No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006
[flexcoders] FileReference and mimetypes
I'm finding that when i use file reference to upload a gif to the server, the php script which receives it thinks its an Application/Octet-Stream, rather than image/gif. However, if i upload the same gif through an html interface, the php script properly interprets it as an image/gif. Is this a bug or a feature, or something im doing wrong? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006 Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] FileReference and mimetypes
Its not that it isnt working, its just that I am unable to have my php script detect the proper mimetype, which I'd like to use to prevent malicious uploads. Ideally, I'm looking to use the same server side code for uploads from both php and from flex. with the current situation, i need to disable my mimetype checks in php to allow the flex uploads. At 08:57 AM 7/10/2006, Clint Tredway wrote: I am using PHP to upload images to the server and it works just fine :) On 7/10/06, Jeff Tapper mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: I'm finding that when i use file reference to upload a gif to the server, the php script which receives it thinks its an Application/Octet-Stream, rather than image/gif. However, if i upload the same gif through an html interface, the php script properly interprets it as an image/gif. Is this a bug or a feature, or something im doing wrong? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006 -- diabetic? http://www.diabetesforums.comhttp://www.diabetesforums.com Bill Cosby - A word to the wise ain't necessary - it's the stupid ones that need the advice. No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006 Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ attachment: 375596.jpg No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006
Re: [flexcoders] FileReference and mimetypes
Not that i know of, although my hacking years are far behind me, so that part of my brain may well have atrophied by now. is it possible for a user to manually set the mimetype of a file to something other than what it really is? At 11:04 AM 7/10/2006, Tom Chiverton wrote: On Monday 10 July 2006 14:33, Jeff Tapper wrote: script detect the proper mimetype, which I'd like to use to prevent malicious uploads. Ideally, I'm looking to use the same server side code Isn't the MIME type set by the client, and therefore is untrusted ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.10/383 - Release Date: 7/7/2006 Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: FDS on CFMX configuration problems
You will want something like this: mx:Script private function initApp():void{ // Create a Channel. var customChannel:Channel = new AMFChannel(my-cfamf, http://localhost:8500/flex2gateway/;); // Add the Channel to the ChannelSet. cs.addChannel(customChannel); // Assign the ChannelSet to a RemoteObject instance. svc.channelSet = cs; } /mx:Script mx:RemoteObject id=svc destination=ColdFusion source=path.yo.your.cfc showBusyCursor=true / At 10:23 AM 7/7/2006, Mike Nimer wrote: You are right, this is the tricky part. However, there is an easy way around it. Install CF and Flex separately (2 jvm instance, or 2 wars in the same instance). Then point you projects -services option to the flex2 services-config.xml. This will allow you to use the FDS and messaging stuff. And to use ColdFusions Flash Remoting you will create and configure the Channel via actionscript instead of letting FlexBuilder do it automatically. I don't have the exact syntax, but you want to create a ChannelSet object, and set the mx:RemoteObject channelset property to be the channel set instance you created. When you are creating the ChannelSet object, really the only important thing is the endpoint url to the CF FlashRemoting servlet /flex2gateway/ hth, ---nimer João Fernandes [EMAIL PROTECTED] wrote: The only problem that I see running seperated instances of FDS CFMX is the fact that FDS doesn't ship with the remoting for CF so when you define CF remoting destinations(the ColdFusion one) it throws an error, so to be able to use a mix of remoting + data management you'll have to keep 2 xml files, one for FDS and one for compilation. If there is another way, I didn't find any documentation about it. I have it running CFMX7+ FDS and now without issues but more documentation about this would be nice. One of the issues about the technote is the fact that FDS and CFMX7 both uses a MessageBrokerServlet definition. I kept the CF (the Flex one couldn't load those CF remoting Classes) João Fernandes -Original Message- From: mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com on behalf of Jim Sent: Thu 06-Jul-06 7:54 PM To: mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com Subject: [flexcoders] Re: FDS on CFMX configuration problems I tried the same thing (combining FDS with CFMX 7.0.2) using the same technote and wasn't able to get it to work. I emailed an insider at Adobe on the Coldfusion team I met at the CFObjective conference and learned that they aren't very happy with that technote and recommended that I run FDS and CFMX separately for now. I haven't tried that yet, but apparently you did and it was working, which is encouraging to me. I've spent three days trying to get FDS working with a fresh installation of CFMX 7 Multiserver (JRun4) option. The WEB-INF directory installs in the nested directories within the JRun4 folder, but the new CF/Flex Wizard expects the WEB-INF to be in the webroot. I've been having issues with the services-config.xml file. I found a copy of the file Ben Forta uses on the sys-con website which has worked so far. But if you manage to combine FDS and CFMX 7 and get them working, please share what you did. Thanks, Jim Pickering --- In mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com, Tom Bray [EMAIL PROTECTED] wrote: When I first started working with FDS, I used the standalone version with integrated JRun and had FB configured to launch FDS and direct its logging to the output pane in FB. I was happy. Now, I'm trying to configure FDS on top of CFMX and haven't had much success. I used the instructions below at this link: http://www.adobe.com/cfusion/knowledgebase/index.cfm?http://www.adobe.com/cfusion/knowledgebase/index.cfm? id=4f079a4dpss=rss_flex_4f079a4d. It would be very helpful if Adobe would expand upon those instructions with the steps for getting the sample apps up and running. Also, the instructions for setting up debugging ( http://labs.adobe.com/wiki/index.php/Flex_Enterprise_Services:Debuggihttp://labs.adobe.com/wiki/index.php/Flex_Enterprise_Services:Debuggi ng) need to be updated for the final release of FDS and I'd love to see a similar document for setting up debugging with FDS on CFMX. In the meantime, I'm having errors that I don't know how to get additional information on. I'm trying to get the notes sample app running, and I get this error: [RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500] Subscribing to the notes destination works, but sending a message doesn't. I obviously need more details to diagnose the problem, so an explanation of how to see that logging information would be awesome. Thanks, Tom Do you Yahoo!? Everyone is raving about the
Re: [flexcoders] titleBar in TitleWindow (Panel) class
Try adding it to the rawChildren of the Panel, rather than directly to the titleBar. I've got an example of doing that here: http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm At 10:21 AM 6/16/2006, Jim Robson wrote: When subclassing the TitleWindow class, shouldn't it be possible to add a child to the titleBar UIComponent? Within the Panel class definition, children are added to the titleBar using the addChild method. However, when I attempt to do so in a subclass, the child does not display. Does anyone know why this is? Am I missing something (code below)? package com.eyestreet.widgets { import mx.containers.TitleWindow; import mx.controls.Image; import flash.display.DisplayObject; public class TitleWindowResizeable extends TitleWindow { [Embed(source=button-resize.png, mimeType=image/png)] private var clsButton:Class; private var imgButton:Image; private var dspButton:DisplayObject; public function TitleWindowResizeable(){ super(); imgButton = new Image(); imgButton.source = clsButton; } override protected function createChildren():void { super.createChildren(); //This does not display: dspButton = titleBar.addChild(imgButton); /* The following would display, but the image * gets trimmed by the panel's frame: * dspButton = titleBar.addChild(imgButton); */ } override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void { super.layoutChrome(unscaledWidth, unscaledHeight); dspButton.x = unscaledWidth-30; dspButton.y = unscaledHeight-30; } } } No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006 Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] titleBar in TitleWindow (Panel) class
Ah yeah, i probably still have a beta 2 build of it up there. I just dropped a b3 version of it here: http://flex2.tapper.net/flex2Demos/maxRestorePanel/Test_Panel.swf At 10:47 AM 6/16/2006, you wrote: Jeff: I think my Flash player must have become corrupted: when I try to view your sample in action, all I get is the Flex-gray background. http://flex2.tapper.net/flex2Demos/TestMaxRestorePanel.htmlhttp://flex2.tapper.net/flex2Demos/TestMaxRestorePanel.html Jim -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Tapper Sent: Friday, June 16, 2006 10:32 AM To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Subject: Re: [flexcoders] titleBar in TitleWindow (Panel) class Try adding it to the rawChildren of the Panel, rather than directly to the titleBar. I've got an example of doing that here: http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htmhttp://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm At 10:21 AM 6/16/2006, Jim Robson wrote: When subclassing the TitleWindow class, shouldn't it be possible to add a child to the titleBar UIComponent? Within the Panel class definition, children are added to the titleBar using the addChild method. However, when I attempt to do so in a subclass, the child does not display. Does anyone know why this is? Am I missing something (code below)? package com.eyestreet.widgets { import mx.containers.TitleWindow; import mx.controls.Image; import flash.display.DisplayObject; public class TitleWindowResizeable extends TitleWindow { [Embed(source=button-resize.png, mimeType=image/png)] private var clsButton:Class; private var imgButton:Image; private var dspButton:DisplayObject; public function TitleWindowResizeable(){ super(); imgButton = new Image(); imgButton.source = clsButton; } override protected function createChildren():void { super.createChildren(); //This does not display: dspButton = titleBar.addChild(imgButton); /* The following would display, but the image * gets trimmed by the panel's frame: * dspButton = titleBar.addChild(imgButton); */ } override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void { super.layoutChrome(unscaledWidth, unscaledHeight); dspButton.x = unscaledWidth-30; dspButton.y = unscaledHeight-30; } } } No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006 No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006 Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Searching through an array collection
Take a look at the IViewCursor interface... private function getItemInCart(item:ShoppingCartItem):ShoppingCartItem{ cursor = aItems.createCursor(); sortItems(); var itemToFind:Object = new Object(); itemToFind.product = item.product; ar found:Boolean = cursor.findFirst(itemToFind); f(found){ ar sci:ShoppingCartItem = cursor.current as ShoppingCartItem; }else{ return null; } return sci; } does just what you are looking for without a lot of hassle At 07:03 PM 6/12/2006, ekokurtz wrote: I'm trying to figure out the syntax to check for the existence of a value in an array (that's inside an array collection) to see if I need to add a new entry or ignore (to get an array of unique entries). I had originally tried using array.indexOf but that will only work with simple arrays. here is an example of what I am trying, but the 'contains' statement only evaluates to false, regardless of what I have tried. function testArray() { var test:Array = [{Classname:class 10,data:1}, {Classname:class 11,data:2}]; var testAc:ArrayCollection = new ArrayCollection(test); //Alert.show(testAc[1].Classname.indexOf('class 11')); for (var i=0;itest.length;i++) { Alert.show(testAc.contains('class 10').toString()); } } Any ideas? No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 6/9/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.8.3/360 - Release Date: 6/9/2006 Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] context-menu in flex...
I've always dealt with leaving the miniumum information in the context menu, since the items you add appear first. Also, if you use the hideBuiltInItems() method, there are only 4 built in items which appear with what you add. At 10:57 AM 6/13/2006, you wrote: Hi everyone, OK, I really need to have a right click context menu coming up in a tree - either my own or the Flash one. It seems the Flash one cannot be done without some other stuff in it that we do not want. Has anyone found a way to maybe fake it so that the built in one does not come up? All the reading I have found on the subject involved previous versions of the player or involved bringing up other Alerts and stuff, but not a context menu. I have considered maybe bringing up a context menu upon double clicking on a line in the tree - but that is just not the way these interfaces would normally work. I am trying to simulate sort of an explorer type action on files in a tree. Hightlight an item, then right click to do copy, paste, delete etc. Any ideas? Thanks Jonathan On 4/24/06, Matt Chotin mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Look for the ContextMenu class in the ASDoc (and reference). You can't disable the right-click menu completely, the most you can do is remove some of the settings. Matt -Original Message- From: mailto:flexcoders@yahoogroups.comflexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] On Behalf Of Rajni Sent: Monday, April 24, 2006 8:03 PM To: mailto:flexcoders@yahoogroups.comflexcoders@yahoogroups.com Subject: [flexcoders] context-menu in flex... Hi, Can anybody tell me that how to customize the context-menu in flex? or how to disable right-click menu in flex? Thanks -Rajni -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. To unsubscribe from this group, send an email to: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service . -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 6/12/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 6/12/2006 Yahoo! Groups Sponsor ~-- Protect your PC from spy ware with award winning anti spy technology. It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: RV: resizable, maximize and minimize TileWindow
Take a look at the resizable panel: http://jeff.mxdj.com/sizeabletitlewindow.htm and panel with buttons:http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm for some ideas. At 11:25 AM 6/9/2006, jpwarmer wrote: Hi, i did something like that with the Panel Class, let me tell you what I did... I extend the Panel class an add a few instance variables (the image for the controls) mx_internal var minimizeButton:Image; mx_internal var maximizeButton:Image; mx_internal var mediumButton:Image; I use Images because i dont want to have issues with skinning buttons..then i override a few methodshere is a sample (is just a portion)... override protected function createChildren():void { super.createChildren();//To draw the panel default childrens if (!minimizeButton) //I did the same for the other buttons { minimizeButton = new Image(); minimizeButton.automationComposite = this; minimizeButton.styleName = this; //I pass the source as a style...so you need to declare it as metadata //( [Style(name=minimizedIcon, type=String, inherit=no)] ) after // the imports declaration minimizeButton.source = getStyle(minimizedIcon); minimizeButton.focusEnabled = false; minimizeButton.visible = true; minimizeButton.enabled = enabled; //I define a callback function to perform the animation minimizeButton.addEventListener(MouseEvent.CLICK, minimizeButton_clickHandler); titleBar.addChild(minimizeButton); } } override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void { super.layoutChrome(unscaledWidth, unscaledHeight); var bm:EdgeMetrics = borderMetrics; var x:Number = bm.left; var y:Number = bm.top; var headerHeight:Number = getHeaderHeight(); if (headerHeight 0 height = headerHeight) { //basically, this section puts the buttons on the right corner of the panel bar minimizeButton.setActualSize( minimizeButton.getExplicitOrMeasuredWidth(), minimizeButton.getExplicitOrMeasuredHeight()); minimizeButton.move( unscaledWidth - x - bm.right - 35 - minimizeButton.getExplicitOrMeasuredWidth(), (headerHeight - minimizeButton.getExplicitOrMeasuredHeight()) / 2); //Put the other buttons here } var leftOffset:Number = 10; var rightOffset:Number = 10; var h:Number; var offset:Number; } } And finally you mas implements the callback functions... private function minimizeButton_clickHandler(event:MouseEvent):void { var resize:Resize = new Resize(this); resize.heightTo = getHeaderHeight(); resize.duration = 250; resize.play(); } the you can use it like... controls:AdvancedPanel title=Title width=100% height=100% dropShadowEnabled=true paddingTop=2 paddingBottom=2 paddingLeft=2 paddingRight=2 minimizedIcon=@Embed('/assets/image/miniIcon.gif') I hope it helps you --- In mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com, Jesús Iglesias [EMAIL PROTECTED] wrote: Nobody has made somthing similar? -Mensaje original- De: Jesús Iglesias [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 07 de junio de 2006 17:29 Para: mailto:%27flexcoders%40yahoogroups.com'flexcoders@yahoogroups.com' Asunto: resizable, maximize and minimize TileWindow Hi all, Have any of you made a TileWindow component with resize, maximize and minimize controls? Can you give me any idea on how to do it? Thanks. Jesús Iglesias Alvento Soluciones Móviles Poeta Querol, 5 - 2 46002 Valencia (España) [tel]: (+34) 96.353.02.15 [fax]: (+34) 96.353.08.09 [e-mail]: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] [web]: http://www.alvento.com/http://www.alvento.com/ www.alvento.com Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios y propiedad de Alvento Soluciones S.A. Queda prohibida su divulgación, copia o distribución a terceros sin la previa autorización escrita de Alvento Soluciones S.A., en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente y la destrucción del mismo. The information in this e-mail and in any attachments is classified as Alvento Soluciones S.A. Confidential and Proprietary Information and solely for the attention and use of the named addressee(s). You are hereby notified that any dissemination, distribution or copy of this communication is prohibited without the prior written consent of Alvento Soluciones S.A. and it is strictly prohibited by law. If you have received this communication by error, please, notify the sender by replying e-mail. No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 6/8/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date:
Re: [flexcoders] Skinning components
Try adding the Bindable metadata tag to it. [Bindable] [Embed(source=library.swf, symbol=loginDetails_mc)] private var loginDetails:String; [Bindable] [Embed(source=library.swf, symbol=createAccount_mc)] private var createAccount:String; At 08:54 AM 5/31/2006, you wrote: Hey, I'm following Peter Ent's example of skinning a component. Here's the code I have created, ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml width=550 height=500 mx:Script ![CDATA[ [Embed(source=library.swf, symbol=loginDetails_mc)] private var loginDetails:String; [Embed(source=library.swf, symbol=createAccount_mc)] private var createAccount:String; ]] /mx:Script mx:Image id=login x=0 y=0 source={loginDetails} / mx:Image id=create x=75 y=75 source={createAccount} / /mx:Canvas For the 2 mx:image tags I get the warning that flex will not be able to bind to the source values. Why is that? Bjorn Schultheiss Senior Flash Developer qdc Personalised Communication Power Level 2, 31 Coventry St. South Melbourne 3205, VIC Australia T: +61 3 9674 7400 F: +61 3 9645 9160 W: http://www.qdc.net.au/http://www.qdc.net.au ((This transmission is confidential and intended solely for the person or organization to whom it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action in reliance on it. If you believe you received this transmission in error, please notify the sender.---)) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb site design development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer software development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware design and development http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia flex http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware development best practice -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.7.4/351 - Release Date: 5/29/2006 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.7.4/351 - Release Date: 5/29/2006
Re: [flexcoders] Easy Noobie Question...Datagrid counting rows
rowCount is the number of visible rows in a datagrid. if you want to know how many rows of data are in the data provider, you should use dg.dataProvider.length At 12:26 PM 5/30/2006, you wrote: Hi all - does anyone know how to count the rows in a dg that are populated with data? Getting the columns is simple enough with dg.columnCount but dg.rowCount is giving an incorrect number. Do I have to do a count of the dataprovider instead? Thanks, Will. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb site design development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer software development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware design and development http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia flex http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware development best practice -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.7.4/351 - Release Date: 5/29/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.394 / Virus Database: 268.7.4/351 - Release Date: 5/29/2006 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Styling at runtime
try using myTree.setStyle(styleName,newStyle); At 11:12 AM 5/23/2006, you wrote: Hi, I'm trying to create a treeview that acts a bit like Windows Explorer. Meaning no style is applied when an item is unselected, but on rollover the text gets underlined, and the selected item gets a blue background color. Is this possible? It tied to change the className on itemRollOver, but there it said that className is readonly (when called from a function) Any suggestions? Thanks Jonas -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb site design development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer software development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware design and development http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia flex http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware development best practice -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 5/22/2006 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [Norton AntiSpam] Re: [flexcoders] Borderless Button Component
I think you could use ProgramaticSkin as the various skins, which is still a valid skin, but which does not have a border. At 03:26 PM 5/16/2006, you wrote: Hi, This is a hack but works quick... make a var ; public var nullSkin:Class me.setStyle(upSkin, nullSkin); me.setStyle(overSkin, nullSkin); me.setStyle(downSkin, nullSkin); I tried clearStyle() but, that didn't work. Another variation; me.setStyle(upSkin, null); me.setStyle(overSkin, null); me.setStyle(downSkin, null); Basically, you need to null out the Class ref to the ButtonSkin class of the Button. Peace, Mike On 5/16/06, flexnadobe mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: Does anyone have a sample on how to override the border on a Button Component. I would like to turn the Border off completely. Rich -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. To unsubscribe from this group, send an email to: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- What goes up, does come down. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Access datagrid items
you can iterate over the dataprovider of the datagrid. At 12:00 PM 5/9/2006, you wrote: Hi, one doubt: how do i acess a datagrid items? I want to iterate through its items to do many things, such as get some column value specifically at row-level, or send that data through HTTPService. I´ve found no propertie like that, similar to dgBancos.selectedItems, i want something like dgBancos.items. Also, does a datagrid updates its dataprovider when i edit a row using editable = true, or it just updates its internal instance of that value, leaving dataprovider untouched? Thanks in advance. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb site design development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer software development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware design and development http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia flex http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware development best practice -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [Norton AntiSpam] [flexcoders] Flex2 - Asynchronous Completion Token
Take a look at the makeRemoteCall() method of the DataManager class I wrote (http://jeff.mxdj.com/as3_datamanager.htm). This does the flex 2 version of what you are looking for. At 06:51 AM 3/29/2006, bhaq1972 wrote: This is another one of those questions 'i could do this in flex1.5 but now cant in flex2b2'. in flex1.5 this worked well var call = service1.HelloWorld(); //service1 is a mx:WebService call.onResult = mx.utils.Delegate.create(this, returnHelloWorld); i cant do this in flex2b2 event after removing the Delegate. any ideas? thanks in advance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] AS3 class constructors can't be private? Abstract classes?
take a look at the AS3 DataManagger post on my blog for a workaround. Http://jeff.mxdj.com Sent with Wireless Sync from Verizon Wireless Original Message From: Carlos Rovira [EMAIL PROTECTED] Date: 2/9/06 6:05 pm To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subj: [flexcoders] AS3 class constructors can't be private? Abstract classes? Hi, I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes? Thanks in advance. -- ::| Carlos Rovira ::| http://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] AS3 class constructors can't be private? Abstract classes?
Now that I have a real connection, and not just the phone, I can answer a bit more fully. In the DataManager class that I wrote (http://jeff.mxdj.com/as3_datamanager.htm), the DataManager is a Singleton, so it needs a private constructor, sadly, no private constructors are available in AS3, so I use a private class in the same file, which emulates the same effect. At 07:15 PM 2/9/2006, jeff tapper wrote: take a look at the AS3 DataManagger post on my blog for a workaround. Http://jeff.mxdj.comHttp://jeff.mxdj.com Sent with Wireless Sync from Verizon Wireless Original Message From: Carlos Rovira [EMAIL PROTECTED] Date: 2/9/06 6:05 pm To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subj: [flexcoders] AS3 class constructors can't be private? Abstract classes? Hi, I was trying to migrate some classes from AS2 to AS3 and notice that can't mark the class constructor as private. Is that correct or there's a workaround? if not have plans to implement private constructors. and abstract classes? Thanks in advance. -- ::| Carlos Rovira ::| http://www.carlosrovira.comhttp://www.carlosrovira.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb site design development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer software development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware design and development http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia flex http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware development best practice -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [Norton AntiSpam] [flexcoders] setting a z-index
In the flash player the z-index is referred to as depth. take a look at docs for getDepth() swapDepths() etc. However, if you are running flex 2, take a look at the PopupButton class, this may provide a lot of what you are trying to do. At 05:59 PM 2/7/2006, you wrote: Hey everyone, I'm trying to create a customized sort of ComboBox. Essentially it's a button, that when clicked, will set visible a list directly below it(using some kind of effect, probably a resize from 0-x). I could use a combobox, but the appearance of this component is way different than how a combobox looks(no arrow, and icons instead of text), so I had to do it this way. The problem is, when the list show, it moves everything else on the screen, so I was wondering if there was some kind of z-index(or substitute), that I could manipulate to make this behave more like a combo box. If a combox can behave in this manner, where when it opens, it doesn't push everything out of its way, then there has to be a way for this to be done. Any help, or pointers to help will be greatly appreciated Thanks Nick -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb site design development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer software development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware design and development http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia flex http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware development best practice -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Closable Panel? (flex2)
I recently wrote a MaxRestorePanel for a book I'm working on. This is a subclass of panel and broadcast maximize and restore events. I'll post it up to my blog when i have a few free mins (I'll send a note back to the list when I do.) At 07:29 AM 2/3/2006, gunnar a reinseth wrote: I know that mx.controls.Panel contains a 'closeButton' which is utilised in the subclass TitleWindow. I really would like to have this close button on panels as well, so i guess i have to subclass Panel to achieve this. However, I have no clue of how to make this button visible and position it in the title area. Could anybody please help with this? -- gunnar -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Closable Panel? (flex2)
If you are interested, you can find my MaxRestorePanel here: http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm At 03:25 PM 2/3/2006, you wrote: I recently wrote a MaxRestorePanel for a book I'm working on. This is a subclass of panel and broadcast maximize and restore events. I'll post it up to my blog when i have a few free mins (I'll send a note back to the list when I do.) At 07:29 AM 2/3/2006, gunnar a reinseth wrote: I know that mx.controls.Panel contains a 'closeButton' which is utilised in the subclass TitleWindow. I really would like to have this close button on panels as well, so i guess i have to subclass Panel to achieve this. However, I have no clue of how to make this button visible and position it in the title area. Could anybody please help with this? -- gunnar -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp:/ /groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mai l-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodershttp://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb site design development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer software development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware design and development http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia flex http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware development best practice -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] what the hell am I doing wrong here
Seems to be a problem in the CFC. I tried calling it from a cfm page and got an error, which said Error Executing Database Query.][java.sql.SQLException : Table 'test.tbl_smartPanel_propInfo' doesn't exist] My test cfm has only this: cfobject webservice=http://flex.homesmartagent.com/wsdl/hs2f.cfc?wsdl; name=srv/ cfset test = srv.qpAdminFiles(hi there) cfdump var=#test# At 11:18 AM 12/29/2005, you wrote: Ok I will post this again, I have a simple test flex app that I am using (code below). That connects to a cfc, that accpets the incoming argument mySearch. The cfc compares the argument passed agaist the database and then returns a value. However, everytime I run this code and input a value in the input box and hit submit, it comes back saying Http Request Error. I have the crossdomain in my webroot (/var/www/html/) and I also have it in my site root (/var/www/html/hs2f) and I also have it in my cfc root (/var/www/html/hs2f/wsdl). I have tried having it only in my root, root + site root and so on. Here is my code. Flex: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* mx:WebService id=srv wsdl=http://flex.homesmartagent.com/wsdl/hs2f.cfc?wsdl; showBusyCursor=true / mx:Script ![CDATA[ function qpAdminFiles(mySearch){ srv.qpAdminFiles(mySearch);} ]] /mx:Script mx:states mx:State name=results mx:PropertyOverride target={panel1} property=width value=100%/ mx:PropertyOverride target={panel1} property=height value=100%/ mx:AddChild target={canvas1} position=lastChild mx:DataGrid x=1 width=100% dataProvider={srv.qpAdminFiles.result} height=50% y=85 mx:columns mx:DataGridColumn headerText=File Number: columnName=FLD_FILENUM/ mx:DataGridColumn headerText=Archived: columnName=col2/ mx:DataGridColumn headerText=Last Update: columnName=col3/ /mx:columns /mx:DataGrid /mx:AddChild mx:PropertyOverride target={panel1} property=title value=File Search/ /mx:State /mx:states mx:Panel height=101 width=514 id=panel1 title=File Search resizeEffect=Resize mx:Canvas height=100% width=100% id=canvas1 mx:Label x=7 y=22 text=File Number: height=20 id=label1/ mx:TextInput x=85 y=20 toolTip=Partial file numbers are ok id=mySearch/ mx:Button x=250 y=20 label=Find id=button1 click=currentState='results';qpAdminFiles(mySearch.text);/ mx:Button label=Reset x=304 y=20 click=currentState='start' id=button2/ /mx:Canvas /mx:Panel /mx:Application CFC: cffunction name=qpAdminFiles access=remote returntype=string output=true cfargument name=mySearch type=string required=yes / cfquery name=qpAdminFiles datasource=#application.dsn# select * from tbl_smartPanel_propInfo where fld_fileNum like '%#arguments.mySearch#%' /cfquery cfreturn qpAdminFiles / /cffunction -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: what the hell am I doing wrong here
Jeremy - Testing as a web service from a cfm page is still throwing errors. Looks like you are missing the return type on the method. Thats required for making cfcs available as a WebService: cfobject webservice=http://flex.homesmartagent.com/wsdl/hs2f.cfc?wsdl; name=srv/ cfset test = srv.qpTest(hi there) cfdump var=#test# AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Error attempting to create Java skeleton for CFC web service; nested exception is: coldfusion.xml.rpc.CFCInvocationException: [coldfusion.xml.rpc.CFCInvocationException : returnType must be defined for remote CFC functions.] faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:Webserver1 At 02:01 PM 12/29/2005, you wrote: I removed the function and added this new function. I can invoke the cfc correctly with in a cfm page. cffunction name=qpTest access=remote output=true cfargument name=mySearch type=string required=no / cfquery name=qpTest datasource=#application.dsn# select * from tbl_smartPanel_propInfo_Sale where fld_fileNum like '%#arguments.mySearch#%' /cfquery cfreturn qpTest / /cffunction --- In flexcoders@yahoogroups.com, Jeff Tapper [EMAIL PROTECTED] wrote: Seems to be a problem in the CFC. I tried calling it from a cfm page and got an error, which said Error Executing Database Query.][java.sql.SQLException : Table 'test.tbl_smartPanel_propInfo' doesn't exist] My test cfm has only this: cfobject webservice=http://flex.homesmartagent.com/wsdl/hs2f.cfc?wsdlhttp://flex.homesmartagent.com/wsdl/hs2f.cfc?wsdl; name=srv/ cfset test = srv.qpAdminFiles(hi there) cfdump var=#test# At 11:18 AM 12/29/2005, you wrote: Ok I will post this again, I have a simple test flex app that I am using (code below). That connects to a cfc, that accpets the incoming argument mySearch. The cfc compares the argument passed agaist the database and then returns a value. However, everytime I run this code and input a value in the input box and hit submit, it comes back saying Http Request Error. I have the crossdomain in my webroot (/var/www/html/) and I also have it in my site root (/var/www/html/hs2f) and I also have it in my cfc root (/var/www/html/hs2f/wsdl). I have tried having it only in my root, root + site root and so on. Here is my code. Flex: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2005/mxmlhttp://www.macromedia.com/2005/mxml; xmlns=* mx:WebService id=srv wsdl=http://flex.homesmartagent.com/wsdl/hs2f.cfc?wsdlhttp://flex.ho mesmartagent.com/wsdl/hs2f.cfc?wsdl showBusyCursor=true / mx:Script ![CDATA[ function qpAdminFiles(mySearch){ srv.qpAdminFiles(mySearch);} ]] /mx:Script mx:states mx:State name=results mx:PropertyOverride target={panel1} property=width value=100%/ mx:PropertyOverride target={panel1} property=height value=100%/ mx:AddChild target={canvas1} position=lastChild mx:DataGrid x=1 width=100% dataProvider={srv.qpAdminFiles.result} height=50% y=85 mx:columns mx:DataGridColumn headerText=File Number: columnName=FLD_FILENUM/ mx:DataGridColumn headerText=Archived: columnName=col2/ mx:DataGridColumn headerText=Last Update: columnName=col3/ /mx:columns /mx:DataGrid /mx:AddChild mx:PropertyOverride target={panel1} property=title value=File Search/ /mx:State /mx:states mx:Panel height=101 width=514 id=panel1 title=File Search resizeEffect=Resize mx:Canvas height=100% width=100% id=canvas1 mx:Label x=7 y=22 text=File Number: height=20 id=label1/ mx:TextInput x=85 y=20 toolTip=Partial file numbers are ok id=mySearch/ mx:Button x=250 y=20 label=Find id=button1 click=currentState='results';qpAdminFiles(mySearch.text);/ mx:Button label=Reset x=304 y=20 click=currentState='start' id=button2/ /mx:Canvas /mx:Panel /mx:Application CFC: cffunction name=qpAdminFiles access=remote returntype=string output=true cfargument name=mySearch type=string required=yes / cfquery name=qpAdminFiles datasource=#application.dsn# select * from tbl_smartPanel_propInfo where fld_fileNum like '%#arguments.mySearch#%' /cfquery cfreturn qpAdminFiles / /cffunction -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your
Re: [flexcoders] Sending Email From Flex
I imagine it would work just like telneting into an smtp server. For examples, take a look here: http://en.wikipedia.org/wiki/SMTP#Example_SMTP_communication At 09:14 AM 12/22/2005, you wrote: I've been racking my brain tryingto figure out some of the new features in flex 2. It has been said that you can send email from a flex app with out an external php script using AS 3.0 and its net.socket Does anyone have an idea how this is done, or possibly any code examples?? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb site design development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer software development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware design and development http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia flex http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware development best practice -- YAHOO! GROUPS LINKS * Visit your group http://groups.yahoo.com/group/flexcodersflexcoders on the web. * * To unsubscribe from this group, send an email to: * mailto:[EMAIL PROTECTED][EMAIL PROTECTED] * * Your use of Yahoo! Groups is subject to the http://docs.yahoo.com/info/terms/Yahoo! Terms of Service. -- Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Hank - I think he is saying anything that runs in FP8 will continue to run in FP8.5. At Max, there was a lot of talk about how hte Flash 8.5 player had 2 AVM's, one for AS1/2 and a newer faster one for AS3. I'm reading Phil's statements as saying it will still run, just not as fast as the new stuff runs. Again, dont misinterpret me as speaking for Phil or anyone else at MM/Adobe, just my read of his statement and past statements At 11:30 AM 12/16/2005, you wrote: Philip, Thank you for taking the time to respond to this issue. I do appreciate it. But I do have a bit of a concern with what you are saying. It sounds like you are saying that because of improvments in architecture or performance, old style AMF remoting may not be possible, or may not be possible easily. This just doesnt sound right. These are pretty high level Async protocols, and I cannot imagine any speed or architectural change that would cause such things to be unsuportable. Moreover the documentation and others from macromedia have said that the low level protocol is supported just not the higher layers. So, I appreciate your responding, but it would really be helpful to understand the technical issues that cause you or others to say that because of the AVM changes that this stuff may not be supportable. Because, to me, it sounds like saying due to speed and architecture changes flash can no longer support the color RED. Regards Hank On 12/16/05, Philip Costa [EMAIL PROTECTED] wrote: Hi, Sorry I'm jumping in late on this thread, but I was out of the office and I've been having email problems. To follow up on Matt's comment, you have to recognize that with this public alpha, we are releasing into the wild much earlier than usual, so not everything is resolved. We recognize that AS3/Flex 2 is a big change and that moving to it will require some people to rewrite code/change infrastructure. Part of the reason for releasing early is to make sure we struck the right balance between improving the architecture (which often causes breakage) and breaking things (which causes pain). The discussion here is definitely helpful in this regard. With Flex 2/AS3, we did not set out to break compatibility with existing Remoting implementations, but that may be a reality of the big changes we are making. As with every change, you have to make trade-offs between keeping backward compatibility and fixing things for the future. Our goal is to build a solid technical foundation that we can use in our own products and that others can use in their products; with this release, we decided making some painful changes was the right choice for the long-term. To address the specific question about Remoting, we will have more information about the future of other Adobe/Macromedia products that use Remoting soon as well as information about how other products that rely on AMF can make the migration to AS3. But I do want to set the expectation that this is going to be a migration, not an upgrade. Player 8.5 will continue to run content/applications published to Player 8 and below, but to take advantage of the radical performance and functional improvements in the new AVM, some things will have to be reimplemented. We are absolutely committed to helping the developer community make that change, whether they are buying Flex, Remoting or CF from us or something like AMFPHP, but at the moment we're in the middle of making that change ourselves, so you will have to be patient. Hope that helps, Phil Costa Group Product Manager, Flex -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hank williams Sent: Friday, December 16, 2005 7:25 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex2 and Amfphp is it possible ? To add just a little color to this, I use java on the server side, but POJOs are useless to me because I return almost all my data as ResutSet/RecordSet's. There are a variety of reasons for this including the pageablerecordset capability, but the bottom line is that's how I do it. Rewriting the old recordset code that supports AMF1, to me, is not at all sensitive to the needs of the developer base. And again, we don't even know if its possible. Matt from Adobe just said that he does not expect to be breaking anyone's workflows, but I am not sure if that just meant Brian, who is using Cold Fusion, but not FlapFlap since he is using AMFPHP. Given that PHP is currently the most popular server side tool in the world some statement of support for AMF1 would be helpful. But there are others that think that since AMFPHP is an open source hack and that Adobe has no obligation to maintain API compatibility or continuity with any existing protocol. Instant deprecation is no problem. If this is Adobe's position on this issue and to open source in general - or
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Hank - I still fail to see the meat of your argument. Macromedia has already released CFAdapter, which offers a clean, painless migration path for existing ColdFusion and JRun customers. I think its safe to assume they will have a similar adapter released which covers other .Net and Java servers. So who is abandoned? AMFPHP? I fail to see it as Macromedia's responsibilty to support them. AMF was and still is a proprietary protocol. If the open source community wants to reverse engineer and create an opensource AMF3PHP, more power to them, but I dont see that at MM's job. In my opionion, the Flash Platform has suffered over the past decade because of their backward compatability at all costs mantra. I've got no issue with sunsetting old apis, so long as there is a clean and clear migration path. With AMF3, Flex 2 and AS3, the migration path is pretty obvious to me as a ColdFusion, JRun, Flex and Flash customer. At 05:30 PM 12/16/2005, you wrote: Jesse, I am not sure why you are making me restate what is fairly clear from the emails from both brian and myself. In fact I would say brian is more articulate about it than me. But since you ask: On 12/16/05, JesterXL [EMAIL PROTECTED] wrote: I would say Flex 2's goal is to improve on the AMF protocol by making it better, not to orphan existing servers. I dont think orphaning servers is anyones primary goal, just a side effect that perhaps some feel would be financially beneficial. I posted code showing that AMF0 works in AS3, which should negate your concern. Nope. Again I dont want to redo this entire thread, but just doing AMF0 at the lowest level doesnt get you, for example recordsets. To expect people to deal with stuff at this level is just not right. Mike Chambers, Mike Downey, David Mendals, Matt Chotin, and Phillip Costa have all responded to your threads on OSFlash, Flashcoders, Flashcom, and Flexcoders over the past months attempting to address your concerns. Yet you still keep asking the same question. If they say the made up quote above, would this make you happy? I would disagree that anyone has attempted to address my concern. They have responded to my statements. But what I have heard in response is *very* troubling. Actually, before today the only one that responded to me was Mike Chambers, and he basically said (and I am paraphrasing) that it was only going to be supported at the low level. Just like what you said which means rewriting major, already working functionality. Addressing my concerns would be stating clear policy on the issue that is different from what I keep hearing. If they said what you just suggested they say, it would solve my problem, but, but they wont say it. You get answers like, its just alpha or we cant support everything in AS3. Obviously a concise answer that answered the issue with we are going to solve this issue so everyone will be able to do remoting with their existing servers the problem would go away. This is not a complicated issue. Deprecating APIs that dont need to be deprecated when tens of thousands of developers rely on them without any kind or orderly phase out is just not good policy. Perhaps you dont mind, but if Flex is released without addressing this people are going to be pissed. If they are going to fix it it would be great if they would just say so. Regards Hank - Original Message - From: hank williams [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, December 16, 2005 4:58 PM Subject: Re: [flexcoders] Re: Flex2 and Amfphp is it possible ? Jesse, Perhaps you missed the beginning of the thread, but the facts that you state are pretty much what this thread is complaining about. I am not concerned about what the alpha looks like but what Adobe's plan and policy is relationg to this matter. The issue is that it appear to me that it is the intent of the flex2 design to orphan the zillions of servers out there speaking AMF0. I am conerned about the fact that there is no consistent logical and clear statement that AMF0 and old style remoting will be supported in AS3. To me it appears that they do not intend to. In my view instant protocol and API deprecation is very bad form. Its just not what a mature company would do. I will not repeat everything that I and Brian Lesser have been saying here, but just to get up to speed you should probably check the archives for this thread if you have missed it. Regards Hank On 12/16/05, JesterXL [EMAIL PROTECTED] wrote: 1. The existing Flash MX 2004 Flash 8 Remoting classes do not compile in Flex 2. Since Flex 2 is not done yet, not sure if Macromedia will include those classes or not. If not, we'll have to code them. So, for now, if you are not using the Flex 2 framework, then you most likely will have to re-write low-level code. Here's what Renaun Erikson posted to AMFPHP list: var gatewayUrl
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
I dont recall MM championing AMFPHP, OpenAMF or any of the other 3rd party hacks to work with their proprietary AMF protocol. Perhaps I'm wrong, if so, I'd love to see the references Anyhow, Those open source alternatives were specifically built for AMF1, Flex 2 RemoteObject uses AMF2. If you want AMF1, take a look at Renaun's solution. I wouldnt be surprised if the opensource community eventually caught up and released versions for AMF2, but its really hard to blame Macromedia for someone elses gateways not supporting their latest versions... I dont blame MTASC for not compiling for the Flash 8.5 player. They will probably get their eventually, but still do a wonderful job for FP7 and FP8 At 02:18 PM 12/15/2005, hank williams wrote: Dave, When you said POJO, I interpreted that as Plain Old Java Object. Correct me if I missunderstood, but thats where I got the Java reference from. With more clarity, I understand your argument about it being possible to expose php code using web services. But I really think that regardless of which is better (I have my way you have yours) that there is no good reason under the sun to be *forced* out of using a technology that macromedia championed and still does today with just a minor shift so the old stuff will be incompatible. Sorry if I am a little irritable on this subject, but I just think that what macromedia has done here, regardless of the web services/remoting benefits borders generates alot of mistrust in the developer community. I know it does with me anyway. Regards Hank. On 12/15/05, Dave Wolf [EMAIL PROTECTED] wrote: A few thoughts. 1) I didnt imply Java anywhere in my question/suggestion/answer? Pretty much every servant technology today supports exposing language artifacts as web services without any code refactoring. This is true of Java, PHP, .NET, heck even PowerBuilder. Its actually a really important point I think folks don't know. Take Java (as just a single example). If you hava Java class exposed as a RemoteObject (only Java and CFC supported as remtoe object via Flex1.5 now) did you know that you can expose that *exact same* java class as a web service with *zero* code changes to the class? Yup. It takes something like 2 minutes of total work to do. You can try it youself with something like the restaurant example. We had a new guy do that just this week. He redid the restaurant example to be all web services in basically no time flat. Thats why I asked the question. Step back and consider the fact you could expose your PHP, or whatever, as a web service, totally drop any dependancy on needing a server proxy at all, regardless of what vendors proxy. 2) I agree the thread on web service vs remote object has been discussed over and over. But there are new folks joining these ranks every day, and the question is still very much open. Like in all debates everyone will pick a side. I think its pretty clear we prefer web services over remote object, and have that decision based on many points which we have often discussed. More so our decision is validated by quite major production deployments of Flex solutions. Our opinion is, given the choice, we tend to prefer a web service. Its just that. An opinion. In either case, I just wanted to present the option to the questioner. WebServices might actually be a great way to solve his issue, without the risk of bringing in an unsupported third party product, and without any license cost at all. I didnt feel a suggestion like that was off topic. Apologies if it was seen that way. - Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.comhttp://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED] wrote: Hmm... Thats an interesting response. So all of us who have developed solutions with remoting really didnt need it anyway. Aside from the fact that he was asking about amphp which has nothing to do with java, remoting does offer benefits over web services (aside from avoiding the reconfiguring ones server side implementation) which have been debated and discussed ad infinitum and I will not restate here. Regards Hank On 12/15/05, Dave Wolf [EMAIL PROTECTED] wrote: I don't understand why you can't simply use mx:WebService/ to replace mx:RemoteObject in most cases. Using AXIS you can use the exact same POJO you might have used in a mx:RemoteObject/ and do so without the need for any gateway. - Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.comhttp://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED]
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Do you expect php4 code to run on php2or php3? software products have new releases with new features. Expecting a product written years earlier to support every possible change in the future is far from realistic. AMF had a version 1 release, now it will have a version 2 release. I suspect MM will release a V2 Remoting Gateway. Have you missed the point that Flex 2 is an ALPHA product? MM is experimenting with lots of new technologies, without being constrained by how they will interact with other things. I'm confident they will find a way to support customers of their Remoting Gateway before flex 2 is released. At 03:37 PM 12/15/2005, you wrote: On 12/15/05, Jeff Tapper [EMAIL PROTECTED] wrote: I dont recall MM championing AMFPHP, OpenAMF or any of the other 3rd party hacks to work with their proprietary AMF protocol. Perhaps I'm wrong, if so, I'd love to see the references Anyhow, Those open source alternatives were specifically built for AMF1, Flex 2 RemoteObject uses AMF2. If you want AMF1, take a look at Renaun's solution. Fine what about *their own* AMF product? So if I bought flash remoting for $1000 from macromedia, I should just be dead in the water with an orphaned product. I should be required to switch to cold fusion or FDS? Puleezz. Hank I wouldnt be surprised if the opensource community eventually caught up and released versions for AMF2, but its really hard to blame Macromedia for someone elses gateways not supporting their latest versions... I dont blame MTASC for not compiling for the Flash 8.5 player. They will probably get their eventually, but still do a wonderful job for FP7 and FP8 At 02:18 PM 12/15/2005, hank williams wrote: Dave, When you said POJO, I interpreted that as Plain Old Java Object. Correct me if I missunderstood, but thats where I got the Java reference from. With more clarity, I understand your argument about it being possible to expose php code using web services. But I really think that regardless of which is better (I have my way you have yours) that there is no good reason under the sun to be *forced* out of using a technology that macromedia championed and still does today with just a minor shift so the old stuff will be incompatible. Sorry if I am a little irritable on this subject, but I just think that what macromedia has done here, regardless of the web services/remoting benefits borders generates alot of mistrust in the developer community. I know it does with me anyway. Regards Hank. On 12/15/05, Dave Wolf [EMAIL PROTECTED] wrote: A few thoughts. 1) I didnt imply Java anywhere in my question/suggestion/answer? Pretty much every servant technology today supports exposing language artifacts as web services without any code refactoring. This is true of Java, PHP, .NET, heck even PowerBuilder. Its actually a really important point I think folks don't know. Take Java (as just a single example). If you hava Java class exposed as a RemoteObject (only Java and CFC supported as remtoe object via Flex1.5 now) did you know that you can expose that *exact same* java class as a web service with *zero* code changes to the class? Yup. It takes something like 2 minutes of total work to do. You can try it youself with something like the restaurant example. We had a new guy do that just this week. He redid the restaurant example to be all web services in basically no time flat. Thats why I asked the question. Step back and consider the fact you could expose your PHP, or whatever, as a web service, totally drop any dependancy on needing a server proxy at all, regardless of what vendors proxy. 2) I agree the thread on web service vs remote object has been discussed over and over. But there are new folks joining these ranks every day, and the question is still very much open. Like in all debates everyone will pick a side. I think its pretty clear we prefer web services over remote object, and have that decision based on many points which we have often discussed. More so our decision is validated by quite major production deployments of Flex solutions. Our opinion is, given the choice, we tend to prefer a web service. Its just that. An opinion. In either case, I just wanted to present the option to the questioner. WebServices might actually be a great way to solve his issue, without the risk of bringing in an unsupported third party product, and without any license cost at all. I didnt feel a suggestion like that was off topic. Apologies if it was seen that way. - Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.comhttp://www.cynergysystems.comhttp://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Brian - I dont work for MM, so cant speak for them, but I suspect they will find a way to get the core functionality working for existing customers. As Renaun pointed out, you can still use AMF1 with ColdFusion. You just dont use the built in RemoteObject tag. His solution is a total of 5 lines of code, so that doesnt really strike me as all that difficult. If you want to use the Flex 2 RemoteObject tag, all you need to do is install the CFAdapter on the server. If you dont want to add anything to the server, use Renaun's AMF1 solution. No need for politics. Some seem adverse to any change, which is not a reasonable view for people working with alpha software. That is not aimed at anyone in particular, just my impression from reading posts on this list from people who seem to assume the Flex Alpha is a fully complete product. I understand some may be change adverse, so I suggest to those, they should not get involved with alpha software. Changes happen all the time. Chances are alot of code we write against the alpha will need to be changed when the beta is released. That is just the nature of product development. Anyhow, i didnt mean to start a flame war, just responding with my $0.02 At 04:06 PM 12/15/2005, you wrote: Hi Jeff, I have Coldfusion which includes the Flash Remoting Gateway. I would prefer it if the changes in Flex 2 did not force me to install new software on the server side and didn't break the authentication system I'm using by removing NetConnection.addHeader from the client - a useful, public, and documented method. I use addHeader in both Flash code and in Flash Communication Server code. Anyway, I think it would make my life simpler and a transition to standalone Flex 2 much easier for me to be able to write clients against my current server-side system. I have production code that people rely on and I really like having transition options that allow me to make a series of well-tested changes instead of one big one. At any rate I don't think Macromedia offered a Perl, PHP, Python etc.. Remoting Gateway. Did they? I have a great deal of sympathy for people who want to use a less network heavy protocol without being forced to change server technologies and/or buy servlet gateways at $999/CPU. I don't expect Adobe to do everything or that they will make every change completely painless. However, I do believe APIs should be gracefully retired whenever possible instead of just evaporating. I would like to see NetConnection.addHeader implemented and hope that converting to Flex 2 standalone with Coldfusion is not as difficult as it looks to me right now. Finally, anyone using remoting will recall going through a lot of API changes with two releases of Flash. Those changes were less than optimal for maintaining production software. During all these changes I was able to fall back on the NetConnection.call method and RecordSet classes. I'm not sure I can even do that now. Of course this is an alpha and I still have a lot to learn about Flex 2 and the various server-side options available to me. But I am concerned about what using Flex 2 will do to my existing applications and how much work will be involved in a conversion if I decide to go that way. Anything that clarrifies this at a technical - rather than a political level - would be hugely appreciated! Yours truly, -Brian Jeff Tapper wrote: I dont recall MM championing AMFPHP, OpenAMF or any of the other 3rd party hacks to work with their proprietary AMF protocol. Perhaps I'm wrong, if so, I'd love to see the references Anyhow, Those open source alternatives were specifically built for AMF1, Flex 2 RemoteObject uses AMF2. If you want AMF1, take a look at Renaun's solution. I wouldnt be surprised if the opensource community eventually caught up and released versions for AMF2, but its really hard to blame Macromedia for someone elses gateways not supporting their latest versions... I dont blame MTASC for not compiling for the Flash 8.5 player. They will probably get their eventually, but still do a wonderful job for FP7 and FP8 At 02:18 PM 12/15/2005, hank williams wrote: Dave, When you said POJO, I interpreted that as Plain Old Java Object. Correct me if I missunderstood, but thats where I got the Java reference from. With more clarity, I understand your argument about it being possible to expose php code using web services. But I really think that regardless of which is better (I have my way you have yours) that there is no good reason under the sun to be *forced* out of using a technology that macromedia championed and still does today with just a minor shift so the old stuff will be incompatible. Sorry if I am a little irritable on this subject, but I just think that what macromedia has done here, regardless of the web services/remoting benefits borders generates alot of mistrust in the developer community. I know it does with me anyway. Regards
Re: [flexcoders] Re: Flex2 and Amfphp is it possible ?
Oops, sorry about that. At 04:32 PM 12/15/2005, you wrote: The new AMF format is actually version 3 (at least thats what the docs call it) http://livedocs.macromedia.com/labs/1/flex/langref/flash/net/NetConnection.htmlhttp://livedocs.macromedia.com/labs/1/flex/langref/flash/net/NetConnection.html FROM DOCS of class flash.net.NetConnection: defaultObjectEncoding Property public static defaultObjectEncoding : uint The default object encoding (AMF version) for NetConnection objects created in the SWF. When an object is written to or read from binary data, the defaultObjectEncoding property indicates which Action Message Format version should be used: the ActionScript 3 format or the ActionScript 1/2.0 format. The default value of NetConnection.defaultObjectEncoding is set to use the ActionScript 3 format, AMF3. For content to successfully stream to player versions earlier than 8.5 through a NetConnection object, set NetConnection.defaultObjectEncoding to use the ActionScript 1/2.0 format, flash.net.ObjectEncoding.AMF0 at the beginning of your script, before you create any NetConnection objects. All NetConnection objects created thereafter will use AMF0 encoding and can interact with older content. You cannot change the objectEncoding value of existing NetConnection objects by setting NetConnection.defaultObjectEncoding after the NetConnection objects have been created. To set the object encoding on a per-object basis, rather than for the entire SWF, see the objectEncoding property of the NetConnection object instead. Renaun --- In flexcoders@yahoogroups.com, Jeff Tapper [EMAIL PROTECTED] wrote: I dont recall MM championing AMFPHP, OpenAMF or any of the other 3rd party hacks to work with their proprietary AMF protocol. Perhaps I'm wrong, if so, I'd love to see the references Anyhow, Those open source alternatives were specifically built for AMF1, Flex 2 RemoteObject uses AMF2. If you want AMF1, take a look at Renaun's solution. I wouldnt be surprised if the opensource community eventually caught up and released versions for AMF2, but its really hard to blame Macromedia for someone elses gateways not supporting their latest versions... I dont blame MTASC for not compiling for the Flash 8.5 player. They will probably get their eventually, but still do a wonderful job for FP7 and FP8 At 02:18 PM 12/15/2005, hank williams wrote: Dave, When you said POJO, I interpreted that as Plain Old Java Object. Correct me if I missunderstood, but thats where I got the Java reference from. With more clarity, I understand your argument about it being possible to expose php code using web services. But I really think that regardless of which is better (I have my way you have yours) that there is no good reason under the sun to be *forced* out of using a technology that macromedia championed and still does today with just a minor shift so the old stuff will be incompatible. Sorry if I am a little irritable on this subject, but I just think that what macromedia has done here, regardless of the web services/remoting benefits borders generates alot of mistrust in the developer community. I know it does with me anyway. Regards Hank. On 12/15/05, Dave Wolf [EMAIL PROTECTED] wrote: A few thoughts. 1) I didnt imply Java anywhere in my question/suggestion/answer? Pretty much every servant technology today supports exposing language artifacts as web services without any code refactoring. This is true of Java, PHP, .NET, heck even PowerBuilder. Its actually a really important point I think folks don't know. Take Java (as just a single example). If you hava Java class exposed as a RemoteObject (only Java and CFC supported as remtoe object via Flex1.5 now) did you know that you can expose that *exact same* java class as a web service with *zero* code changes to the class? Yup. It takes something like 2 minutes of total work to do. You can try it youself with something like the restaurant example. We had a new guy do that just this week. He redid the restaurant example to be all web services in basically no time flat. Thats why I asked the question. Step back and consider the fact you could expose your PHP, or whatever, as a web service, totally drop any dependancy on needing a server proxy at all, regardless of what vendors proxy. 2) I agree the thread on web service vs remote object has been discussed over and over. But there are new folks joining these ranks every day, and the question is still very much open. Like in all debates everyone will pick a side. I think its pretty clear we prefer web services over remote object, and have that decision based on many points which we have often discussed. More so our decision is validated by quite major production deployments of Flex solutions. Our opinion