RE: [flexcoders] Re: Has anyone done a file upload and download, store data into database
Yes, this can be done, using ByteArray and base64 encoding if I recall correctly, though I have not done it. Search the archives, it is discussed regularly. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of timgerr Sent: Wednesday, April 01, 2009 5:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Has anyone done a file upload and download, store data into database Sorry for not being clear. I want to transfer a file (image or document) to my back end PHP using flex. I then want PHP to convert the file to binary and store the data into a database. I think I know how to do that. I then want to be able to retrieve that data from a query to the back end via flex and then have the user download the file (in the correct file format). Can the 2nd part be done with flex, retrieving the file??? Thanks, timgerr --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tspr...@... wrote: Can you be more clear on what you want? Download typically means to take a physical file from a remote file system and save it in a local filesystem. There is no conversion involved. Perhaps you do not mean download? What kinds of file formats are you talking about, and what do you want to do with the data in the Flex client? Tracy Spratt, Lariat Services, development services available _
RE: [flexcoders]Where does my SWF gain it's weight?
I don't think FB will generate modules reports for you, and I certainly cannot see any options that would. Can I suggest using ANT to compile your app? It gives you much more flexibility for precisely this sort of reason. The alternative is to run mxmlc from a CLI and specify all the parameters yourself as a once off to get the report. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Guy Morton Sent: 01 April 2009 20:28 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders]Where does my SWF gain it's weight? FlexBuilder How can I get individual reports? There's only one spot where I can request the link report, afaik. Guy
[flexcoders] How on earth do I lose the LineChart LineSeries drop shadow?
I'm pulling my hair out trying to ditch the lineSeries dropshadow: mx:LineChart id=chart dataProvider={graph.itemList} maxHeight={width / 2} maxWidth={width - 80} showDataTips=true filters={null} mx:horizontalAxis mx:DateTimeAxis displayName={graph.xLabel} title={graph.xLabel}/ /mx:horizontalAxis mx:verticalAxis mx:LinearAxis displayName={graph.yLabel} title={graph.yLabel}/ /mx:verticalAxis mx:series mx:LineSeries xField=x yField=y lineStroke={ls} lineSegmentRenderer=mx.charts.renderers.LineRenderer filters={null}/ /mx:series mx:annotationElements gui1:HighTideMark positionValue={widget.kpiValue} lineColor=#6633ff/ /mx:annotationElements /mx:LineChart According to all the docs I canfind, using lineSegmentRenderer=mx.charts.renderers.LineRenderer should get rid of the drop shadow under my line series, but... no dice. Any ideas? -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
[flexcoders] Re: Adding tabs dynamically
TabNavigatorObj.addChildAt(this, TabNavigatorObj.getChildren().length - 1); Just a guessI think your problem is TabNavigatorObj.getChildren().length Its not what you think it is (do a trace on it). instead, try using TabNavigatorObj.addChild(this); --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... wrote: From the inside of a new Tab: TabNavigatorObj.addChildAt(this, TabNavigatorObj.getChildren().length - 1); --- In flexcoders@yahoogroups.com, Sam Lai samuel.lai@ wrote: How are you adding the tabs to the tabnavigator? 2009/4/2 markgoldin_2000 markgoldin_2000@: I am having a problem adding tabs to tabnavigator. While I am going in one order tabs are generated in a different then mine. Here is some code although it's simplified: // Scan thru scanning each zone and add as many as needed zoneNumber = resultXML.children().length(); currentZone = 0; createNextTab(resultXML); private function createNextTab(resultXML:XML):void { if (currentZone zoneNumber) { node = resultXML.zoneconfiguration[currentZone]; var Tab:boxing = new boxing(); Tab.id = node.lineid.toString(); Tab.label = Boxing Area + Tab.id + ; Tab.paramObj.lineid = node.lineid; Tab.attachJobInProgress(boxingareas); callLater(createNextTab, [resultXML]); currentZone++; } } resultXML looks very simple: nodes with lineid. Tab.paramObj.lineid drives IDs of tabs. While I am going from 1 to 6, Tabs have a random order: mostly 2, 1, Hope my problem is clear. Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders]Where does my SWF gain it's weight?
Embedding fonts is a major one ... - bjorn 2009/4/2 Gregor Kiddie gkid...@inpses.co.uk I don’t think FB will generate modules reports for you, and I certainly cannot see any options that would. Can I suggest using ANT to compile your app? It gives you much more flexibility for precisely this sort of reason. The alternative is to run mxmlc from a CLI and specify all the parameters yourself as a once off to get the report. Gk. *Gregor Kiddie* Senior Developer *INPS* Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Guy Morton *Sent:* 01 April 2009 20:28 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders]Where does my SWF gain it's weight? FlexBuilder How can I get individual reports? There's only one spot where I can request the link report, afaik. Guy -- http://www.juicability.com - flex blog http://www.nospoiler.com - link to youtube videos without the spoilers
RE: [flexcoders] Re: Creating exceptions to an eventlistener
Hi, I'm using outerCanvas.addEventListener( MouseEvent.MOUSE_DOWN, moveWindow ); where outerCanvas is the canvas that holds another canvas, that hold the datagrid (whew!) So trace(event.currentTarget) always returns phoneBook0.outerCanvas, (phoneBook is the app name) So I'm unable to trap where the event has been fired from? Thanks Shaun To: flexcoders@yahoogroups.com From: timh...@aol.com Date: Wed, 1 Apr 2009 18:31:50 + Subject: [flexcoders] Re: Creating exceptions to an eventlistener Hi, First, make sure, in the Canvas tag, that mouseChildren=true. You can also check in the drag event handler function if the currentTarget is a canvas or not: if ( !event.currentTarget is Canvas ) { event.stopImmediatePropagation; } There are probably better ways to do this, but this is a quick fix. -TH --- In flexcoders@yahoogroups.com, smccran s_mcc...@... wrote: Hi all, I've got a canvas with an event listener, that allows the user to drag the canvas around. The only problem is that I have a datagrid inside this canvas, and the event listener is interfering with it. IE I cannot drag the slider in the datagrid, or resize the column etc, as the event listener kicks in and moves the whole canvas instead. How can I create an exception for the datagrid? Thanks Shaun _ View your Twitter and Flickr updates from one place – Learn more! http://clk.atdmt.com/UKM/go/137984870/direct/01/
[flexcoders] .properties actionscript parser
Hello, We're managing the configuration on the server (java) and those configurations are generated in runtime as .properties format (text or xml). The flex client loads the configuration in runtime. Does anyone know of a utility class in as3 to parse .properties format? Alternatively (less preferred) does anyone know of an easy way to generate the swf file from the .properties on the server so it could be loaded as a ResourceBundle? Thanks, Guy
Re: [flexcoders] How on earth do I lose the LineChart LineSeries drop shadow?
Sweet I'll try it out first thing in the morning, cheers :) I don't suppose it explains why we have LineRenderer and ShadowLineRenderer. -Josh 2009/4/2 Paul Andrews p...@ipauland.com seriesFilters= [] - Original Message - *From:* Josh McDonald j...@joshmcdonald.info *To:* flexcoders@yahoogroups.com *Sent:* Thursday, April 02, 2009 8:52 AM *Subject:* [flexcoders] How on earth do I lose the LineChart LineSeries drop shadow? I'm pulling my hair out trying to ditch the lineSeries dropshadow: mx:LineChart id=chart dataProvider={graph.itemList} maxHeight={width / 2} maxWidth={width - 80} showDataTips=true filters={null} mx:horizontalAxis mx:DateTimeAxis displayName={graph.xLabel} title={graph.xLabel}/ /mx:horizontalAxis mx:verticalAxis mx:LinearAxis displayName={graph.yLabel} title={graph.yLabel}/ /mx:verticalAxis mx:series mx:LineSeries xField=x yField=y lineStroke={ls} lineSegmentRenderer=mx.charts.renderers.LineRenderer filters={null}/ /mx:series mx:annotationElements gui1:HighTideMark positionValue={widget.kpiValue} lineColor=#6633ff/ /mx:annotationElements /mx:LineChart According to all the docs I canfind, using lineSegmentRenderer=mx.charts.renderers.LineRenderer should get rid of the drop shadow under my line series, but... no dice. Any ideas? -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/ -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
[flexcoders] Re: Complex Charting in Flex
This may not be the most elegant solution but, assuming you have only 2 pairs of high/low as your example shows, rename your second close to close2 and use 5 ColumnSeries where the yFields are: close1.High, close1.Low, close2.High, close2.Low, open. --- In flexcoders@yahoogroups.com, kotha poornima poorni_ag...@... wrote: Hi, Sorry this is not what iam asking. I need to create a column chart with one bar representing high value and one bar representing low value. Like this it has to continue for all the high and low values in the same key(in this case month). And repeat the same for all the keys.I hope you got what iam saying..Thanks.. Thanks in Advance, Poornima From: Tim Hoff timh...@... To: flexcoders@yahoogroups.com Sent: Wednesday, April 1, 2009 11:48:34 PM Subject: [flexcoders] Re: Complex Charting in Flex Hi, Take a look at Using HighLowOpenClose charts (HLOCChart); in the help docs. -TH --- In flexcod...@yahoogro ups.com, kotha poornima poorni_agile@ ... wrote: Hi, Can anyone suggest how can i draw a chart using this type of xml. ?xml version=1.0 encoding=utf- 8? test stock monthAug/ month close High45..87 /High Low25.66/ Low /close close High45.77 /High Low25.96/ Low /close open 25.66 /open /stock stock monthSep/ month close High45.74 /High Low10.23/ Low /close close High45.67 /High Low25.96/ Low /close open 35.29 /open /stock /test For ever
[flexcoders] Re: Complex Charting in Flex
Ok, good to know. From the sparse request: Can anyone suggest how can i draw a chart using this type of xml?, there's not a lot to go on. I offent suspect that some requests, on this list, come from people just looking to waste time. But, if your request is genuine, use a CartesianChart with a second series. I recomend that you visit Ely's site: http://www.quietlyscheming.com/blog/ http://www.quietlyscheming.com/blog/ . Plenty of complex chart examples there. -TH --- In flexcoders@yahoogroups.com, kotha poornima poorni_ag...@... wrote: Hi, Sorry this is not what iam asking. I need to create a column chart with one bar representing high value and one bar representing low value. Like this it has to continue for all the high and low values in the same key(in this case month). And repeat the same for all the keys.I hope you got what iam saying..Thanks.. Thanks in Advance, Poornima From: Tim Hoff timh...@... To: flexcoders@yahoogroups.com Sent: Wednesday, April 1, 2009 11:48:34 PM Subject: [flexcoders] Re: Complex Charting in Flex Hi, Take a look at Using HighLowOpenClose charts (HLOCChart); in the help docs. -TH --- In flexcod...@yahoogro ups.com, kotha poornima poorni_agile@ ... wrote: Hi, Can anyone suggest how can i draw a chart using this type of xml. ?xml version=1.0 encoding=utf- 8? test stock monthAug/ month close High45..87 /High Low25.66/ Low /close close High45.77 /High Low25.96/ Low /close open 25.66 /open /stock stock monthSep/ month close High45.74 /High Low10.23/ Low /close close High45.67 /High Low25.96/ Low /close open 35.29 /open /stock /test For ever
Re: [flexcoders] How on earth do I lose the LineChart LineSeries drop shadow?
seriesFilters=[] - Original Message - From: Josh McDonald To: flexcoders@yahoogroups.com Sent: Thursday, April 02, 2009 8:52 AM Subject: [flexcoders] How on earth do I lose the LineChart LineSeries drop shadow? I'm pulling my hair out trying to ditch the lineSeries dropshadow: mx:LineChart id=chart dataProvider={graph.itemList} maxHeight={width / 2} maxWidth={width - 80} showDataTips=true filters={null} mx:horizontalAxis mx:DateTimeAxis displayName={graph.xLabel} title={graph.xLabel}/ /mx:horizontalAxis mx:verticalAxis mx:LinearAxis displayName={graph.yLabel} title={graph.yLabel}/ /mx:verticalAxis mx:series mx:LineSeries xField=x yField=y lineStroke={ls} lineSegmentRenderer=mx.charts.renderers.LineRenderer filters={null}/ /mx:series mx:annotationElements gui1:HighTideMark positionValue={widget.kpiValue} lineColor=#6633ff/ /mx:annotationElements /mx:LineChart According to all the docs I canfind, using lineSegmentRenderer=mx.charts.renderers.LineRenderer should get rid of the drop shadow under my line series, but... no dice. Any ideas? -- Therefore, send not to know For whom the bell tolls. It tolls for thee. Josh 'G-Funk' McDonald - j...@joshmcdonald.info - http://twitter.com/sophistifunk - http://flex.joshmcdonald.info/
[flexcoders] Re: Has anyone done a file upload and download, store data into database
Hi Flex sure can return the data, but because you are working with multiple file types, you're gonna run into some decoding / file saving issues. For example, you can easily decode an image file, but what about other binary files like .doc files etc? You will probably need libraries to take care of that. Plus, when it comes to saving the file(also with pre-upload encoding etc), you will be restricted with regards to Flash player version. In general, why are you storing it as binary data in the db, any specific reason? What traffic are you talking about, as this might create a lot of db / server-side 'overhead'. Dependent of the use case, taking a different approach might make your life much easier. Maybe you can give us a more detailed use case, as the solution will depend on what the desired behavior should be. What will happen before the upload? How will the download be initiated? How do you want to display the downloaded file? etc etc etc Yuri --- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote: Sorry for not being clear. I want to transfer a file (image or document) to my back end PHP using flex. I then want PHP to convert the file to binary and store the data into a database. I think I know how to do that. I then want to be able to retrieve that data from a query to the back end via flex and then have the user download the file (in the correct file format). Can the 2nd part be done with flex, retrieving the file??? Thanks, timgerr --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Can you be more clear on what you want? Download typically means to take a physical file from a remote file system and save it in a local filesystem. There is no conversion involved. Perhaps you do not mean download? What kinds of file formats are you talking about, and what do you want to do with the data in the Flex client? Tracy Spratt, Lariat Services, development services available _
[flexcoders] Re: Creating exceptions to an eventlistener
You are using event.currenttarget but this always points to the current object (the clue is in the name). Try using event.target and that might help. I hope so. Best of luck with it. --- In flexcoders@yahoogroups.com, shaun mccran s_mcc...@... wrote: Hi, I'm using outerCanvas.addEventListener( MouseEvent.MOUSE_DOWN, moveWindow ); where outerCanvas is the canvas that holds another canvas, that hold the datagrid (whew!) So trace(event.currentTarget) always returns phoneBook0.outerCanvas, (phoneBook is the app name) So I'm unable to trap where the event has been fired from? Thanks Shaun To: flexcoders@yahoogroups.com From: timh...@... Date: Wed, 1 Apr 2009 18:31:50 + Subject: [flexcoders] Re: Creating exceptions to an eventlistener Hi, First, make sure, in the Canvas tag, that mouseChildren=true. You can also check in the drag event handler function if the currentTarget is a canvas or not: if ( !event.currentTarget is Canvas ) { event.stopImmediatePropagation; } There are probably better ways to do this, but this is a quick fix. -TH --- In flexcoders@yahoogroups.com, smccran s_mccran@ wrote: Hi all, I've got a canvas with an event listener, that allows the user to drag the canvas around. The only problem is that I have a datagrid inside this canvas, and the event listener is interfering with it. IE I cannot drag the slider in the datagrid, or resize the column etc, as the event listener kicks in and moves the whole canvas instead. How can I create an exception for the datagrid? Thanks Shaun _ View your Twitter and Flickr updates from one place Learn more! http://clk.atdmt.com/UKM/go/137984870/direct/01/
Re: [flexcoders] .properties actionscript parser
Guy, I have a piece of code, which reads, XML and can be used as resource bundle @ runtime, if u need then i can mail u Two tpyes, - Static - Run time ( note - other than .properties file, a simple xml file ) -- Regards, Paresh M. More Senior Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@gmail.com On Thu, Apr 2, 2009 at 2:39 PM, guy.tomer guy.to...@gmail.com wrote: Hello, We're managing the configuration on the server (java) and those configurations are generated in runtime as .properties format (text or xml). The flex client loads the configuration in runtime. Does anyone know of a utility class in as3 to parse .properties format? Alternatively (less preferred) does anyone know of an easy way to generate the swf file from the .properties on the server so it could be loaded as a ResourceBundle? Thanks, Guy
[flexcoders] Using Sharde Object to communicate with a local SWF file from a desktop application
Hi all, I'm looking for info on how to use a shared object to do a communication between an C++ application that's run on the desktop and a swf file that's run locally on the desktop. I think it's quit easy for a C++ applciation to read and write SOL but I'm just thinking of read / write and lock issue... Have you any feedback on this or link to provide to me ? Thanks Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
RE: [flexcoders] Re: Creating exceptions to an eventlistener
Thanks for your help, I ended out picking up the string value of the element in the listener: var str:String = event.target.valueOf(); Then finding if it was the element I did not want the listener to work on. if ( str.search(displayPeople) = 1) Might not be the most elegant solution, but it works a treat. Thanks Shaun McCran To: flexcoders@yahoogroups.com From: huss.stu...@gmail.com Date: Thu, 2 Apr 2009 11:03:55 + Subject: [flexcoders] Re: Creating exceptions to an eventlistener You are using event.currenttarget but this always points to the current object (the clue is in the name). Try using event.target and that might help. I hope so. Best of luck with it. --- In flexcoders@yahoogroups.com, shaun mccran s_mcc...@... wrote: Hi, I'm using outerCanvas.addEventListener( MouseEvent.MOUSE_DOWN, moveWindow ); where outerCanvas is the canvas that holds another canvas, that hold the datagrid (whew!) So trace(event.currentTarget) always returns phoneBook0.outerCanvas, (phoneBook is the app name) So I'm unable to trap where the event has been fired from? Thanks Shaun To: flexcoders@yahoogroups.com From: timh...@... Date: Wed, 1 Apr 2009 18:31:50 + Subject: [flexcoders] Re: Creating exceptions to an eventlistener Hi, First, make sure, in the Canvas tag, that mouseChildren=true. You can also check in the drag event handler function if the currentTarget is a canvas or not: if ( !event.currentTarget is Canvas ) { event.stopImmediatePropagation; } There are probably better ways to do this, but this is a quick fix. -TH --- In flexcoders@yahoogroups.com, smccran s_mccran@ wrote: Hi all, I've got a canvas with an event listener, that allows the user to drag the canvas around. The only problem is that I have a datagrid inside this canvas, and the event listener is interfering with it. IE I cannot drag the slider in the datagrid, or resize the column etc, as the event listener kicks in and moves the whole canvas instead. How can I create an exception for the datagrid? Thanks Shaun __ View your Twitter and Flickr updates from one place – Learn more! http://clk.atdmt.com/UKM/go/137984870/direct/01/ _ Share your photos with Windows Live Photos – Free. http://clk.atdmt.com/UKM/go/134665338/direct/01/
[flexcoders] Defining item renderers for a DataGrid using ActionScript
I'm trying to create item renderers for DataGrid columns dynamically at runtime and am having a hard time sorting out how to define and attach item renderers. To make sure I've got the mecahnics right first, all I'm trying for now is to make a non-editable column display as a checkbox. My column definitions are stored in an XML file - the snipped below shows how I'm reading the definitions and creating the DataGrid's columns: for each (var columnDefinition:XML in columnDefinitionsXmlList) { var newColumn:DataGridColumn = new DataGridColumn; newColumn.headerText = columnDefinition.col_title; newColumn.dataField = columnDefinition.col_data; newColumn.width = Number(columnDefinition.col_width); if (columnDefinition.col_type == boolean) { // newColumn.itemRenderer = new ClassFactory(mx.controls.CheckBox); var cb:ClassFactory = new ClassFactory(mx.controls.CheckBox); newColumn.itemRenderer = cb; } columnDefinitions.push(newColumn); } The code shown above does make the column display as a checkbox - but there's no code to turn the checkbox on/off depending on the current cell's value. In the example above, the variable cb is the checkbox that is then associated with the column. What I don't see in FlexBuilder's hinting system is any property of cb that lets me set the condition that controls if the checkbox is on or off - or any of the other properties normally used for an item renderer defined through MXML. Am I missing something obvious or am I going about this in the wrong way? Links to any relevant examples appreciated - I've looked at a lot of examples, but have yet to find one that shows defining an item renderer in quite this way. I'm happy to create a class or component for CheckBox (or whatever else) so long as I'll then be able to set the condition which controls on/off. Thanks for any help.
[flexcoders] Newbie in FLEX, need help on a question
Hi, I am not an intermmediate or advanced Flex coder, but just trying to use the Flex Builder latest trial version to create some mockups for an application I intend to hire resources to develop on. My question for flex is: After I run the application in flex builder, and it displays it on IE browser for me, the application frame/mockup screen is sized half the IE browser size and is centered ( on IE). How can I change it to display fully utilizing my IE browser real estate? Any help is greatly appreciated. I do love flex, and excited to learn more! Cheers -Neel
Re: [flexcoders] Re: Adding tabs dynamically
Looks ok - I assume lineid in the XML doc progresses sequentially. Maybe try manually using AS3 to add 6 tabs to the tabnavigator using similar code and see if it still happens, just to rule out the XML doc? 2009/4/2 markgoldin_2000 markgoldin_2...@yahoo.com: From the inside of a new Tab: TabNavigatorObj.addChildAt(this, TabNavigatorObj.getChildren().length - 1); --- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote: How are you adding the tabs to the tabnavigator? 2009/4/2 markgoldin_2000 markgoldin_2...@...: I am having a problem adding tabs to tabnavigator. While I am going in one order tabs are generated in a different then mine. Here is some code although it's simplified: // Scan thru scanning each zone and add as many as needed zoneNumber = resultXML.children().length(); currentZone = 0; createNextTab(resultXML); private function createNextTab(resultXML:XML):void { if (currentZone zoneNumber) { node = resultXML.zoneconfiguration[currentZone]; var Tab:boxing = new boxing(); Tab.id = node.lineid.toString(); Tab.label = Boxing Area + Tab.id + ; Tab.paramObj.lineid = node.lineid; Tab.attachJobInProgress(boxingareas); callLater(createNextTab, [resultXML]); currentZone++; } } resultXML looks very simple: nodes with lineid. Tab.paramObj.lineid drives IDs of tabs. While I am going from 1 to 6, Tabs have a random order: mostly 2, 1, Hope my problem is clear. Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Adding tabs dynamically
Actually this fixed the problem: boxingareas.validateSize() after a tab has been added. --- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote: Looks ok - I assume lineid in the XML doc progresses sequentially. Maybe try manually using AS3 to add 6 tabs to the tabnavigator using similar code and see if it still happens, just to rule out the XML doc? 2009/4/2 markgoldin_2000 markgoldin_2...@...: From the inside of a new Tab: TabNavigatorObj.addChildAt(this, TabNavigatorObj.getChildren().length - 1); --- In flexcoders@yahoogroups.com, Sam Lai samuel.lai@ wrote: How are you adding the tabs to the tabnavigator? 2009/4/2 markgoldin_2000 markgoldin_2000@: I am having a problem adding tabs to tabnavigator. While I am going in one order tabs are generated in a different then mine. Here is some code although it's simplified: // Scan thru scanning each zone and add as many as needed zoneNumber = resultXML.children().length(); currentZone = 0; createNextTab(resultXML); private function createNextTab(resultXML:XML):void { if (currentZone zoneNumber) { node = resultXML.zoneconfiguration[currentZone]; var Tab:boxing = new boxing(); Tab.id = node.lineid.toString(); Tab.label = Boxing Area + Tab.id + ; Tab.paramObj.lineid = node.lineid; Tab.attachJobInProgress(boxingareas); callLater(createNextTab, [resultXML]); currentZone++; } } resultXML looks very simple: nodes with lineid. Tab.paramObj.lineid drives IDs of tabs. While I am going from 1 to 6, Tabs have a random order: mostly 2, 1, Hope my problem is clear. Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] AutoComplete with multiple items
The original poster already said that the Yahoo Astra AutoComplete component did not support multiple entries. This is also something that got deferred for version 1 of the Flextras AutoComplete component. I would suggest taking a look at Hillel Coren's AutoComplete component: http://hillelcoren.com/2009/03/23/flex-autocomplete-bug-fixes/ He has done some work around Multiple Selection. Guy Morton wrote: Yahoo has a bundle of components you can drop into your projects. Google it (how ironic). On 02/04/2009, at 2:57 PM, Mark Carter wrote: I too, would like this? Does anyone know of such a component? -- View this message in context: http://www.nabble.com/AutoComplete-with-multiple-items-tp16840144p22840425.html http://www.nabble.com/AutoComplete-with-multiple-items-tp16840144p22840425.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: Has anyone done a file upload and download, store data into database
I would recommend NOT storing the file(s) in the database. What I would do is upload the file to the server then get PHP to move it and then store the location of the file in the database. --- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote: Sorry for not being clear. I want to transfer a file (image or document) to my back end PHP using flex. I then want PHP to convert the file to binary and store the data into a database. I think I know how to do that. I then want to be able to retrieve that data from a query to the back end via flex and then have the user download the file (in the correct file format). Can the 2nd part be done with flex, retrieving the file??? Thanks, timgerr --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Can you be more clear on what you want? Download typically means to take a physical file from a remote file system and save it in a local filesystem. There is no conversion involved. Perhaps you do not mean download? What kinds of file formats are you talking about, and what do you want to do with the data in the Flex client? Tracy Spratt, Lariat Services, development services available _
Re: [flexcoders] Ellipsis in Advanced datagrid(in flex)
Hey there, You'll want to use the truncateToFit property of the item renderer ClassFactory. var rendererFactory:ClassFactory; rendererFactory = new ClassFactory(Label); rendererFactory.properties = { truncateToFit: true, styleName: cellText }; column.itemRenderer = rendererFactory; Adrian senthilkumarirtt wrote: hi i want to implement the ellipsis concept in Advanced datagrid in flex to avoid truncation of lengthy name of data.
Re: [flexcoders] Re: Flex on mobile devices
On Tuesday 31 Mar 2009, oneworld95 wrote: technical difficulties are keeping the iPhone from getting Flash-enabled. Not that I know anything, but 'technical' my left elbow ! The iPhone easily has enough processor grunt. -- Helping to evangelistically brand distributed clicks-and-mortar sticky professional web-readiness as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
Re: [flexcoders] Flash player fails to install on vista!
On Wednesday 01 Apr 2009, Cato Paus wrote: switching to FireFox, up yours MS! This is always a good step, as the development tools available as FireFox addons, and even just the built in error console, are a boon to web developers. -- Helping to centrally exploit bricks-and-clicks e-commerce as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
[flexcoders] Dynamic creation of ComboBox in ActionScript
Big Picture: I'm trying to recreate the dynamic search interface in search coders app. I think it will be a great base for an sql front end. I can create combo-box's dynamically via the button. However, I want as much configuration as possible to come from a database (so I can change my app without going through all the red-tape of change control). Sooo... I need to create the ComboBox when the the button is pressed but THEN (here is the question): I need it to execute a function, conn.getData(), in order to have the ComboBox populated. In mxml, I would use creationComplete. However, actionscript does not seem to have this method for ComboBox. What do I use? I've searched the methods for ComboBox but nothing is jumping out at meexcept maybe initialized. Are the 3 phases of layout done before the call to a dataprovider (if I want the data at creationcomplete)? (Yes, I'm working through my flex authority issues too). And, while I'm at it, what would be the best method -- via actionscript-- for completely removing the ComboBox (and putting it out for garbage collection) if the minus button is pressed?
[flexcoders] truncateToFit in flex
hi,i want to know about use of truncateToFit in advanced datagrid.
Re: [flexcoders] truncateToFit in flex
Hi, I posted the answer in your last email about this...using ellipses in the ADG Adrian senthilkumarirtt wrote: hi,i want to know about use of truncateToFit in advanced datagrid.
[flexcoders] Error with amfphp
Hello, I have this error : DeliveryInDoubtMessage:Channel disconnectedDetail:Channel disconnected before an acknowledgement was received. I have verify all the sources in Flex and in php. This error arrive from 1 day ago. Thnak you, Christophe,
[flexcoders] compiling fp10 in flex3
I Have the fp10 player global swc but when I try that flex read it as an external swc, I always have a bytecode error, any help? Gustavo P.D: someone would help me out with an step by step guide I've been doing what they said in the internet and I still have the error.
[flexcoders] Re: .properties actionscript parser
That would be great! thanks --- In flexcoders@yahoogroups.com, Paresh M More pareshm...@... wrote: Guy, I have a piece of code, which reads, XML and can be used as resource bundle @ runtime, if u need then i can mail u Two tpyes, - Static - Run time ( note - other than .properties file, a simple xml file ) -- Regards, Paresh M. More Senior Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@... On Thu, Apr 2, 2009 at 2:39 PM, guy.tomer guy.to...@... wrote: Hello, We're managing the configuration on the server (java) and those configurations are generated in runtime as .properties format (text or xml). The flex client loads the configuration in runtime. Does anyone know of a utility class in as3 to parse .properties format? Alternatively (less preferred) does anyone know of an easy way to generate the swf file from the .properties on the server so it could be loaded as a ResourceBundle? Thanks, Guy
Re: [flexcoders] Re: .properties actionscript parser
just let me know exact reuirment of urs i would send u peice of code On Thu, Apr 2, 2009 at 7:58 PM, guy.tomer guy.to...@gmail.com wrote: That would be great! thanks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paresh M More pareshm...@... wrote: Guy, I have a piece of code, which reads, XML and can be used as resource bundle @ runtime, if u need then i can mail u Two tpyes, - Static - Run time ( note - other than .properties file, a simple xml file ) -- Regards, Paresh M. More Senior Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@... On Thu, Apr 2, 2009 at 2:39 PM, guy.tomer guy.to...@... wrote: Hello, We're managing the configuration on the server (java) and those configurations are generated in runtime as .properties format (text or xml). The flex client loads the configuration in runtime. Does anyone know of a utility class in as3 to parse .properties format? Alternatively (less preferred) does anyone know of an easy way to generate the swf file from the .properties on the server so it could be loaded as a ResourceBundle? Thanks, Guy -- Regards, Paresh M. More Senior Software Engineer Nashik/Pune, Maharashtra, India. Email - pareshm...@gmail.com
[flexcoders] Re: Problem migrating from Flex 2 to Flex 3
Thanks for your reply tracy, actually we did cleaning when we migrate to Flex 3. As you said may be naming conflict, but i wonder not specified in Release notes or any other bug list. Thanks --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Maybe a name collision with the result event? Also, have you cleaned the Project? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of sruthi Sent: Wednesday, April 01, 2009 4:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem migrating from Flex 2 to Flex 3 Hi we have a component some thing like this. This code works properly with Flex 2, but when we try to migrate to flex 3 we are getting ERROR 1067: Implicit coercion of a value of type Array to an unrelated type classes.ixrev.industry:ResultObject. CellData.mxml - mx:Canvas xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml width=100% height=100% xmlns:MyComps=common.* . mx:Script ![CDATA[ [Bindable] public var result:ResultObject = null; ]] /mx:Script MyComps:detailListingCommodity id=detailListingId headerIndex=0 verticalAlign=top result={result}/ /mx:Canvas detailListingCommodity.mxml --- mx:VBox xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml width=100% height=100% creationPolicy=all mx:Script ![CDATA[ [Bindable] public var result:ResultObject = null; .. .. ]] /mx:Script /mx:VBox I dont't know why it needs implicit coercion, both are type ResultObject. Anybody have any idea? Thanks -Sruthi
[flexcoders] Print existing documents in Flex
Hi I have a situation where i have a bunch of urls which point to existing files which have to be printed to a users default printer. How can i use the PrintJob to achieve this. The user does not want to navigate to each url and print it manually.. I am not sure if PrintJob can print existing files. Does anyubody know how one would achieve this ? Thanks Kumar
[flexcoders] Re: Dynamic creation of ComboBox in ActionScript
I think you can use .callLater --- In flexcoders@yahoogroups.com, brad.bueche b...@... wrote: In mxml, I would use creationComplete. However, actionscript does not seem to have this method for ComboBox. What do I use?
Re: [flexcoders] Print existing documents in Flex
PrintJob won't print external files. The only way to do it with Flex would be to read each file and add it's contents to a container to be rendered using Printjob. Unfortunately Flex isn't a printspooler! You might have some luck trying to navigate to the document url by popping up a new browser window, which may then display the document and would still require the user to use separate print dialogs. The only other solution is via networked printer support on the server. It's not going to be straightforward. Paul - Original Message - From: Arun Menon kumarme...@hotmail.com To: flexcoders@yahoogroups.com Sent: Thursday, April 02, 2009 3:12 PM Subject: [flexcoders] Print existing documents in Flex Hi I have a situation where i have a bunch of urls which point to existing files which have to be printed to a users default printer. How can i use the PrintJob to achieve this. The user does not want to navigate to each url and print it manually.. I am not sure if PrintJob can print existing files. Does anyubody know how one would achieve this ? Thanks Kumar -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2
Glad that worked for you Tim. However, I am still having issues. I have had an mm.cfg file in my c:\users\username directory and have tried multiple things with it that I read online such as trying to specify a path to PreloadSwf, but I still keep getting the same error. Any other thoughts? I started out compiling my project under version 3.3 of the SDK, but recently compiled it under 3.2 to see if it would work, but to no avail. Thanks, Nate --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Glad that worked. For the record if you kill a profiler session unexpectedly (which can happen when the profiler barfs or hangs on a large app) it won't clean up mm.cfg and you can run into this problem. And even if you don't get security errors in other configs, you'll find your debug sessions are running really slowly. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 9:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Nailed it! C:\Users\Tim\mm.cfg: TraceOutputFileName=C:\Users\Tim\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt ErrorReportingEnable=1 MaxWarnings=0 TraceOutputFileEnable=1 PreloadSwf=C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhostport= Removed the last line and problem solved. In thinking about it, this was more of a technical support issue; that I could have investigated more thoroughly. Thank you very much for your continued help though Alex. Hope that this helps you too, Nate. -TH --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: http://livedocs.adobe.com/flex/3/html/help.html?content=logging_04.html Looks like it will be in c:\users\username Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 6:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Actually, I couldn't find that specific file on my system (vista ultimate). The closest thing that I could find was C:/Windows/System32/Macromed/Flash/FlashAuthor.cfg. Any! clue where that file might be located? It didn't come up in a search. When I launch an Air app, this is what shows in the console: [SWF] C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf - 17,476 bytes after decompression [SWF] MyApp.swf - 2,472,578 bytes after decompression -TH --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Is there a preloaderSWF in your mm.cfg or is one being written there as you launch the app? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 3:29 PM To: f! lexcod...@yahoogroups.com Subject: [flexcode! rs] Re: Security sandbox violation error after upgrade to SDK 3.2 Hi Nate, Unfortunately I'm still having the problem as well. The difference is that mine shows up only when launching an Air app. I'm able to run the profiler just fine, but for some reason the profiler swf is trying to be loaded with a regular l! aunch. I tried Alex's suggestion (mm.cfg) with no success yet. -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, nateross83 nateross83@ wrote: I am experiencing the same problems trying to profile an AIR 1.5 app. Here is my stack trace: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Cfile:///\\C! ;|%2FUsers%2FNateR%2FDocuments%2FFlex%20Builder%203%2F.metadata%\ 2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost\ port=9998 cannot load data from localhost:9998. at ProfilerAgent()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent\ .as:127] at runtime::ContentPlayer/loadInitialContent(! ) at runtime::ContentPlayer/playRawContent() at runtime::ContentPlayer/playContent() at runtime::AppRunner/run() at global/runtime::ADLEntry() I have tried changing the port from to other values without success, I disabled my firewall to try it (although I don't think localhost would be an issue). The strange thin! g is that a coworker of mine appears to have the ! same set up as I do and it works fine for him. Here is what I have: Flex Builder v 3.0.2 Flash
[flexcoders] Panel access
Hello, I have a tab navigator with Panels. I want that the user access some panel only if he is logged. How to unvalidate the access to a Panel ? Thank you, Christophe,
Re: [flexcoders] Dynamic creation of ComboBox in ActionScript
Brad, creationComplete is an event, and not a method or property. In MXML, these look very similar, but in ActionScript, you need to explicitly add an event listener to handle the event. E.g., comboBox.addEventListener(FlexEvent.CREATION_COMPLETE, handleCreationComplete) and then elsewhere in the file, define the handler, as you would in MXML: private function handleCreationComplete(e:FlexEvent):void { ... } -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: brad.bueche b...@bueche.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamic creation of ComboBox in ActionScript Date: Thu, 02 Apr 2009 13:24:31 - Big Picture: I'm trying to recreate the dynamic search interface in search coders app. I think it will be a great base for an sql front end. I can create combo-box's dynamically via the button. However, I want as much configuration as possible to come from a database (so I can change my app without going through all the red-tape of change control). Sooo... I need to create the ComboBox when the the button is pressed but THEN (here is the question): I need it to execute a function, conn.getData(), in order to have the ComboBox populated. In mxml, I would use creationComplete. However, actionscript does not seem to have this method for ComboBox. What do I use? I've searched the methods for ComboBox but nothing is jumping out at meexcept maybe initialized. Are the 3 phases of layout done before the call to a dataprovider (if I want the data at creationcomplete)? (Yes, I'm working through my flex authority issues too). And, while I'm at it, what would be the best method -- via actionscript-- for completely removing the ComboBox (and putting it out for garbage collection) if the minus button is pressed?
[flexcoders] Re: Newbie in FLEX, need help on a question
mx:Application pageTitle=My Awesome Page xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% The width and height properties are what you want. --- In flexcoders@yahoogroups.com, krishneelu krishne...@... wrote: Hi, I am not an intermmediate or advanced Flex coder, but just trying to use the Flex Builder latest trial version to create some mockups for an application I intend to hire resources to develop on. My question for flex is: After I run the application in flex builder, and it displays it on IE browser for me, the application frame/mockup screen is sized half the IE browser size and is centered ( on IE). How can I change it to display fully utilizing my IE browser real estate? Any help is greatly appreciated. I do love flex, and excited to learn more! Cheers -Neel
[flexcoders] autocomplete difference in array vs httpservice
I've been trying to use this autocomplete http://examples.adobe.com/flex2/exchange/AutoComplete/CustomizeAutoComplete/CustomizeAutoComplete.html and i got it working but httpservice loads a [object Object] on load of the app, and when i clear that out and start typing it works. I just want to use an httpservice and avoid the object object on load it should just be blank on load. it works fine with an ARRAY just trouble when i try to use httpservice like this mx:HTTPService id=autocomplete url=/test.php method=POST showBusyCursor=true requestTimeout=40 fault=defaultFault(event) resultFormat=object/ I've tried to add resultformat to array on httpservice and i get no results. I also tried to use ArrayUtil.toArray(
Re: [flexcoders] Panel access
If ( userLogged == false ) myPanel.enabled = false; You could also take it completely out of view by setting the visible property false... Is there something more you are trying to accomplish? Rick Winscot On 4/2/09 11:40 AM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, I have a tab navigator with Panels. I want that the user access some panel only if he is logged. How to unvalidate the access to a Panel ? Thank you, Christophe,
Re: [flexcoders] Panel access
Hi Christophe, Try accessing the panel.enabled property. If the user is not logged in, set panel.enabled = false and they won't be able to interact with it. Adrian christophe_jacquelin wrote: Hello, I have a tab navigator with Panels. I want that the user access some panel only if he is logged. How to unvalidate the access to a Panel ? Thank you, Christophe,
[flexcoders] Re: Error with amfphp
I have seen this before and never found a solution. Everything is working perfectly and then this error shows up and won't go away (Even if you revert to the last version that worked it is still there). This was the main reason I moved to using WebORB. I have not seen that error since that time. WebORB Just Works. I do still have AMFPHP code in parts of my apps and they are still working OK. When I get time I will refactor them with WebORB. Sorry for not being any more help. Steve --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, I have this error : DeliveryInDoubtMessage:Channel disconnectedDetail:Channel disconnected before an acknowledgement was received. I have verify all the sources in Flex and in php. This error arrive from 1 day ago. Thnak you, Christophe,
Re: [flexcoders] Using Sharde Object to communicate with a local SWF file from a desktop application
Depending on what you want, XMLSocket might be a better fit than SharedObject... -Original Message- From: Flap Flap flapflapl...@kilooctet.net Reply-to: flexcoders@yahoogroups.com To: FlexCoders flexcoders@yahoogroups.com Subject: [flexcoders] Using Sharde Object to communicate with a local SWF file from a desktop application Date: Thu, 2 Apr 2009 13:44:12 +0200 Hi all, I'm looking for info on how to use a shared object to do a communication between an C++ application that's run on the desktop and a swf file that's run locally on the desktop. I think it's quit easy for a C++ applciation to read and write SOL but I'm just thinking of read / write and lock issue... Have you any feedback on this or link to provide to me ? Thanks Benoît Milgram / Flapflap http://www.kilooctet.net I'm also a music mashup / bootlegs producer : http://www.djgaston.net
RE: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2
There should almost never be a preloadSWF entry in your mm.cfg. FlexBuilder is supposed to put it in and take out at the beginning and end of profiler sessions. If you clear that entry from mm.cfg do you still have problems? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of nateross83 Sent: Thursday, April 02, 2009 8:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Glad that worked for you Tim. However, I am still having issues. I have had an mm.cfg file in my c:\users\username directory and have tried multiple things with it that I read online such as trying to specify a path to PreloadSwf, but I still keep getting the same error. Any other thoughts? I started out compiling my project under version 3.3 of the SDK, but recently compiled it under 3.2 to see if it would work, but to no avail. Thanks, Nate --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: Glad that worked. For the record if you kill a profiler session unexpectedly (which can happen when the profiler barfs or hangs on a large app) it won't clean up mm.cfg and you can run into this problem. And even if you don't get security errors in other configs, you'll find your debug sessions are running really slowly. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 9:01 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Nailed it! C:\Users\Tim\mm.cfg: TraceOutputFileName=C:\Users\Tim\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt ErrorReportingEnable=1 MaxWarnings=0 TraceOutputFileEnable=1 PreloadSwf=C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhostport= Removed the last line and problem solved. In thinking about it, this was more of a technical support issue; that I could have investigated more thoroughly. Thank you very much for your continued help though Alex. Hope that this helps you too, Nate. -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: http://livedocs.adobe.com/flex/3/html/help.html?content=logging_04.html Looks like it will be in c:\users\username Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 6:23 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Actually, I couldn't find that specific file on my system (vista ultimate). The closest thing that I could find was C:/Windows/System32/Macromed/Flash/FlashAuthor.cfg. Any! clue where that file might be located? It didn't come up in a search. When I launch an Air app, this is what shows in the console: [SWF] C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf - 17,476 bytes after decompression [SWF] MyApp.swf - 2,472,578 bytes after decompression -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Is there a preloaderSWF in your mm.cfg or is one being written there as you launch the app? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 3:29 PM To: f! lexcod...@yahoogroups.commailto:lexcoders%40yahoogroups.com Subject: [flexcode! rs] Re: Security sandbox violation error after upgrade to SDK 3.2 Hi Nate, Unfortunately I'm still having the problem as well. The difference is that mine shows up only when launching an Air app. I'm able to run the profiler just fine, but for some reason the profiler swf is trying to be loaded with a regular l! aunch. I tried Alex's suggestion (mm.cfg) with no success yet. -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, nateross83 nateross83@ wrote: I am experiencing the same problems
RE: [flexcoders] Defining item renderers for a DataGrid using ActionScript
By default, checkbox assumes the data[dataField] is a Boolean and will reflect that value. If you want anything else, you'll need to bake a subclass upfront with the flexibility to do what you want. ItemRenderers are classes and you can't define classes at runtime, you can only tweak properties and styles. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Penny Laus Sent: Thursday, April 02, 2009 12:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Defining item renderers for a DataGrid using ActionScript I'm trying to create item renderers for DataGrid columns dynamically at runtime and am having a hard time sorting out how to define and attach item renderers. To make sure I've got the mecahnics right first, all I'm trying for now is to make a non-editable column display as a checkbox. My column definitions are stored in an XML file - the snipped below shows how I'm reading the definitions and creating the DataGrid's columns: for each (var columnDefinition:XML in columnDefinitionsXmlList) { var newColumn:DataGridColumn = new DataGridColumn; newColumn.headerText = columnDefinition.col_title; newColumn.dataField = columnDefinition.col_data; newColumn.width = Number(columnDefinition.col_width); if (columnDefinition.col_type == boolean) { // newColumn.itemRenderer = new ClassFactory(mx.controls.CheckBox); var cb:ClassFactory = new ClassFactory(mx.controls.CheckBox); newColumn.itemRenderer = cb; } columnDefinitions.push(newColumn); } The code shown above does make the column display as a checkbox - but there's no code to turn the checkbox on/off depending on the current cell's value. In the example above, the variable cb is the checkbox that is then associated with the column. What I don't see in FlexBuilder's hinting system is any property of cb that lets me set the condition that controls if the checkbox is on or off - or any of the other properties normally used for an item renderer defined through MXML. Am I missing something obvious or am I going about this in the wrong way? Links to any relevant examples appreciated - I've looked at a lot of examples, but have yet to find one that shows defining an item renderer in quite this way. I'm happy to create a class or component for CheckBox (or whatever else) so long as I'll then be able to set the condition which controls on/off. Thanks for any help.
[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2
Yes, I've tried clearing out that line and even deleting the mm.cfg file (which is recreated for me automatically when I try to run the profiler), but nothing works. Nate --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: There should almost never be a preloadSWF entry in your mm.cfg. FlexBuilder is supposed to put it in and take out at the beginning and end of profiler sessions. If you clear that entry from mm.cfg do you still have problems? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of nateross83 Sent: Thursday, April 02, 2009 8:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Glad that worked for you Tim. However, I am still having issues. I have had an mm.cfg file in my c:\users\username directory and have tried multiple things with it that I read online such as trying to specify a path to PreloadSwf, but I still keep getting the same error. Any other thoughts? I started out compiling my project under version 3.3 of the SDK, but recently compiled it under 3.2 to see if it would work, but to no avail. Thanks, Nate --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Glad that worked. For the record if you kill a profiler session unexpectedly (which can happen when the profiler barfs or hangs on a large app) it won't clean up mm.cfg and you can run into this problem. And even if you don't get security errors in other configs, you'll find your debug sessions are running really slowly. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 9:01 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Nailed it! C:\Users\Tim\mm.cfg: TraceOutputFileName=C:\Users\Tim\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt ErrorReportingEnable=1 MaxWarnings=0 TraceOutputFileEnable=1 PreloadSwf=C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhostport= Removed the last line and problem solved. In thinking about it, this was more of a technical support issue; that I could have investigated more thoroughly. Thank you very much for your continued help though Alex. Hope that this helps you too, Nate. -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: http://livedocs.adobe.com/flex/3/html/help.html?content=logging_04.html Looks like it will be in c:\users\username Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 6:23 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Actually, I couldn't find that specific file on my system (vista ultimate). The closest thing that I could find was C:/Windows/System32/Macromed/Flash/FlashAuthor.cfg. Any! clue where that file might be located? It didn't come up in a search. When I launch an Air app, this is what shows in the console: [SWF] C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf - 17,476 bytes after decompression [SWF] MyApp.swf - 2,472,578 bytes after decompression -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Is there a preloaderSWF in your mm.cfg or is one being written there as you launch the app? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 3:29 PM To: f! lexcod...@yahoogroups.commailto:lexcoders%40yahoogroups.com Subject: [flexcode! rs] Re: Security sandbox violation error after upgrade to SDK 3.2 Hi Nate, Unfortunately I'm still having the problem as well. The difference is that mine shows up only when launching an Air app. I'm able to run the profiler
[flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2
Glad that worked for you Tim. However, I am still having issues. I have had an mm.cfg file in my c:\users\username directory and have tried multiple things with it that I read online such as trying to specify a path to PreloadSwf, but I still keep getting the same error. Any other thoughts? I started out compiling my project under version 3.3 of the SDK, but recently compiled it under 3.2 to see if it would work, but to no avail. Thanks, Nate --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Glad that worked. For the record if you kill a profiler session unexpectedly (which can happen when the profiler barfs or hangs on a large app) it won't clean up mm.cfg and you can run into this problem. And even if you don't get security errors in other configs, you'll find your debug sessions are running really slowly. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 9:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Nailed it! C:\Users\Tim\mm.cfg: TraceOutputFileName=C:\Users\Tim\AppData\Roaming\Macromedia\Flash Player\Logs\flashlog.txt ErrorReportingEnable=1 MaxWarnings=0 TraceOutputFileEnable=1 PreloadSwf=C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhostport= Removed the last line and problem solved. In thinking about it, this was more of a technical support issue; that I could have investigated more thoroughly. Thank you very much for your continued help though Alex. Hope that this helps you too, Nate. -TH --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: http://livedocs.adobe.com/flex/3/html/help.html?content=logging_04.html Looks like it will be in c:\users\username Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 6:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security sandbox violation error after upgrade to SDK 3.2 Actually, I couldn't find that specific file on my system (vista ultimate). The closest thing that I could find was C:/Windows/System32/Macromed/Flash/FlashAuthor.cfg. Any! clue where that file might be located? It didn't come up in a search. When I launch an Air app, this is what shows in the console: [SWF] C:/dev/workspace/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf - 17,476 bytes after decompression [SWF] MyApp.swf - 2,472,578 bytes after decompression -TH --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Is there a preloaderSWF in your mm.cfg or is one being written there as you launch the app? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, April 01, 2009 3:29 PM To: f! lexcod...@yahoogroups.com Subject: [flexcode! rs] Re: Security sandbox violation error after upgrade to SDK 3.2 Hi Nate, Unfortunately I'm still having the problem as well. The difference is that mine shows up only when launching an Air app. I'm able to run the profiler just fine, but for some reason the profiler swf is trying to be loaded with a regular l! aunch. I tried Alex's suggestion (mm.cfg) with no success yet. -TH --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, nateross83 nateross83@ wrote: I am experiencing the same problems trying to profile an AIR 1.5 app. Here is my stack trace: Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Cfile:///\\C! ;|%2FUsers%2FNateR%2FDocuments%2FFlex%20Builder%203%2F.metadata%\ 2F.plugins%2Fcom.adobe.flash.profiler%2FProfilerAgent.swf?host=localhost\ port=9998 cannot load data from localhost:9998. at ProfilerAgent()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent\ .as:127] at runtime::ContentPlayer/loadInitialContent(! ) at runtime::ContentPlayer/playRawContent() at runtime::ContentPlayer/playContent() at runtime::AppRunner/run() at global/runtime::ADLEntry() I have tried changing the port from to other values without success, I disabled my firewall to try it (although I don't think localhost would be an issue). The strange thin! g is that a coworker of mine appears to have the ! same set up as I do and it works fine for him. Here is what I have: Flex Builder v 3.0.2 Flash
[flexcoders] Enumeration???
I am not sure if enumeration is the correct term, but I was wondering how to achieve this AS3. I have a value object called myVO. I want to set the value of myVO in two ways (XML or and Object). If an Object is passed into myVO's constructor I want to do something like this ( keep an eye on d ). myVO code -- public class myVO { //PUBLIC VARS -- public var name:String = ''; public var model:String = ''; public var owner:String = ''; if( payload is XML ) { // if an xml object passed we use Ex4 to extract data. //insert xml code }else if( payload is Object ){ // if a generic object passed we manually extract data. for each( var d:* in Object ) { if( d ){ this.d = d; -- the part I need help with. } } if( payload.id ) this.id = payload.id; }else{ // Fail silently as we don't know what kind of data was passed, if any at all? } - my Object - Obj = new Object; Obj.name = 'me' Obj.model = 'big' Obj.owner = 'Ted' my vo instant --- var vo:myVO = new myVO(Obj);
[flexcoders] SWF obfuscator
Hello, What is the best product for SWF obfuscator ? Did these products are effective ? Thank you, Christophe,
[flexcoders] Check for XML node
I want to check if XML has a node named serverdata. I am using this line resultXML.child(serverdata) but looks like both if (resultXML.child(serverdata) != ) and if (resultXML.child(serverdata) != ) are returning true. Thanks for help.
[flexcoders] Re: Check for XML node
Second if (resultXML.child(serverdata) != ) should be if (resultXML.child(serverdata) != null) --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... wrote: I want to check if XML has a node named serverdata. I am using this line resultXML.child(serverdata) but looks like both if (resultXML.child(serverdata) != ) and if (resultXML.child(serverdata) != ) are returning true. Thanks for help.
[flexcoders] Re: .properties actionscript parser
package readers.text { import mx.utils.StringUtil; public class Properties { public var values:Object; public function Properties(props:String = ) { this.properties = props; } public function set properties(props:String):void { values = Properties.parseProperties(props,values); } public function hasProperty(name:String):Boolean { return values.hasOwnProperty(name); } public function getProperty(name:String):String { if (values.hasOwnProperty(name)) return values[name]; return null; } public function serialize():String { return Properties.serializeProperties(values); } public static function serializeProperties(values:Object):String { var serialized:String = ; if (values == null) return serialized; for (var property:String in values) { serialized += property + = + String(values[property]) + \n; } return serialized; } public static function parseProperties(properties:String,values:Object = null):Object { if (values == null) values = {}; if (properties == null || properties == ) return values; var lines:Array = properties.split(\n); for each (var line:String in lines) { if (line != ) { var parts:Array = line.split(=); var property:String = parts[0]; var value:String = (parts.length 1) ? parts[1] : ; if (property.charAt(0) != # property.length 0) values[property] = StringUtil.trim(value); } } return values; } } }
[flexcoders] Re: htmlText with image and ioError
hi, so...does anyone have any idea how can i handle ioError from images not loaded inside a text with htmlText? where can i add a listener? thanks, Carlos --- In flexcoders@yahoogroups.com, carloscarvalhar carloscarval...@... wrote: Hi, i have a Text with htmlText that can have missing images, so i get this error: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found I have no more new ideas to test...i couldn't find a solution. i tried: stage.addEventListener(IOErrorEvent.IO_ERROR,ioerrorHandler); myText.addEventListener(IOErrorEvent.IO_ERROR,ioerrorHandler); and also i tried making a for each for each image in loader as described here: http://www.nabble.com/-flex_india:4088--Error-with-htmlText-property-of-TextArea---%22Error--2044:-Unhandled-IOErrorEvent:.-text%3DError--2124:-Loaded-file-is-an-unknown-type%22--td13439807.html and also everything together plus try catch as here: http://www.fxug.net/modules/xhnewbb/viewtopic.php?topic_id=671forum=2viewmode=flatorder=ASCstart=10 I'm using flex 3.2 and the bug is described since 2007: http://bugs.adobe.com/jira/browse/SDK-12755 So, how can handle this htmlText ioError? Is there a solution? thanks Carlos
RE: [flexcoders] Re: Check for XML node
Try: If (resultXML.hasOwnProperty(serverdata)) Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Thursday, April 02, 2009 1:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Check for XML node Second if (resultXML.child(serverdata) != ) should be if (resultXML.child(serverdata) != null) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , markgoldin_2000 markgoldin_2...@... wrote: I want to check if XML has a node named serverdata. I am using this line resultXML.child(serverdata) but looks like both if (resultXML.child(serverdata) != ) and if (resultXML.child(serverdata) != ) are returning true. Thanks for help.
[flexcoders] Re: Check for XML node
Seems to work. Thanks --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: Try: If (resultXML.hasOwnProperty(serverdata)) Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Thursday, April 02, 2009 1:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Check for XML node Second if (resultXML.child(serverdata) != ) should be if (resultXML.child(serverdata) != null) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: I want to check if XML has a node named serverdata. I am using this line resultXML.child(serverdata) but looks like both if (resultXML.child(serverdata) != ) and if (resultXML.child(serverdata) != ) are returning true. Thanks for help.
[flexcoders] Re: Dynamic creation of ComboBox in ActionScript
Maciek, Thanks for steering me straight on this. That worked! Its also very cool that I can add so many eventlisteners to just about any object that I want (very powerful). Now, I have a question about moving my remote object out of mxml and into actionscript. But I'll post that in a new thread. thanks! brad --- In flexcoders@yahoogroups.com, Maciek Sakrejda msakre...@... wrote: Brad, creationComplete is an event, and not a method or property. In MXML, these look very similar, but in ActionScript, you need to explicitly add an event listener to handle the event. E.g., comboBox.addEventListener(FlexEvent.CREATION_COMPLETE, handleCreationComplete) and then elsewhere in the file, define the handler, as you would in MXML: private function handleCreationComplete(e:FlexEvent):void { ... } -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: brad.bueche b...@... Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamic creation of ComboBox in ActionScript Date: Thu, 02 Apr 2009 13:24:31 - Big Picture: I'm trying to recreate the dynamic search interface in search coders app. I think it will be a great base for an sql front end. I can create combo-box's dynamically via the button. However, I want as much configuration as possible to come from a database (so I can change my app without going through all the red-tape of change control). Sooo... I need to create the ComboBox when the the button is pressed but THEN (here is the question): I need it to execute a function, conn.getData(), in order to have the ComboBox populated. In mxml, I would use creationComplete. However, actionscript does not seem to have this method for ComboBox. What do I use? I've searched the methods for ComboBox but nothing is jumping out at meexcept maybe initialized. Are the 3 phases of layout done before the call to a dataprovider (if I want the data at creationcomplete)? (Yes, I'm working through my flex authority issues too). And, while I'm at it, what would be the best method -- via actionscript-- for completely removing the ComboBox (and putting it out for garbage collection) if the minus button is pressed?
[flexcoders] Flex Builder 3 - Is it possible to export Profiler Data?
I am profiling my web-app and would like to be able to export the memory data from the profiler into a spread sheet. Is there any way to export that data into CSV or some other reasonable form? Or does anyone have insight into the saved profiling data file formats? Thanks very much, Peter Gardner
[flexcoders] Do you know the forum for zendAMF and Flex?
Hi, I have question for that and am looking for help. Please help me. Thanks Mark
[flexcoders] Re: model locator population too late
ok do u have an example of this please? I am not sure what you mean. Thanks in advance --- In flexcoders@yahoogroups.com, b.kotireddy koti_reddy...@... wrote: You can use the call back mechanism to load the data into model. And call that method in the creationComplete of that progress bar or any other kind. Call Back mechanism works like it will wait to process the next line of code. Because of asynchronous nature of flex we are running like this kind problems. --- In flexcoders@yahoogroups.com, Jim Hayes jim@ wrote: But before i show my form I need the model variable to be populated. How do you handle this type of situation. Could you use ChangeWatcher to watch that variable and show the form when it changes? ChangeWatcher.watch(yourModel,yourModelVariable,showYourForm); I'm sure there are other ways , it probably depends on your situation which would be best, however. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jerry_gagliano Sent: 02 February 2009 21:18 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: model locator population too late How the hell do you bound a progress bar to a model? I have the same problem. Which I execute a cairngrom event and it populates the the model variable. But before i show my form I need the model variable to be populated. How do you handle this type of situation. Thanks --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: Surely the progress bar is bound to the model, not part of the model itself? - Original Message - From: dnk d.k.emaillists@ To: Flexcoder List flexcoders@yahoogroups.com Sent: Friday, January 16, 2009 11:14 PM Subject: [flexcoders] model locator population too late Hi there, I have an app that uses a model locator class. Now I have a component that is passed in a reference to another component (A progress bar in my case). Now my problem is that the component is being created prior to the model locator being populated with the reference to the progress bar. So then obviously my component does not work as expected as it needs that reference. I have no idea on how to get around this issue. I can't populate the model locator (manually) any earlier as the progress bar has not yet been created. Ideas? d -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469- 446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
[flexcoders] Builder Question
I have a project with SWC serving as a common library (L). When I build my project and there were any changes in a source of L then L gets rebuilt as well, but If I export Release build then that is not happening. Is that right? Thanks
Re: [flexcoders] Enumeration???
Assuming its a dynamic object you can iterate through the members using a for each in and or a for each in Imagine you have the following object typing from memory so forgive any typos. var obj:Object obj.firstName = wesley; obj.lastName = acheson; obj.age = Too old; var properties:String = ; for (var name:Object in obj) { properties=properties + name + , ; } Alert.show(properties); // Should return firstName, lastName, age, properties= for each(var value:Object in obj) { properties=properties + value+ , ; } Alert.show(properties); // Should return wesley, acheson, Too old, var properties:String = ; for (var name:Object in obj) { properties=properties + obj[name]+ , ; } Alert.show(properties); // Should return wesley, acheson, Too old, Look up the for statement anyway. Its at http://livedocs.adobe.com/flex/3/html/help.html?content=03_Language_and_Syntax_16.html Regards, Wesley Acheson On Thu, Apr 2, 2009 at 6:16 PM, flexaustin flexaus...@yahoo.com wrote: I am not sure if enumeration is the correct term, but I was wondering how to achieve this AS3. I have a value object called myVO. I want to set the value of myVO in two ways (XML or and Object). If an Object is passed into myVO's constructor I want to do something like this ( keep an eye on d ). myVO code -- public class myVO { //PUBLIC VARS -- public var name:String = ''; public var model:String = ''; public var owner:String = ''; if( payload is XML ) { // if an xml object passed we use Ex4 to extract data. //insert xml code }else if( payload is Object ){ // if a generic object passed we manually extract data. for each( var d:* in Object ) { if( d ){ this.d = d; -- the part I need help with. } } if( payload.id ) this.id = payload.id; }else{ // Fail silently as we don't know what kind of data was passed, if any at all? } - my Object - Obj = new Object; Obj.name = 'me' Obj.model = 'big' Obj.owner = 'Ted' my vo instant --- var vo:myVO = new myVO(Obj); -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Do you know the forum for zendAMF and Flex?
Zend_AMF is part of the Zend Framework. The Zend Framework forum is at http://www.zfforums.com --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: Hi, I have question for that and am looking for help. Please help me. Thanks Mark
[flexcoders] Re: Flash player fails to install on vista!
There was no error, just a silent error. And when I went back to the page that requires the last version of flash player I get up again to installed --- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote: This just sounds like the tech support calls I get from customers. Given you're a developer, I expected better - What was the error message, how is it not installing? 2009/4/2 Cato Paus ca...@...: Hi all, this is veard, I have a clean install(Windows Vista Ultimate) on my laptop and IExploer do not want to install the flash player (ActiveX) ! switching to FireFox, up yours MS! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Change viewStack index from different Panels
Hello guys... After read some tutrorials and a introdutory book, I'm making my first application. I've two distinct panes and I wan't to change the index of a viewStack in pane 2 from a click action there belongs to a image located in pane 1. So: click=myviewStack.selectedIndex(0) I got the message: Attempeted of inaccessible method selectedIndex through a reference with static type in mx.controls:ViewStack . May you help me? Tnx. Thiago TRR MSN: thiago...@hotmail.com E-mails: thiagotrr...@yahoo.com.br / thiago.trr@gmail.com Celular: (32) 8834-2656 Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
Re: [flexcoders] Change viewStack index from different Panels
selectedIndex is a property, not a method. Try click=myviewStack.selectedIndex = 0 -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: Thiago Rodrigues thiagotrr...@yahoo.com.br Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Change viewStack index from different Panels Date: Thu, 2 Apr 2009 12:35:21 -0700 (PDT) Hello guys... After read some tutrorials and a introdutory book, I'm making my first application. I've two distinct panes and I wan't to change the index of a viewStack in pane 2 from a click action there belongs to a image located in pane 1. So: click=myviewStack.selectedIndex(0) I got the message: Attempeted of inaccessible method selectedIndex through a reference with static type in mx.controls:ViewStack . May you help me? Tnx. Thiago TRR MSN: thiago...@hotmail.com E-mails: thiagotrr...@yahoo.com.br / thiago.trr@gmail.com Celular: (32) 8834-2656 Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
[flexcoders] BlazeDS or LiveCycleDS Performance Diagnostics
Hi Flexcoders I am looking for people using BlazeDS and/or LiveCycleDS that are interested in performance diagnostics of the components running on the server side. I am doing some research on transaction tracing and therefore need some feedback on how performance diagnostics is done right now and how it can be improved. I work for dynaTrace Software - providing transactional tracing for Java and .NET. I want to figure out how our current approach would work in the Adobe Flex Environment Looking for anybody who is interested in a conversation Cheers Andi
[flexcoders] maven compile flex project
Hi Folks, I am looking for a maven plugin and a pom.xml example for compiling and for generating a swf. Which is the best plugin you have tested it? Do you have an example which compile, generate swf and copy to another project the swf file generated? I am needing to integrate with several projects in the same workspace too. Thanks in advance! -- Fernando Wermus. www.linkedin.com/in/fernandowermus http://mientretiempo.blogspot.com/
Re: [flexcoders] Re: Flash player fails to install on vista!
I ran across this two weeks ago on a single system... out of 76 machines and posted here as well to see if anyone else was experiencing any esplosions. Long story short I ended up finding some wonky behavior in the JavaScript used for Flash version detection on just that machine. Go figure. So... I swapped out the HTML wrapper (generated in Flex from the default index.template.html w/express install) with SWFObject... BOOM BABY! Problemo solved. For those naysayers on the list that called me crazy,¹ stoopid,¹ noob,¹ and utterly delicious.¹ SEE! I¹m not the only one! There are two of us... in like... a couple million installs. awkward silence shuffles feet Rick Winscot On 4/2/09 3:28 PM, Cato Paus ca...@brannsikring.no wrote: There was no error, just a silent error. And when I went back to the page that requires the last version of flash player I get up again to installed --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sam Lai samuel@... wrote: This just sounds like the tech support calls I get from customers. Given you're a developer, I expected better - What was the error message, how is it not installing? 2009/4/2 Cato Paus ca...@...: Hi all, this is veard, I have a clean install(Windows Vista Ultimate) on my laptop and IExploer do not want to install the flash player (ActiveX) ! switching to FireFox, up yours MS! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62 079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] node depth in xml/xmllist?
Hi, Could anyone tell me how I can get the depth of a node in an xml/xmlList? Say if the node has 0 parent node (root), it's at depth of 0; if it has 1 direct parent node which is the direct child of root, it's at the depth of 2, etc. Thanks. -geng
RE: [flexcoders] node depth in xml/xmllist?
You will need to build that little function yourself. Just loop while parent() is not null, incrementing a counter. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of gwangdesign Sent: Thursday, April 02, 2009 4:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] node depth in xml/xmllist? Hi, Could anyone tell me how I can get the depth of a node in an xml/xmlList? Say if the node has 0 parent node (root), it's at depth of 0; if it has 1 direct parent node which is the direct child of root, it's at the depth of 2, etc. Thanks. -geng
[flexcoders] TextArea Border?
I am using the textArea and finally got the border to turn off, but when you click it, the theme color still shows? My background is white so I tried setting the theme and borderColor to white but that doesn't work either? I am using GUMBO so maybe its a bug? TextArea id=modelLabel selectable=false text=EL436AA-3430-GKSLD23-NHJ12548FGTR width=220 height=50/ CSS TextArea { borderSkin: ClassReference(null); upSkin: ClassReference( null ); overSkin: ClassReference( null ); downSkin: ClassReference( null ); disabledSkin: ClassReference( null ); borderThickness: 0; }
[flexcoders] Why does percentWidth / percentHeight not work with popups?
I'm trying to create a popup at 100% of the width / height of the application. But it just ignores these values. I've had to work around the problem by doing: BindingUtils.bindProperty(popup, width, this, width); BindingUtils.bindProperty(popup, height, this, height); (Where 'this' is the application). The reason I'm trying to do this is I've got a popup that I want centred in the view, but it has different states which change the size of the popup. Mark
[flexcoders] Why does percentWidth / percentHeight not work with popups?
I'm trying to create a popup at 100% of the width / height of the application. But it just ignores these values. I've had to work around the problem by doing: BindingUtils.bindProperty(popup, width, this, width); BindingUtils.bindProperty(popup, height, this, height); (Where 'this' is the application). The reason I'm trying to do this is I've got a popup that I want centred in the view, but it has different states which change the size of the popup. Mark
[flexcoders] Why does percentWidth / percentHeight not work with popups?
I'm trying to create a popup at 100% of the width / height of the application. But it just ignores these values. I've had to work around the problem by doing: BindingUtils.bindProperty(popup, width, this, width); BindingUtils.bindProperty(popup, height, this, height); (Where 'this' is the application). The reason I'm trying to do this is I've got a popup that I want centred in the view, but it has different states which change the size of the popup. Mark
RE: [flexcoders] Why does percentWidth / percentHeight not work with popups?
Suppose on resize you call PopUpmanager.centerPopUp()/ Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of skuteboarding Sent: Thursday, April 02, 2009 5:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Why does percentWidth / percentHeight not work with popups? I'm trying to create a popup at 100% of the width / height of the application. But it just ignores these values. I've had to work around the problem by doing: BindingUtils.bindProperty(popup, width, this, width); BindingUtils.bindProperty(popup, height, this, height); (Where 'this' is the application). The reason I'm trying to do this is I've got a popup that I want centred in the view, but it has different states which change the size of the popup. Mark
[flexcoders] Re: TextArea Border?
editable=false -TH --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: I am using the textArea and finally got the border to turn off, but when you click it, the theme color still shows? My background is white so I tried setting the theme and borderColor to white but that doesn't work either? I am using GUMBO so maybe its a bug? TextArea id=modelLabel selectable=false text=EL436AA-3430-GKSLD23-NHJ12548FGTR width=220 height=50/ CSS TextArea { borderSkin: ClassReference(null); upSkin: ClassReference( null ); overSkin: ClassReference( null ); downSkin: ClassReference( null ); disabledSkin: ClassReference( null ); borderThickness: 0; }
Re: [flexcoders] Why does percentWidth / percentHeight not work with popups?
I can confirm the issue and had to manually size it via the resized event. Maybe it's because the popup is not part of the window/app's display list, but instead a separate controlled by PopupManager? On 4/3/09, skuteboarding m...@mark-ingram.com wrote: I'm trying to create a popup at 100% of the width / height of the application. But it just ignores these values. I've had to work around the problem by doing: BindingUtils.bindProperty(popup, width, this, width); BindingUtils.bindProperty(popup, height, this, height); (Where 'this' is the application). The reason I'm trying to do this is I've got a popup that I want centred in the view, but it has different states which change the size of the popup. Mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Sent from my mobile device
[flexcoders] Creating RemoteObject in ActionScript as dataProvider for ComboBox
I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.ComboBox; public var cbx:ComboBox = new ComboBox(); private function addPanelChild():void { var buttonName:String; cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,handleCreationComplete); cbx.labelField = Label; addChild(cbx); } private function handleCreationComplete(e:FlexEvent):void{ conn.getData(); } ]] /mx:Script mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject mx:Button id=btn1 label=test click=addPanelChild(); / /mx:Application
Re: [flexcoders] Creating RemoteObject in ActionScript as dataProvider for ComboBox
A quick example that should get you going: import mx.rpc.remoting.RemoteObject; var ro:RemoteObject = new RemoteObject; ro.destination = ColdFusion; ro.source = com.company.ProjectData; ro.getProjectData.addEventListener(result,getProjectDataResult); ro.getProjectData(this.view.project); Paul. On Thu, Apr 2, 2009 at 7:06 PM, brad.bueche b...@bueche.com wrote: I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.ComboBox; public var cbx:ComboBox = new ComboBox(); private function addPanelChild():void { var buttonName:String; cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,handleCreationComplete); cbx.labelField = Label; addChild(cbx); } private function handleCreationComplete(e:FlexEvent):void{ conn.getData(); } ]] /mx:Script mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject mx:Button id=btn1 label=test click=addPanelChild(); / /mx:Application
RE: [flexcoders] Creating RemoteObject in ActionScript as dataProvider for ComboBox
What is your remote object returning?? Send your remote object's result to a function and then set your dataprovider. This will allow you to debug it and find out what is being returned. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of brad.bueche Sent: Thursday, April 02, 2009 6:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Creating RemoteObject in ActionScript as dataProvider for ComboBox I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.ComboBox; public var cbx:ComboBox = new ComboBox(); private function addPanelChild():void { var buttonName:String; cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,handleCreationComplete); cbx.labelField = Label; addChild(cbx); } private function handleCreationComplete(e:FlexEvent):void{ conn.getData(); } ]] /mx:Script mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject mx:Button id=btn1 label=test click=addPanelChild(); / /mx:Application
[flexcoders] Re: model locator population too late
Do what I do: public function get users():ArrayCollection { if (_users == null) { _users = new ArrayCollection(); var httpSvc:HTTPService = new HTTPService(); httpSvc.addEventListener(result,function (event):void { _users.source = result.data; // etc, whatever it takes }); httpSvc.send(); } return _users; } That way you can return the data/arraycollection before it is populated and the data will show immediately when ready.
[flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox
Its just returning a list of names as the result of a database query. The code below (in the original email) works. But the RemoteObject is in mxml. I just need the actionscript version of it. Here is the .cfc: cfcomponent output=false cffunction name=getData access=remote returntype=query output=false cfargument name=keywords type=string required=false / cfset var local = structNew() / cfquery name=local.query datasource=db select Distinct CHOICES as Label from webviews order by 1 asc /cfquery cfreturn local.query / /cffunction /cfcomponent --- In flexcoders@yahoogroups.com, Jake Churchill j...@... wrote: What is your remote object returning?? Send your remote object's result to a function and then set your dataprovider. This will allow you to debug it and find out what is being returned. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of brad.bueche Sent: Thursday, April 02, 2009 6:07 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Creating RemoteObject in ActionScript as dataProvider for ComboBox I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.ComboBox; public var cbx:ComboBox = new ComboBox(); private function addPanelChild():void { var buttonName:String; cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,handleCreationComplete); cbx.labelField = Label; addChild(cbx); } private function handleCreationComplete(e:FlexEvent):void{ conn.getData(); } ]] /mx:Script mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject mx:Button id=btn1 label=test click=addPanelChild(); / /mx:Application
[flexcoders] Finding the stage xy of a nested object
Hello I though this ought to be easy but can't figure out how to do it. I have controls that are nested in layout containers and I want to find their xy in stage coordinates. Their x and y values are relative to their containers, so that doesn't give me what I want. There must be an easy way to find their stage x and y...is there? Guy
[flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox
Paul, Thanks for your answer. You are losing me though at. ro.getProjectData I understand the ...addEventListener(result,getProjectDataResult); Here is my progress so far, based on your input, in moving my mxml RemoteObject: !-- mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject-- into actionscript: public var connObject:RemoteObject; public function createRemoteObject():void{ connObject = new RemoteObject(); connObject.destination = ColdFusion; connObject.source = cfching.components.comboBox; connObject.addEventListener(ResultEvent.RESULT,getQueryResult); I don't understand this line of yours either: ro.getProjectData(this.view.project); I'm thinking I can just put a result into my ComboBox's dataprovider in my getQueryResult() -- which I have not written yet -- function. So I'm not sure what the ro.getProjectData(this.view.project); would do. thanks for your time! brad --- In flexcoders@yahoogroups.com, Paul Kukiel pkuk...@... wrote: A quick example that should get you going: import mx.rpc.remoting.RemoteObject; var ro:RemoteObject = new RemoteObject; ro.destination = ColdFusion; ro.source = com.company.ProjectData; ro.getProjectData.addEventListener(result,getProjectDataResult); ro.getProjectData(this.view.project); Paul. On Thu, Apr 2, 2009 at 7:06 PM, brad.bueche b...@... wrote: I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.ComboBox; public var cbx:ComboBox = new ComboBox(); private function addPanelChild():void { var buttonName:String; cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,handleCreationComplete); cbx.labelField = Label; addChild(cbx); } private function handleCreationComplete(e:FlexEvent):void{ conn.getData(); } ]] /mx:Script mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject mx:Button id=btn1 label=test click=addPanelChild(); / /mx:Application
RE: [flexcoders] Finding the stage xy of a nested object
You want the coordinate system methods like localToGlobal and globalToLocal. Look for coordinate system in the docs for a full explanation. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Guy Morton Sent: Thursday, April 02, 2009 9:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Finding the stage xy of a nested object Hello I though this ought to be easy but can't figure out how to do it. I have controls that are nested in layout containers and I want to find their xy in stage coordinates. Their x and y values are relative to their containers, so that doesn't give me what I want. There must be an easy way to find their stage x and y...is there? Guy
RE: [flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox
I don't do much RemoteObject, but normally a destination is going to expose methods for you to call and getProjectData is Paul's example method, and it takes a parameter whose value is in the project property of the view component. The line: ro.getProjectData(this.view.project); actually invokes the call. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of brad.bueche Sent: Thursday, April 02, 2009 9:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox Paul, Thanks for your answer. You are losing me though at. ro.getProjectData I understand the ...addEventListener(result,getProjectDataResult); Here is my progress so far, based on your input, in moving my mxml RemoteObject: !-- mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject-- into actionscript: public var connObject:RemoteObject; public function createRemoteObject():void{ connObject = new RemoteObject(); connObject.destination = ColdFusion; connObject.source = cfching.components.comboBox; connObject.addEventListener(ResultEvent.RESULT,getQueryResult); I don't understand this line of yours either: ro.getProjectData(this.view.project); I'm thinking I can just put a result into my ComboBox's dataprovider in my getQueryResult() -- which I have not written yet -- function. So I'm not sure what the ro.getProjectData(this.view.project); would do. thanks for your time! brad --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Paul Kukiel pkuk...@... wrote: A quick example that should get you going: import mx.rpc.remoting.RemoteObject; var ro:RemoteObject = new RemoteObject; ro.destination = ColdFusion; ro.source = com.company.ProjectData; ro.getProjectData.addEventListener(result,getProjectDataResult); ro.getProjectData(this.view.project); Paul. On Thu, Apr 2, 2009 at 7:06 PM, brad.bueche b...@... wrote: I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.ComboBox; public var cbx:ComboBox = new ComboBox(); private function addPanelChild():void { var buttonName:String; cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,handleCreationComplete); cbx.labelField = Label; addChild(cbx); } private function handleCreationComplete(e:FlexEvent):void{ conn.getData(); } ]] /mx:Script mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject mx:Button id=btn1 label=test click=addPanelChild(); / /mx:Application
[flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox
Ah, I understand now. My RemoteObject is nothing but very few lines in a .cfc file that executes a single SQL query that returns 1 column of data. So, at this point in my program anyway, I wont need that (I dont think). Thanks for your insight on this, Tracy. brad --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote: I don't do much RemoteObject, but normally a destination is going to expose methods for you to call and getProjectData is Paul's example method, and it takes a parameter whose value is in the project property of the view component. The line: ro.getProjectData(this.view.project); actually invokes the call. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of brad.bueche Sent: Thursday, April 02, 2009 9:33 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Creating RemoteObject in ActionScript as dataProvider for ComboBox Paul, Thanks for your answer. You are losing me though at. ro.getProjectData I understand the ...addEventListener(result,getProjectDataResult); Here is my progress so far, based on your input, in moving my mxml RemoteObject: !-- mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject-- into actionscript: public var connObject:RemoteObject; public function createRemoteObject():void{ connObject = new RemoteObject(); connObject.destination = ColdFusion; connObject.source = cfching.components.comboBox; connObject.addEventListener(ResultEvent.RESULT,getQueryResult); I don't understand this line of yours either: ro.getProjectData(this.view.project); I'm thinking I can just put a result into my ComboBox's dataprovider in my getQueryResult() -- which I have not written yet -- function. So I'm not sure what the ro.getProjectData(this.view.project); would do. thanks for your time! brad --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Paul Kukiel pkukiel@ wrote: A quick example that should get you going: import mx.rpc.remoting.RemoteObject; var ro:RemoteObject = new RemoteObject; ro.destination = ColdFusion; ro.source = com.company.ProjectData; ro.getProjectData.addEventListener(result,getProjectDataResult); ro.getProjectData(this.view.project); Paul. On Thu, Apr 2, 2009 at 7:06 PM, brad.bueche brad@ wrote: I cant find a good example of how to create a remoteObject in ActionScript. All the examples seem to be way more complicated than I need and I cant follow what they are doing. On top of that, they don't cover the parameters that I need. I've also looked through 5 books. ActionScript books dont cover it and flex books do it via mxml! All I need to do is recreate the mxml:RemoteObject in Actionscript. This is a very simple connection via CF. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; import mx.controls.ComboBox; public var cbx:ComboBox = new ComboBox(); private function addPanelChild():void { var buttonName:String; cbx.x = 60; cbx.addEventListener(FlexEvent.CREATION_COMPLETE,handleCreationComplete); cbx.labelField = Label; addChild(cbx); } private function handleCreationComplete(e:FlexEvent):void{ conn.getData(); } ]] /mx:Script mx:RemoteObject id=conn destination=ColdFusion source=cfching.components.comboBox result=cbx.dataProvider = event.result; /mx:RemoteObject mx:Button id=btn1 label=test click=addPanelChild(); / /mx:Application
RE: [flexcoders] Why does percentWidth / percentHeight not work with popups?
Basically yes. Parents size their children in Flex and popups don't have a parent. (actually they do because they are parented by SystemManager, but SystemManager doesn't layout its children. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sam Lai Sent: Thursday, April 02, 2009 3:15 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Why does percentWidth / percentHeight not work with popups? I can confirm the issue and had to manually size it via the resized event. Maybe it's because the popup is not part of the window/app's display list, but instead a separate controlled by PopupManager? On 4/3/09, skuteboarding m...@mark-ingram.commailto:me%40mark-ingram.com wrote: I'm trying to create a popup at 100% of the width / height of the application. But it just ignores these values. I've had to work around the problem by doing: BindingUtils.bindProperty(popup, width, this, width); BindingUtils.bindProperty(popup, height, this, height); (Where 'this' is the application). The reason I'm trying to do this is I've got a popup that I want centred in the view, but it has different states which change the size of the popup. Mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Sent from my mobile device
[flexcoders] New Adobe forums coming!
Hi all, If you've been using the Adobe forums via the web interface recently you probably saw notices that we're introducing a huge upgrade to the forum system. We're combining the user-to-user forums (adobeforums.com) and the adobe.com forums into a single forum system. We're going to have some great features in there like email participation, RSS feeds, moderation supported by community members (on specific forums, if appropriate), better text entry support (including some levels of code formatting), and user ratings. This has me pretty excited as I think it will be a huge improvement over what we have. The forums are going to be down starting on Friday at 3pm PDT so we can migrate the last 36 months of content over to the new system. We expect the new system to come up by Monday. Once they're up I hope folks will check things out and become active participants. I'll be curious to see what you think, I'm hoping we might even look into combining some of our separated forums under the system if it can meet folks' usability needs. So stay tuned! Matt
[flexcoders] Re: New Adobe forums coming!
Will the forums replace flexcoders? --- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote: Hi all, If you've been using the Adobe forums via the web interface recently you probably saw notices that we're introducing a huge upgrade to the forum system. We're combining the user-to-user forums (adobeforums.com) and the adobe.com forums into a single forum system. We're going to have some great features in there like email participation, RSS feeds, moderation supported by community members (on specific forums, if appropriate), better text entry support (including some levels of code formatting), and user ratings. This has me pretty excited as I think it will be a huge improvement over what we have. The forums are going to be down starting on Friday at 3pm PDT so we can migrate the last 36 months of content over to the new system. We expect the new system to come up by Monday. Once they're up I hope folks will check things out and become active participants. I'll be curious to see what you think, I'm hoping we might even look into combining some of our separated forums under the system if it can meet folks' usability needs. So stay tuned! Matt
Re: [flexcoders] Re: New Adobe forums coming!
I think that will be up to folks who use flexcoders. I'm hoping that we'll consolidate and therefore be able to not rely on a separate list, but I want the forums to prove themselves worthy of that :-) On 4/2/09 9:57 PM, Bjorn Schultheiss bjorn.mailingli...@gmail.com wrote: Will the forums replace flexcoders? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mcho...@... wrote: Hi all, If you've been using the Adobe forums via the web interface recently you probably saw notices that we're introducing a huge upgrade to the forum system. We're combining the user-to-user forums (adobeforums.com) and the adobe.com forums into a single forum system. We're going to have some great features in there like email participation, RSS feeds, moderation supported by community members (on specific forums, if appropriate), better text entry support (including some levels of code formatting), and user ratings. This has me pretty excited as I think it will be a huge improvement over what we have. The forums are going to be down starting on Friday at 3pm PDT so we can migrate the last 36 months of content over to the new system. We expect the new system to come up by Monday. Once they're up I hope folks will check things out and become active participants. I'll be curious to see what you think, I'm hoping we might even look into combining some of our separated forums under the system if it can meet folks' usability needs. So stay tuned! Matt
Re: [flexcoders] Re: New Adobe forums coming!
I hope not - I used to be a forum trawler, but lately I've become quite fond of having the content pushed to my email, as opposed to me having to go get it. Also makes it easier to read on a mobile (yes, I don't have an iPhone). Some forum software offer a mailing list interface too - not sure if clearspace does this. Alternatively, can you subscribe to entire forums, not just individual threads - that would emulate a mailing list. 2009/4/3 Matt Chotin mcho...@adobe.com: I think that will be up to folks who use flexcoders. I’m hoping that we’ll consolidate and therefore be able to not rely on a separate list, but I want the forums to prove themselves worthy of that :-) On 4/2/09 9:57 PM, Bjorn Schultheiss bjorn.mailingli...@gmail.com wrote: Will the forums replace flexcoders? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mcho...@... wrote: Hi all, If you've been using the Adobe forums via the web interface recently you probably saw notices that we're introducing a huge upgrade to the forum system. We're combining the user-to-user forums (adobeforums.com) and the adobe.com forums into a single forum system. We're going to have some great features in there like email participation, RSS feeds, moderation supported by community members (on specific forums, if appropriate), better text entry support (including some levels of code formatting), and user ratings. This has me pretty excited as I think it will be a huge improvement over what we have. The forums are going to be down starting on Friday at 3pm PDT so we can migrate the last 36 months of content over to the new system. We expect the new system to come up by Monday. Once they're up I hope folks will check things out and become active participants. I'll be curious to see what you think, I'm hoping we might even look into combining some of our separated forums under the system if it can meet folks' usability needs. So stay tuned! Matt -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: New Adobe forums coming!
You will be able to receive and initiate everything over email. That was a requirement. On 4/2/09 10:07 PM, Sam Lai samuel@gmail.com wrote: I hope not - I used to be a forum trawler, but lately I've become quite fond of having the content pushed to my email, as opposed to me having to go get it. Also makes it easier to read on a mobile (yes, I don't have an iPhone). Some forum software offer a mailing list interface too - not sure if clearspace does this. Alternatively, can you subscribe to entire forums, not just individual threads - that would emulate a mailing list. 2009/4/3 Matt Chotin mcho...@adobe.com: I think that will be up to folks who use flexcoders. I'm hoping that we'll consolidate and therefore be able to not rely on a separate list, but I want the forums to prove themselves worthy of that :-) On 4/2/09 9:57 PM, Bjorn Schultheiss bjorn.mailingli...@gmail.com wrote: Will the forums replace flexcoders? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mcho...@... wrote: Hi all, If you've been using the Adobe forums via the web interface recently you probably saw notices that we're introducing a huge upgrade to the forum system. We're combining the user-to-user forums (adobeforums.com) and the adobe.com forums into a single forum system. We're going to have some great features in there like email participation, RSS feeds, moderation supported by community members (on specific forums, if appropriate), better text entry support (including some levels of code formatting), and user ratings. This has me pretty excited as I think it will be a huge improvement over what we have. The forums are going to be down starting on Friday at 3pm PDT so we can migrate the last 36 months of content over to the new system. We expect the new system to come up by Monday. Once they're up I hope folks will check things out and become active participants. I'll be curious to see what you think, I'm hoping we might even look into combining some of our separated forums under the system if it can meet folks' usability needs. So stay tuned! Matt -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links