[flexcoders] Problems with crossdomain and upload
Hello, I want to upload files from one server to another one. For example, I heave the .swf file in the 192.168.1.5 and I want to select files from the web page and upload to 10.234.195.160 using filerefence. I think is a problem with a crossdomain, but I don't know how I can solve it. I have read information about crossdomain.xml. Where I need to save the crossdomain.xml? In the destination server we don't have any web page, is only for upload. Which modification I need to make in the flex document for read the crossdomain document? Is mandatory use a crossdomain file? Thanks for your help
Re: [flexcoders] FlashBuilder 4 Linux Released!
try to download from fb4linux site! 闲云孤鹤 - 清冷香中抱膝吟 2010/4/13 feiy eshang...@gmail.com the web have clear,please download from fb4linux code site after 4.13 GMT+8 闲云孤鹤 - 清冷香中抱膝吟 On Mon, Apr 12, 2010 at 5:15 PM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Friday 09 Apr 2010, feiy wrote: u can download the fb4linux from :http://code.google.com/p/fb4linux/ No you can't, the apptor.zhongyusuye.com link is dead. Why are you having such bad hosting problems ? -- Helping to interactively iterate bandwidth as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
[flexcoders] Re: Charts - complex label
Any ideas guys? --- In flexcoders@yahoogroups.com, pullzmag deegregg_ml...@... wrote: For my line chart I need a label which will be made of two labels. I was trying to use custom labelRenderer where I added another label but this either not possible or I did something wrong. Can you give me some tips for doing this in a right way? Thanks! G.
Re: [flexcoders] Re: Charts - complex label
where do you take labels from ? thomas parquier --- http://www.web-attitude.fr/realisations/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 2010/4/13 pullzmag deegregg_ml...@poczta.fm Any ideas guys? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, pullzmag deegregg_ml...@... wrote: For my line chart I need a label which will be made of two labels. I was trying to use custom labelRenderer where I added another label but this either not possible or I did something wrong. Can you give me some tips for doing this in a right way? Thanks! G.
[flexcoders] Re: Charts - complex label
The first one is the default one. The second one is retrieved from an array. So I have no problem with retrieving their values but having displayed the second one. I have been using the below class, assigned as labelRenderer package com { import mx.charts.AxisLabel; import mx.controls.Label; import mx.core.IDataRenderer; public class CustomLabelRenderer extends Label implements IDataRenderer { private var _data:AxisLabel; public function CustomLabelRenderer() { super(); } override public function get data():Object { return _data; } override public function set data(value:Object):void { if(value != null) { this._data = value as AxisLabel; this.text = String(value.text); } } } } Basically, the above class does nothing special. It just displays the same label as in case where no labelRenderer is defined. I was trying to add to this class another label for storing the second value but that label was not displayed at all (whether by adding as a child to the first label or to the axis renderer). --- In flexcoders@yahoogroups.com, thomas parquier mailingli...@... wrote: where do you take labels from ? thomas parquier --- http://www.web-attitude.fr/realisations/ msn : thomas.parqu...@... softphone : sip:webattit...@... sip%3awebattit...@... téléphone portable : +33601 822 056 2010/4/13 pullzmag deegregg_ml...@... Any ideas guys? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, pullzmag deegregg_mlist@ wrote: For my line chart I need a label which will be made of two labels. I was trying to use custom labelRenderer where I added another label but this either not possible or I did something wrong. Can you give me some tips for doing this in a right way? Thanks! G.
Re: [flexcoders] Installation of Flex Builder 3 plugin on Eclipse 3.5
Hi, I could not understood its logic behind changing the name to Flash builder 4. Some one says that it is for making difference between open source Flex SDK 4 and Flex Builder 4( not open source,License needed). Any one could please update my knowledge? Thanks Sachin --- On Mon, 12/4/10, s.m.srini...@gmail.com s.m.srini...@gmail.com wrote: From: s.m.srini...@gmail.com s.m.srini...@gmail.com Subject: Re: [flexcoders] Installation of Flex Builder 3 plugin on Eclipse 3.5 To: Sneha sneha_mod...@yahoo.com Date: Monday, 12 April, 2010, 4:14 PM Hi Sneha, For First question, You want all of those in one place, then it is suggested to have it installed. For second question, Go to adobe.com and download latest version. I believe Flex 3 Builder is discontinued to download from the site, you could always download the latest version that is Flex 4 [also know as Flash Builder 4] use Flex 3.5 SDK while building the project. If you already have the Eclipse other plugins installed and want the Flex Builder Plugin to install on top of it, it's easy, the installer will guide you through steps u will be able to set it up perfectly. Srinivas On Apr 12, 2010 9:18am, Sneha sneha_modani@ yahoo.com wrote: Hello All, I have few questions regarding Flex Builder 3 and Eclipse. I would greatly appreciate any help. First, when I have Flex Builder 3 installed do I need to have Flex Builder 3 plug-in installed on Eclipse for LCDS, BlazeDS, and flex with spring plugin. Second, Where do I get a flex builder 3 plug-in for eclipse 3.5 for Windows XP and what are the steps involved in installing it. Could anyone please let me know. Thanks in advance. --- Sneha
[flexcoders] Re: Property values based on Multiple Conditions
Awesome stuff guys!! The amp; thing didn't work for me when I tried that... I thought just maybe, but nah. This was part of the source of my question, How do you do a logical AND? The function method that Richard posted is something I am going to try as I think that's exactly what I'm looking for. I would like to avoid setting up an event listener, but if that's the only way... Thanks again for the help thus far... if anybody has anything else, please let me know! --- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote: Rick is correct. You can also use a local binding function like this: s:Button enabled={enableButton(showMe, hideMe)}/ where enableButton is a function in your Script block that takes two boolean parameters. Or, if you have a presentation model, it could have a computed property buttonEnabled s:Button enabled={model.buttonEnabled}/ Excerpt of presentation model: [Bindable(event=showMeChanged)] [Bindable(event=hideMeChanged)] public function get buttonEnabled():Boolean { return showMe hideMe; } public function set showMe(value:Boolean):void { if (value != this.showMe) { this.showMe = value; dispatchEvent(new Event(showMeChanged)); } } Hope this helps. On Mon, Apr 12, 2010 at 4:31 PM, Rick Genter rick.gen...@... wrote: On Apr 12, 2010, at 10:31 AM, Doug wrote: I seem to have little success with this and would like to know other ways of accomplishing what I want to do. I'm trying to enable/disable a button based on two pieces of criteria. It would seem that a logical OR or a logical AND would bridge these much like an IF statement, however, I'm struggling to make it work 100%. Consider a button: s:Button enabled={showMe || hideMe}/ This button's enabled property is based upon the binding of the variables for showMe and hideMe. If showMe or hideMe is true then the button is enabled. This works fine when using a logical OR. However, the following - using a logical AND - does not: s:Button enabled={showMe hideMe}/ How do you do a logical AND?? Also, if I wanted to set showMe and hideMe based on several lines of code how would I best do it? How would you bind a function output to a display object? I only see a way to do it based upon event: [Bind (event: some event here] private function myFunction():void{} Thanks in advance!! I haven't tried this, but I suspect that you are being bitten by XML. Try this: s:Button enabled={showMe amp;amp; hideMe}/ -- Rick Genter rick.gen...@... rick.genter%40gmail.com
[flexcoders] Re: How to deprecate property which has getter/setter?
Noone knows how to deprecate a getter without getting erroneous compiler warnings from the setter? --- In flexcoders@yahoogroups.com, jimmartin10 keryk...@... wrote: If I use the [Deprecated] tag on a getter only, e.g. [Deprecated] public function get myOldProperty():int { return 0; } public function set myOldProperty(value:int):void { } Then I get a warning at the line of the setter. myOldProperty has been deprecated If I use the [Deprecated] tag on both getter and setter, e.g. [Deprecated] public function get myOldProperty():int { return 0; } [Deprecated] public function set myOldProperty(value:int):void { } Then I get a duplicate deprecated tag warning. These warnings then clog up the warnings panel, and make the use of the Deprecated tag pointless, as I will be unable to see any genuine warnings about actual use of the deprecated property. Is it possible to Deprecate a property which has mutators and only see warnings for line where the property is referenced? Environment: XP SDK 3.2 Eclipse Plugin
[flexcoders] Unable to load wsdl file error on calling a web service
I am trying to call a webservice from my Flex application and this is the code: mx:WebService id=myWebService wsdl=http://172.16.111.103:2/cics/services/PRESENT1?wsdl; mx:operation name=PRESENT1Operation result=resultHandler(event)fault=faultHandler(event) /mx:operation /mx:WebService //Function to send customer id to the wsdl request private function searchDetails():void{ myWebService.PRESENT1Operation.send(cusNo.text); cusDetails.visible=true; } The webservice is up and running. I have a separate Java application to test the webservice, And I am able to execute it properly. I am able to request the webservice and get response. But If I try to call the webservice through the Flex application, I get the following error. [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://172.16.111.103:2/cics/services/PRESENT1?WSDL)] at mx.rpc.wsdl::WSDLLoader/faultHandler()[C:\autobuild\3.2.0\frameworks\pro\ jects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:98] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::disp\ atchRpcEvent()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Abs\ tractInvoker.as:170] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faul\ tHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Abstrac\ tInvoker.as:225] at mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\ \mx\rpc\Responder.as:53] at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\\ src\mx\rpc\AsyncRequest.as:103] at DirectHTTPMessageResponder/errorHandler()[C:\autobuild\3.2.0\frameworks\\ projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:362] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/redirectEvent() Please some one help me with this.
[flexcoders] NumericStepper as itemRenders in DataGrid don't work as expected
This simple DataGrid doesn't appear to work right. Click one of the rows, and the value in the NumericStepper is zero, when I would expect it to pick up the value from the data provider. Code (ignore all the script and outputs, just compile and run): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ import mx.formatters.CurrencyFormatter; import mx.collections.ArrayCollection; [Bindable] public static var _moneyFormatter:CurrencyFormatter=new CurrencyFormatter(); [Bindable] private var ac:ArrayCollection=new ArrayCollection( [{value:1},{value:10},{value:100},{value:1000},{value:1}] ); public static function dataGridFormatNumber(item:Object, column:DataGridColumn):String{ if (column.dataField == 'vat' (item.vatable == 'e' || item.vatable == 'z') ){ return _moneyFormatter.format(0); } return _moneyFormatter.format(item[column.dataField]); } public function debug(e:*):void{ trace(value set to +e.currentTarget.value); } ]] /mx:Script mx:DataGrid id=detailGrid width=952 height=170 dataProvider={ac} editable=true allowMultipleSelection=true mx:columns mx:DataGridColumn dataField=value headerText=Value labelFunction=dataGridFormatNumber editorDataField=value mx:itemEditor mx:Component mx:NumericStepper stepSize=0.01 minimum=0 maximum= dataChange=outerDocument.debug(event) mx:Script ![CDATA[ override public function set data(d:Object):void{ trace('set data to '+d); super.data=d; } override public function set value(v:Number):void{ trace('set value to '+v); super.value=v; } ]] /mx:Script /mx:NumericStepper /mx:Component /mx:itemEditor /mx:DataGridColumn /mx:columns /mx:DataGrid /mx:Application -- Helping to collaboratively reintermediate 24/7 third-generation initiatives as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word “partner” to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Update facebook status from flex - Examples?
I'm trying to make an air app that allows users to update their facebook status from within the app as well as view all of their current stuses within my app too. I'm using the regular facebook api but can't find many examples on how to do this. Does anyone know of any similar examples to what I want or places where I might find something smilar which may point me in the right direction?
RE: [flexcoders] NumericStepper as itemRenders in DataGrid don't work as expected
You need value binding to the data property mx:NumericStepper stepSize=0.01 minimum=0 maximum= dataChange=outerDocument.debug(event) value={data} or... set the itemEditor of the datagrid to be a class factory which generates NumericSteppers with the factory’s properties set up. Something like (off top of head, so probably won’t compile) private function creationCompleteHandler() : void { var itemFactory : ClassFactory = new ClassFactory(NumericStepper); itemFactory.properties = {maximum:, minimum:0, setpSize:0.01}; dgc.itemEditor = itemFactory; } When the Stepper is used directly, rather than being wrapped in a mx:Component, it picks it up directly as the set data(...) is being called on the NumericStepper and not the wrapper component. Gk.
Re: [flexcoders] Re: With the latest eula agreement from Apple
On Monday 12 Apr 2010, valdhor wrote: Just as a thought, couldn't Adobe output an XCode project that you just need to compile? No. That's not how the system works, it outputs direct to ARM machine code. See http://www.adobe.com/devnet/logged_in/abansod_iphone.html -- Helping to heterogeneously orchestrate eye-catching visionary data as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] NumericStepper as itemRenders in DataGrid don't work as expected
On Tuesday 13 Apr 2010, Gregor Kiddie wrote: value={data} This causes a stack overflow inside the Binding/Watch infrastructure. When the Stepper is used directly, rather than being wrapped in a mx:Component, If I take out the mx:Component lines, it fails to compile because NumericStepper is not an Factory, is that why you suggest creating a Factory for it ? I tried a few variants of putting the Factory in directly, but they all had the same issue. -- Helping to administratively lead infomediaries as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] NumericStepper as itemRenders in DataGrid don't work as expected
This causes a stack overflow inside the Binding/Watch infrastructure. Really? Didn't expect that one. I never use inline renderers if I can help it! I suspect it'll need to be value={parent.data} or maybe owner.data ... again, I hate inline renderers. If I take out the mx:Component lines, it fails to compile because NumericStepper is not an Factory, is that why you suggest creating a Factory for it ? Yeah, the itemEditor property takes an IFactory. The main reason for setting it in actionscript like that is so you can set the initialization properties (max, min, etc). It defaults to new ClassFactory( mx.controls.TextInput). Gk.
RE: [flexcoders] NumericStepper as itemRenders in DataGrid don't work as expected
Playing with this... it's the formatter that's screwing things up. The NumericStepper uses the label for the cell and tries to parse it as a float. The dollar sign immediately makes it terminate with a NaN which the NumericStepper makes a 0 (It really should report it a NaN). Gk.
Re: [flexcoders] NumericStepper as itemRenders in DataGrid don't work as expected
On Tuesday 13 Apr 2010, Gregor Kiddie wrote: Playing with this... it's the formatter that's screwing things up. The NumericStepper uses the label for the cell I think so too. Why isn't it going to the underlying dataProvider element ?!? Can you not mix labelFunction and itemEditor ? In which case I'll need to replace the labelFunction with an itemRenderer I suppose... -- Helping to economically consolidate proactive cutting-edge robust deliverables as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] NumericStepper as itemRenders in DataGrid don't work as expected
On Tuesday 13 Apr 2010, Gregor Kiddie wrote: Really? Didn't expect that one. I never use inline renderers if I can help it! I suspect it'll need to be value={parent.data} or maybe owner.data ... again, I hate inline renderers. It's meant to Just Work. As it is, I think it's down to the labelFunction. Take this block of code-two identical DataGrid of the same dataProvider. Top one has labelFunction (using currencyFormater to clamp price to 2dp), bottom one not. Entering 5 in price col of bottom one, OK. Enter same in different price cell in top one, click outside DG, is OK. Click back on price, is now 50. *bwhuh* ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ import mx.controls.NumericStepper; import mx.formatters.CurrencyFormatter; import mx.collections.ArrayCollection; [Bindable] public static var _moneyFormatter:CurrencyFormatter=new CurrencyFormatter(); [Bindable] private var myDP:ArrayCollection = new ArrayCollection([ {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99}, {Artist:'Pavement', Album:'Crooked Rain, Crooked Rain', Price:10.99}, {Artist:'Pavement', Album:'Wowee Zowee', Price:12.99}, {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99}, {Artist:'Pavement', Album:'Terror Twilight', Price:11.99} ]); public static function dataGridFormatNumber(item:Object, column:DataGridColumn):String{ _moneyFormatter.currencySymbol=''; if (column.dataField == 'vat' (item.vatable == 'e' || item.vatable == 'z') ){ return _moneyFormatter.format(0); } return _moneyFormatter.format(item[column.dataField]); } public function debug(e:*):void{ trace(value set to +e.currentTarget.value); } ]] /mx:Script mx:DataGrid id=myDataGrid dataProvider={myDP} editable=true rowHeight=60 mx:columns mx:DataGridColumn dataField=Artist / mx:DataGridColumn dataField=Album width=130 / mx:DataGridColumn dataField=Price editorDataField=value labelFunction=dataGridFormatNumber mx:itemEditor mx:Component mx:NumericStepper stepSize=0.01 maximum=99/ /mx:Component /mx:itemEditor /mx:DataGridColumn /mx:columns /mx:DataGrid mx:DataGrid id=myDataGrid2 dataProvider={myDP} editable=true rowHeight=60 mx:columns mx:DataGridColumn dataField=Artist / mx:DataGridColumn dataField=Album width=130 / mx:DataGridColumn dataField=Price editorDataField=value mx:itemEditor mx:Component mx:NumericStepper stepSize=0.01 maximum=99/ /mx:Component /mx:itemEditor /mx:DataGridColumn /mx:columns /mx:DataGrid /mx:Application -- Helping to continuously consolidate fourth-generation environments as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Flex Builder Out of Memory Errors
To answer my own question: in Applications/Adobe Flex Builder 3/Flex Builder, right-click and select show package contents then go to contents/MacOS/FlexBuilder.ini This is very well hidden! --- In flexcoders@yahoogroups.com, mitchgrrt mitch_g...@... wrote: I'm on a Mac so I don't have an eclipse.ini file. Does anyone know how to set the memory limit using FB3 (standalone, not plugin) on a Mac? Thanks. --- In flexcoders@yahoogroups.com, reflexactions reflexactions@ wrote: Ok I was getting this all day today until I remebered that in FB3 I had manually changed the eclipse vm args in eclipse.ini.
Re: [flexcoders] Wierd error in instanting an mxml component in actionscript in Flex 4
Does anybody has any suggestion to solve this problem. It is acting as blocker to moving towards Flex 4 release version. Please help. Regards, Pradeep On Mon, Apr 12, 2010 at 7:36 PM, prad_ch pradeep.chaudh...@gmail.comwrote: I am getting a null object reference error while trying to instantiate an mxml component from actionscript. This same code works if compiled from Flash Builder Beta 2 version. I am getting the error only if the code is compiled in Flash Builder 4 (Flex 4 release version). The problem seems to be related to creation policy of the component but I have not been able to figure out how to resolve it. I have already specified creation policy as all. Please help. Pradeep Following is the prototype example of code. -- CustomAccountGrid.mxml ?xml version=1.0 encoding=utf-8? mx:DataGrid xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx width=100% height=100% rowHeight=22 showHeaders=false x=0 y=20 verticalGridLines=false fontSize=12 fontWeight=normal borderVisible=false mx:columns mx:DataGridColumn dataField=name width=200/ mx:DataGridColumn id=registerBalance textAlign=right width=100/ /mx:columns /mx:DataGrid -- AccountView.mxml ?xml version=1.0 encoding=utf-8? s:Panel xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx xmlns:cust=test.custom.component.* width=100% height=100% cornerRadius=4 title=Spending Accounts fontSize=15 fontWeight=bold creationPolicy=all s:Group height=24 left=10 right=10 top=10 fontSize=12 fontWeight=normal s:layout s:HorizontalLayout gap=5 verticalAlign=middle/ /s:layout mx:LinkButton label=Add height=24 paddingBottom=2/ mx:LinkButton label=Manage height=24 paddingBottom=2/ mx:LinkButton id=accountTransferLink label=Account Transfer height=24 paddingBottom=2/ mx:LinkButton label=Refresh height=24 paddingBottom=2/ /s:Group mx:Accordion width=100% height=100% top=44 fontSize=12 fontWeight=normal creationPolicy=all s:NavigatorContent label=Money width=100% bottom=0 contentBackgroundAlpha=0xFF height=70% cust:CustomAccountGrid id=moneyAccount / /s:NavigatorContent s:NavigatorContent label=Credit width=100% height=70% cust:CustomAccountGrid id=creditAccount / /s:NavigatorContent /mx:Accordion /s:Panel -- AccordionTest.mxml ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 minHeight=600 xmlns:ui=test.custom.ui.* creationComplete=creationComplete(event) fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.events.FlexEvent; import test.custom.ui.AccountView; private var _spendingAccount : AccountView; function creationComplete(event:FlexEvent):void{ _spendingAccount = new AccountView(); _spendingAccount.moneyAccount.dataProvider = {}; _spendingAccount.creditAccount.dataProvider = {}; } ]] /fx:Script !-- This works fine. creating through script gives error. ui:SpendingAccountView/ -- /s:Application
[flexcoders] Re: Wierd error in instanting an mxml component in actionscript in Flex 4
--- In flexcoders@yahoogroups.com, prad_ch pradeep.chaudh...@... wrote: I am getting a null object reference error while trying to instantiate an mxml component from actionscript. This same code works if compiled from Flash Builder Beta 2 version. I am getting the error only if the code is compiled in Flash Builder 4 (Flex 4 release version). The problem seems to be related to creation policy of the component but I have not been able to figure out how to resolve it. I have already specified creation policy as all. Please help. Pradeep Following is the prototype example of code. -- CustomAccountGrid.mxml ?xml version=1.0 encoding=utf-8? mx:DataGrid xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx width=100% height=100% rowHeight=22 showHeaders=false x=0 y=20 verticalGridLines=false fontSize=12 fontWeight=normal borderVisible=false mx:columns mx:DataGridColumn dataField=name width=200/ mx:DataGridColumn id=registerBalance textAlign=right width=100/ /mx:columns /mx:DataGrid AccountView.mxml ?xml version=1.0 encoding=utf-8? s:Panel xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx xmlns:cust=test.custom.component.* width=100% height=100% cornerRadius=4 title=Spending Accounts fontSize=15 fontWeight=bold creationPolicy=all s:Group height=24 left=10 right=10 top=10 fontSize=12 fontWeight=normal s:layout s:HorizontalLayout gap=5 verticalAlign=middle/ /s:layout mx:LinkButton label=Add height=24 paddingBottom=2/ mx:LinkButton label=Manage height=24 paddingBottom=2/ mx:LinkButton id=accountTransferLink label=Account Transfer height=24 paddingBottom=2/ mx:LinkButton label=Refresh height=24 paddingBottom=2/ /s:Group mx:Accordion width=100% height=100% top=44 fontSize=12 fontWeight=normal creationPolicy=all s:NavigatorContent label=Money width=100% bottom=0 contentBackgroundAlpha=0xFF height=70% cust:CustomAccountGrid id=moneyAccount / /s:NavigatorContent s:NavigatorContent label=Credit width=100% height=70% cust:CustomAccountGrid id=creditAccount / /s:NavigatorContent /mx:Accordion /s:Panel - AccordionTest.mxml ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 minHeight=600 xmlns:ui=test.custom.ui.* creationComplete=creationComplete(event) fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.events.FlexEvent; import test.custom.ui.AccountView; private var _spendingAccount : AccountView; function creationComplete(event:FlexEvent):void{ _spendingAccount = new AccountView(); _spendingAccount.moneyAccount.dataProvider = {}; _spendingAccount.creditAccount.dataProvider = {}; } ]] /fx:Script !-- This works fine. creating through script gives error. ui:SpendingAccountView/ -- /s:Application Try this: function creationComplete(e:FlexEvent):void { _spendingAccount = new AccountView(); _spendingAccount.addEventListener(FlexEvent.UPDATE_COMPLETE, initSpendingAccount); } function initSpendingAccount(e:FlexEvent):void { _spendingAccount.moneyAccount.dataProvider = new ArrayCollection(); _spendingAccount.creditAccount.dataProvider = new ArrayCollection(); } Or, you could just properly encapsulate AccountView and let it set
Re: [flexcoders] Assigning a byteArray to an Image source
Yes this is what I assumed as well, but even after verifying the position of 0, its still loading a broken image icon. On Tue, Apr 13, 2010 at 12:58 AM, Alex Harui aha...@adobe.com wrote: If it is really a PNG file, you should just be able to assign the bytearray directly to the source, but be sure you’ve set the bytearray’s position=0 before doing so. On 4/12/10 4:27 PM, Amanda Machutta amachu...@gmail.com wrote: Hey All, I’m trying desperately to load an image into flex from a byteArray and for the life of me I cannot seem to get it to work. I have code that uses a FileReference to browse for a *.png file, and then on completion it will set the img.source = fileReference.data. This works great! The fileReference.data is in the form of a byteArray. I then use a RemoteObject to save that byteArray to the database using Coldfusion. That part works perfectly as well. I can the retrieve the byteArray, pass it back to flex, verify that all the properties of the byteArray are exactly the same as the properties were when the image worked, and then assign it to the img.source, and I get a broken image. if I do this: if(this.chat_queue.company_logo.length 0){ var _loader:Loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,function(e:Event):void { this.imgLogo.source = e.currentTarget.content; }); _loader.loadBytes(new PNGEncoder().encodeByteArray(this.chat_queue.company_logo,90,43)); } Then I get “Error 2030: End of file was encountered.” If I try this: } if(this.chat_queue.company_logo.length 0){ var _loader:Loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,function(e:Event):void { this.imgLogo.source = e.currentTarget.content; }); _loader.loadBytes(this.chat_queue.company_logo); } Then I get “Error #2124: Loaded file is an unknown type.” And if I just simply do this: this.imgLogo.source = this.chat_queue.company_logo; I get a broken image without error. Keep in mind that this.chat_queue.company_logo is a byteArray, and is stored in the database as a blog. Thanks, I’m at my wits end. Any help would be greatly appreciated. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- ´¨) __o .·´ .·´¨)¸.·´¨) _'\ . (¸.·´ (¸.·´ (¸.·´¨¨ Amanda ¨¨( * ) ( )
Re: [flexcoders] Assigning a byteArray to an Image source
LOL! Nevermind. I figured out what the issue was. I was using coldfusion on the backend, and when loading the byteArray into my model Object prior to passing it back to Flex, I was using the ToString(*).getBytes() to grab a byte array. Somehow this was causing issues. Removing that and just keeping directly what is pulled from the database relieved me of my issues. Thanks for your input Alex. Your response caused me to take a closer look at what was happening prior to loading into Flex since it was obvious it should just work on the flex end of things. On Tue, Apr 13, 2010 at 9:54 AM, Amanda Machutta amachu...@gmail.comwrote: Yes this is what I assumed as well, but even after verifying the position of 0, its still loading a broken image icon. On Tue, Apr 13, 2010 at 12:58 AM, Alex Harui aha...@adobe.com wrote: If it is really a PNG file, you should just be able to assign the bytearray directly to the source, but be sure you’ve set the bytearray’s position=0 before doing so. On 4/12/10 4:27 PM, Amanda Machutta amachu...@gmail.com wrote: Hey All, I’m trying desperately to load an image into flex from a byteArray and for the life of me I cannot seem to get it to work. I have code that uses a FileReference to browse for a *.png file, and then on completion it will set the img.source = fileReference.data. This works great! The fileReference.data is in the form of a byteArray. I then use a RemoteObject to save that byteArray to the database using Coldfusion. That part works perfectly as well. I can the retrieve the byteArray, pass it back to flex, verify that all the properties of the byteArray are exactly the same as the properties were when the image worked, and then assign it to the img.source, and I get a broken image. if I do this: if(this.chat_queue.company_logo.length 0){ var _loader:Loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,function(e:Event):void { this.imgLogo.source = e.currentTarget.content; }); _loader.loadBytes(new PNGEncoder().encodeByteArray(this.chat_queue.company_logo,90,43)); } Then I get “Error 2030: End of file was encountered.” If I try this: } if(this.chat_queue.company_logo.length 0){ var _loader:Loader = new Loader(); _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,function(e:Event):void { this.imgLogo.source = e.currentTarget.content; }); _loader.loadBytes(this.chat_queue.company_logo); } Then I get “Error #2124: Loaded file is an unknown type.” And if I just simply do this: this.imgLogo.source = this.chat_queue.company_logo; I get a broken image without error. Keep in mind that this.chat_queue.company_logo is a byteArray, and is stored in the database as a blog. Thanks, I’m at my wits end. Any help would be greatly appreciated. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- ´¨) __o .·´ .·´¨)¸.·´¨) _'\ . (¸.·´ (¸.·´ (¸.·´¨¨ Amanda ¨¨( * ) ( ) -- ´¨) __o .·´ .·´¨)¸.·´¨) _'\ . (¸.·´ (¸.·´ (¸.·´¨¨ Amanda ¨¨( * ) ( )
[flexcoders] Re: artchitectural suggestion for making any uicomponent draggable?
http://www.slideshare.net/ThomasBurleson/flex-behavior-injection --- In flexcoders@yahoogroups.com, Baz li...@... wrote: Hello, I have an application where any uicomponent is draggable relative to the stage. The code is the same for each one. Does anyone have a suggestion on a clean way of enabling that functionality for any uicomponent while minimizing duplication? Here is a snippet of the main (duplicate) dragging logic: private function drag(event:MouseEvent):void { var snapIt:Boolean = false; var distanceX:int = (stage.mouseX - xPosStart); var distanceY:int = (stage.mouseY - yPosStart); if ((snapIt)((distanceX != 0)||(distanceY != 0))) { var snapTo:int = 15; var xMove:int = xStart+distanceX; var yMove:int = yStart+distanceY; var xSnap:int = xMove + (snapTo - xMove % snapTo); var ySnap:int = yMove + (snapTo - yMove % snapTo); this.x=xSnap; this.y=ySnap; } else { this.x=xStart+distanceX; this.y=yStart+distanceY; } event.updateAfterEvent(); }
[flexcoders] Re: With the latest eula agreement from Apple
Yes, I know that. What I was suggesting is that Adobe change the output from ARM code to to an XCode project. Wouldn't that get around the new Apple agreement? --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote: On Monday 12 Apr 2010, valdhor wrote: Just as a thought, couldn't Adobe output an XCode project that you just need to compile? No. That's not how the system works, it outputs direct to ARM machine code. See http://www.adobe.com/devnet/logged_in/abansod_iphone.html -- Helping to heterogeneously orchestrate eye-catching visionary data as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: Charts - complex label
I think your renderer should extend a uicomponent by adding to labels components within. --- thomas parquier http://www.web-attitude.fr/realisations/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 2010/4/13 pullzmag deegregg_ml...@poczta.fm The first one is the default one. The second one is retrieved from an array. So I have no problem with retrieving their values but having displayed the second one. I have been using the below class, assigned as labelRenderer package com { import mx.charts.AxisLabel; import mx.controls.Label; import mx.core.IDataRenderer; public class CustomLabelRenderer extends Label implements IDataRenderer { private var _data:AxisLabel; public function CustomLabelRenderer() { super(); } override public function get data():Object { return _data; } override public function set data(value:Object):void { if(value != null) { this._data = value as AxisLabel; this.text = String(value.text); } } } } Basically, the above class does nothing special. It just displays the same label as in case where no labelRenderer is defined. I was trying to add to this class another label for storing the second value but that label was not displayed at all (whether by adding as a child to the first label or to the axis renderer). --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, thomas parquier mailingli...@... wrote: where do you take labels from ? thomas parquier --- http://www.web-attitude.fr/realisations/ msn : thomas.parqu...@... softphone : sip:webattit...@... sip%3awebattit...@... téléphone portable : +33601 822 056 2010/4/13 pullzmag deegregg_ml...@... Any ideas guys? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, pullzmag deegregg_mlist@ wrote: For my line chart I need a label which will be made of two labels. I was trying to use custom labelRenderer where I added another label but this either not possible or I did something wrong. Can you give me some tips for doing this in a right way? Thanks! G.
RE: [flexcoders] Re: With the latest eula agreement from Apple
That amounts to open sourcing the player, as anyone could take a look at the XCode project (or reverse engineer the player from it), which is a no-no from Adobe's perspective. Turning the player into ARM code was about the only way they could get round the licensing problems associated with the player. Gk. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: 13 April 2010 15:15 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: With the latest eula agreement from Apple Yes, I know that. What I was suggesting is that Adobe change the output from ARM code to to an XCode project. Wouldn't that get around the new Apple agreement?
Re: [flexcoders] Re: With the latest eula agreement from Apple
What about reversing the arm byte code to objective-c? I assume the difficult part was to convert actionscript's virtual machine bytes to arm bytecode...
Re: [flexcoders] Re: Property values based on Multiple Conditions
I did a little Googling for you: http://twopointoh.vox.com/library/post/boolean-operations-in-mxml.html Depending on what you are building, the Presentation Model pattern may be overkill, but it's worth knowing about. On Tue, Apr 13, 2010 at 12:28 AM, Doug doug_pie...@ymail.com wrote: Awesome stuff guys!! The amp; thing didn't work for me when I tried that... I thought just maybe, but nah. This was part of the source of my question, How do you do a logical AND? The function method that Richard posted is something I am going to try as I think that's exactly what I'm looking for. I would like to avoid setting up an event listener, but if that's the only way... Thanks again for the help thus far... if anybody has anything else, please let me know! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard Rodseth rrods...@... wrote: Rick is correct. You can also use a local binding function like this: s:Button enabled={enableButton(showMe, hideMe)}/ where enableButton is a function in your Script block that takes two boolean parameters. Or, if you have a presentation model, it could have a computed property buttonEnabled s:Button enabled={model.buttonEnabled}/ Excerpt of presentation model: [Bindable(event=showMeChanged)] [Bindable(event=hideMeChanged)] public function get buttonEnabled():Boolean { return showMe hideMe; } public function set showMe(value:Boolean):void { if (value != this.showMe) { this.showMe = value; dispatchEvent(new Event(showMeChanged)); } } Hope this helps. On Mon, Apr 12, 2010 at 4:31 PM, Rick Genter rick.gen...@... wrote: On Apr 12, 2010, at 10:31 AM, Doug wrote: I seem to have little success with this and would like to know other ways of accomplishing what I want to do. I'm trying to enable/disable a button based on two pieces of criteria. It would seem that a logical OR or a logical AND would bridge these much like an IF statement, however, I'm struggling to make it work 100%. Consider a button: s:Button enabled={showMe || hideMe}/ This button's enabled property is based upon the binding of the variables for showMe and hideMe. If showMe or hideMe is true then the button is enabled. This works fine when using a logical OR. However, the following - using a logical AND - does not: s:Button enabled={showMe hideMe}/ How do you do a logical AND?? Also, if I wanted to set showMe and hideMe based on several lines of code how would I best do it? How would you bind a function output to a display object? I only see a way to do it based upon event: [Bind (event: some event here] private function myFunction():void{} Thanks in advance!! I haven't tried this, but I suspect that you are being bitten by XML. Try this: s:Button enabled={showMe amp;amp; hideMe}/ -- Rick Genter rick.gen...@... rick.genter%40gmail.com
[flexcoders] Re: Charts - complex label
I have tried your tip with the first label. The label is placed correctly (I traced its x and y values) but it's not showing up. The updated class: package com { import mx.controls.Label; import mx.core.IDataRenderer; import mx.core.UIComponent; import mx.events.FlexEvent; public class CustomLabelRenderer extends UIComponent implements IDataRenderer { private var _data:Object; private var _labelYear:Label; public function CustomLabelRenderer() { super(); } [Bindable(dataChange)] public function get data():Object { return _data; } override protected function createChildren():void { super.createChildren(); _labelYear = new Label(); addChild(_labelYear); } public function set data(value:Object):void { _data = value; dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); if(value != null) { _labelYear.text = String(value.text); } } } } --- In flexcoders@yahoogroups.com, thomas parquier mailingli...@... wrote: I think your renderer should extend a uicomponent by adding to labels components within. --- thomas parquier http://www.web-attitude.fr/realisations/ msn : thomas.parqu...@... softphone : sip:webattit...@... sip%3awebattit...@... téléphone portable : +33601 822 056 2010/4/13 pullzmag deegregg_ml...@... The first one is the default one. The second one is retrieved from an array. So I have no problem with retrieving their values but having displayed the second one. I have been using the below class, assigned as labelRenderer package com { import mx.charts.AxisLabel; import mx.controls.Label; import mx.core.IDataRenderer; public class CustomLabelRenderer extends Label implements IDataRenderer { private var _data:AxisLabel; public function CustomLabelRenderer() { super(); } override public function get data():Object { return _data; } override public function set data(value:Object):void { if(value != null) { this._data = value as AxisLabel; this.text = String(value.text); } } } } Basically, the above class does nothing special. It just displays the same label as in case where no labelRenderer is defined. I was trying to add to this class another label for storing the second value but that label was not displayed at all (whether by adding as a child to the first label or to the axis renderer). --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, thomas parquier mailinglists@ wrote: where do you take labels from ? thomas parquier --- http://www.web-attitude.fr/realisations/ msn : thomas.parquier@ softphone : sip:webattitude@ sip%3Awebattitude@ téléphone portable : +33601 822 056 2010/4/13 pullzmag deegregg_mlist@ Any ideas guys? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, pullzmag deegregg_mlist@ wrote: For my line chart I need a label which will be made of two labels. I was trying to use custom labelRenderer where I added another label but this either not possible or I did something wrong. Can you give me some tips for doing this in a right way? Thanks! G.
[flexcoders] Flex 4 RichText clickable hyperlinks + maxDisplayedLines
Hello, RichText support maxDisplayedLines attribute, but doesn't support clickable hyperlinks. RichEditableText support clickable hyperlinks, but doesn't support maxDisplayedLines attribute. Well, I need to limit maxDisplayedLines on my clickable hyperlinks, how can I achieve that please ? Thank you in advance :) Adnan
[flexcoders] Custom Gridline Help
I want to change the color of a specific gridline to act as a goal gridline. So the chart shows avg's by month. I wan't use one of the gridlines as a goal. This post almost covered it, but I can't find an example. http://tech.groups.yahoo.com/group/flexcoders/message/38209 Thanks for any help.
[flexcoders] AIR Software creations - Modules...
Is there any real advantages to creating an AIR app with modules verses all components? I want to break up interal applications in my AIR app and I am used to do it by creating and dynamically loading/unloading modules to keep the size down on the web. Now that I am converting a web app to an AIR app, I seem to have a hard time testing it since it doesn't seem to generate the modules associated with the AIR app. So then, is there any real advantage to creating a module based AIR application (since its not a crazy huge application overall)?
RE: [flexcoders] AIR Software creations - Modules...
You can update bits of it without having to go through the whole updater process, which is nice if you have users who aren't administrators! Gk. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wally Kolcz Sent: 13 April 2010 17:28 To: flexcoders@yahoogroups.com Subject: [flexcoders] AIR Software creations - Modules... Is there any real advantages to creating an AIR app with modules verses all components? I want to break up interal applications in my AIR app and I am used to do it by creating and dynamically loading/unloading modules to keep the size down on the web. Now that I am converting a web app to an AIR app, I seem to have a hard time testing it since it doesn't seem to generate the modules associated with the AIR app. So then, is there any real advantage to creating a module based AIR
Re: [flexcoders] Re: Wierd error in instanting an mxml component in actionscript in Flex 4
Amy, Thanks a lot. That did it. Thanks, Pradeep On Tue, Apr 13, 2010 at 7:19 PM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, prad_ch pradeep.chaudh...@... wrote: I am getting a null object reference error while trying to instantiate an mxml component from actionscript. This same code works if compiled from Flash Builder Beta 2 version. I am getting the error only if the code is compiled in Flash Builder 4 (Flex 4 release version). The problem seems to be related to creation policy of the component but I have not been able to figure out how to resolve it. I have already specified creation policy as all. Please help. Pradeep Following is the prototype example of code. -- CustomAccountGrid.mxml ?xml version=1.0 encoding=utf-8? mx:DataGrid xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx width=100% height=100% rowHeight=22 showHeaders=false x=0 y=20 verticalGridLines=false fontSize=12 fontWeight=normal borderVisible=false mx:columns mx:DataGridColumn dataField=name width=200/ mx:DataGridColumn id=registerBalance textAlign=right width=100/ /mx:columns /mx:DataGrid -- AccountView.mxml ?xml version=1.0 encoding=utf-8? s:Panel xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx xmlns:cust=test.custom.component.* width=100% height=100% cornerRadius=4 title=Spending Accounts fontSize=15 fontWeight=bold creationPolicy=all s:Group height=24 left=10 right=10 top=10 fontSize=12 fontWeight=normal s:layout s:HorizontalLayout gap=5 verticalAlign=middle/ /s:layout mx:LinkButton label=Add height=24 paddingBottom=2/ mx:LinkButton label=Manage height=24 paddingBottom=2/ mx:LinkButton id=accountTransferLink label=Account Transfer height=24 paddingBottom=2/ mx:LinkButton label=Refresh height=24 paddingBottom=2/ /s:Group mx:Accordion width=100% height=100% top=44 fontSize=12 fontWeight=normal creationPolicy=all s:NavigatorContent label=Money width=100% bottom=0 contentBackgroundAlpha=0xFF height=70% cust:CustomAccountGrid id=moneyAccount / /s:NavigatorContent s:NavigatorContent label=Credit width=100% height=70% cust:CustomAccountGrid id=creditAccount / /s:NavigatorContent /mx:Accordion /s:Panel -- AccordionTest.mxml ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 minHeight=600 xmlns:ui=test.custom.ui.* creationComplete=creationComplete(event) fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.events.FlexEvent; import test.custom.ui.AccountView; private var _spendingAccount : AccountView; function creationComplete(event:FlexEvent):void{ _spendingAccount = new AccountView(); _spendingAccount.moneyAccount.dataProvider = {}; _spendingAccount.creditAccount.dataProvider = {}; } ]] /fx:Script !-- This works fine. creating through script gives error. ui:SpendingAccountView/ -- /s:Application Try this: function creationComplete(e:FlexEvent):void { _spendingAccount = new AccountView(); _spendingAccount.addEventListener(FlexEvent.UPDATE_COMPLETE, initSpendingAccount); } function initSpendingAccount(e:FlexEvent):void { _spendingAccount.moneyAccount.dataProvider = new ArrayCollection(); _spendingAccount.creditAccount.dataProvider = new ArrayCollection(); } Or, you could just properly encapsulate AccountView and let it set properties on its own children in commitProperties(). HTH; Amy
[flexcoders] context menu
Hi All to use context menu and use it to make new tab in browser im use this sample: private function B(evt:ContextMenuEvent):void { navigateToURL(new URLRequest(http://www.google.com;),_blank); } and for the function in context menu, im use this sample: private function A(evt:ContextMenuEvent):void { app().goToNodePage(); } how the second sample can add new tab (at browser) like at first sample? Thanks for Advice
[flexcoders] Re: Custom Gridline Help
I know I can add a line series, which is what I'm using at the moment. The problem with that is since it's another series, it doesn't span the entire width of the chart. It's only as wide as its data elements. thanks.
Re: [flexcoders] How to deprecate property which has getter/setter?
Jim, http://livedocs.adobe.com/flex/3/html/help.html?content=metadata_3.html check the documentation. I believe you are suppose to use it on setter only. Regards Srinivas On Wed, Apr 7, 2010 at 1:24 PM, jimmartin10 keryk...@yahoo.com wrote: If I use the [Deprecated] tag on a getter only, e.g. [Deprecated] public function get myOldProperty():int { return 0; } public function set myOldProperty(value:int):void { } Then I get a warning at the line of the setter. myOldProperty has been deprecated If I use the [Deprecated] tag on both getter and setter, e.g. [Deprecated] public function get myOldProperty():int { return 0; } [Deprecated] public function set myOldProperty(value:int):void { } Then I get a duplicate deprecated tag warning. These warnings then clog up the warnings panel, and make the use of the Deprecated tag pointless, as I will be unable to see any genuine warnings about actual use of the deprecated property. Is it possible to Deprecate a property which has mutators and only see warnings for line where the property is referenced? Environment: XP SDK 3.2 Eclipse Plugin
Re: [flexcoders] Re: artchitectural suggestion for making any uicomponent draggable?
Very helpful, thanks! Anyone have success/recommends BIFFF (Behaviour Injection Framework For Flex) http://wiki.github.com/seanhess/bifff/?
Re: [flexcoders] Re: Charts - complex label
even with a validateNow() upon label ? --- thomas parquier http://www.web-attitude.fr/realisations/ msn : thomas.parqu...@web-attitude.fr softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net téléphone portable : +33601 822 056 2010/4/13 pullzmag deegregg_ml...@poczta.fm I have tried your tip with the first label. The label is placed correctly (I traced its x and y values) but it's not showing up. The updated class: package com { import mx.controls.Label; import mx.core.IDataRenderer; import mx.core.UIComponent; import mx.events.FlexEvent; public class CustomLabelRenderer extends UIComponent implements IDataRenderer { private var _data:Object; private var _labelYear:Label; public function CustomLabelRenderer() { super(); } [Bindable(dataChange)] public function get data():Object { return _data; } override protected function createChildren():void { super.createChildren(); _labelYear = new Label(); addChild(_labelYear); } public function set data(value:Object):void { _data = value; dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); if(value != null) { _labelYear.text = String(value.text); } } } } --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, thomas parquier mailingli...@... wrote: I think your renderer should extend a uicomponent by adding to labels components within. --- thomas parquier http://www.web-attitude.fr/realisations/ msn : thomas.parqu...@... softphone : sip:webattit...@... sip%3awebattit...@... téléphone portable : +33601 822 056 2010/4/13 pullzmag deegregg_ml...@... The first one is the default one. The second one is retrieved from an array. So I have no problem with retrieving their values but having displayed the second one. I have been using the below class, assigned as labelRenderer package com { import mx.charts.AxisLabel; import mx.controls.Label; import mx.core.IDataRenderer; public class CustomLabelRenderer extends Label implements IDataRenderer { private var _data:AxisLabel; public function CustomLabelRenderer() { super(); } override public function get data():Object { return _data; } override public function set data(value:Object):void { if(value != null) { this._data = value as AxisLabel; this.text = String(value.text); } } } } Basically, the above class does nothing special. It just displays the same label as in case where no labelRenderer is defined. I was trying to add to this class another label for storing the second value but that label was not displayed at all (whether by adding as a child to the first label or to the axis renderer). --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, thomas parquier mailinglists@ wrote: where do you take labels from ? thomas parquier --- http://www.web-attitude.fr/realisations/ msn : thomas.parquier@ softphone : sip:webattitude@ sip%3Awebattitude@ téléphone portable : +33601 822 056 2010/4/13 pullzmag deegregg_mlist@ Any ideas guys? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.comflexcoders% 40yahoogroups.com, pullzmag deegregg_mlist@ wrote: For my line chart I need a label which will be made of two labels. I was trying to use custom labelRenderer where I added another label but this either not possible or I did something wrong. Can you give me some tips for doing this in a right way? Thanks! G.
[flexcoders] Re: How to deprecate property which has getter/setter?
Srinivas, thanks for your reply The example code in the docs is on the setter only, however, for me, this also generates a compiler warning at the line of the setter. --- In flexcoders@yahoogroups.com, Srinivas S.M s.m.srini...@... wrote: Jim, http://livedocs.adobe.com/flex/3/html/help.html?content=metadata_3.html check the documentation. I believe you are suppose to use it on setter only. Regards Srinivas On Wed, Apr 7, 2010 at 1:24 PM, jimmartin10 keryk...@... wrote: If I use the [Deprecated] tag on a getter only, e.g. [Deprecated] public function get myOldProperty():int { return 0; } public function set myOldProperty(value:int):void { } Then I get a warning at the line of the setter. myOldProperty has been deprecated If I use the [Deprecated] tag on both getter and setter, e.g. [Deprecated] public function get myOldProperty():int { return 0; } [Deprecated] public function set myOldProperty(value:int):void { } Then I get a duplicate deprecated tag warning. These warnings then clog up the warnings panel, and make the use of the Deprecated tag pointless, as I will be unable to see any genuine warnings about actual use of the deprecated property. Is it possible to Deprecate a property which has mutators and only see warnings for line where the property is referenced? Environment: XP SDK 3.2 Eclipse Plugin
[flexcoders] Is it possible to inspect a function (to determine it's and parameters)?
I have a method which takes a function as one of its parameters. Is there any way to inspect this function and determine what parameters it takes? I have tried both getClassInfo()and describeType(). describeType does in fact return that information I need if the class passed to it has a public method. But I can't figure out how to inspect a function that isn't attached to a class. Thanks,
[flexcoders] FB3/Eclipse - CSS design view not showing images
Anyone encounter this? I'm using Eclipse with the Flex Builder 3 plugin. I'm trying to skin a horizontal scrollbar with some images. I just discovered the CSS design view/editor and thought it was exactly what I need. The problem is that I choose my images and hit refresh, but they don't show up. It displays the little blue icon all stretched out (like a missing image icon). Anyone? Thanks! John
[flexcoders] Re: Is it possible to inspect a function (to determine it's and parameters)?
http://tech.groups.yahoo.com/group/flexcoders/message/154284 I just asked a very similar question a few days ago, hope it helps -Tom (http://tomek.me) --- In flexcoders@yahoogroups.com, kidl33t kidl...@... wrote: I have a method which takes a function as one of its parameters. Is there any way to inspect this function and determine what parameters it takes? I have tried both getClassInfo()and describeType(). describeType does in fact return that information I need if the class passed to it has a public method. But I can't figure out how to inspect a function that isn't attached to a class. Thanks,
[flexcoders] Re: Is it possible to inspect a function (to determine it's and parameters)?
lol its rob --- In flexcoders@yahoogroups.com, kidl33t kidl...@... wrote: I have a method which takes a function as one of its parameters. Is there any way to inspect this function and determine what parameters it takes? I have tried both getClassInfo()and describeType(). describeType does in fact return that information I need if the class passed to it has a public method. But I can't figure out how to inspect a function that isn't attached to a class. Thanks,
[flexcoders] Listen for chage to displayObject's transform property?
Is there are way to listen for changes to a display object's transform property? Specifically we have an app that applies a matrix to a top container's transform property. The scale is inherited down to the child containers. I need to know when the child scales. The requirement is that I can only listen to the child, not the top container, but I do not know what to listen for.
[flexcoders] Generate Flash Flv
Hello, How to generate a flash video flv for YouTube from a flex application ? Thank you, Christophe,