[flexcoders] flexant will not compile custom components declared as tags
Anyone know why it seems impossible to compile an mxml-file like this: ?xml version=1.0 encoding=utf-8? mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical width=200 height=200 backgroundColor=0x00ff00 xmlns:components=com.subotnik.components.* components:AntTestClass/ /mx:Module ...but if I declare the AntTestClass as a variable in the script-tag it works fine? // Fredrik Sandberg
[flexcoders] Re: lightweight eclipse
There is flashdevelop for free. Not an Eclipse plugin, but it is lightweight and convenient for smaller things where you don´t need to handle several projects in the same workspace. Also checkout fdt for Eclipse. /Fredrik Sandberg --- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: Is there a lightweight Eclipse IDE or a lightweight notepad for Flex Builder that does not consume as much memory as eclipse. I need at least autocompletion, Starting Eclipse almost takes 250,000K of ram and debugging/running sometimes shots it up to 350,000K. I am running Vista with 2GB and by the end of the day 95% of my ram is gone. Anyone having that problem?
[flexcoders] Re: lightweight eclipse
--- In flexcoders@yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: Is there a lightweight Eclipse IDE or a lightweight notepad for Flex Builder that does not consume as much memory as eclipse. I need at least autocompletion, Starting Eclipse almost takes 250,000K of ram and debugging/running sometimes shots it up to 350,000K. I am running Vista with 2GB and by the end of the day 95% of my ram is gone. Anyone having that problem? Have you tried Spket IDE: http://www.spket.com/flex-mxml-editor.html The standalone version is under 10M
[flexcoders] MovieClip Effects
Does the movieclip object have any type of effect methods available (mousedowneffect etc.)? I would like the whole movieclip object to fade out and disappear. Is this possible?
Re: [flexcoders] Re: lightweight eclipse
Eclipse does consume some amount of memory, but hey even firefox frequently goes over the 100M mark. But Eclipse should not spiral out of control like you are saying. Besides the memory parameters given to the JVM do restrict memory usage. You should run into an exception rather then consuming all your memory resources. To know more about your memory issue it would be helpfull if you posted your eclipse.ini file here. Did you install any other plug-ins with Eclipse (I assume you did)? Maybe one of those plug-ins is the reason why memory is consumed and not returned. Brgds, Eduard eric.suen schreef: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: Is there a lightweight Eclipse IDE or a lightweight notepad for Flex Builder that does not consume as much memory as eclipse. I need at least autocompletion, Starting Eclipse almost takes 250,000K of ram and debugging/running sometimes shots it up to 350,000K. I am running Vista with 2GB and by the end of the day 95% of my ram is gone. Anyone having that problem? Have you tried Spket IDE: http://www.spket.com/flex-mxml-editor.html http://www.spket.com/flex-mxml-editor.html The standalone version is under 10M
RE: [flexcoders] Re: Loading style sheets at run time
2. Bseides the @font-face, you must have some way of specifying in CSS to use the Ad Lib font. What does the relevant CSS look like? 4. What happens if you load the CSS from the main app instead of the module? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kaushal_bshah Sent: Thursday, July 24, 2008 10:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Loading style sheets at run time Alex, Thanks for quick response. Following are the answers to your questions. 1. Yes I have embed each fonts in .swf, and use following css @font-face { src: url(adlib_embed.swf); fontFamily: Ad Lib; } 2. Sorry I have no idea on selectors. Is it the thing which I am missing? 3. MyTextArea is a mxml file, and root tag of this component is TextArea 4. The code which loads CSS SWF is in the module but again in Card component. (main app module card (custom component)load CSS SWF) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Are you embedding fonts? Or just setting the font family? What kinds of selectors are you using to tell MyTextArea about its font? What does MyTextArea extend? Is the code that loads the CSS SWF in the module or main app? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of kaushal_bshah Sent: Thursday, July 24, 2008 3:06 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Loading style sheets at run time I have created few fonts css and compiled them into swf to load them at run time. There is one custom component Card, is placed into a Module and this Module is loaded by main application. The Card component contains TextArea, MyTextArea(custom component) and ComboBox (which display font list). Now when user select any font from ComboBox, Card component load css and when it get loaded, it updates fontFamily of TextArea and MyTextArea. But only TextArea updated with new fonts while MyTextArea is not getting update anytime. Can anyone help me to figure out this. I am using following code to load css run time. var myEvent:IEventDispatcher = StyleManager.loadStyleDeclarations(fontSource[0].src,true,false,Applicat ionDomain.currentDomain); myEvent.addEventListener(StyleEvent.COMPLETE,fontComplete); myEvent.addEventListener(StyleEvent.ERROR,fontError); Any help is appreciated, Thanks
RE: [flexcoders] MovieClip Effects
Wrap the MC in a UIComponent From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shaq Sent: Thursday, July 24, 2008 11:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] MovieClip Effects Does the movieclip object have any type of effect methods available (mousedowneffect etc.)? I would like the whole movieclip object to fade out and disappear. Is this possible?
[flexcoders] Re: Loading style sheets at run time
Hi Let me clear what is MyTextArea. This component is copied from mx:RichTextEditor/, so that user can format each character of MyTextArea's text. For a testing purpose I have create one more component TempTextArea based on TextArea, and put it inside Card component. And when user change font I am updating fontFamily of TempTextArea using following setter method public function set _font(val:String):void{ this.setStyle(fontFamily,val); } And TempTextArea is working correct. I think there is something wrong in MyTextArea, as it uses all method of RichTextEditor.mxml and have following function to update styles of TextArea public function setTextStyles(type:String, value:Object = null):void { //I have removed lines which are not related to my issue var tf:TextFormat; var beginIndex:int = this.getTextField().selectionBeginIndex; var endIndex:int = this.getTextField().selectionEndIndex; . tf[type] = value; .. this.getTextField().setTextFormat(tf,beginIndex,endIndex); }
[flexcoders] LCDS paging exception
As hard as it is for me to admit defeat at anything... Does anyone have more information about the error Exception: flex.data.DataServiceException: Page requested does not exist in the specified sequence id '0' for destination 'foo'. It appears to be being thrown when the DataService is trying to get the next page after retrieving the second page. I'm trying to get Data Management Services up and running and the first step is getting the application paging in the same way it used to. There doesn't seem to be any information on the net about this other than error number listings. 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 [EMAIL PROTECTED]
[flexcoders] Flex and Acrobat Forms
Hello everyone, I'm trying to build a Flex solution that will integrate acrobat forms. What I want is: - Forms are created, for instance, with Adobe Live Cycle Designer (could be static forms or dynamic ones); - Then the user fills out the form from within Flex App; - Data from the user input is persisted in the main database and the form is also saved; Can anyone please help to figure out if this is feasible and if so, which is the best path? Thanks, Antonio
[flexcoders] Adding Event to Panel titleIcon
Hello! I'm trying to add an MouseEvent.CLICK to a Panles titleIcon. How can I do this? I tried some stuff, but nothing worked :( Thanks in advance! Best regards, Stefan
[flexcoders] Re: LCDS paging exception
The newly released LCDS 2.6 developer's guide, has a good section on paging: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/dms_paging_1.html I encourage people to check out the new LCDS 2.6 developer's guide. It's been restructured and has lots of new information on LCDS architecture, channels, etc. LCDS developer's guide, along with Java docs, AS docs, and more is here: http://www.adobe.com/support/documentation/en/livecycledataservices/ -Mete --- In flexcoders@yahoogroups.com, Gregor Kiddie [EMAIL PROTECTED] wrote: As hard as it is for me to admit defeat at anything... Does anyone have more information about the error Exception: flex.data.DataServiceException: Page requested does not exist in the specified sequence id '0' for destination 'foo'. It appears to be being thrown when the DataService is trying to get the next page after retrieving the second page. I'm trying to get Data Management Services up and running and the first step is getting the application paging in the same way it used to. There doesn't seem to be any information on the net about this other than error number listings. 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 [EMAIL PROTECTED]
RE: [flexcoders] Re: LCDS paging exception
Yup, totally aware of the 2.6 documentation (I'm using 2.6 precisely because of the improvements in paging, etc), and I've actually read the developers guide end to end several times now ;) There is still no mention of this specific problem, and I match up to the examples and samples. 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 [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of meteatamel Sent: 25 July 2008 13:51 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS paging exception The newly released LCDS 2.6 developer's guide, has a good section on paging: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/dms_pa ging_1.html http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/dms_p aging_1.html I encourage people to check out the new LCDS 2.6 developer's guide. It's been restructured and has lots of new information on LCDS architecture, channels, etc. LCDS developer's guide, along with Java docs, AS docs, and more is here: http://www.adobe.com/support/documentation/en/livecycledataservices/ http://www.adobe.com/support/documentation/en/livecycledataservices/ -Mete --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gregor Kiddie [EMAIL PROTECTED] wrote: As hard as it is for me to admit defeat at anything... Does anyone have more information about the error Exception: flex.data.DataServiceException: Page requested does not exist in the specified sequence id '0' for destination 'foo'. It appears to be being thrown when the DataService is trying to get the next page after retrieving the second page. I'm trying to get Data Management Services up and running and the first step is getting the application paging in the same way it used to. There doesn't seem to be any information on the net about this other than error number listings. 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/ 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 [EMAIL PROTECTED]
[flexcoders] Re: new Component() ?
--- In flexcoders@yahoogroups.com, Rafael Faria [EMAIL PROTECTED] wrote: Amy, and how would you add elements to the canvas?! or to the itemrender itself? because the myRenderer wont have addChild so i can add new elements. And how do you change the properties of the Canvas? You adding the Class but you aint adding the whole component i was talking about. Suppose that i want to create for instance mx:itemRenderer mx:Component mx:Canvas backgroundColor=#000 mx:Image source=@Embed ('../assets/images/icons/clear_green_button.png') / mx:TextInput text={data.firstname} alpha=0.5 click={test()} / /mx:Canvas /mx:Component /mx:itemRenderer How i would create this on the fly and add to the itemrenderer? this is just to ilustrate what i want. I will need to create different components according to the parameters of my variables that's the reason i'm struggling to do it dynamically. If i only knew how to do this from AS3 it would help me a lot. Alex already said that you can't add any new parts into a ClassFactory. All you can do is set properties on it. It would be an intriguing feature, so you might want to make a feature request. For now, this method will only work to create instances of a class that already does what you want. http://www.adobe.com/cfusion/communityengine/index.cfm? event=showdetailspostId=2081productId=2loc=en_US http://www.adobe.com/cfusion/communityengine/index.cfm? event=showdetailspostId=5762productId=2loc=en_US http://www.paulofierro.com/archives/520/ HTH; Amy
[flexcoders] Re: new Component() ?
--- In flexcoders@yahoogroups.com, Rafael Faria [EMAIL PROTECTED] wrote: Amy, and how would you add elements to the canvas?! or to the itemrender itself? because the myRenderer wont have addChild so i can add new elements. And how do you change the properties of the Canvas? You adding the Class but you aint adding the whole component i was talking about. Suppose that i want to create for instance mx:itemRenderer mx:Component mx:Canvas backgroundColor=#000 mx:Image source=@Embed ('../assets/images/icons/clear_green_button.png') / mx:TextInput text={data.firstname} alpha=0.5 click={test()} / /mx:Canvas /mx:Component /mx:itemRenderer How i would create this on the fly and add to the itemrenderer? this is just to ilustrate what i want. I will need to create different components according to the parameters of my variables that's the reason i'm struggling to do it dynamically. If i only knew how to do this from AS3 it would help me a lot. Alex already said that you can't add any new parts into a ClassFactory. All you can do is set properties on it. It would be an intriguing feature, so you might want to make a feature request. For now, this method will only work to create instances of a class that already does what you want. http://www.adobe.com/cfusion/communityengine/index.cfm? event=showdetailspostId=2081productId=2loc=en_US http://www.adobe.com/cfusion/communityengine/index.cfm? event=showdetailspostId=5762productId=2loc=en_US http://www.paulofierro.com/archives/520/ HTH; Amy
[flexcoders] Re: Centering Bar Chart labels vertically
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: Hi, all; Is there any way to center a bar chart's labels vertically? The labelAlign style only changes the horizontal alignment. Bump :-)
[flexcoders] Re: LCDS paging exception
I have tried the basic paging before and it was working. I'm not sure what is special in your case. Maybe it's a bug? If you can reproduce it consistently, please log a bug so it can be investigated. -Mete --- In flexcoders@yahoogroups.com, Gregor Kiddie [EMAIL PROTECTED] wrote: Yup, totally aware of the 2.6 documentation (I'm using 2.6 precisely because of the improvements in paging, etc), and I've actually read the developers guide end to end several times now ;) There is still no mention of this specific problem, and I match up to the examples and samples. 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 [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of meteatamel Sent: 25 July 2008 13:51 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS paging exception The newly released LCDS 2.6 developer's guide, has a good section on paging: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/dms_pa ging_1.html http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/dms_p aging_1.html I encourage people to check out the new LCDS 2.6 developer's guide. It's been restructured and has lots of new information on LCDS architecture, channels, etc. LCDS developer's guide, along with Java docs, AS docs, and more is here: http://www.adobe.com/support/documentation/en/livecycledataservices/ http://www.adobe.com/support/documentation/en/livecycledataservices/ -Mete --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gregor Kiddie gkiddie@ wrote: As hard as it is for me to admit defeat at anything... Does anyone have more information about the error Exception: flex.data.DataServiceException: Page requested does not exist in the specified sequence id '0' for destination 'foo'. It appears to be being thrown when the DataService is trying to get the next page after retrieving the second page. I'm trying to get Data Management Services up and running and the first step is getting the application paging in the same way it used to. There doesn't seem to be any information on the net about this other than error number listings. 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/ 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.helpdesk@
[flexcoders] DataGrid Row Icon
I am having an issue displaying an icon in the first column of a row. Using the following code I pass two variables to a function the type and name. The type lets me know if the current row is a Directory or a file, if its a directory I return the source for the folder image, if its a file I a parse the filename to get the extension and show that Icon. mx:DataGridColumn width=30 sortable=false mx:itemRenderer mx:Component mx:Image source={outerDocument.setIcon(data.Type,data.Name)} verticalAlign=middle horizontalAlign=center scaleContent=false/ /mx:Component /mx:itemRenderer /mx:DataGridColumn While this is working I keep getting the errors below.. Any help is appreciated. warning: unable to bind to property 'Type' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'Name' on class 'Object' (class is not an IEventDispatcher) Thank You Dan Vega [EMAIL PROTECTED] http://www.danvega.org
[flexcoders] Running Flex application on Mac
I have create one Flex Application, which runs properly on Windows OS. But same application behaving wrong on Mac. Application loads completely but while interacting sometime user getting improper response. So my question is, does Mac need anything to run flex application properly, or is there anything required on coding side?
[flexcoders] anyone successfully streaming video from Limelight?
I've got code to try to stream video from Limelight that doesn't seem to work - but when I plug the same code into our own Flash Media Server setup it works perfectly. Is there no one else trying to get video from limelight into flex?
[flexcoders] PropertyChangeEvent problems in ArrayCollection
I am trying to keep track of changes to an ArrayCollection. I have so far got all of the CollectionEventKind working except for UPDATE. It actually does add that a change was made for UPDATE, however, it doesn't actually save what the change was that was made. e.g. CollectionChange fires, and I store it in an ArrayCollection. However, when I debug what was actually stored, I get a CollectionEvent, with an items array of 1 PropertyChangeEvent, which has a source object with the new values and shows the correct property that was changed, however, both the newValue and oldValue properties of the PropertyChangeEvent are both null. I'm trying to figure out how to get at the data before it is changed. I capture the CollectionChange event, but at that point, the data has already changed (as is evidenced by the PropertyChangeEvent showing the new values and none of the old values). Does anyone know what I can override to capture the changes before they are actually made to the ArrayCollection itself. This way I could even use my own createUpdateEvent to store the values. Thanks. Gareth
[flexcoders] Re: Line chart renderers cut off for first and last data point
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: Is there a way to bring the first and last data points on a line chart in from the sides so that the item renderer dots aren't cut in half? Bump :-)
[flexcoders] Nested property display in ADG
Hi all, I'm interested to display a column in ADG and the field is a nested property. item id1/id foo1/foo Bar id2/id nametest/name /Bar /item What do I want? I want baz to be displayed... I tried this: mx:AdvancedDataGridColumn headerText=Bar dataField=Bar.name/ But it only displays the first level items (foo in my example) on screen. Any ideas how to solve it (I cannot change the XML structure - it's automatically generated by ORM tool)? Regards, -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9166-6902 MSN: [EMAIL PROTECTED] URL: http://blog.bisna.com Rio de Janeiro - RJ/Brazil
RE: [flexcoders] Re: LCDS paging exception
In particular the server debug logs should show what is happening (with Message.* and Service.* enabled). It happens when the client thinks it is subscribed to a paged sequence and the server has lost track of that subscription.It can happen when the server gets restarted without the client knowing about it or it could be a bug. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of meteatamel Sent: Friday, July 25, 2008 6:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS paging exception I have tried the basic paging before and it was working. I'm not sure what is special in your case. Maybe it's a bug? If you can reproduce it consistently, please log a bug so it can be investigated. -Mete --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Gregor Kiddie [EMAIL PROTECTED] wrote: Yup, totally aware of the 2.6 documentation (I'm using 2.6 precisely because of the improvements in paging, etc), and I've actually read the developers guide end to end several times now ;) There is still no mention of this specific problem, and I match up to the examples and samples. 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 [EMAIL PROTECTED] From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of meteatamel Sent: 25 July 2008 13:51 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: LCDS paging exception The newly released LCDS 2.6 developer's guide, has a good section on paging: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/dms_pa ging_1.html http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/dms_p aging_1.html I encourage people to check out the new LCDS 2.6 developer's guide. It's been restructured and has lots of new information on LCDS architecture, channels, etc. LCDS developer's guide, along with Java docs, AS docs, and more is here: http://www.adobe.com/support/documentation/en/livecycledataservices/ http://www.adobe.com/support/documentation/en/livecycledataservices/ -Mete --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gregor Kiddie gkiddie@ wrote: As hard as it is for me to admit defeat at anything... Does anyone have more information about the error Exception: flex.data.DataServiceException: Page requested does not exist in the specified sequence id '0' for destination 'foo'. It appears to be being thrown when the DataService is trying to get the next page after retrieving the second page. I'm trying to get Data Management Services up and running and the first step is getting the application paging in the same way it used to. There doesn't seem to be any information on the net about this other than error number listings. 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/ 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.helpdesk@ inline: image001.jpginline: image002.jpg
[flexcoders] RSS Feeds
I have a simple RSS component that works just fine in development mode, but as soon as I deploy it I get the security violation. I know about the security policy files, and have checked the feeds for this. One of the feeds that is failing is from Yahoo. They have a crossdomain.xml policy file that allows access from *.yahoo.com, and *.yimg.com, but I still get the security violation. But only when I deploy. I really don't want to go through a proxy server. Anyone have a solution?
[flexcoders] Re: Nested property display in ADG
--- In flexcoders@yahoogroups.com, Guilherme Blanco [EMAIL PROTECTED] wrote: Hi all, I'm interested to display a column in ADG and the field is a nested property. item id1/id foo1/foo Bar id2/id nametest/name /Bar /item What do I want? I want baz to be displayed... I tried this: mx:AdvancedDataGridColumn headerText=Bar dataField=Bar.name/ But it only displays the first level items (foo in my example) on screen. Any ideas how to solve it (I cannot change the XML structure - it's automatically generated by ORM tool)? Try this inside your ADG MXML: mx:dataProvider mx:HierarchicalData source={yourXML} childrenField=Bar/ /mx:dataProvider Then you can use name in your dataField. Note that this will give you a hierarchical (tree-like) effect. If that's not what you wanted, you can probably use a labelFunction. HTH; Amy
[flexcoders] Re: Trying to control percentage based containers
That worked. thanks for the tip. Sherm --- In flexcoders@yahoogroups.com, Manu Dhanda [EMAIL PROTECTED] wrote: Give width and height to your TabNavigator. Manu. daddyo_buckeye wrote: I'm trying to control a percentage-based layout with several nested containers. Unless I set a fixed size (in pixels) or a minWidth or minHeight, my outer panel shrinks to a very small size. I understand that parent containers inherit their size from the content in their children containers. My challenge is that I'm importing a SWF and sizing it to fill its available space (100%). Am I missing something? Is there a way to force a container to fill whatever available space it fits into (vs. expanding containers based on children)? For example, maximize the application container, then any child containers. Here's my code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml mx:Panel width=100% height=100% id=uniPanel backgroundColor=#F3F3F3 mx:TabNavigator mx:VBox label=Design View width=100% height=100% mx:SWFLoader id=swfLoader horizontalAlign=center verticalAlign=middle height=90% width=90% scaleContent=true source=assets/UD2_logo.swf / /mx:VBox mx:VBox label=Order View width=100% height=100% mx:Label text=Order View / /mx:VBox /mx:TabNavigator /mx:Panel /mx:Application Any suggestions are greatly appreciated. -- View this message in context: http://www.nabble.com/Trying-to- control-percentage-based-containers-tp18498648p18501535.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Populate TileList w/ data from XML file?
I'll keep an eye on that new class at Ben's blog, but here's how I solved the issue, by creating a custom itemRenderer. A bit of a workaround, but more flexible than using the generic tileList: mx:TileList dataProvider={uniXML} labelField=groupID iconField=thumbnail height=100% width=100% rowHeight=200 columnWidth=125 itemClick=uniLoad(event) mx:itemRenderer mx:Component mx:VBox horizontalAlign=center mx:Image width=110 height=160 source={data.thumbnail}/ mx:Text id=thumbText width=100% height=22 fontSize=9 text={data.top.styleCode.womensStyleCode + '/' + data.top.styleCode.mensStyleCode} / /mx:VBox /mx:Component /mx:itemRenderer /mx:TileList The itemClick loads a SWF that corresponds to the thumbnail in the tileList. Works like a charm! Thanks again for your direction. Sherm --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, daddyo_buckeye projects@ wrote: Amy, Can you be more specific? Would I have to build a class for my images, with the path to the images in the class file? BTW, I've solved this another way (thanks to some folks at the Adobe forums), by using a custom renderer and replacing 'icon' with 'image'. I'll post the code in a bit. The easiest way to create an image class is to embed it [Embed source=images\yourImage.png] private var yourImage:Class; That's just the way icons work http://blog.xsive.co.nz/archives/233. Here's one possible solution http://blog.benstucki.net/?p=42. HTH; Amy
Re: [flexcoders] Re: Nested property display in ADG
Hi, Thanks for the quick answer. I do not like the tree effect... I want a plain grid first (later I'll use the tree but based on other things). ++--+ | foo| bar | ++--+ | 1 | test | ++--+ That's what I want... I have around 10 xml nested items and the user will be able to display all columns if he/she wants to. So my idea is a nicer solution than labelFunction (which I'd have to make a switch for all fields). That's my real structure: http://pastie.org/241033 (each item is the row I want to display on grid). Is it better explained now? There must have a nicer solution for this instead of labelFunction =) Thanks in advance, On Fri, Jul 25, 2008 at 11:55 AM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Guilherme Blanco [EMAIL PROTECTED] wrote: Hi all, I'm interested to display a column in ADG and the field is a nested property. item id1/id foo1/foo Bar id2/id nametest/name /Bar /item What do I want? I want baz to be displayed... I tried this: mx:AdvancedDataGridColumn headerText=Bar dataField=Bar.name/ But it only displays the first level items (foo in my example) on screen. Any ideas how to solve it (I cannot change the XML structure - it's automatically generated by ORM tool)? Try this inside your ADG MXML: mx:dataProvider mx:HierarchicalData source={yourXML} childrenField=Bar/ /mx:dataProvider Then you can use name in your dataField. Note that this will give you a hierarchical (tree-like) effect. If that's not what you wanted, you can probably use a labelFunction. HTH; Amy -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9166-6902 MSN: [EMAIL PROTECTED] URL: http://blog.bisna.com Rio de Janeiro - RJ/Brazil
[flexcoders] Timer memory leak
Howdy all! I've got a memory leak issue with my problem. I just added a third party countdown timer component to my project. I've narrowed down the culprit to the event listener that listens for the timer event and then calls an updateTime function. timer.addEventListener(timer, updateTime, false, 0, true); As you can see, it uses a weak reference, as it should. The updateTime function declares two event objects, and checks if the timer has reached zero. It either stops the timer and throws a completed event, or it throws an event to update the visual component to the new time. Removing the addEventListener function plugs the leak, but the visual component never gets updated. I've moved the declarations of the two events from within the updateTime to the class itself to stop the timer from creating new objects every time it fires, but the app still leaks. It seems that everything is technically correct, but calling a function evey second is just devouring memory. So I guess I'm looking for a workaround to update the display without an event listeneryeah that may be impossible... Any suggestions?
[flexcoders] Tweener and HTTPService conflict
Hey everybody, I am using the Tweener class for an animation that is going on toward the top of my flex application. The problem is when I add an http service to grab data to populate the menubar at the bottom, it looks as if the application waits for the animation to be done before the menubar populates. I cannot figure out why this is happening. I have tried putting the menubar and http request in another swf, no luck.
[flexcoders] Re: Trying to control percentage based containers
You should also maximize Application's width, height to 100% and your TabNaviigator. --- In flexcoders@yahoogroups.com, daddyo_buckeye [EMAIL PROTECTED] wrote: I'm trying to control a percentage-based layout with several nested containers. Unless I set a fixed size (in pixels) or a minWidth or minHeight, my outer panel shrinks to a very small size. I understand that parent containers inherit their size from the content in their children containers. My challenge is that I'm importing a SWF and sizing it to fill its available space (100%). Am I missing something? Is there a way to force a container to fill whatever available space it fits into (vs. expanding containers based on children)? For example, maximize the application container, then any child containers. Here's my code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml mx:Panel width=100% height=100% id=uniPanel backgroundColor=#F3F3F3 mx:TabNavigator mx:VBox label=Design View width=100% height=100% mx:SWFLoader id=swfLoader horizontalAlign=center verticalAlign=middle height=90% width=90% scaleContent=true source=assets/UD2_logo.swf / /mx:VBox mx:VBox label=Order View width=100% height=100% mx:Label text=Order View / /mx:VBox /mx:TabNavigator /mx:Panel /mx:Application Any suggestions are greatly appreciated.
[flexcoders] Re: Timer memory leak
Have you tried using setTimeout instead of listening on Timer events? --- In flexcoders@yahoogroups.com, steve.baney [EMAIL PROTECTED] wrote: Howdy all! I've got a memory leak issue with my problem. I just added a third party countdown timer component to my project. I've narrowed down the culprit to the event listener that listens for the timer event and then calls an updateTime function. timer.addEventListener(timer, updateTime, false, 0, true); As you can see, it uses a weak reference, as it should. The updateTime function declares two event objects, and checks if the timer has reached zero. It either stops the timer and throws a completed event, or it throws an event to update the visual component to the new time. Removing the addEventListener function plugs the leak, but the visual component never gets updated. I've moved the declarations of the two events from within the updateTime to the class itself to stop the timer from creating new objects every time it fires, but the app still leaks. It seems that everything is technically correct, but calling a function evey second is just devouring memory. So I guess I'm looking for a workaround to update the display without an event listeneryeah that may be impossible... Any suggestions?
[flexcoders] Re: Line chart renderers cut off for first and last data point
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote: Is there a way to bring the first and last data points on a line chart in from the sides so that the item renderer dots aren't cut in half? Bump :-) For the archives: set clipContent = false on the chart.
[flexcoders] Calendar Help
Hi all I'm trying to create a calendar using the dateChooser component. I am able to show which dates are selectable, but I can't figure out how to when I click on the date it will show the event information for that day from the xml file I provided. Help please! Here's a snippet of what I have so far: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init() mx:Script ![CDATA[ private function init():void { dc1.displayedMonth = 1; dc1.displayedYear = 2008; } public function displayDates():void { var dateRanges:Array = []; for (var i:int=0; ishows.show.length(); i++) { var cDate:Date = new Date(shows.show[i].showDate.toString()); var cDateObject:Object = {rangeStart:cDate, rangeEnd:cDate}; dateRanges.push(cDateObject); } dc1.selectedRanges = dateRanges; } ]] /mx:Script mx:XML id=shows format=e4x data show showID1/showID showDate02/28/2008/showDate showTime10:45am/11:15am/showTime /show show showID2/showID showDate02/23/2008/showDate showTime7:00pm/showTime /show /data /mx:XML mx:DateChooser id=dc1 showToday=true creationComplete=displayDates()/ /mx:Application
[flexcoders] Re: Got Error #2032: Stream Error invoking web service for IE6 and IE7
Anyone? I still have not found a solution to this problem. I have searched the web that there is an issue related to this that has to do with ssl and caching in IE. But I am not using ssl. It's very frustrating as my UI works fine if I have only one IE browser up. As soon as I bring up another IE browser, one of my UIs gets this Stream Error. --- In flexcoders@yahoogroups.com, thuvu03 [EMAIL PROTECTED] wrote: I am using Flex 2.0. I have been getting Error #2032: Stream Error on both IE6 and IE7 (but not Firefox) when I have mulitple UIs up in multiple IE browsers that invoke an operation of a web service. My web service uses Apache Axis 1.2 and it's deployed to jboss server. Here are the steps that will reproduce the #2032 error: 1. Bring up my Flex UI on one IE browser and login successfully. Once logged in sucessfully, the UI will call the getEvents() webservice call with a timeout of 10s. If the server has any updates it will return the results right away. Else, it will wait for 10s to be up and returns with no data to update. After the UI receives the response it will then call getEvents() again. This will just go on indefintely for the UI to get new updates. 2. Bring up my Flex UI on another new IE browser (on the same machine as in step 1) and login succesfully again. Same as in step 1, the UI will call the getEvents() webservice call to get new server updates if any. 3. Using any of the UI (either in step 1 or 2), make some modifications to the data and submit to the server. The modified data got submitted sucessfully. When one of the UIs calls getEvents() it will get Error #2032 in the fault handler. Notes: I used Charles, TCP Monitor, and WireShark and I saw the getEvents() response coming back successfullly with valid SOAP response and the status code is 200 OK. I have searched the web with nothing relevant to this. I have read that maybe it has to do with the famous browser limitation of 2 http connections. If it is, it works fine with Firefox even if I have 5 browsers up. Isn't Firefox has 2 connections limit as well? It works perfectly fine if I have one and only one IE browser per client host.I even changed the http connections limit for IE to 10 and still experiencing the same problem when I have 2 IEs up on the same machine. Any helps/suggestions is greatly APPRECIATED for I have banged my head on this problem for the past 4 days. Thanks, Thu
[flexcoders] AdvancedDataGrid layout problem
I'm having trouble laying out my AdvancedDataGrid. I would like to have a tree with a depth of 1 (a root node only contains leaf nodes). The rootnode is just the expand/collapse icon, followed by a name. The leaf nodes have several columns, the first few of which are very narrow. Basically, I want the root nodes to ignore the column structure of the leaf nodes. Something like a colspan in HTML. I'm using HierarchicalData, because I found the grouping method to be way too slow for my needs.
RE: [flexcoders] Calendar Help
How about doing that in a DateChooser.change event handler function? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of emobilecat Sent: Friday, July 25, 2008 11:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Calendar Help Hi all I'm trying to create a calendar using the dateChooser component. I am able to show which dates are selectable, but I can't figure out how to when I click on the date it will show the event information for that day from the xml file I provided. Help please! Here's a snippet of what I have so far: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=init() mx:Script ![CDATA[ private function init():void { dc1.displayedMonth = 1; dc1.displayedYear = 2008; } public function displayDates():void { var dateRanges:Array = []; for (var i:int=0; ishows.show.length(); i++) { var cDate:Date = new Date(shows.show[i].showDate.toString()); var cDateObject:Object = {rangeStart:cDate, rangeEnd:cDate}; dateRanges.push(cDateObject); } dc1.selectedRanges = dateRanges; } ]] /mx:Script mx:XML id=shows format=e4x data show showID1/showID showDate02/28/2008/showDate showTime10:45am/11:15am/showTime /show show showID2/showID showDate02/23/2008/showDate showTime7:00pm/showTime /show /data /mx:XML mx:DateChooser id=dc1 showToday=true creationComplete=displayDates()/ /mx:Application
Re: [flexcoders] Re: Got Error #2032: Stream Error invoking web service for IE6 and IE7
welcome to 2032 hell :) as you should have run across, this is a generic error thrown when th ebrowser says there is something wrong, but the browser does not tell FP what is wrong. I've seen this afflict IE with some webservices. It would happen randomly and with the same exact call/returned data pattern too, so I ruled out bad data. Implement a retry n times maybe, icky yes, but can drop the probability of total failure down. DK On Fri, Jul 25, 2008 at 11:37 AM, thuvu03 [EMAIL PROTECTED] wrote: Anyone? I still have not found a solution to this problem. I have searched the web that there is an issue related to this that has to do with ssl and caching in IE. But I am not using ssl. It's very frustrating as my UI works fine if I have only one IE browser up. As soon as I bring up another IE browser, one of my UIs gets this Stream Error. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, thuvu03 [EMAIL PROTECTED] wrote: I am using Flex 2.0. I have been getting Error #2032: Stream Error on both IE6 and IE7 (but not Firefox) when I have mulitple UIs up in multiple IE browsers that invoke an operation of a web service. My web service uses Apache Axis 1.2 and it's deployed to jboss server. Here are the steps that will reproduce the #2032 error: 1. Bring up my Flex UI on one IE browser and login successfully. Once logged in sucessfully, the UI will call the getEvents() webservice call with a timeout of 10s. If the server has any updates it will return the results right away. Else, it will wait for 10s to be up and returns with no data to update. After the UI receives the response it will then call getEvents() again. This will just go on indefintely for the UI to get new updates. 2. Bring up my Flex UI on another new IE browser (on the same machine as in step 1) and login succesfully again. Same as in step 1, the UI will call the getEvents() webservice call to get new server updates if any. 3. Using any of the UI (either in step 1 or 2), make some modifications to the data and submit to the server. The modified data got submitted sucessfully. When one of the UIs calls getEvents() it will get Error #2032 in the fault handler. Notes: I used Charles, TCP Monitor, and WireShark and I saw the getEvents() response coming back successfullly with valid SOAP response and the status code is 200 OK. I have searched the web with nothing relevant to this. I have read that maybe it has to do with the famous browser limitation of 2 http connections. If it is, it works fine with Firefox even if I have 5 browsers up. Isn't Firefox has 2 connections limit as well? It works perfectly fine if I have one and only one IE browser per client host.I even changed the http connections limit for IE to 10 and still experiencing the same problem when I have 2 IEs up on the same machine. Any helps/suggestions is greatly APPRECIATED for I have banged my head on this problem for the past 4 days. Thanks, Thu -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] best way to immediately post advanceddatagrid itemeditor change
I have a column that contains an image. The editor for it is a combobox that lets you pick an image from the list of images in an arraycollection. I want to have it where as soon as they click on the image from the dropdown, the combobox disappears completely and changes are posted to the original object. Is there a single recommended way to do this? Here's what I've come up with: mx:itemEditor mx:Component mx:ComboBox dropdownWidth=40 dataProvider={WATIcons.customIcons} change={finishEdit(event)} mx:Script ![CDATA[ import mx.events.ListEvent; private function finishEdit(e:ListEvent):void { GridUser(data).customIcon = selectedItem.icon; var k:KeyboardEvent = new KeyboardEvent(KeyboardEvent.KEY_DOWN, true, false, 0, Keyboard.ESCAPE); dispatchEvent(k); } ]] /mx:Script /mx:ComboBox /mx:Component /mx:itemEditor I tried fiddling with things like sending ITEM_EDIT_END messages and such but didn't really have any luck. This works, but I wonder if it's really the best way to go about it. PS: The ComboBox is functional, but not very visually appealing. What I'd really like to do would be to have a spiffy TileList that drops down and has several icons across and some down, etc. But I haven't written that code yet. If someone already knows of a pre-written itemEditor for such of thing, feel free to point the way. -- Jason
[flexcoders] Figuring out what was clicked in AdvancedDataGrid
How can you tell which item in the dataProvider was clicked in an AdvancedDataGrid, when using HierarchicalData as the dataProvider? I tried using the typical DataGrid method, of saving off the item index in itemRollOver, and using it to determine the index of the clicked item. However, with AdvancedDataGrid, the row index isn't particularly relevant. Or is there some way to convert the row index to the actual clicked item in the dataProvider?
[flexcoders] problem with embeds in static variables
I'm confused as to why the following gets a runtime error: package nes { import mx.collections.ArrayCollection; public class WATIcons { [Embed(source=/assets/customIcons/eye-16x16--CCFFF.png)] public static var eye:Class; public static var customIcons:ArrayCollection = new ArrayCollection([eye]); } } TypeError: Error #1009: Cannot access a property or method of a null object reference. at nes::WATIcons$/get eye()[C:\Documents and Settings\\My Documents\Flex Builder 3\WATControl\nes\WATIcons.as:70] at nes::WATIcons$cinit() Yet if I remove the static and create an instance of the class, I don't get any errors. I can then use the customIcons array element 0 just fine. I'd really rather have them as static, as they are used all over in the application. Is there some way around this, or is it unavoidable? If it's unavoidable, then just out of curiosity what is causing the problem for the compiler? -- Jason
[flexcoders] LCDS data synchronisation problem
Hi, I have installed the insync app from http://coenraets.org/blog/2008/05/insync-automatic-offline-data-synchronization-in-air-using-lcds-26 and consistently get cannot fill error message. I then got the source code and compiled the files under flex builder 3. I ran the debugger and used trace() to output the messages. the error occurs when the dataService invokes fill(). I get the following error message: Error: Unable to initialize destinations on server: [insync] at anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:2347] at anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:2363] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.data::SQLDBCache/dispatchStatusEvent()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\airfds\src\mx\data\SQLDBCache.as:540] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.rpc::AsyncDispatcher/timerEventHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncDispatcher.as:50] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() I have no idea what it means and does not really understand where the info related to anonymous and the Folder were taken from. Can anybody help please? thanks florence
Re: [flexcoders] Running Flex application on Mac
In theory, flex applications, like flash movies, run the same way on Windows and OS X. In reality, there are a number of differences. If you can provide details as to what is actually happening differently, including some relevant code, somebody might be able to help you out. - Original Message From: kaushal_bshah [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, July 25, 2008 6:50:32 AM Subject: [flexcoders] Running Flex application on Mac I have create one Flex Application, which runs properly on Windows OS. But same application behaving wrong on Mac. Application loads completely but while interacting sometime user getting improper response. So my question is, does Mac need anything to run flex application properly, or is there anything required on coding side?
Re: [flexcoders] Figuring out what was clicked in AdvancedDataGrid
I use this code with an ArrayCollection dataProvider. I'm using multiple cell selection as well, but you can customize as you need: var ac:ArrayCollection = dataProvider as ArrayCollection; for(var i:Number = 0; i selectedCells.length; i++) { var cell:Object = selectedCells[i]; var data:Object = ac.getItemAt(cell.rowIndex); var dataField:String = columns[cell.columnIndex].dataField; data[dataField] = ; ac.itemUpdated(data, dataField); } aside, selectedIndex and selectedColumnIndex should give you the indices you need to retrieve a itemRenderer or a datapovider's object 2008/7/25 whatabrain [EMAIL PROTECTED]: How can you tell which item in the dataProvider was clicked in an AdvancedDataGrid, when using HierarchicalData as the dataProvider? I tried using the typical DataGrid method, of saving off the item index in itemRollOver, and using it to determine the index of the clicked item. However, with AdvancedDataGrid, the row index isn't particularly relevant. Or is there some way to convert the row index to the actual clicked item in the dataProvider?
[flexcoders] First AIR app using Flex 3 SDK
I'm running through the Creating your first AIR application with the Flex SDK And I get all the way to the end, everything is working okay until I get here : Create the AIR installation file I create the sampleCert.pfx and I go to compile the .air file and this is what I get... C:\Flex3-SDK\binadt -package -storetype pkcs12 -keystore ../HelloWorld/sampleCert.pfx ../HelloWorld /HelloWorld.air ../HelloWorld/HelloWorld-app.xml ../HelloWorld/HelloWorld.swf password: yep absolute path: C:\Flex3-SDK\HelloWorld\HelloWorld.swf usage: adt -package SIGNING_OPTIONS air-file app-desc FILE_ARGS adt -prepare airi-file app-desc FILE_ARGS adt -sign SIGNING_OPTIONS airi-file air-file adt -checkstore SIGNING_OPTIONS adt -certificate -cn name ( -ou org-unit )? ( -o org-name )? ( -c country )? key-type p fx-file password adt -help (I created the PATH variable but I believe I need to reboot in order for that to take which is why you see the ../ stuff). Anyways, there's no error there, but there's no HelloWorld.air file in the HelloWorld directory.. I've followed the instructions, I can run the debugger and see the window, the files are there (the .xml, .swf), just no .air.. What's up with this? Thanks
[flexcoders] Re: AdvancedDataGrid layout problem
--- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: I'm having trouble laying out my AdvancedDataGrid. I would like to have a tree with a depth of 1 (a root node only contains leaf nodes). The rootnode is just the expand/collapse icon, followed by a name. The leaf nodes have several columns, the first few of which are very narrow. Basically, I want the root nodes to ignore the column structure of the leaf nodes. Something like a colspan in HTML. Hide the vertical separator between the columns. If you need it for the leaf nodes, add it into the itemRenderers. HTH; Amy
RE: [flexcoders] problem with embeds in static variables
Class initialization is just a bunch of code. The eye class may not be fully setup by the time customIcons is getting initialized. When it is an instance var, the eye class has probably been fully setup by instantiation time. Assigning default values to statics that are not compile-time constants is dangerous From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan Troglodytes Sent: Friday, July 25, 2008 10:05 AM To: flexcoders Subject: [flexcoders] problem with embeds in static variables I'm confused as to why the following gets a runtime error: package nes { import mx.collections.ArrayCollection; public class WATIcons { [Embed(source=/assets/customIcons/eye-16x16--CCFFF.png)] public static var eye:Class; public static var customIcons:ArrayCollection = new ArrayCollection([eye]); } } TypeError: Error #1009: Cannot access a property or method of a null object reference. at nes::WATIcons$/get eye()[C:\Documents and Settings\\My Documents\Flex Builder 3\WATControl\nes\WATIcons.as:70] at nes::WATIcons$cinit() Yet if I remove the static and create an instance of the class, I don't get any errors. I can then use the customIcons array element 0 just fine. I'd really rather have them as static, as they are used all over in the application. Is there some way around this, or is it unavoidable? If it's unavoidable, then just out of curiosity what is causing the problem for the compiler? -- Jason
RE: [flexcoders] Timer memory leak
It would be pretty hard for that line to cause a leak. It is more likely to be whatever updateTime is doing. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of steve.baney Sent: Friday, July 25, 2008 8:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Timer memory leak Howdy all! I've got a memory leak issue with my problem. I just added a third party countdown timer component to my project. I've narrowed down the culprit to the event listener that listens for the timer event and then calls an updateTime function. timer.addEventListener(timer, updateTime, false, 0, true); As you can see, it uses a weak reference, as it should. The updateTime function declares two event objects, and checks if the timer has reached zero. It either stops the timer and throws a completed event, or it throws an event to update the visual component to the new time. Removing the addEventListener function plugs the leak, but the visual component never gets updated. I've moved the declarations of the two events from within the updateTime to the class itself to stop the timer from creating new objects every time it fires, but the app still leaks. It seems that everything is technically correct, but calling a function evey second is just devouring memory. So I guess I'm looking for a workaround to update the display without an event listeneryeah that may be impossible... Any suggestions?
RE: [flexcoders] PropertyChangeEvent problems in ArrayCollection
What is the property that is changing? I think you may need to have your own code generate the proper change event. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lampei Sent: Friday, July 25, 2008 7:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] PropertyChangeEvent problems in ArrayCollection I am trying to keep track of changes to an ArrayCollection. I have so far got all of the CollectionEventKind working except for UPDATE. It actually does add that a change was made for UPDATE, however, it doesn't actually save what the change was that was made. e.g. CollectionChange fires, and I store it in an ArrayCollection. However, when I debug what was actually stored, I get a CollectionEvent, with an items array of 1 PropertyChangeEvent, which has a source object with the new values and shows the correct property that was changed, however, both the newValue and oldValue properties of the PropertyChangeEvent are both null. I'm trying to figure out how to get at the data before it is changed. I capture the CollectionChange event, but at that point, the data has already changed (as is evidenced by the PropertyChangeEvent showing the new values and none of the old values). Does anyone know what I can override to capture the changes before they are actually made to the ArrayCollection itself. This way I could even use my own createUpdateEvent to store the values. Thanks. Gareth
RE: [flexcoders] DataGrid Row Icon
It means your data objects are just plain objects and any changes to type or name won't be detected. You can make your object [Bindable] or better yet, define a custom data class with the appropriate [Bindable()] events, but I don' think these warning will harm you in this case although it will slow down the app. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Vega Sent: Friday, July 25, 2008 6:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid Row Icon I am having an issue displaying an icon in the first column of a row. Using the following code I pass two variables to a function the type and name. The type lets me know if the current row is a Directory or a file, if its a directory I return the source for the folder image, if its a file I a parse the filename to get the extension and show that Icon. mx:DataGridColumn width=30 sortable=false mx:itemRenderer mx:Component mx:Image source={outerDocument.setIcon(data.Type,data.Name)} verticalAlign=middle horizontalAlign=center scaleContent=false/ /mx:Component /mx:itemRenderer /mx:DataGridColumn While this is working I keep getting the errors below.. Any help is appreciated. warning: unable to bind to property 'Type' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'Name' on class 'Object' (class is not an IEventDispatcher) Thank You Dan Vega [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.danvega.org http://www.danvega.org
RE: [flexcoders] Re: Loading style sheets at run time
RichTextEditor may block setting of styles using setStyle as it expects the markup to describe the font properties. This may not be a module problem. Try it in a simple test app. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kaushal_bshah Sent: Friday, July 25, 2008 12:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Loading style sheets at run time Hi Let me clear what is MyTextArea. This component is copied from mx:RichTextEditor/, so that user can format each character of MyTextArea's text. For a testing purpose I have create one more component TempTextArea based on TextArea, and put it inside Card component. And when user change font I am updating fontFamily of TempTextArea using following setter method public function set _font(val:String):void{ this.setStyle(fontFamily,val); } And TempTextArea is working correct. I think there is something wrong in MyTextArea, as it uses all method of RichTextEditor.mxml and have following function to update styles of TextArea public function setTextStyles(type:String, value:Object = null):void { //I have removed lines which are not related to my issue var tf:TextFormat; var beginIndex:int = this.getTextField().selectionBeginIndex; var endIndex:int = this.getTextField().selectionEndIndex; . tf[type] = value; .. this.getTextField().setTextFormat(tf,beginIndex,endIndex); }
RE: [flexcoders] Re: new Component() ?
If the goal is to generate different canvas children based on the data, a custom renderer should do that in commitProperties. How you determine which children to create is up to you, but you wouldn't do this by altering class definitions at runtime. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, July 25, 2008 6:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: new Component() ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Rafael Faria [EMAIL PROTECTED] wrote: Amy, and how would you add elements to the canvas?! or to the itemrender itself? because the myRenderer wont have addChild so i can add new elements. And how do you change the properties of the Canvas? You adding the Class but you aint adding the whole component i was talking about. Suppose that i want to create for instance mx:itemRenderer mx:Component mx:Canvas backgroundColor=#000 mx:Image source=@Embed ('../assets/images/icons/clear_green_button.png') / mx:TextInput text={data.firstname} alpha=0.5 click={test()} / /mx:Canvas /mx:Component /mx:itemRenderer How i would create this on the fly and add to the itemrenderer? this is just to ilustrate what i want. I will need to create different components according to the parameters of my variables that's the reason i'm struggling to do it dynamically. If i only knew how to do this from AS3 it would help me a lot. Alex already said that you can't add any new parts into a ClassFactory. All you can do is set properties on it. It would be an intriguing feature, so you might want to make a feature request. For now, this method will only work to create instances of a class that already does what you want. http://www.adobe.com/cfusion/communityengine/index.cfm? http://www.adobe.com/cfusion/communityengine/index.cfm? event=showdetailspostId=2081productId=2loc=en_US http://www.adobe.com/cfusion/communityengine/index.cfm? http://www.adobe.com/cfusion/communityengine/index.cfm? event=showdetailspostId=5762productId=2loc=en_US http://www.paulofierro.com/archives/520/ http://www.paulofierro.com/archives/520/ HTH; Amy
RE: [flexcoders] Re: new Component() ?
i'm able to add a new class on the fly No, you're not adding a new class on the fly. You're creating a new instance of a ClassFactory subclass on the fly. A class is something that is defined at compile time by a class { .. } definition. You cannot create new classes at runtime, only instances of them. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Faria Sent: Thursday, July 24, 2008 5:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: new Component() ? I found this class package modules.renderers { import mx.core.ClassFactory; import org.osflash.thunderbolt.Logger; public class InitFactory extends ClassFactory { private var initObject:Object; public function InitFactory(generator:Class, initObject:Object) { super(generator); this.initObject = initObject; } public override function newInstance():* { var result:* = super.newInstance(); for(var propertyName:String in initObject) { try { result[propertyName] = initObject[propertyName]; }catch (e:Error) { trace(e.message); } } return result; } } } and i'm able to add a new class on the fly doing dgc.itemRenderer = new InitFactory(TextInput, {text:'Value inside the text input'}); now i'm struggling to make the textinput, to get values from the data variable coming from the dataProvider. You know, when inside the itemrender you can use {data.firstname + ' ' + data.lastname} like: mx:TextInput text={data.firstname + ' ' + data.lastname} / With the example i gave above, how i would do that? Raf Any idea how i would pass this data to the checkbox label --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: You can't add to the class definition of the Canvas at runtime. ClassFactory has a properties bag where you can have properties slapped on the new instance, but that's not really a new class definition. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Amy Sent: Thursday, July 24, 2008 7:36 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: new Component() ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: If you've defined a component via mx:Component, the name is auto-generated as Josh says, but it generates an IFactory, so you can use the factory to get new instances mx:List id=myList mx:itemRenderer mx:Component mx:Canvas .. From AS: myList.itemRenderer.newInstance() This makes it sound like the equivalent to new Component() in AS might be myRenderer:ClassFactory = new ClassFactory(mx.containers.Canvas); Presumably from there you can add stuff to myRenderer before using it as your rubber stamp, but I've never personally used ClassFactory for anything other than setting global properties on a class I created in AS3 or MXML. Is this a correct interpretation of how AS3 works? Thanks; Amy
Re: [flexcoders] DataGrid Row Icon
As you said that I started looking at it more and started to write a reply. The item is declared bindable but when you are in the component it could not see my variable because it was declared private. i declared the variable and it works with no warnings now! mx:DataGridColumn width=30 sortable=false mx:itemRenderer mx:Component mx:Image source={outerDocument.setIcon(data.Type,data.Name)} verticalAlign=middle horizontalAlign=center scaleContent=false/ /mx:Component /mx:itemRenderer /mx:DataGridColumn Thank You Dan Vega [EMAIL PROTECTED] http://www.danvega.org On Fri, Jul 25, 2008 at 2:13 PM, Alex Harui [EMAIL PROTECTED] wrote: It means your data objects are just plain objects and any changes to type or name won't be detected. You can make your object [Bindable] or better yet, define a custom data class with the appropriate [Bindable()] events, but I don' think these warning will harm you in this case although it will slow down the app. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dan Vega *Sent:* Friday, July 25, 2008 6:45 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] DataGrid Row Icon I am having an issue displaying an icon in the first column of a row. Using the following code I pass two variables to a function the type and name. The type lets me know if the current row is a Directory or a file, if its a directory I return the source for the folder image, if its a file I a parse the filename to get the extension and show that Icon. mx:DataGridColumn width=30 sortable=false mx:itemRenderer mx:Component mx:Image source={outerDocument.setIcon(data.Type,data.Name)} verticalAlign=middle horizontalAlign=center scaleContent=false/ /mx:Component /mx:itemRenderer /mx:DataGridColumn While this is working I keep getting the errors below.. Any help is appreciated. warning: unable to bind to property 'Type' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'Name' on class 'Object' (class is not an IEventDispatcher) Thank You Dan Vega [EMAIL PROTECTED] http://www.danvega.org
[flexcoders] Re: Calendar Help
Help with the actionscript please. I only got as far as this: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=init() mx:Script ![CDATA[ import mx.events.CalendarLayoutChangeEvent; import mx.controls.Alert; private function init():void { dc1.displayedMonth = 1; dc1.displayedYear = 2008; } public function displayDates():void { var dateRanges:Array = []; for (var i:int=0; ishows.show.length(); i++) { var cDate:Date = new Date(shows.show[i].showDate.toString()); var cDateObject:Object = {rangeStart:cDate, rangeEnd:cDate}; dateRanges.push(cDateObject); } dc1.selectedRanges = dateRanges; } private function clickDate(eventObj:CalendarLayoutChangeEvent):void { // Make sure selectedDate is not null. if (eventObj.currentTarget.selectedDate == null) { return } //Access the Date object from the event object. Alert.show(eventObj.currentTarget.shows.showDate.toString()); } ]] /mx:Script !-- Define the data for the DateChooser -- mx:XML id=shows format=e4x data show showID1/showID showDate02/28/2008/showDate showTime10:45am/11:15am/showTime /show show showID2/showID showDate02/23/2008/showDate showTime7:00pm/showTime /show /data /mx:XML mx:DateChooser id=dc1 showToday=false creationComplete=displayDates() change=clickDate(event)/ --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: How about doing that in a DateChooser.change event handler function? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of emobilecat Sent: Friday, July 25, 2008 11:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Calendar Help Hi all I'm trying to create a calendar using the dateChooser component. I am able to show which dates are selectable, but I can't figure out how to when I click on the date it will show the event information for that day from the xml file I provided. Help please! Here's a snippet of what I have so far: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=init() mx:Script ![CDATA[ private function init():void { dc1.displayedMonth = 1; dc1.displayedYear = 2008; } public function displayDates():void { var dateRanges:Array = []; for (var i:int=0; ishows.show.length(); i++) { var cDate:Date = new Date(shows.show[i].showDate.toString()); var cDateObject:Object = {rangeStart:cDate, rangeEnd:cDate}; dateRanges.push(cDateObject); } dc1.selectedRanges = dateRanges; } ]] /mx:Script mx:XML id=shows format=e4x data show showID1/showID showDate02/28/2008/showDate showTime10:45am/11:15am/showTime /show show showID2/showID showDate02/23/2008/showDate showTime7:00pm/showTime /show /data /mx:XML mx:DateChooser id=dc1 showToday=true creationComplete=displayDates()/ /mx:Application
[flexcoders] Re: Figuring out what was clicked in AdvancedDataGrid
I'm not quite sure I understand. My dataPrivider is an mx:HierarchicalData object, with an ArrayCollection as its source. The ArrayCollection is an array of arrays. Something like this: [ {name=group1, children=[ {name=item1}, {name=item2} ] }, {name=group2, children=[ {name=item3}, {name=item4} ] } ] If I click on item1 in the grid, I get an rowIndex of 1. What I want to find out is that the click refers to item1, and, if possible, that item1 is contained in group1. --- In flexcoders@yahoogroups.com, Carlos Rovira [EMAIL PROTECTED] wrote: I use this code with an ArrayCollection dataProvider. I'm using multiple cell selection as well, but you can customize as you need: var ac:ArrayCollection = dataProvider as ArrayCollection; for(var i:Number = 0; i selectedCells.length; i++) { var cell:Object = selectedCells[i]; var data:Object = ac.getItemAt(cell.rowIndex); var dataField:String = columns [cell.columnIndex].dataField; data[dataField] = ; ac.itemUpdated(data, dataField); } aside, selectedIndex and selectedColumnIndex should give you the indices you need to retrieve a itemRenderer or a datapovider's object 2008/7/25 whatabrain [EMAIL PROTECTED]: How can you tell which item in the dataProvider was clicked in an AdvancedDataGrid, when using HierarchicalData as the dataProvider? I tried using the typical DataGrid method, of saving off the item index in itemRollOver, and using it to determine the index of the clicked item. However, with AdvancedDataGrid, the row index isn't particularly relevant. Or is there some way to convert the row index to the actual clicked item in the dataProvider?
[flexcoders] Re: AdvancedDataGrid layout problem
I'm actually already hiding all the grid separators. Let me try to demonstrate what I mean visually... This is what I want: [^] Group1 [ ] C1 C2 C3 C4 C5 [ ] C1 C2 C3 C4 C5 [ ] C1 C2 C3 C4 C5 In the above picture, each item (C1,C2,etc) is in its own column, but the group name ignores those columns. Because of the way columns are aligned, this is what I'm actually seeing: [^]G [ ] C1 C2 C3 C4 C5 [ ] C1 C2 C3 C4 C5 [ ] C1 C2 C3 C4 C5 The group name is cut off, because it doesn't fit in the very narrow first column. If I put the name in a wider column, it's indented too far. So how do I make the group name span all five columns, giving it enough space to display? --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: I'm having trouble laying out my AdvancedDataGrid. I would like to have a tree with a depth of 1 (a root node only contains leaf nodes). The rootnode is just the expand/collapse icon, followed by a name. The leaf nodes have several columns, the first few of which are very narrow. Basically, I want the root nodes to ignore the column structure of the leaf nodes. Something like a colspan in HTML. Hide the vertical separator between the columns. If you need it for the leaf nodes, add it into the itemRenderers. HTH; Amy
Re: [flexcoders] problem with embeds in static variables
Fair enough. I just wanted to be able to switch out the values for the various icons at runtime based on user configuration. On Fri, Jul 25, 2008 at 1:07 PM, Alex Harui [EMAIL PROTECTED] wrote: Class initialization is just a bunch of code. The eye class may not be fully setup by the time customIcons is getting initialized. When it is an instance var, the eye class has probably been fully setup by instantiation time. Assigning default values to statics that are not compile-time constants is dangerous -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Pan Troglodytes *Sent:* Friday, July 25, 2008 10:05 AM *To:* flexcoders *Subject:* [flexcoders] problem with embeds in static variables I'm confused as to why the following gets a runtime error: package nes { import mx.collections.ArrayCollection; public class WATIcons { [Embed(source=/assets/customIcons/eye-16x16--CCFFF.png)] public static var eye:Class; public static var customIcons:ArrayCollection = new ArrayCollection([eye]); } } TypeError: Error #1009: Cannot access a property or method of a null object reference. at nes::WATIcons$/get eye()[C:\Documents and Settings\\My Documents\Flex Builder 3\WATControl\nes\WATIcons.as:70] at nes::WATIcons$cinit() Yet if I remove the static and create an instance of the class, I don't get any errors. I can then use the customIcons array element 0 just fine. I'd really rather have them as static, as they are used all over in the application. Is there some way around this, or is it unavoidable? If it's unavoidable, then just out of curiosity what is causing the problem for the compiler? -- Jason -- Jason
[flexcoders] Re: alert button order
Thanks for the tips. I am going to write a new alert component - this might end up being super awesome now that I think about it. Oh the possibilities. :D
[flexcoders] Re: Flex 3 Preloader broken when using deep linking ?
Sorry to bump this, but... am I the only one with this issue ? :) Even the Flex 3 style explorer have same issue : 1. clear the cache 2. load http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html You see the preloader 3. clear the cache 4. load (note the # at the end of the URL) http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html# There is no preloader... Am I crazy or we have some deep linking incompatibilities ? --- In flexcoders@yahoogroups.com, Adnan Doric [EMAIL PROTECTED] wrote: Hello, I don't know if this was already discussed so sorry in advance. After few days of hard debugging, I sadly noted that Flex 3 preloader is completely broken while using # in the URL. It doesn't show at all. Does anyone have any workarounds as preloading 2Mb without preloader is actually real pain ? Thank you.
[flexcoders] Wierd AdvancedDataGrid efficiency problem
My grid uses a HierarchicalData dataProvider, which points to a subclass of ArrayCollection. The dataProvider is declared Bindable. The data is an ArrayCollection of arrays. I create a single top-level node, and then create 5000 child nodes. If the top-level node is collapsed, it takes about 4 seconds to create the children, and 1 second to expand the node. If the top-level node is expanded, it takes minutes to add the nodes. If I use DataGrid instead of AdvancedDataGrid, it takes 4 seconds to add 5000 rows. Anyone know why this might be?
[flexcoders] Re: Zoom Tile Container
Bump. Any ideas? --- In flexcoders@yahoogroups.com, Nate Pearson [EMAIL PROTECTED] wrote: I want to make a custom component and I think I can extend the tile container to do it. Here's what I want to do: Have four boxes fill up the screen. If I click on one of the boxes that box zooms to fill the whole screen and the other three boxes shrink to nothing. Inside of that box I want another set of boxes, lets say 6. If I click on that box it zooms and does the same thing as above. Can anyone point me in the right direction? I'm pretty good at making custom components so if someone could just kinda nudge me in the right direction that would be great. Thanks! Nate
[flexcoders] Re: AdvancedDataGrid layout problem
--- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: I'm actually already hiding all the grid separators. Let me try to demonstrate what I mean visually... This is what I want: [^] Group1 [ ] C1 C2 C3 C4 C5 [ ] C1 C2 C3 C4 C5 [ ] C1 C2 C3 C4 C5 In the above picture, each item (C1,C2,etc) is in its own column, but the group name ignores those columns. Because of the way columns are aligned, this is what I'm actually seeing: [^]G [ ] C1 C2 C3 C4 C5 [ ] C1 C2 C3 C4 C5 [ ] C1 C2 C3 C4 C5 The group name is cut off, because it doesn't fit in the very narrow first column. If I put the name in a wider column, it's indented too far. So how do I make the group name span all five columns, giving it enough space to display? From the Help: A renderer can span multiple columns. In the following example, you create a renderer that spans two columns: mx:AdvancedDataGrid mx:columns mx:AdvancedDataGridColumn dataField=Region/ mx:AdvancedDataGridColumn dataField=Territory_Rep headerText=Territory Rep/ mx:AdvancedDataGridColumn id=actCol dataField=Actual/ mx:AdvancedDataGridColumn dataField=Estimate/ /mx:columns mx:rendererProviders mx:AdvancedDataGridRendererProvider column={actCol} depth=3 columnSpan=2 renderer=myComponents.SummaryRenderer/ /mx:rendererProviders /mx:AdvancedDataGrid HTH; Amy
[flexcoders] HttpService Fault Response Body Decoding
praises to user group - httpService is now working. Next issue: Trying to access / unwrap the error message the server sends back. The errors are the programmatic fault conditions (bad login for example) that the server appropriately response with an error condition. The current implementation sends back an XML document and I think it resides in the fault.message.body, but all I see is an Object. I tried casting to XML / XMLDoc and reading the bytes via writeUTFBytes into a byteArray. Any ideas? thanks in advance.
[flexcoders] Re: new Component() ?
--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: i'm able to add a new class on the fly No, you're not adding a new class on the fly. You're creating a new instance of a ClassFactory subclass on the fly. A class is something that is defined at compile time by a class { .. } definition. You cannot create new classes at runtime, only instances of them. It seems to me, though, that once you have that instance, it would be really cool if you could add stuff to it on the fly and then use that to stamp out new objects. After all, now you can do something like this: //create new INSTANCE of Canvas myCanvas:Canvas = new Canvas(); myButton:Button = new Button(); myButton.label = 'test'; myCanvas.addChild(myButton); If you could then take that Canvas and use it for an itemRenderer, how cool would that be? So if ClassFactory had some mechanism to call the methods that the object _in_ the factory has, we could not only use it for itemRenderers, but there would be a more satisfying answer for people who get frustrated trying to assign the same object to multiple parents. -Amy
RE: [flexcoders] LCDS data synchronisation problem
This error occurs for a variety of problems that can occur when initializing the destination. You may not have defined that destination in the server's configuration or there can be a problem with that destination's configuration. If you add the tag: mx:TraceTarget/ it will usually provide additional information in the flashlog.txt just before the message is shown. It will also log the destinations the client is configured with in the flashlog. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fkolberg Sent: Friday, July 25, 2008 9:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS data synchronisation problem Hi, I have installed the insync app from http://coenraets.org/blog/2008/05/insync-automatic-offline-data-synchronization-in-air-using-lcds-26 and consistently get cannot fill error message. I then got the source code and compiled the files under flex builder 3. I ran the debugger and used trace() to output the messages. the error occurs when the dataService invokes fill(). I get the following error message: Error: Unable to initialize destinations on server: [insync] at anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:2347] at anonymous()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\DataStore.as:2363] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.data::SQLDBCache/dispatchStatusEvent()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\airfds\src\mx\data\SQLDBCache.as:540] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.rpc::AsyncDispatcher/timerEventHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncDispatcher.as:50] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() I have no idea what it means and does not really understand where the info related to anonymous and the Folder were taken from. Can anybody help please? thanks florence inline: image001.jpginline: image002.jpg
RE: [flexcoders] LCDS - Data Management Service Problem
This error can occur when you access an unpaged item when paging is enabled of course, but given that you are running that code in the result handler it seems like this is not the problem (unless the result event is being delivered for another call on that data service). It might also happen if the identities are not getting defined properly in ActionScript. If you add mx:TraceTarget/ and send along the resulting flashlog.txt, we can see what is happening from that. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bart Ronsyn Sent: Friday, July 25, 2008 8:12 AM To: flexcoders@yahoogroups.com Cc: Bart Ronsyn Subject: [flexcoders] LCDS - Data Management Service Problem Hello, I have a Data Management Service that uses a managed ArrayCollection of users. When a user is added by one client, the other clients are notified by the Data Management Service, and I want to loop through the ArrayCollection, using the code below, but I always get the following error : Error: Item requested is not available. A request for the item is now pending. at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::requestItemAt()[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\DataList.as:949] at mx.data::DataList/getItemAt()[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\data\DataList.as:261] at mx.collections::ListCollectionView/getItemAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:431] ... This error occurs when the line users.getItemAt(j) as User is executed. It seems that although the length of the ArrayCollection users equals 1, I can not get the Item at position 0. Maybe the update of the ArrayCollection is not yet finished ? How can I loop through the ArrayCollection upon changes ? ... [Bindable] private var users:ArrayCollection; private var ds:DataService; private function init() { users = new ArrayCollection(); //users.addEventListener(CollectionEvent.COLLECTION_CHANGE, refreshUsers); ds = new DataService(user); ... ds.autoSyncEnabled = true; ds.fill(users); ds.addEventListener(ResultEvent.RESULT, refreshUsers); } private function refreshUsers(evt:ResultEvent):void { trace (refreshUsers + users.length); for(var j:uint=0; j users.length; j++) { var user:User = users.getItemAt(j) as User; showUserProfile(user); } } ... Kind Regards Bart Ronsyn inline: image001.jpginline: image002.jpg
[flexcoders] Re: Centering Bar Chart labels vertically
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: Hi, all; Is there any way to center a bar chart's labels vertically? The labelAlign style only changes the horizontal alignment. Thanks; Amy Bump-bump
RE: [flexcoders] Re: Zoom Tile Container
What exactly do you mean by zoom? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson Sent: Friday, July 25, 2008 4:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Zoom Tile Container Bump. Any ideas? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Nate Pearson [EMAIL PROTECTED] wrote: I want to make a custom component and I think I can extend the tile container to do it. Here's what I want to do: Have four boxes fill up the screen. If I click on one of the boxes that box zooms to fill the whole screen and the other three boxes shrink to nothing. Inside of that box I want another set of boxes, lets say 6. If I click on that box it zooms and does the same thing as above. Can anyone point me in the right direction? I'm pretty good at making custom components so if someone could just kinda nudge me in the right direction that would be great. Thanks! Nate
[flexcoders] mxml components
Ok, I'm trying to get a firm grasp on AS3 components/classes. I'm trying to figure out how to structure code so I can optimize code re-use. What is the life of a component/class in a flex application? In other words... If I have a main.mxml that calls another class like logins.mxml, is that class in existence only while it's called? Once the event hits to call it back is the class still alive? It looks like it kills it from memory but I'm not 100% sure. Take the following examples... MainClass.mxml | |subclass1.mxml | |subclass2.mxml | |subclass2a.mxml If MailClass.mxml calls subclass1.mxml, completes and then calls subclass2.mxml which calls subclass2a.mxml, what are the lives of these classes? Also, do I need to be worrying about cleanup or is that handled automatically? I hope I'm explaining this well
[flexcoders] timed events
Is there a way to launch an event based on time? What I'd like to do is flash a button every 10 seconds to draw attention to it. Is this possible in any other way other than using a flash movie? TIA
RE: [flexcoders] HttpService Fault Response Body Decoding
Is the result handler being called? (this would be good news) Or is the fault handler being called (this would be bad news for you)? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ron_mori Sent: Friday, July 25, 2008 3:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HttpService Fault Response Body Decoding praises to user group - httpService is now working. Next issue: Trying to access / unwrap the error message the server sends back. The errors are the programmatic fault conditions (bad login for example) that the server appropriately response with an error condition. The current implementation sends back an XML document and I think it resides in the fault.message.body, but all I see is an Object. I tried casting to XML / XMLDoc and reading the bytes via writeUTFBytes into a byteArray. Any ideas? thanks in advance.
RE: [flexcoders] timed events
See the Timer class. There is also setTimeout, but Timer is preferred. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sent: Friday, July 25, 2008 6:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] timed events Is there a way to launch an event based on time? What I'd like to do is flash a button every 10 seconds to draw attention to it. Is this possible in any other way other than using a flash movie? TIA
RE: [flexcoders] timed events
You can use an instance of the Timer class to dispatch a timer event periodically. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sent: Friday, July 25, 2008 3:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] timed events Is there a way to launch an event based on time? What I'd like to do is flash a button every 10 seconds to draw attention to it. Is this possible in any other way other than using a flash movie? TIA
RE: [flexcoders] mxml components
Some terminology: Classes aren't calling classes. Classes don't call anything... methods inside classes call other methods. In your MXML, an instance of MainClass is creating instances of subclass1 and subclass2 and -- because they are Sprites, which can have parent/child relationships -- making them its children. Unless you are messing around with the creationPolicy property, or one of your components is a navigator (like a ViewStack, Accordion, or TabNavigator that creates children as needed), all the children and granchildren get created when the app is created. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sent: Friday, July 25, 2008 2:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] mxml components Ok, I'm trying to get a firm grasp on AS3 components/classes. I'm trying to figure out how to structure code so I can optimize code re-use. What is the life of a component/class in a flex application? In other words... If I have a main.mxml that calls another class like logins.mxml, is that class in existence only while it's called? Once the event hits to call it back is the class still alive? It looks like it kills it from memory but I'm not 100% sure. Take the following examples... MainClass.mxml | |subclass1.mxml | |subclass2.mxml | |subclass2a.mxml If MailClass.mxml calls subclass1.mxml, completes and then calls subclass2.mxml which calls subclass2a.mxml, what are the lives of these classes? Also, do I need to be worrying about cleanup or is that handled automatically? I hope I'm explaining this well
RE: [flexcoders] mxml components
First, there are classes and instances. When it matters, use these terms correctly. Second, call does not apply to a class, or even really an instance. An instantiated class stays instantiated untill all references to it are removed, and Garbage Collection has run and removed it. If this is not the answer, perhaps you can rephrase your question, without using the word call? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott Sent: Friday, July 25, 2008 5:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] mxml components Ok, I'm trying to get a firm grasp on AS3 components/classes. I'm trying to figure out how to structure code so I can optimize code re-use. What is the life of a component/class in a flex application? In other words... If I have a main.mxml that calls another class like logins.mxml, is that class in existence only while it's called? Once the event hits to call it back is the class still alive? It looks like it kills it from memory but I'm not 100% sure. Take the following examples... MainClass.mxml | |subclass1.mxml | |subclass2.mxml | |subclass2a.mxml If MailClass.mxml calls subclass1.mxml, completes and then calls subclass2.mxml which calls subclass2a.mxml, what are the lives of these classes? Also, do I need to be worrying about cleanup or is that handled automatically? I hope I'm explaining this well
Re: [flexcoders] mxml components
it depends on references, not whether you use or not. so for example, if the code is like this: MainClass.mxml foo:MainClass foo:SubClass id=bl/ /foo:MainClass SubClass.mxml foo:SubClass foo:SubClass2a id='bla'/ /foo:SubClass they will live forever. But if you load them dynamically, it depends on where you keep the reference. If the reference is lost, it 'may' get removed by garbage collector. (can never be sure because by the nature you cannot control garbage collector). So it depends what you mean by call (calling a function or creating) and also the creation policy of the container class. One more thing to pay attention on memory manager is be careful with the event listener. For example When you write: A.addEventListener(fooEvent,B.onFooEvent); a reference from A to B is created, so there is nothing to keep A in the memory. If you pay attention on creation policy and addEventListener, you'll be fine. yigit Scott wrote: Ok, I’m trying to get a firm grasp on AS3 components/classes. I’m trying to figure out how to structure code so I can optimize code re-use. What is the life of a component/class in a flex application? In other words… If I have a main.mxml that calls another class like logins.mxml, is that class in existence only while it’s called? Once the event hits to call it back is the class still alive? It looks like it kills it from memory but I’m not 100% sure. Take the following examples… MainClass.mxml | |subclass1.mxml | |subclass2.mxml | |subclass2a.mxml If MailClass.mxml calls subclass1.mxml, completes and then calls subclass2.mxml which calls subclass2a.mxml, what are the lives of these classes? Also, do I need to be worrying about cleanup or is that handled automatically? I hope I’m explaining this well…. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Centering Bar Chart labels vertically
Are you talking about the axis renderer labels for a categoryField? If so, check-out labelGap? -TH --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote: Hi, all; Is there any way to center a bar chart's labels vertically? The labelAlign style only changes the horizontal alignment. Thanks; Amy Bump-bump
RE: [flexcoders] Re: Calendar Help
Ok, you have the selected date in the click handler. Now, use that value to select the associated node in your xml shows, using an e4x expression. Assign that node to a [Bindable] instance variable. Bind you UI components to the xml in that variable. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sal H. Sent: Friday, July 25, 2008 2:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Calendar Help Help with the actionscript please. I only got as far as this: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical creationComplete=init() mx:Script ![CDATA[ import mx.events.CalendarLayoutChangeEvent; import mx.controls.Alert; private function init():void { dc1.displayedMonth = 1; dc1.displayedYear = 2008; } public function displayDates():void { var dateRanges:Array = []; for (var i:int=0; ishows.show.length(); i++) { var cDate:Date = new Date(shows.show[i].showDate.toString()); var cDateObject:Object = {rangeStart:cDate, rangeEnd:cDate}; dateRanges.push(cDateObject); } dc1.selectedRanges = dateRanges; } private function clickDate(eventObj:CalendarLayoutChangeEvent):void { // Make sure selectedDate is not null. if (eventObj.currentTarget.selectedDate == null) { return } //Access the Date object from the event object. Alert.show(eventObj.currentTarget.shows.showDate.toString()); } ]] /mx:Script !-- Define the data for the DateChooser -- mx:XML id=shows format=e4x data show showID1/showID showDate02/28/2008/showDate showTime10:45am/11:15am/showTime /show show showID2/showID showDate02/23/2008/showDate showTime7:00pm/showTime /show /data /mx:XML mx:DateChooser id=dc1 showToday=false creationComplete=displayDates() change=clickDate(event)/ --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: How about doing that in a DateChooser.change event handler function? Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of emobilecat Sent: Friday, July 25, 2008 11:41 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Calendar Help Hi all I'm trying to create a calendar using the dateChooser component. I am able to show which dates are selectable, but I can't figure out how to when I click on the date it will show the event information for that day from the xml file I provided. Help please! Here's a snippet of what I have so far: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=init() mx:Script ![CDATA[ private function init():void { dc1.displayedMonth = 1; dc1.displayedYear = 2008; } public function displayDates():void { var dateRanges:Array = []; for (var i:int=0; ishows.show.length(); i++) { var cDate:Date = new Date(shows.show[i].showDate.toString()); var cDateObject:Object = {rangeStart:cDate, rangeEnd:cDate}; dateRanges.push(cDateObject); } dc1.selectedRanges = dateRanges; } ]] /mx:Script mx:XML id=shows format=e4x data show showID1/showID showDate02/28/2008/showDate showTime10:45am/11:15am/showTime /show show showID2/showID showDate02/23/2008/showDate showTime7:00pm/showTime /show /data /mx:XML mx:DateChooser id=dc1 showToday=true creationComplete=displayDates()/ /mx:Application
[flexcoders] simple SWF dynamic loading and control
Hi all, I'm trying to do something quite simple, but i couldn't for many days...guess should have asked for help before :( I try to load some images from inside a SWF in order to use them as buttons. I managed to load them, but i cannot control them, so they will just play, cause i can't even tell them to stop. I guess i have no idea how to do this...so my code might be completely wrong. I wish to do this through MXML tag as much as possible...even i might use an AS3 function on complete. This is my code, i just try to make that loaded SWF to stop :( Another question would be, how could I load that SWF movieclip dinamically, so i could change SWF contents without change the flex files? (design will change quite often while website online) I guess embedding it will just put content inside flex and compile it, but thats not what i want. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Canvas x=341 y=159 width=200 height=232 mx:Image id=bt_pirate source=@Embed(source='../flash/nk_web.swf', symbol='abt_pirate') x=84 y=35 scaleContent=true width=100% height=100% horizontalAlign=center verticalAlign=bottom complete={init_square(bt_pirate.content as MovieClip)} / mx:Script ![CDATA[ //import caurina.transitions.Tweener; import flash.display.MovieClip; public function init_square(sqimg:MovieClip):void { sqimg.stop(); sqimg.scaleX=300; bt_pirate.content.stop(); } ]] /mx:Script /mx:Canvas /mx:Application could someone help me??? __ Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
[flexcoders] Re: PropertyChangeEvent problems in ArrayCollection
That's the problem I'm having...the property is dynamic and can be filled with whatever data they pass to the arrayCollection, such as filling it with a query they receive from their back end, or just passing in generic objects (which is what I'm using to test). They could then, perhaps, bind this arraycollection to an editable datagrid, and the user will edit one item in one of the rows, which will update the arrayCollection, but this update does not pass what the oldValue was, so I'm unable to get an accurate history. And this is where I find myself currently. If I had access to the datagrid, then I'd be able to grab the data before it was passed back to arraycollection, but I'm trying to make the arraycollection as loosely coupled as possible, as really don't want to put it directly into a datagrid. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: What is the property that is changing? I think you may need to have your own code generate the proper change event. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lampei Sent: Friday, July 25, 2008 7:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] PropertyChangeEvent problems in ArrayCollection I am trying to keep track of changes to an ArrayCollection. I have so far got all of the CollectionEventKind working except for UPDATE. It actually does add that a change was made for UPDATE, however, it doesn't actually save what the change was that was made. e.g. CollectionChange fires, and I store it in an ArrayCollection. However, when I debug what was actually stored, I get a CollectionEvent, with an items array of 1 PropertyChangeEvent, which has a source object with the new values and shows the correct property that was changed, however, both the newValue and oldValue properties of the PropertyChangeEvent are both null. I'm trying to figure out how to get at the data before it is changed. I capture the CollectionChange event, but at that point, the data has already changed (as is evidenced by the PropertyChangeEvent showing the new values and none of the old values). Does anyone know what I can override to capture the changes before they are actually made to the ArrayCollection itself. This way I could even use my own createUpdateEvent to store the values. Thanks. Gareth
[flexcoders] Re: First AIR app using Flex 3 SDK
It has something to do with the ../'s. I came home, same set up, changed the PATH variable, same code and it worked.. I On Fri, Jul 25, 2008 at 12:58 PM, Greg Morphis [EMAIL PROTECTED] wrote: I'm running through the Creating your first AIR application with the Flex SDK And I get all the way to the end, everything is working okay until I get here : Create the AIR installation file I create the sampleCert.pfx and I go to compile the .air file and this is what I get... C:\Flex3-SDK\binadt -package -storetype pkcs12 -keystore ../HelloWorld/sampleCert.pfx ../HelloWorld /HelloWorld.air ../HelloWorld/HelloWorld-app.xml ../HelloWorld/HelloWorld.swf password: yep absolute path: C:\Flex3-SDK\HelloWorld\HelloWorld.swf usage: adt -package SIGNING_OPTIONS air-file app-desc FILE_ARGS adt -prepare airi-file app-desc FILE_ARGS adt -sign SIGNING_OPTIONS airi-file air-file adt -checkstore SIGNING_OPTIONS adt -certificate -cn name ( -ou org-unit )? ( -o org-name )? ( -c country )? key-type p fx-file password adt -help (I created the PATH variable but I believe I need to reboot in order for that to take which is why you see the ../ stuff). Anyways, there's no error there, but there's no HelloWorld.air file in the HelloWorld directory.. I've followed the instructions, I can run the debugger and see the window, the files are there (the .xml, .swf), just no .air.. What's up with this? Thanks
RE: [flexcoders] Re: PropertyChangeEvent problems in ArrayCollection
Different data objects may set the oldValue/newValue correctly. I'm not sure what kind of generic object you are using for testing, but it may not be generating the info when some other kind of object (maybe a [Bindable] or [Managed] object will. If the item is a plain old Object, the DG does not generate oldValue/newValue info. You can subclass a DG so it will, but if you know in production mode you'll be working with server objects, they are more likely to provide more information From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lampei Sent: Friday, July 25, 2008 2:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: PropertyChangeEvent problems in ArrayCollection That's the problem I'm having...the property is dynamic and can be filled with whatever data they pass to the arrayCollection, such as filling it with a query they receive from their back end, or just passing in generic objects (which is what I'm using to test). They could then, perhaps, bind this arraycollection to an editable datagrid, and the user will edit one item in one of the rows, which will update the arrayCollection, but this update does not pass what the oldValue was, so I'm unable to get an accurate history. And this is where I find myself currently. If I had access to the datagrid, then I'd be able to grab the data before it was passed back to arraycollection, but I'm trying to make the arraycollection as loosely coupled as possible, as really don't want to put it directly into a datagrid. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: What is the property that is changing? I think you may need to have your own code generate the proper change event. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of lampei Sent: Friday, July 25, 2008 7:02 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] PropertyChangeEvent problems in ArrayCollection I am trying to keep track of changes to an ArrayCollection. I have so far got all of the CollectionEventKind working except for UPDATE. It actually does add that a change was made for UPDATE, however, it doesn't actually save what the change was that was made. e.g. CollectionChange fires, and I store it in an ArrayCollection. However, when I debug what was actually stored, I get a CollectionEvent, with an items array of 1 PropertyChangeEvent, which has a source object with the new values and shows the correct property that was changed, however, both the newValue and oldValue properties of the PropertyChangeEvent are both null. I'm trying to figure out how to get at the data before it is changed. I capture the CollectionChange event, but at that point, the data has already changed (as is evidenced by the PropertyChangeEvent showing the new values and none of the old values). Does anyone know what I can override to capture the changes before they are actually made to the ArrayCollection itself. This way I could even use my own createUpdateEvent to store the values. Thanks. Gareth
[flexcoders] Re: Zoom Tile Container
So if I have 4 boxes I want to set one to width=100% and height=100% and the others to width=0, height=0. I'd put an effect on it so that it looked like one of them would grow and the others would shrink to nothing. This is pretty easy to do in code, but I want to make a component that can have a variable amount of boxes. Not sure how to do that. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: What exactly do you mean by zoom? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nate Pearson Sent: Friday, July 25, 2008 4:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Zoom Tile Container Bump. Any ideas? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Nate Pearson napearson99@ wrote: I want to make a custom component and I think I can extend the tile container to do it. Here's what I want to do: Have four boxes fill up the screen. If I click on one of the boxes that box zooms to fill the whole screen and the other three boxes shrink to nothing. Inside of that box I want another set of boxes, lets say 6. If I click on that box it zooms and does the same thing as above. Can anyone point me in the right direction? I'm pretty good at making custom components so if someone could just kinda nudge me in the right direction that would be great. Thanks! Nate
RE: [flexcoders] simple SWF dynamic loading and control
Check the forum archives. It depends on whether your SWF is an AS3 SWF or not. The solution is different but possible either way. If you set the source to another URL it will load it. If you embed several SWFs you can simply refer to them because to embed several you'll probably do [Embed('foo.swf)] Var foo:Class; And can just refer to foo. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Pariente Sent: Friday, July 25, 2008 4:20 PM To: flexcoders Subject: [flexcoders] simple SWF dynamic loading and control Hi all, I'm trying to do something quite simple, but i couldn't for many days...guess should have asked for help before :( I try to load some images from inside a SWF in order to use them as buttons. I managed to load them, but i cannot control them, so they will just play, cause i can't even tell them to stop. I guess i have no idea how to do this...so my code might be completely wrong. I wish to do this through MXML tag as much as possible...even i might use an AS3 function on complete. This is my code, i just try to make that loaded SWF to stop :( Another question would be, how could I load that SWF movieclip dinamically, so i could change SWF contents without change the flex files? (design will change quite often while website online) I guess embedding it will just put content inside flex and compile it, but thats not what i want. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Canvas x=341 y=159 width=200 height=232 mx:Image id=bt_pirate source=@Embed(source='../flash/nk_web.swf', symbol='abt_pirate') x=84 y=35 scaleContent=true width=100% height=100% horizontalAlign=center verticalAlign=bottom complete={init_square(bt_pirate.content as MovieClip)} / mx:Script ![CDATA[ //import caurina.transitions.Tweener; import flash.display.MovieClip; public function init_square(sqimg:MovieClip):void { sqimg.stop(); sqimg.scaleX=300; bt_pirate.content.stop(); } ]] /mx:Script /mx:Canvas /mx:Application could someone help me??? Enviado desde Correo Yahoo! http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http:/us.rd.yahoo.com/evt=52431/*http:/es.docs.yahoo.com/mail/overview/index.html La bandeja de entrada más inteligente.
RE: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ?
I saw the initializing progress bar. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adnan Doric Sent: Friday, July 25, 2008 12:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 3 Preloader broken when using deep linking ? Sorry to bump this, but... am I the only one with this issue ? :) Even the Flex 3 style explorer have same issue : 1. clear the cache 2. load http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo rer.html http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl orer.html You see the preloader 3. clear the cache 4. load (note the # at the end of the URL) http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplo rer.html# http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExpl orer.html There is no preloader... Am I crazy or we have some deep linking incompatibilities ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Adnan Doric [EMAIL PROTECTED] wrote: Hello, I don't know if this was already discussed so sorry in advance. After few days of hard debugging, I sadly noted that Flex 3 preloader is completely broken while using # in the URL. It doesn't show at all. Does anyone have any workarounds as preloading 2Mb without preloader is actually real pain ? Thank you.
Re: [flexcoders] Re: Alternating colors for AdvancedDataGrid
Hello, I found a solution extending ADG. I'll post here if anyone need it too. Just override drawRowBackgrounds and use alternatingItemColors properties. CODE: override protected function drawRowBackgrounds():void { var rowBGs:Sprite = Sprite(listContent.getChildByName(rowBGs)); if (!rowBGs) { rowBGs = new FlexSprite(); rowBGs.mouseEnabled = false; rowBGs.name = rowBGs; listContent.addChildAt(rowBGs, 0); } var color:Object; var depthColors:Boolean = false; var colors:Array = getStyle(alternatingItemColors); color = getStyle(backgroundColor); if (!colors || colors.length == 0) return; StyleManager.getColorNames(colors); var curRow:int = 0; var i:int = 0; var actualRow:int = verticalScrollPosition; var n:int = listItems.length; var alternateRoot:int = verticalScrollPosition; while (curRow n) { if (listItems[curRow][0]) { var d:int = getDepth(listItems[curRow][0].data); if(d == 1){ alternateRoot++; } drawRowBackground(rowBGs, i++, rowInfo[curRow].y, rowInfo[curRow].height, colors[alternateRoot % colors.length], actualRow); } else { drawRowBackground(rowBGs, i++, rowInfo[curRow].y, rowInfo[curRow].height, uint(color), curRow); } curRow++; actualRow++; } while (rowBGs.numChildren i) { rowBGs.removeChildAt(rowBGs.numChildren - 1); } } -- Jhonny Everson
[flexcoders] Re: Centering Bar Chart labels vertically
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Are you talking about the axis renderer labels for a categoryField? If so, check-out labelGap? No, I am talking about this: |--| |..label...| |..| |..| |--| (the periods are just to keep yahoo from collapsing my lovely ascii bar graphic). What I want is |--| |..| |...label..| |..| |--| LabelGap does this: ...|--| ...|..| label..|..| ...|..| ...|--| gap ^^^ Thanks :-) I'm really trying to avoid rewriting anything to make this work. It feels like the people who did the chart components have thought of virtually anything you might want to do to make them visually like you want, so I feel like I'm missing something. -Amy
[flexcoders] Pick right color for the chart
Hello all, I have a column chart in my flex application. Initially I left it with the default colors but did not like it so I put my own color; man it was worse Where can I find some good color combination that I can use for my chart? Is there any good examples on picking right colors? Regards
[flexcoders] Re: Centering Bar Chart labels vertically
Ok, so we're talking about a vertical axis. . * For a vertical axis, by default the labels are vertically aligned to the tick marks (center).For these, you can adjust the label position (up/down) slightly with the labelAlign property; on the axis tag. This still might not get you what you want though. Hard to tell without seeing an image. * For a horizontal axis, use the labelGap property on the axis tag to move the label down; from the axis line. * And, of course, you can always create your own axisRenderer. This can get a little dicey though. I'd try labelAlign before moving on to creating a custom axisRenderer. I agree, the chart framework is a substantial step in a positive direction. I think that Ely put it nicely here: http://www.quietlyscheming.com/blog/charts/easy-custom-charts/ http://www.quietlyscheming.com/blog/charts/easy-custom-charts/ -TH --- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Are you talking about the axis renderer labels for a categoryField? If so, check-out labelGap? No, I am talking about this: |--| |..label...| |..| |..| |--| (the periods are just to keep yahoo from collapsing my lovely ascii bar graphic). What I want is |--| |..| |...label..| |..| |--| LabelGap does this: ...|--| ...|..| label..|..| ...|..| ...|--| gap ^^^ Thanks :-) I'm really trying to avoid rewriting anything to make this work. It feels like the people who did the chart components have thought of virtually anything you might want to do to make them visually like you want, so I feel like I'm missing something. -Amy
[flexcoders] Re: Pick right color for the chart
Hi, Here's a good tool for selecting/creating color schemes: http://kuler.adobe.com/ http://kuler.adobe.com/ And, this is a good place for themes: http://www.scalenine.com/ http://www.scalenine.com/ -TH --- In flexcoders@yahoogroups.com, hworke [EMAIL PROTECTED] wrote: Hello all, I have a column chart in my flex application. Initially I left it with the default colors but did not like it so I put my own color; man it was worse Where can I find some good color combination that I can use for my chart? Is there any good examples on picking right colors? Regards