[flexcoders] Transitioning a popup?
I have the following code: mx:states mx:State name=openRight mx:SetProperty name=width value=670/ mx:AddChild relativeTo={controlbar1} etc. And I am trying to get it to transition to and from this state using... mx:transitions mx:Transition id=myTransition fromState=* toState=* mx:Resize duration=400 target={this}/ I think I have the targeting wrong, any ideas as to what it should be or where I am going wrong? - Stephen
[flexcoders] Re: Compiling Problems...
After trying different things to no avail, I started editing each file in my project and voila, everything starts working again! Clearly an issue with the FlexBuilder environent. Anybody ever experienced this issue? --- In flexcoders@yahoogroups.com, jamesfin james.alan.finni...@... wrote: I've got a really strange issue tonight that I've never seen before... I've been working on a project for months and everything has been compiling fine. I can debug/etc. Something changed and the compiler won't flag any problems in some mxml/as files. I can enter asdf into the file and nothing shows up in the Problems tab. If I perform a Release export, it gets flagged but doesn't really tell me much other than there is a problem. I've tried starting Eclipse with the -clean but I'm wondering if there are other places(cache) that needs to be wiped clean somehow. Perhaps something more specific to FlexBuilder Eclipse Plug-in? Anybody else seen this before? Thanks in advance!
Re: [flexcoders] Re: Compiling Problems...
Yes, I experience it sometimes with FlexBuilder 3 on Linux. I just clean my project and everything works fine again. 2009/12/13 jamesfin james.alan.finni...@gmail.com After trying different things to no avail, I started editing each file in my project and voila, everything starts working again! Clearly an issue with the FlexBuilder environent. Anybody ever experienced this issue? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, jamesfin james.alan.finni...@... wrote: I've got a really strange issue tonight that I've never seen before... I've been working on a project for months and everything has been compiling fine. I can debug/etc. Something changed and the compiler won't flag any problems in some mxml/as files. I can enter asdf into the file and nothing shows up in the Problems tab. If I perform a Release export, it gets flagged but doesn't really tell me much other than there is a problem. I've tried starting Eclipse with the -clean but I'm wondering if there are other places(cache) that needs to be wiped clean somehow. Perhaps something more specific to FlexBuilder Eclipse Plug-in? Anybody else seen this before? Thanks in advance!
[flexcoders] Adobe Flex 4 Beta In A Week Videos RSS Link
Could someone post me the RSS link for the Adobe Flex 4 Beta In A Week training video? The link for the page is here: http://www.adobe.com/devnet/flex/videotraining/flex4beta/ But I want to add it to my Adobe Media Player so that I could stream the video and download them to my PC for learning. Thanks. Angelo
RE: [SPAM] Re: [flexcoders] Re: Compiling Problems...
I have seen some odd effects when some file in the bin-debug folder gets it permissions set wrong, and Clean does not delete the old stuff. Usually, there is an error in the log, which is kind of hidden in the Help, Product Details, Configuration Details, View Error Log. I sometimes delete bin-debug manually. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of primo411 Sent: Sunday, December 13, 2009 12:03 PM To: flexcoders@yahoogroups.com Subject: [SPAM] Re: [flexcoders] Re: Compiling Problems... Yes, I experience it sometimes with FlexBuilder 3 on Linux. I just clean my project and everything works fine again. 2009/12/13 jamesfin james.alan.finnigan mailto:james.alan.finni...@gmail.com @gmail.com After trying different things to no avail, I started editing each file in my project and voila, everything starts working again! Clearly an issue with the FlexBuilder environent. Anybody ever experienced this issue? --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, jamesfin james.alan.finni...@... wrote: I've got a really strange issue tonight that I've never seen before... I've been working on a project for months and everything has been compiling fine. I can debug/etc. Something changed and the compiler won't flag any problems in some mxml/as files. I can enter asdf into the file and nothing shows up in the Problems tab. If I perform a Release export, it gets flagged but doesn't really tell me much other than there is a problem. I've tried starting Eclipse with the -clean but I'm wondering if there are other places(cache) that needs to be wiped clean somehow. Perhaps something more specific to FlexBuilder Eclipse Plug-in? Anybody else seen this before? Thanks in advance!
[flexcoders] itemRenderers, DataGrids Scroll Bars Madness!!!
Why does this work as an itemRenderer ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100 height=62 mx:Image source={'media/0' + data.medid + '+' + data.medbody} width=100% height=100%/ /mx:HBox And why does this not work ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100 height=62 creationComplete=init(); mx:Script ![CDATA[ [Bindable] private var myPict:String; private function init():void { myPict='media/0' + data.medid + '+' + data.medbody; } ]] /mx:Script mx:Image source={myPict} width=100% height=100%/ /mx:HBox Its driving me loopy, both displays pictures in the dataGrid on start up, but the second one goes hay wire and displays the wrong pictures when you scroll. Its just madness!!! - Stephen
RE: [SPAM] [flexcoders] itemRenderers, DataGrids Scroll Bars Madness!!!
Because creationComplete fires only once, when the component is created, but item renderers are recycled (google or search for that for more detail). You cannot do any work that depends on the current row (dataProvider item) in a creationComplete handler. You must override the set data() function and do the work there. Actually, you should store any necessary values in set data(), call invalidateProperties(), then do the work in a commitProperties override. Item renderers are a bit tricky. I advise you do not try to start from scratch, but rather find an example (there are many) and modify it to meet your needs. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of criptopus Sent: Sunday, December 13, 2009 1:46 PM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] itemRenderers, DataGrids Scroll Bars Madness!!! Why does this work as an itemRenderer ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml width=100 height=62 mx:Image source={'media/0' + data.medid + '+' + data.medbody} width=100% height=100%/ /mx:HBox And why does this not work ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe. http://www.adobe.com/2006/mxml com/2006/mxml width=100 height=62 creationComplete=init(); mx:Script ![CDATA[ [Bindable] private var myPict:String; private function init():void { myPict='media/0' + data.medid + '+' + data.medbody; } ]] /mx:Script mx:Image source={myPict} width=100% height=100%/ /mx:HBox Its driving me loopy, both displays pictures in the dataGrid on start up, but the second one goes hay wire and displays the wrong pictures when you scroll. Its just madness!!! - Stephen
[flexcoders] Context dependent non modal pop p. How?
Hi All! Sometimes I have to create popup in some view and it belongs to this view. So I want it to be automatically hidden when view is not visible and shown again when view is visible again. In my particular case this view is the child of tab navigator that in its turn is the part of the view that is child of another tab navigator. How to handle this properly? If I have simple one level nesting visual hierarchy, I would probably add listeners to show and hide event and will switch the pop up visibility. Things are different when I have the situation I have described above, so, for instance, if the user change the selected tab in the topmost tab navigator my nested view knows nothing about that and the popup remains visible. Currently I handle all those cases in parent views controllers, though maybe better apprach exists? Thank you in advance! Sergey.
[flexcoders] compareFunction problem in ADG
Hi, I have an Advanced DataGrid which receives an array collection of sales information as a data provider. The data is in a flat grouping, and the only GroupingField is Office, which contains either Atlanta or Dallas as a value. Sales data in each entry in the array collection is a monthly total. With no compareFunction at all, the ADG correctly groups the records into two groups, with Atlanta first. But as expected, the ordering of the records within the group doesn't reflect the contents of the original data. However, when I add a compareFunction which compares a date value within each object in the array, a strange thing happens. Instead of two groupings, I have 6. And the ordering of the offices has been reversed. So I get DallasAtlantaDallasAtlantaDallasAtlanta. Within each grouping, the records are correctly sorted by descending date values. And the groups themselves, when expanded, show that all the records in Dallas and Atlanta groups are sorted correctly - but they're broken into all those extra groups. I have verified that the records coming into the application all have the correct values for the Office and SortDate fields, so the problem isn't there. Here's the ADG: mx:AdvancedDataGrid width=1125 height=265 id=monthlyTotalGrid defaultLeafIcon={null} wordWrap=true variableRowHeight=true initialize=rc.refresh(); selectionColor=#fcffcd sortableColumns=false sortExpertMode=true mx:dataProvider mx:GroupingCollection id=rc source={monthlyTotals} mx:grouping mx:Grouping mx:GroupingField name=Office groupingFunction=createGroupLabel compareFunction=compareDate / /mx:Grouping /mx:grouping /mx:GroupingCollection /mx:dataProvider mx:columns mx:AdvancedDataGridColumn dataField=Month headerWordWrap=true width=150 / mx:AdvancedDataGridColumn dataField=Total Cases headerWordWrap=true textAlign=center / ... several other columns go here /mx:columns /mx:AdvancedDataGrid ... and here's my compareFunction: private function compareDate(a:Object,b:Object):int{ var aTime:Number = a.SortDate.getTime(); var bTime:Number = b.SortDate.getTime(); if(aTime bTime){ return 1; } if(aTimebTime){ return -1; } else return 0; } I'm very inexperienced with the ADG, so it's probably something simple I'm missing. Any help would be appreciated. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
Re: [flexcoders] Re: 3.5 is out!!!
I haven't been following the SDK's progress closely so I'm not sure what 3.5 offers over what I'm using now (3.2). Can anyone point to a release document or overview that explains the features and benefits of the 3.5 SDK? The SDK download itself doesn't seem to have any 3.5 release notes. Thanks in advance for any links.
[flexcoders] Line chart selection
I asked this question before but I thought I'd rephrase because I had zero responses. I want to do what's in this video http://www.youtube.com/watch?v=gWa89GWG_K8feature=channel I want to do what he does at 5:30, which is click and drag and select an area on a graph. I'm thinking I could just draw some expanding rectangle then transfer my point to a data point. Not sure though. thanks!
Re: [SPAM] [flexcoders] itemRenderers, DataGrids Scroll Bars Madness!!!
Thanks Tracy, I managed to figure out it was the creationComplete that stopped firing when I scrolled the dataGrid as I traced the calls and they where just not firing. What you said about override is a little above my head, so if you do see any good examples please send me a link as I wouldn't really know what looks good unfortunately. - Stephen
[flexcoders] Selecting an Item Programmatically after Adding it to List
Thought I'd run this by everyone. If you have a List, whose dataprovider (arraycollection) has an ac tive sort on it, how do you select a new Item immediately after an addItem call, programtically? I can't predict what slot it's going to end up at due to the sort. It used to be easy before the sort (you just select arraycollection.length-1) Do I need to resort to: Using the collectionChange event, and then in the handler function, looking at the object in event.items[0], and then searching the arraycollection for the label field? Thanks, Steve
[flexcoders] Re: Selecting an Item Programmatically after Adding it to List
BTW, Do I need to resort to: should really say: Do I need to settle for, or something else, so as not to confuse :) --- In flexcoders@yahoogroups.com, steveb805 quantumcheese...@... wrote: Thought I'd run this by everyone. If you have a List, whose dataprovider (arraycollection) has an ac tive sort on it, how do you select a new Item immediately after an addItem call, programtically? I can't predict what slot it's going to end up at due to the sort. It used to be easy before the sort (you just select arraycollection.length-1) Do I need to resort to: Using the collectionChange event, and then in the handler function, looking at the object in event.items[0], and then searching the arraycollection for the label field? Thanks, Steve
[flexcoders] Dapatkan 1.15 Million Malaysia Email Address!!! Hari ini adalah Promosi
Perniagaan Internet anda gagal??? Disini saya berikan anda 1.15 million Malaysia Email Address untuk anda mempromosikan perniagaan anda. Banyak peniaga Internet membeli Email List ini dan banyak daripada merek a menjana pendapatan lumayan dalam seminggu sahaja. http://senaraiemail.webs.com/ourproduct.htm Anda tidak pernah menjalankan perniagaan Internet??? Disini saya memberikan anda satu peluang. Mari kita menjual email address kepada peniaga2 Internet.20 Setakat ini, ramai peniaga yang melakukan pembelian sehingga saya sendir i menjana 5k sebulan. Anda bila lagi??? Ini bukan hyper market tapi ini kenyataan. Anda tak percaya tapi belum mencuba macam mana nak tahu? Sila check pack age SP dalam website dibawah. Dengan package SP, komisyen adalah 100% mi lik anda. Layari laman web saya dibawah untuk maklumat lanjut. http://senaraiemail.webs.com/ourproduct.htm http://senaraiemail.webs.com/ourproduct.htm
[flexcoders] Re: 3.5 is out!!!
--- In flexcoders@yahoogroups.com, Penny Laus pennyl...@... wrote: I haven't been following the SDK's progress closely so I'm not sure what 3.5 offers over what I'm using now (3.2). Can anyone point to a release document or overview that explains the features and benefits of the 3.5 SDK? The SDK download itself doesn't seem to have any 3.5 release notes. Thanks in advance for any links. As Matt suggested they should have more info this week (look on flex team blog maybe). I would personally recommend upgrade to 3.5 for reliability reasons at a minimum. 3.2 was a rough release as it introduced a major feature (marshall plan), this had a few quirks which have since been fixed. You shouldn't see any difference in how your app runs. In my opinion Adobe Flex dot updates are very minor, 3.5 would be 3.05 in other SDKs (.NET/java)
[flexcoders] Flex Application Interaction with Loaded Flash SWFs
Hi all, First, the background: I am creating a Flex application with a component that displays various dynamically loaded SWFs, one at a time (kind of like a kiosk). These loaded SWFs are created in Flash IDE, not Flex. They will not be created by us (we will provide a .fla template but that's it), so I am loading them into a separate SecurityDomain. My Questions: 1. I want the application to be able to call methods inside the loaded SWF. To do this, would I just call Security.allowDomain(domain original app was loaded from) in the startup process for the loaded SWF? 2. I want the loaded SWF to be able to throw events that are caught by the application. Can I accomplish this through the http://www.adobe.com/livedocs/flex/3/langref/mx/controls/SWFLoader.html#swfBridge SWFLoader.swfBridge property? 3. I am defining an interface for the methods inside the loaded SWF. But, I don't want to leave the implementation up to the customer. Instead, I want to provide another SWF that contains the interface implementation and have it be a constraint that the customer includes it in their SWF. I am not very familiar with the Flash authoring environment, how would it work so that the interface implementation SWF exposes its methods in such a way to be accessible to Flex? Is there a way to sign the SWF so that the Flex application knows that it is dealing with the original, not a spoof? How would the Flex code pass in arguments, since it is across SecurityDomain boundary -- is there marshalling involved (say if I want to pass in a Dictionary or some kind of object graph)? 4. The Flex application may load hundreds of these smaller other SWFs during its lifetime. How do I make sure it doesn't keep using up more memory? I plan on using SWFLoader.unloadAndStop() and clearing all references in the Flex object that refers to it. Is this enough? Will the AppDomain for the loaded SWF be torn down automatically so that the class definitions are no longer in memory? Thanks, Karthik Karthik Kailash | Product SocialVision, Online Television Becomes a Social Experience CELL • 408.768.7704 | WEB • www.socialvisioninc.com | FACEBOOK • http://www.facebook.com/socialvision facebook.com/socialvision | TWITTER • http://twitter.com/socialvision twitter.com/socialvision