Re: [flexcoders] FlexBuilder debugging kills ITunes
Brendan Meutzner wrote: Hi All, I'm sorry to post this not so technical question, but I figured it'd be the best place to see if other folks have this same frustration that I do. My dev machine is a Macbook Pro running Leopard, and I'm working with FlexBuilder 3.0.1. I've found that whenever I go to debug an app and it hits a breakpoint, my ITunes audio output begins skipping/hopping/jumping etc... It's terribly annoying! I've never had this issue on my Mac Pro running the same environment... EXCEPT... I haven't pushed up to 3.0.1 hotfix for FlexBuilder there yet... just running 3.0. Has anyone else had this happen to them? I'd love to just switch to another audio player, but having a lot of ITunes content, it would be really annoying to convert. Brendan man renice Might help. cheers, - shaun
[flexcoders] Re: Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?
Hi Matt, I've got unconfirmed problem with RSLs - the loader *sometimes* is stuck while loading the libraries. I am unable to create an isolated test-case, but this thing popped in immediately after I converted the project into the RSLs. The problem seems to be highly discoverable if you run the app on the local machine, and appears rarely if you serve the app from a remote web server. And nothing else besides that :) Cheers, Dmitri. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I haven't heard of any :-) On 9/8/08 1:26 PM, greg h [EMAIL PROTECTED] wrote: Hi, I am on a team that is pushing into production a public facing Flex application on the Internet. We have configured the app to use the Flash Player's caching of the Framework RSL. Before going live, I am posting here to see if anyone has experience that causes them to caution against using the Framework RSL (e.g. framework_3.0.0.477.swz)? I have seen the following post by Dmitri Girski's with his analysis on where RSLs offer the most benefit (Thanks Dmitri :-): http://tech.groups.yahoo.com/group/flexcoders/message/108149 But I have not had luck tracking down any horror stories. I certainly am heartened by this lack of horror stories. However, if by using the Framework RSL we might be introducing any risks or pitfalls, we sure would prefer to know before we go live, rather than hear about them from our customers ;-) If anyone might have advice they are willing to share, we would be most appreciative if you could be so kind as to share your experiences. Thanks, g
[flexcoders] SWFLoader loads image relative to the SWF
Hello i can not believe it. why does the SWFLoader class loads images relative to the SWF loading it? SWFLoader line number 1323 describes it. i want to load it relative to the html. how can I change this? thank you for your help!
[flexcoders] Re: Preventing cutpaste in Flex3 application
--- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: Good software is all about enabling people not disabling them. This is just a meaningless statement. You can't enable everything for everyone in any possible way. First, good software does whatever it is supposed to do. Then comes the rest (including copy-paste). Cheers, Dmitri.
[flexcoders] Re: FlexBuilder debugging kills ITunes
Is your mac starting to feel slower at the same time the iTunes begin to act shaky ? Do you debug with Firefox ? If so, check with Activity Monitor if your CPU is running at max ... If that is the case, try to do a fresh install of Firefox. With fresh I mean move the profiles and bookmarks away from the default location, reinstall Firefox and add all profile and addon stuff again. worked for me ... --- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote: Brendan Meutzner wrote: Hi All, I'm sorry to post this not so technical question, but I figured it'd be the best place to see if other folks have this same frustration that I do. My dev machine is a Macbook Pro running Leopard, and I'm working with FlexBuilder 3.0.1. I've found that whenever I go to debug an app and it hits a breakpoint, my ITunes audio output begins skipping/hopping/jumping etc... It's terribly annoying! I've never had this issue on my Mac Pro running the same environment... EXCEPT... I haven't pushed up to 3.0.1 hotfix for FlexBuilder there yet... just running 3.0. Has anyone else had this happen to them? I'd love to just switch to another audio player, but having a lot of ITunes content, it would be really annoying to convert. Brendan man renice Might help. cheers, - shaun
Re: [flexcoders] Re: Preventing cutpaste in Flex3 application
- Original Message - From: Dmitri Girski [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, September 21, 2008 1:28 PM Subject: [flexcoders] Re: Preventing cutpaste in Flex3 application --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: Good software is all about enabling people not disabling them. This is just a meaningless statement. I think it's more of a guiding principle.. You can't enable everything for everyone in any possible way. That wasn't my suggestion. First, good software does whatever it is supposed to do. .. and more. Then comes the rest (including copy-paste). Even the OP agrees it's not a good idea to restrict copy-paste. Just to clarify Dmitri, my point was that the focus of software should be to enable people to do whatever they wish and not hamper them in that pursuit without very good reason. Paul Cheers, Dmitri.
RE: [flexcoders] Data flow visualization
You might try RaVis from the BirdEye project: http://code.google.com/p/birdeye/ An example is here: http://birdeye.googlecode.com/svn/trunk/ravis/RaVisExamples/example-binaries/RaVisExplorer.html To: flexcoders@yahoogroups.com From: [EMAIL PROTECTED] Date: Sat, 20 Sep 2008 17:30:35 +0300 Subject: [flexcoders] Data flow visualization Hey people! I'm currently trying to think of some way how to solve task brought up by my new project. In that project I have to display data flow between interconnected nodes - cables going through several devices. Main problem as I see it is how to position devices so they can be connected with graphically in best possible way. So far I haven't found anything usable therefor I'm asking here. Maybe anyone has idea of component that might help this problem? Or maybe someone knows of algorithm that could be used for this task? Any ideas are appreciated! Jānis PS I've found software called graphviz which does exactly whats needed but it's so huge that porting doesn't seem to be the way. http://www.graphviz.org/Gallery/undirected/ER.html that might be good visualization on what I need.
Re: [flexcoders] Placing cursor inside UITextField
Hi Brandon, Use the following to set focus for the textField's instance of UITextField: var textField:UITextField = new UITextField(); textField.type = input; textField.autoSize = TextFieldAutoSize.LEFT; textField.multiline = true; textField.wordWrap = false; textField.border = false; myContainer.addChild(textField) textField.setFocus(textField); Notice, that first you have to add textField to the DisplayChildList of corresponding container via addChild and only then you can call setFocus on it. 2008/9/19 Brandon Krakowsky [EMAIL PROTECTED]: I'm creating some Input UITextField instances dynamically, and then trying to place the cursor inside. Can't seem to get it working. var textField:UITextField = new UITextField(); textField.type = input; textField.autoSize = TextFieldAutoSize.LEFT; textField.multiline = true; textField.wordWrap = false; textField.border = false; stage.focus = textField; It seems to get the focus, but doesn't put the cursor inside. Can't just start typing. Also, textField.setFocus() doesn't work. -- Med venlig hilsen / Best regards Andriy Panas [EMAIL PROTECTED]
[flexcoders] Re: removeChild or delete item in repeater
--- In flexcoders@yahoogroups.com, urmissinlink [EMAIL PROTECTED] wrote: hey guys, I have a nested repeater as seen below mx:Repeater id=_rpModule dataProvider={A00Module} mx:LinkButton id=_mod label={_rpModule.currentItem.label} click=openModule(event) icon=@Embed(source='img/Expand.png')/ mx:VBox paddingLeft=35 id=vform mx:Repeater id=_rpSubModule dataProvider={A00SubModule} repeatEnd=populateSub(event); mx:LinkButton id=_submod label={_rpSubModule.currentItem.label}/ /mx:Repeater /mx:VBox /mx:Repeater I am running a loop at the RepeatEnd phase to delete the linkbuttons that I don't want, but they are not removing from the screen at all. Why not just filter the dataProvider so as not to add them in the first place?
Re: [flexcoders] Re: FlexBuilder debugging kills ITunes
I've ditched debugging in Firefox and switched to only debugging in Safari. For some reason debugging in FF worked fine up until a certain point, then it became crazy crazy slow and would nearly hang my entire machine. Switched the default browser for debugging to Safari and all was normal again. Dunno what was up or if that is anything like your issue. Doug On Sun, Sep 21, 2008 at 5:49 AM, rleuthold [EMAIL PROTECTED] wrote: Is your mac starting to feel slower at the same time the iTunes begin to act shaky ? Do you debug with Firefox ? If so, check with Activity Monitor if your CPU is running at max ... If that is the case, try to do a fresh install of Firefox. With fresh I mean move the profiles and bookmarks away from the default location, reinstall Firefox and add all profile and addon stuff again. worked for me ... --- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote: Brendan Meutzner wrote: Hi All, I'm sorry to post this not so technical question, but I figured it'd be the best place to see if other folks have this same frustration that I do. My dev machine is a Macbook Pro running Leopard, and I'm working with FlexBuilder 3.0.1. I've found that whenever I go to debug an app and it hits a breakpoint, my ITunes audio output begins skipping/hopping/jumping etc... It's terribly annoying! I've never had this issue on my Mac Pro running the same environment... EXCEPT... I haven't pushed up to 3.0.1 hotfix for FlexBuilder there yet... just running 3.0. Has anyone else had this happen to them? I'd love to just switch to another audio player, but having a lot of ITunes content, it would be really annoying to convert. Brendan man renice Might help. cheers, - shaun
Re: [flexcoders] Re: FlexBuilder debugging kills ITunes
Same here, I got sick of my cache being nuked when FF dies. I use IE to debug, I just love smashing it against the wall when I accidently leave a while loop runnig. ;-) Mike On Sun, Sep 21, 2008 at 11:55 AM, Doug McCune [EMAIL PROTECTED] wrote: I've ditched debugging in Firefox and switched to only debugging in Safari. For some reason debugging in FF worked fine up until a certain point, then it became crazy crazy slow and would nearly hang my entire machine. Switched the default browser for debugging to Safari and all was normal again. Dunno what was up or if that is anything like your issue. Doug On Sun, Sep 21, 2008 at 5:49 AM, rleuthold [EMAIL PROTECTED]rleuthold%40sunrise.ch wrote: Is your mac starting to feel slower at the same time the iTunes begin to act shaky ? Do you debug with Firefox ? If so, check with Activity Monitor if your CPU is running at max ... If that is the case, try to do a fresh install of Firefox. With fresh I mean move the profiles and bookmarks away from the default location, reinstall Firefox and add all profile and addon stuff again. worked for me ... --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, shaun [EMAIL PROTECTED] wrote: Brendan Meutzner wrote: Hi All, I'm sorry to post this not so technical question, but I figured it'd be the best place to see if other folks have this same frustration that I do. My dev machine is a Macbook Pro running Leopard, and I'm working with FlexBuilder 3.0.1. I've found that whenever I go to debug an app and it hits a breakpoint, my ITunes audio output begins skipping/hopping/jumping etc... It's terribly annoying! I've never had this issue on my Mac Pro running the same environment... EXCEPT... I haven't pushed up to 3.0.1 hotfix for FlexBuilder there yet... just running 3.0. Has anyone else had this happen to them? I'd love to just switch to another audio player, but having a lot of ITunes content, it would be really annoying to convert. Brendan man renice Might help. cheers, - shaun -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Help with error #1119
I have a 1119 error that is giving me fits and I'm sure its probably something simple but I've been trying for days with no luck. Would someone please take a look at this code and help me figure out what I'm doing wrong here? The problem is in dp.length at line 18 of the AverageFunction and also in line 29 of the TotalFunction but being new to programing I don't really understand how to interpolate the error. - ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:scripts=scripts.* initialize=dp.send() mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var ciData:ArrayCollection = new ArrayCollection(); private function ciResult(event:ResultEvent):void{ ciData = event.result.Credit.Creditor; } public function AverageFunction(col:DataGridColumn):String { var n:int = dp.length; var avg:Number = 0; for (var i:int = 0; i n; i++) { avg += dp[i][col.dataField]; } avg /= n; return Avg: + avg.toFixed(1) +%; } public function TotalFunction(col:DataGridColumn):String { var t:int = dp.length; var tot:Number = 0; for (var i:int = 0; i t; i++) { tot += dp[i][col.dataField]; } return Total: $ +tot.toFixed(2); } ]] /mx:Script mx:HTTPService id=dp url=data/creditInfo.xml result=ciResult(event) / scripts:FooterDataGrid id=dGrid initialize=dGrid.dataProvider = dp width=550 paddingTop=0 paddingBottom=0 verticalAlign=middle scripts:columns scripts:FooterDataGridColumn headerText= dataField=creditorName mx:DataGridColumn headerText=Name dataField=creditorName editable=true/ /scripts:FooterDataGridColumn scripts:FooterDataGridColumn headerText=Interest Rate dataField=interestRate mx:DataGridColumn labelFunction=AverageFunction dataField=interestRate editable=true / /scripts:FooterDataGridColumn scripts:FooterDataGridColumn headerText=Balacnce dataField=balanceOwed mx:DataGridColumn labelFunction=TotalFunction dataField=balanceOwed editable=true / /scripts:FooterDataGridColumn scripts:FooterDataGridColumn headerText=Monthly Payment dataField=monthlyPayment mx:DataGridColumn labelFunction=TotalFunction dataField=monthlyPayment editable=true / /scripts:FooterDataGridColumn /scripts:columns /scripts:FooterDataGrid /mx:Application Thanks Dave
[flexcoders] Re: Example of writing metadata in synch with video?
Actually, I was a little confused on both. I'm using cue points but the article I referenced was talking about the ability to do a similar thing with metadata. However, it appears that it was using the Flash Media Encoder to do it. Very good links btw, thanks! Steve --- In flexcoders@yahoogroups.com, greg h [EMAIL PROTECTED] wrote: Hi sr, Can you provide more details on your requirement? For instance, metadata embedded in the FLV? Or ActionScript cue points? For ActionScript cue point, the amazing Peter deHaan has put up these three Flex examples (Note: the first two links have the generated swf running below the code): http://blog.flexexamples.com/2007/08/09/dynamically-creating- actionscript-cue-points-from-flashvars-received-from-the-html- container/ http://blog.flexexamples.com/2007/08/12/dynamically-creating- actionscript-cue-points-from-flashvars-loaded-using-the-httpservice- tag/ http://blog.flexexamples.com/2007/07/29/creating-actionscript-cue- points-with-the-videodisplay-control/ For a brief intro on embedded cue points, see this section in the docs (Flash CS3 docs, but it is all the same with Flex): http://livedocs.adobe.com/flash/9.0/main/0561.html *Please post back regarding whether the above answers your question, and if you find it helpful :-)* Best regards, g
[flexcoders] Strange Image Behavior
Hi all. I'm experiencing some serious strangeness with a few .png images in my project. They work perfectly in debug mode, and they also work in IE7 on the live server, but on the live server in Firefox 3 they won't load. This is especially strange because I have many OTHER .png and other types of image files in the project that are working just fine. Any ideas? I tried substituting a couple .gif files instead but had the same problem. Thanks. -Dane
Re: [flexcoders] Re: FlexBuilder debugging kills ITunes
It's funny... I honestly thought this was a ITunes only issue because I was never seeing any visible performance issues otherwise as I was debugging in Safari. Then I switched and tried debugging in Firefox... debugging in that (as Doug points out) absolutely destroyed my machine and it took me about 3 mins to force a kill on Firefox once it occurred. So, I guess I'll go back to Safari and put up with skipping music as opposed to the alternative :-) Going to look more into Shaun's suggestion of renice maybe... And I guess the difference between 2 cores on macbook pro and 8 on the Mac Pro is why I never see this issue there. Brendan On Sun, Sep 21, 2008 at 12:07 PM, Michael Schmalle [EMAIL PROTECTED]wrote: Same here, I got sick of my cache being nuked when FF dies. I use IE to debug, I just love smashing it against the wall when I accidently leave a while loop runnig. ;-) Mike On Sun, Sep 21, 2008 at 11:55 AM, Doug McCune [EMAIL PROTECTED] wrote: I've ditched debugging in Firefox and switched to only debugging in Safari. For some reason debugging in FF worked fine up until a certain point, then it became crazy crazy slow and would nearly hang my entire machine. Switched the default browser for debugging to Safari and all was normal again. Dunno what was up or if that is anything like your issue. Doug On Sun, Sep 21, 2008 at 5:49 AM, rleuthold [EMAIL PROTECTED]rleuthold%40sunrise.ch wrote: Is your mac starting to feel slower at the same time the iTunes begin to act shaky ? Do you debug with Firefox ? If so, check with Activity Monitor if your CPU is running at max ... If that is the case, try to do a fresh install of Firefox. With fresh I mean move the profiles and bookmarks away from the default location, reinstall Firefox and add all profile and addon stuff again. worked for me ... --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, shaun [EMAIL PROTECTED] wrote: Brendan Meutzner wrote: Hi All, I'm sorry to post this not so technical question, but I figured it'd be the best place to see if other folks have this same frustration that I do. My dev machine is a Macbook Pro running Leopard, and I'm working with FlexBuilder 3.0.1. I've found that whenever I go to debug an app and it hits a breakpoint, my ITunes audio output begins skipping/hopping/jumping etc... It's terribly annoying! I've never had this issue on my Mac Pro running the same environment... EXCEPT... I haven't pushed up to 3.0.1 hotfix for FlexBuilder there yet... just running 3.0. Has anyone else had this happen to them? I'd love to just switch to another audio player, but having a lot of ITunes content, it would be really annoying to convert. Brendan man renice Might help. cheers, - shaun -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'. -- Brendan Meutzner http://www.meutzner.com/blog/
[flexcoders] Items with variable width ? (TileBase component that don't override items width)
Hello, The result should be an HorizontalList like component (with all features; dataProvider, Layout, Effects Events...) but does not override it's items width property. Problem is that any component extending TileBase is setting it's items width and height and that makes it impossible for the item to set it's width. I have been looking into ListBase, TileBase and tried to override the measure function on the itemRenderer (which does not seem like a good idea).. Before I'm going to implement a new component from scratch (thought about using OpenFlux).. anyone got some ideas ?
[flexcoders] Strange Error When using GroupingCollection as dataProvider for TabBar
I'm trying to expand on the concept here http://blog.tsclausing.com/post/20 and get a more sophisticated representation of the data. When I try to set my GroupingCollection as the DataProvider for a TabBar, I get this error: Error: ERROR: The dataProvider of 'monthSelector' must not contain objects of type flash.display.DisplayObject. at mx.controls::NavBar/set dataProvider()[E:\dev\3.1.0 \frameworks\projects\framework\src\mx\controls\NavBar.as:378] at GroupingFunction/init()[C:\Documents and Settings\Amy\My Documents\Helpful\GroupingFunction\src\GroupingFunction.mxml:68] at GroupingFunction/___GroupingFunction_Application1_creationComplete() [C:\Documents and Settings\Amy\My Documents\Helpful\GroupingFunction\src\GroupingFunction.mxml:2] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0 \frameworks\projects\framework\src\mx\core\UIComponent.as:9156] at mx.core::UIComponent/set initialized()[E:\dev\3.1.0 \frameworks\projects\framework\src\mx\core\UIComponent.as:1167] at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\3.1.0 \frameworks\projects\framework\src\mx\managers\LayoutManager.as:701] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0 \frameworks\projects\framework\src\mx\core\UIComponent.as:8565] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0 \frameworks\projects\framework\src\mx\core\UIComponent.as:8508] I can understand that maybe a GroupingCollection wasn't meant to be used as a dataProvider for a TabBar, but why does Flex think it has UIComponents in it? Thanks; Amy
Re: [flexcoders] Strange Error When using GroupingCollection as dataProvider for TabBar
Hi Amy, That's actually just a canned Exception. It's in the resource manager bundle as a UIComponent since that is what is under ViewStack. The error says the dataProvider must be of type; - String - ViewStack - Array - IList That is not really a user friendly message for sure, doesn't even make sense from where it is called. # NavBar errWrongType=ERROR: The dataProvider of '{0}' must be String, ViewStack, Array, or IList. errWrongContainer=ERROR: The dataProvider of '{0}' must not contain objects of type flash.display.DisplayObject. Mike On Sun, Sep 21, 2008 at 3:44 PM, Amy [EMAIL PROTECTED] wrote: I'm trying to expand on the concept here http://blog.tsclausing.com/post/20 and get a more sophisticated representation of the data. When I try to set my GroupingCollection as the DataProvider for a TabBar, I get this error: Error: ERROR: The dataProvider of 'monthSelector' must not contain objects of type flash.display.DisplayObject. at mx.controls::NavBar/set dataProvider()[E:\dev\3.1.0 \frameworks\projects\framework\src\mx\controls\NavBar.as:378] at GroupingFunction/init()[C:\Documents and Settings\Amy\My Documents\Helpful\GroupingFunction\src\GroupingFunction.mxml:68] at -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Strange Error When using GroupingCollection as dataProvider for TabBar
Oh yeah. GroupingCollection is a HierarchicalData - EventDispatcher, so navbar will not let you use it, needs a real array. Mike On Sun, Sep 21, 2008 at 6:50 PM, Michael Schmalle [EMAIL PROTECTED]wrote: Hi Amy, That's actually just a canned Exception. It's in the resource manager bundle as a UIComponent since that is what is under ViewStack. The error says the dataProvider must be of type; - String - ViewStack - Array - IList That is not really a user friendly message for sure, doesn't even make sense from where it is called. # NavBar errWrongType=ERROR: The dataProvider of '{0}' must be String, ViewStack, Array, or IList. errWrongContainer=ERROR: The dataProvider of '{0}' must not contain objects of type flash.display.DisplayObject. Mike On Sun, Sep 21, 2008 at 3:44 PM, Amy [EMAIL PROTECTED] wrote: I'm trying to expand on the concept here http://blog.tsclausing.com/post/20 and get a more sophisticated representation of the data. When I try to set my GroupingCollection as the DataProvider for a TabBar, I get this error: Error: ERROR: The dataProvider of 'monthSelector' must not contain objects of type flash.display.DisplayObject. at mx.controls::NavBar/set dataProvider()[E:\dev\3.1.0 \frameworks\projects\framework\src\mx\controls\NavBar.as:378] at GroupingFunction/init()[C:\Documents and Settings\Amy\My Documents\Helpful\GroupingFunction\src\GroupingFunction.mxml:68] at -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: LCDS: Debug RTMP Traffic
I'll try using the TraceTarget class. Our config uses port 2040 for RTMP. I tried filtering on tcp.port==2040, but that didn't seem to get anything. I also tried rtmp.port==2040 and rtmpt.port==2040. Those didn't seem to work either. By 'work' I mean that when the filter was applied, there were no network activity listed in the Wiresshark top panel. Any other ideas on filtering? --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: Have you tried enabling the client side debug logging with mx:TraceTarget/? You get the highest level client side tracing that way... just make sure you use the debug player, then look in the flashlog.txt. For wireshark, I think you can probably filter based on the server port used to establish the connection. Look at your RTMP configuration but typically it is 2038 or 1935 or something like that. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Friday, September 19, 2008 7:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS: Debug RTMP Traffic I'm having some issues with 2 DataServices running over RTMP. The first DataService loads on application startup and work fine (I get data). The second load later on in the application, but this one get's no data. It doesn't appear that it even makes the connect request because my result and fault handlers don't get hit. Is there a tool (like Charles, ServiceCapture, or Wireshark) that can be used to verify that something over an RTMP channel is being sent from the client? Like I said, nothing seems to happen when I issue the DataService.connect() call. I've enabled a bunch of logging on the server(via the services-config.xml file), but if that traffic isn't reaching the server, all the logging in the world won't help. BTW, if you say that Wireshark can be used, then please post the filter you use because I couldn't figure out one that only showed RTMP traffic. As a matter of fact, I couldn't find anything that looked like RTMP traffic in the log session. I don't know if it's important or not, but the server and the client are all running locally. Env: Tomcat 6.0.16 LCDS 2.6 Flex 3 Thanks, ~Geoff
[flexcoders] Re: LCDS: Debug RTMP Traffic
TraceTarget reported the following when the UI with the second DataService loads: 'C44F8220-F189-21B2-CC03-874C13991A33' producer set destination to 'DefaultHTTP'. 'direct_http_channel' channel endpoint set to http://localhost:8080/main/ 'cds-consumer-tasks-null' consumer set destination to 'tasks'. Configuration for destination='tasks': properties metadata identity property=id/ /metadata network paging enabled=false/ /network use-transactionstrue/use-transactions /properties New DataService for destination: tasks '19BCB91C-2215-DC18-D015-874C6044FDA8' producer set destination to 'tasks'. Creating a new independent data store for destination: tasks Adding data service: tasks to the data store: null initialized: false LSODatabase close(): null TaskDS.as: Connecting to DataService. 'ds-producer-tasks' producer connected. 'ds-producer-tasks' producer acknowledge of '1EBA99AC-11A5-3E3B-0B1C-874C60449CA4'. This is the last thing it reports related to DataServices. It looks like the DataService attempts to connect, but I'm missing all the connection jazz that I get from the first DataService connection (namely RTMP stuff. Am I reading this right? Looks like it's trying to connect over an HTTP channel). Here's what a successful connection looks like: ConfigDS.as: Connecting to DataService. 'my-rtmp' channel endpoint set to rtmp://localhost:2039 'my-rtmp' channel settings are: channel id=my-rtmp type=mx.messaging.channels.RTMPChannel endpoint uri=rtmp://localhost:2039/ properties/ /channel 'my-rtmp' channel got connect attempt status. (Object)#0 code = NetConnection.Connect.Success description = Connection succeeded. details = (null) DSMessagingVersion = 1 id = A66F4650-DB1E-E678-DB08-C1CD3BF2591A level = status objectEncoding = 3 'my-rtmp' channel is connected. 'ds-producer-configurationData' producer acknowledge of '0ADAF447-0616-0F7B-376A-8758AC3385D9'. 'ds-producer-configurationData' producer connected. ConfigDS.as: Connection to DataService success. --- In flexcoders@yahoogroups.com, Geoffrey [EMAIL PROTECTED] wrote: I'll try using the TraceTarget class. Our config uses port 2039 for RTMP. I tried filtering on tcp.port==2039, but that didn't seem to get anything. I also tried rtmp.port==2039 and rtmpt.port==2039. Those didn't seem to work either. By 'work' I mean that when the filter was applied, there were no network activity listed in the Wiresshark top panel. Any other ideas on filtering? --- In flexcoders@yahoogroups.com, Jeff Vroom jvroom@ wrote: Have you tried enabling the client side debug logging with mx:TraceTarget/? You get the highest level client side tracing that way... just make sure you use the debug player, then look in the flashlog.txt. For wireshark, I think you can probably filter based on the server port used to establish the connection. Look at your RTMP configuration but typically it is 2038 or 1935 or something like that. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Friday, September 19, 2008 7:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS: Debug RTMP Traffic I'm having some issues with 2 DataServices running over RTMP. The first DataService loads on application startup and work fine (I get data). The second load later on in the application, but this one get's no data. It doesn't appear that it even makes the connect request because my result and fault handlers don't get hit. Is there a tool (like Charles, ServiceCapture, or Wireshark) that can be used to verify that something over an RTMP channel is being sent from the client? Like I said, nothing seems to happen when I issue the DataService.connect() call. I've enabled a bunch of logging on the server(via the services-config.xml file), but if that traffic isn't reaching the server, all the logging in the world won't help. BTW, if you say that Wireshark can be used, then please post the filter you use because I couldn't figure out one that only showed RTMP traffic. As a matter of fact, I couldn't find anything that looked like RTMP traffic in the log session. I don't know if it's important or not, but the server and the client are all running locally. Env: Tomcat 6.0.16 LCDS 2.6 Flex 3 Thanks, ~Geoff
RE: [flexcoders] Re: LCDS: Debug RTMP Traffic
Yeah, it looks like somehow you are getting a DataService trying to use a DirectHTTPChannel.That only works for for HTTPService, and WebService. DataService needs a channelSet which supports AMF (AMFChannel, or RTMPChannel). I'm confused how you are getting into this situation though... those get created on the client via the endpoint property on some services or you can define one explicitly in ActionScript or MXML.Can you show how this tasks destination is getting defined in ActionScript? How is its channelSet specified - on the client via the channelSet property or on the server? If it is on the server, make sure you are compiling against the services-config.mxml file (it is a project/compiler option). Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Sunday, September 21, 2008 5:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS: Debug RTMP Traffic TraceTarget reported the following when the UI with the second DataService loads: 'C44F8220-F189-21B2-CC03-874C13991A33' producer set destination to 'DefaultHTTP'. 'direct_http_channel' channel endpoint set to http://localhost:8080/main/ 'cds-consumer-tasks-null' consumer set destination to 'tasks'. Configuration for destination='tasks': properties metadata identity property=id/ /metadata network paging enabled=false/ /network use-transactionstrue/use-transactions /properties New DataService for destination: tasks '19BCB91C-2215-DC18-D015-874C6044FDA8' producer set destination to 'tasks'. Creating a new independent data store for destination: tasks Adding data service: tasks to the data store: null initialized: false LSODatabase close(): null TaskDS.as: Connecting to DataService. 'ds-producer-tasks' producer connected. 'ds-producer-tasks' producer acknowledge of '1EBA99AC-11A5-3E3B-0B1C-874C60449CA4'. This is the last thing it reports related to DataServices. It looks like the DataService attempts to connect, but I'm missing all the connection jazz that I get from the first DataService connection (namely RTMP stuff. Am I reading this right? Looks like it's trying to connect over an HTTP channel). Here's what a successful connection looks like: ConfigDS.as: Connecting to DataService. 'my-rtmp' channel endpoint set to rtmp://localhost:2039 'my-rtmp' channel settings are: channel id=my-rtmp type=mx.messaging.channels.RTMPChannel endpoint uri=rtmp://localhost:2039/ properties/ /channel 'my-rtmp' channel got connect attempt status. (Object)#0 code = NetConnection.Connect.Success description = Connection succeeded. details = (null) DSMessagingVersion = 1 id = A66F4650-DB1E-E678-DB08-C1CD3BF2591A level = status objectEncoding = 3 'my-rtmp' channel is connected. 'ds-producer-configurationData' producer acknowledge of '0ADAF447-0616-0F7B-376A-8758AC3385D9'. 'ds-producer-configurationData' producer connected. ConfigDS.as: Connection to DataService success. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Geoffrey [EMAIL PROTECTED] wrote: I'll try using the TraceTarget class. Our config uses port 2039 for RTMP. I tried filtering on tcp.port==2039, but that didn't seem to get anything. I also tried rtmp.port==2039 and rtmpt.port==2039. Those didn't seem to work either. By 'work' I mean that when the filter was applied, there were no network activity listed in the Wiresshark top panel. Any other ideas on filtering? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom jvroom@ wrote: Have you tried enabling the client side debug logging with mx:TraceTarget/? You get the highest level client side tracing that way... just make sure you use the debug player, then look in the flashlog.txt. For wireshark, I think you can probably filter based on the server port used to establish the connection. Look at your RTMP configuration but typically it is 2038 or 1935 or something like that. Jeff From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Geoffrey Sent: Friday, September 19, 2008 7:35 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] LCDS: Debug RTMP Traffic I'm having some issues with 2 DataServices running over RTMP. The first DataService loads on application startup and work fine (I get data). The second load later on in the application, but this one get's no data. It doesn't appear that it even makes the connect request because my result and fault handlers don't get hit. Is there a tool (like Charles, ServiceCapture, or Wireshark) that can be used to verify that something over an RTMP channel is being sent from the client? Like I said, nothing seems to happen when I issue the DataService.connect() call. I've enabled a bunch of logging on the server(via the services-config.xml file), but if that traffic isn't reaching the
[flexcoders] [Bindable] is not getting updated..
Hii Guyz, Although it's very strange (even for me), but this [Bindable] tag is not working for me. I am following the cairngorm structure and storing a variable in Model. Now, in one of my code file, if I 'll create a local bindable variable, that binds to model.. then it is not being updated with the changes in model. [Bindable] private var xyz:String = MyModel.getInstance().someVar; Now, if I use xyz in my code then it is not updated. Where as if i use 'MyModel.getInstance().someVar' then I am getting perfect result. Any thoughts here... Regards, Manu. -- View this message in context: http://www.nabble.com/-Bindable--is-not-getting-updated..-tp19600797p19600797.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] [Bindable] is not getting updated..
- Original Message - From: Manu Dhanda [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, September 22, 2008 3:08 AM Subject: [flexcoders] [Bindable] is not getting updated.. Hii Guyz, Although it's very strange (even for me), but this [Bindable] tag is not working for me. I am following the cairngorm structure and storing a variable in Model. Now, in one of my code file, if I 'll create a local bindable variable, that binds to model.. then it is not being updated with the changes in model. [Bindable] private var xyz:String = MyModel.getInstance().someVar; Now, if I use xyz in my code then it is not updated. Where as if i use 'MyModel.getInstance().someVar' then I am getting perfect result. Any thoughts here... Yes, some thoughts. [Bindable] private var xyz:String = MyModel.getInstance().someVar Means that xyz is bindable and is initialised with the value of MyModel.getInstance().someVar . It does not mean that xyz changes with the value of MyModel.getInstance().someVar . If you wish to have a binding in an mxml file to MyModel.getInstance().someVar then use {MyModel.getInstance().someVar }, alternatively in actionscript you'll have to specifically set up a binding for it. Paul Regards, Manu. -- View this message in context: http://www.nabble.com/-Bindable--is-not-getting-updated..-tp19600797p19600797.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] AdvancedDataGrid - how on earth do I do something useful with it?
Hey guys, I'm trying to tackle what seems to me to be a pretty trivial problem, but the amount of documentation available for ADG is, well, not so good :) Here's what I want to do (I don't want folders, or expanding-collapsing rows, or little icons or any of that nonsense): ++ | *Category1*| +-+--+ | Item1 | 7| +-+--+ | Item2 | 3| +-+--+ | | *10* | +-+--+ | *Category2*| +-+--+ | Item3 | 2| +-+--+ | Item4 | 3| +-+--+ | | *5* | ++ * around bold summary rows * Can it be done? How on earth do I do it? It seems there's no way to use summary rows without flattening your data and using GroupingCollection. I can't figure out how to make a grouping renderer span multiple columns without somehow cancelling the rendering of all its child nodes. The examples in the documentation are woefully simple and inadequate, and the google only wants to point me towards other people with problems, rather than people with answers :'( Any help, or pointers to some good docs or blogs about this stuff much appreciated! -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. http://flex.joshmcdonald.info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] [Bindable] is not getting updated..
Hi Paul, if [Bindable] works just for initialization, then I think it is loosing it's existence altogether. At least I think it this way.. that [Bindable] changes with every change that it is bind to. And not just it's initialization. Waiting for expert comments.. Thanks, Manu. Paul Andrews-4 wrote: - Original Message - From: Manu Dhanda [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, September 22, 2008 3:08 AM Subject: [flexcoders] [Bindable] is not getting updated.. Hii Guyz, Although it's very strange (even for me), but this [Bindable] tag is not working for me. I am following the cairngorm structure and storing a variable in Model. Now, in one of my code file, if I 'll create a local bindable variable, that binds to model.. then it is not being updated with the changes in model. [Bindable] private var xyz:String = MyModel.getInstance().someVar; Now, if I use xyz in my code then it is not updated. Where as if i use 'MyModel.getInstance().someVar' then I am getting perfect result. Any thoughts here... Yes, some thoughts. [Bindable] private var xyz:String = MyModel.getInstance().someVar Means that xyz is bindable and is initialised with the value of MyModel.getInstance().someVar . It does not mean that xyz changes with the value of MyModel.getInstance().someVar . If you wish to have a binding in an mxml file to MyModel.getInstance().someVar then use {MyModel.getInstance().someVar }, alternatively in actionscript you'll have to specifically set up a binding for it. Paul Regards, Manu. -- View this message in context: http://www.nabble.com/-Bindable--is-not-getting-updated..-tp19600797p19600797.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- View this message in context: http://www.nabble.com/-Bindable--is-not-getting-updated..-tp19600797p19601220.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] [Bindable] is not getting updated..
I get what you're saying, but you're coming at it from the wrong angle is all. When you have this: [Bindable] public var myvar = someFunction(); You're making it so that *other code* will be called when myvar changes. You're also giving it the initial value of someFunction(). It won't escape back into the code for someFunction() and alter it so it becomes bindable. We need to have a difference betwen X = Y and create a binding from X to Y, otherwise the entire virtual machine would slow to a crawl. If you want to create a binding from actionscript from sourceObject.someValue to myValue you do this: BindingUtils.bindProperty(this, myValue, sourceObject, someValue); Then whenever sourceObject tells the word that someValue has been updated (with events), Flex will set the myValue field on your object. -Josh On Mon, Sep 22, 2008 at 1:07 PM, Manu Dhanda [EMAIL PROTECTED]wrote: Hi Paul, if [Bindable] works just for initialization, then I think it is loosing it's existence altogether. At least I think it this way.. that [Bindable] changes with every change that it is bind to. And not just it's initialization. Waiting for expert comments.. Thanks, Manu. Paul Andrews-4 wrote: - Original Message - From: Manu Dhanda [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, September 22, 2008 3:08 AM Subject: [flexcoders] [Bindable] is not getting updated.. Hii Guyz, Although it's very strange (even for me), but this [Bindable] tag is not working for me. I am following the cairngorm structure and storing a variable in Model. Now, in one of my code file, if I 'll create a local bindable variable, that binds to model.. then it is not being updated with the changes in model. [Bindable] private var xyz:String = MyModel.getInstance().someVar; Now, if I use xyz in my code then it is not updated. Where as if i use 'MyModel.getInstance().someVar' then I am getting perfect result. Any thoughts here... Yes, some thoughts. [Bindable] private var xyz:String = MyModel.getInstance().someVar Means that xyz is bindable and is initialised with the value of MyModel.getInstance().someVar . It does not mean that xyz changes with the value of MyModel.getInstance().someVar . If you wish to have a binding in an mxml file to MyModel.getInstance().someVar then use {MyModel.getInstance().someVar }, alternatively in actionscript you'll have to specifically set up a binding for it. Paul Regards, Manu. -- View this message in context: http://www.nabble.com/-Bindable--is-not-getting-updated..-tp19600797p19600797.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- View this message in context: http://www.nabble.com/-Bindable--is-not-getting-updated..-tp19600797p19601220.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. http://flex.joshmcdonald.info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] Re: LCDS: Debug RTMP Traffic
Our endpoints are created in the services-config.xml, and the destinations for DataServices are configured in data-management-config.xml. the RTMP endpoint config is as such: channel-definition id=my-rtmp class=mx.messaging.channels.RTMPChannel endpoint url=rtmp://localhost:2039 class=flex.messaging.endpoints.RTMPEndpoint/ properties idle-timeout-minutes30/idle-timeout-minutes /properties /channel-definition A DataService destination looks like: default-channels channel ref=my-rtmp/ /default-channels destination id=tasks adapter ref=java-adapter / properties use-transactionstrue/use-transactions sourceblah.blah.blah.TasksDelegate/source scopeapplication/scope cache-itemsfalse/cache-items metadata identity property=id/ /metadata network subscription-timeout-minutes0/subscription-timeout-minutes paging enabled=false/ /network /properties /destination The two destinations are identical, except for the source class. I am using the compiler argument [-services C:\workspace\flex\src\main\webapp\WEB-INF\flex\services-config.xml], which points to the correct services-config.xml file. The task DataService is created in ActionScript like so: // Create a datasource __ds = new DataService(tasks); __ds.cacheID = ExpTasks; __ds.autoSaveCache = false; __ds.autoConnect = false; __ds.autoCommit = false; __ds.addEventListener(DataConflictEvent.CONFLICT, onDataConflict, false, 0, true); __ds.addEventListener(DataServiceFaultEvent.FAULT, onDataServiceFault, false, 0, true); // Connect to datasource connect(); The connect() method just registers some event listeners and then calls __ds.connect(). The whole point to this is that we intend to replace our 30 Java delegates and 130+ remote methods with DataServices so our application can run in offline mode (assuming there's cached data). If there's a better way to do this, I'm open to suggestions. Thanks, Geoff --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: Yeah, it looks like somehow you are getting a DataService trying to use a DirectHTTPChannel.That only works for for HTTPService, and WebService. DataService needs a channelSet which supports AMF (AMFChannel, or RTMPChannel).I'm confused how you are getting into this situation though... those get created on the client via the endpoint property on some services or you can define one explicitly in ActionScript or MXML.Can you show how this tasks destination is getting defined in ActionScript? How is its channelSet specified - on the client via the channelSet property or on the server? If it is on the server, make sure you are compiling against the services-config.mxml file (it is a project/compiler option). Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Sunday, September 21, 2008 5:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS: Debug RTMP Traffic TraceTarget reported the following when the UI with the second DataService loads: 'C44F8220-F189-21B2-CC03-874C13991A33' producer set destination to 'DefaultHTTP'. 'direct_http_channel' channel endpoint set to http://localhost:8080/main/ 'cds-consumer-tasks-null' consumer set destination to 'tasks'. Configuration for destination='tasks': properties metadata identity property=id/ /metadata network paging enabled=false/ /network use-transactionstrue/use-transactions /properties New DataService for destination: tasks '19BCB91C-2215-DC18-D015-874C6044FDA8' producer set destination to 'tasks'. Creating a new independent data store for destination: tasks Adding data service: tasks to the data store: null initialized: false LSODatabase close(): null TaskDS.as: Connecting to DataService. 'ds-producer-tasks' producer connected. 'ds-producer-tasks' producer acknowledge of '1EBA99AC-11A5-3E3B-0B1C-874C60449CA4'. This is the last thing it reports related to DataServices. It looks like the DataService attempts to connect, but I'm missing all the connection jazz that I get from the first DataService connection (namely RTMP stuff. Am I reading this right? Looks like it's trying to connect over an HTTP channel). Here's what a successful connection looks like: ConfigDS.as: Connecting to DataService. 'my-rtmp' channel endpoint set to rtmp://localhost:2039 'my-rtmp' channel settings are: channel id=my-rtmp type=mx.messaging.channels.RTMPChannel endpoint uri=rtmp://localhost:2039/ properties/ /channel 'my-rtmp' channel got connect attempt status. (Object)#0 code = NetConnection.Connect.Success description = Connection succeeded. details = (null) DSMessagingVersion = 1 id = A66F4650-DB1E-E678-DB08-C1CD3BF2591A level = status objectEncoding = 3 'my-rtmp' channel is connected. 'ds-producer-configurationData' producer acknowledge of '0ADAF447-0616-0F7B-376A-8758AC3385D9'. 'ds-producer-configurationData' producer
Re: [flexcoders] [Bindable] is not getting updated..
Josh, Is it a right way to do the following: [Bindable] private var xyz:String = MyModel.getInstance().someVar; Now, if I use xyz in my code then it is not updated. Where as if i use 'MyModel.getInstance().someVar' then I am getting perfect result. For Ex: mx:Label text={xyz}/ // view not updated with changes in model. mx:Label text={MyModel.getInstance().someVar}/ //view updated everytime with changes in model. So, I didn't get the difference between two above logically. Please explain the case as above. Thanks. Josh McDonald-4 wrote: I get what you're saying, but you're coming at it from the wrong angle is all. When you have this: [Bindable] public var myvar = someFunction(); You're making it so that *other code* will be called when myvar changes. You're also giving it the initial value of someFunction(). It won't escape back into the code for someFunction() and alter it so it becomes bindable. We need to have a difference betwen X = Y and create a binding from X to Y, otherwise the entire virtual machine would slow to a crawl. If you want to create a binding from actionscript from sourceObject.someValue to myValue you do this: BindingUtils.bindProperty(this, myValue, sourceObject, someValue); Then whenever sourceObject tells the word that someValue has been updated (with events), Flex will set the myValue field on your object. -Josh On Mon, Sep 22, 2008 at 1:07 PM, Manu Dhanda [EMAIL PROTECTED]wrote: Hi Paul, if [Bindable] works just for initialization, then I think it is loosing it's existence altogether. At least I think it this way.. that [Bindable] changes with every change that it is bind to. And not just it's initialization. Waiting for expert comments.. Thanks, Manu. Paul Andrews-4 wrote: - Original Message - From: Manu Dhanda [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, September 22, 2008 3:08 AM Subject: [flexcoders] [Bindable] is not getting updated.. Hii Guyz, Although it's very strange (even for me), but this [Bindable] tag is not working for me. I am following the cairngorm structure and storing a variable in Model. Now, in one of my code file, if I 'll create a local bindable variable, that binds to model.. then it is not being updated with the changes in model. [Bindable] private var xyz:String = MyModel.getInstance().someVar; Now, if I use xyz in my code then it is not updated. Where as if i use 'MyModel.getInstance().someVar' then I am getting perfect result. Any thoughts here... Yes, some thoughts. [Bindable] private var xyz:String = MyModel.getInstance().someVar Means that xyz is bindable and is initialised with the value of MyModel.getInstance().someVar . It does not mean that xyz changes with the value of MyModel.getInstance().someVar . If you wish to have a binding in an mxml file to MyModel.getInstance().someVar then use {MyModel.getInstance().someVar }, alternatively in actionscript you'll have to specifically set up a binding for it. Paul Regards, Manu. -- View this message in context: http://www.nabble.com/-Bindable--is-not-getting-updated..-tp19600797p19600797.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- View this message in context: http://www.nabble.com/-Bindable--is-not-getting-updated..-tp19600797p19601220.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls. It tolls for thee. http://flex.joshmcdonald.info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-Bindable--is-not-getting-updated..-tp19600797p19601339.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Strange Error When using GroupingCollection as dataProvider for TabBar
--- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi Amy, That's actually just a canned Exception. It's in the resource manager bundle as a UIComponent since that is what is under ViewStack. The error says the dataProvider must be of type; - String - ViewStack - Array - IList That is not really a user friendly message for sure, doesn't even make sense from where it is called. # NavBar errWrongType=ERROR: The dataProvider of '{0}' must be String, ViewStack, Array, or IList. errWrongContainer=ERROR: The dataProvider of '{0}' must not contain objects of type flash.display.DisplayObject. Yes, it looks like I have two problems. The first is you can't just treat a GroupingCollection like other collections for flat components...you have to call methods on it. The second is that it looks like my groupingFunction on the GroupingField is not getting called even when I refresh the GroupingCollection. I will have to step through things and see why not. Sigh Thanks :)
Re: [flexcoders] [Bindable] is not getting updated..
Hi, Instead of this use BindingUitls.bindProperty(this,xyz,MyModel,getInstance().someVar); This statement is called in the creationComplete of the component. Cheers it will work.. Thanks, with Regards, Jitendra Jain Software Engineer 91-9979960798 - Original Message From: Manu Dhanda [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, 22 September, 2008 8:56:09 AM Subject: Re: [flexcoders] [Bindable] is not getting updated.. Josh, Is it a right way to do the following: [Bindable] private var xyz:String = MyModel.getInstance ().someVar; Now, if I use xyz in my code then it is not updated. Where as if i use 'MyModel.getInstanc e().someVar' then I am getting perfect result. For Ex: mx:Label text={xyz} / // view not updated with changes in model. mx:Label text={MyModel. getInstance( ).someVar} / //view updated everytime with changes in model. So, I didn't get the difference between two above logically. Please explain the case as above. Thanks. Josh McDonald-4 wrote: I get what you're saying, but you're coming at it from the wrong angle is all. When you have this: [Bindable] public var myvar = someFunction( ); You're making it so that *other code* will be called when myvar changes. You're also giving it the initial value of someFunction( ). It won't escape back into the code for someFunction( ) and alter it so it becomes bindable. We need to have a difference betwen X = Y and create a binding from X to Y, otherwise the entire virtual machine would slow to a crawl. If you want to create a binding from actionscript from sourceObject. someValue to myValue you do this: BindingUtils. bindProperty( this, myValue, sourceObject, someValue) ; Then whenever sourceObject tells the word that someValue has been updated (with events), Flex will set the myValue field on your object. -Josh On Mon, Sep 22, 2008 at 1:07 PM, Manu Dhanda manuraj.dhanda@ gmail.comwrote: Hi Paul, if [Bindable] works just for initialization, then I think it is loosing it's existence altogether. At least I think it this way.. that [Bindable] changes with every change that it is bind to. And not just it's initialization. Waiting for expert comments.. Thanks, Manu. Paul Andrews-4 wrote: - Original Message - From: Manu Dhanda manuraj.dhanda@ gmail.com To: [EMAIL PROTECTED] ups.com Sent: Monday, September 22, 2008 3:08 AM Subject: [flexcoders] [Bindable] is not getting updated.. Hii Guyz, Although it's very strange (even for me), but this [Bindable] tag is not working for me. I am following the cairngorm structure and storing a variable in Model. Now, in one of my code file, if I 'll create a local bindable variable, that binds to model.. then it is not being updated with the changes in model. [Bindable] private var xyz:String = MyModel.getInstance ().someVar; Now, if I use xyz in my code then it is not updated. Where as if i use 'MyModel.getInstanc e().someVar' then I am getting perfect result. Any thoughts here... Yes, some thoughts. [Bindable] private var xyz:String = MyModel.getInstance ()..someVar Means that xyz is bindable and is initialised with the value of MyModel.getInstance ().someVar . It does not mean that xyz changes with the value of MyModel.getInstance ().someVar . If you wish to have a binding in an mxml file to MyModel.getInstance ().someVar then use {MyModel.getInstan ce().someVar }, alternatively in actionscript you'll have to specifically set up a binding for it. Paul Regards, Manu. -- View this message in context: http://www.nabble. com/-Bindable- -is-not-getting- updated.. -tp19600797p1960 0797.html Sent from the FlexCoders mailing list archive at Nabble.com. - - -- -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7 Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups Links -- View this message in context: http://www.nabble. com/-Bindable- -is-not-getting- updated.. -tp19600797p1960 1220.html Sent from the FlexCoders mailing list archive at Nabble.com. - - -- -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7 Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups Links -- Therefore, send not to know For whom the bell tolls.. It tolls for thee. http://flex. joshmcdonald. info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] com -- View this
RE: [flexcoders] Re: LCDS: Debug RTMP Traffic
Can you check if it works if you comment out the cacheId setting?Since the offline feature also persists configuration, it might be that it has cached something invalid. If it works, you might try removing your shared objects (for flash) and sql-lite database files (for air) If you could also send me the entire flashlog.txt - (probably offlist - [EMAIL PROTECTED] since it is can be big) I'll see if I can track down what is going on. I thing that is helpful to debug config problems is to look at the value of the variable mx.messaging.config.ServletConfig.xml - it is the information which is compiled into the SWF. In this case, I'd expect to see the default channels for the RTMP channel and then the destination info. The destination info looked correct from the snippet you sent previously so it is the default channels part that is messed up. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Sent: Sunday, September 21, 2008 8:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LCDS: Debug RTMP Traffic Our endpoints are created in the services-config.xml, and the destinations for DataServices are configured in data-management-config.xml. the RTMP endpoint config is as such: channel-definition id=my-rtmp class=mx.messaging.channels.RTMPChannel endpoint url=rtmp://localhost:2039 class=flex.messaging.endpoints.RTMPEndpoint/ properties idle-timeout-minutes30/idle-timeout-minutes /properties /channel-definition A DataService destination looks like: default-channels channel ref=my-rtmp/ /default-channels destination id=tasks adapter ref=java-adapter / properties use-transactionstrue/use-transactions sourceblah.blah.blah.TasksDelegate/source scopeapplication/scope cache-itemsfalse/cache-items metadata identity property=id/ /metadata network subscription-timeout-minutes0/subscription-timeout-minutes paging enabled=false/ /network /properties /destination The two destinations are identical, except for the source class. I am using the compiler argument [-services C:\workspace\flex\src\main\webapp\WEB-INF\flex\services-config.xml], which points to the correct services-config.xml file. The task DataService is created in ActionScript like so: // Create a datasource __ds = new DataService(tasks); __ds.cacheID = ExpTasks; __ds.autoSaveCache = false; __ds.autoConnect = false; __ds.autoCommit = false; __ds.addEventListener(DataConflictEvent.CONFLICT, onDataConflict, false, 0, true); __ds.addEventListener(DataServiceFaultEvent.FAULT, onDataServiceFault, false, 0, true); // Connect to datasource connect(); The connect() method just registers some event listeners and then calls __ds.connect(). The whole point to this is that we intend to replace our 30 Java delegates and 130+ remote methods with DataServices so our application can run in offline mode (assuming there's cached data). If there's a better way to do this, I'm open to suggestions. Thanks, Geoff --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: Yeah, it looks like somehow you are getting a DataService trying to use a DirectHTTPChannel. That only works for for HTTPService, and WebService. DataService needs a channelSet which supports AMF (AMFChannel, or RTMPChannel). I'm confused how you are getting into this situation though... those get created on the client via the endpoint property on some services or you can define one explicitly in ActionScript or MXML. Can you show how this tasks destination is getting defined in ActionScript? How is its channelSet specified - on the client via the channelSet property or on the server? If it is on the server, make sure you are compiling against the services-config.mxml file (it is a project/compiler option). Jeff From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Geoffrey Sent: Sunday, September 21, 2008 5:04 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: LCDS: Debug RTMP Traffic TraceTarget reported the following when the UI with the second DataService loads: 'C44F8220-F189-21B2-CC03-874C13991A33' producer set destination to 'DefaultHTTP'. 'direct_http_channel' channel endpoint set to http://localhost:8080/main/ 'cds-consumer-tasks-null' consumer set destination to 'tasks'. Configuration for destination='tasks': properties metadata identity property=id/ /metadata network paging enabled=false/ /network use-transactionstrue/use-transactions /properties New DataService for destination: tasks '19BCB91C-2215-DC18-D015-874C6044FDA8' producer set destination to 'tasks'. Creating a new independent data store for destination: tasks Adding data service: tasks to the data store: null initialized: false LSODatabase close(): null TaskDS.as: Connecting to DataService. 'ds-producer-tasks' producer connected.
Re: [flexcoders] [Bindable] is not getting updated..
sorry, use this BindingUtils.bindProperty(this,xyz,MyModel.getInstance,someVar); Thanks, with Regards, Jitendra Jain Software Engineer 91-9979960798 - Original Message From: jitendra jain [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, 22 September, 2008 9:03:42 AM Subject: Re: [flexcoders] [Bindable] is not getting updated.. Hi, Instead of this use BindingUitls. bindProperty( this,xyz ,MyModel, getInstance( ).someVar) ; This statement is called in the creationComplete of the component. Cheers it will work.. Thanks, with Regards, Jitendra Jain Software Engineer 91-9979960798 - Original Message From: Manu Dhanda manuraj.dhanda@ gmail.com To: [EMAIL PROTECTED] ups..com Sent: Monday, 22 September, 2008 8:56:09 AM Subject: Re: [flexcoders] [Bindable] is not getting updated.. Josh, Is it a right way to do the following: [Bindable] private var xyz:String = MyModel.getInstance ().someVar; Now, if I use xyz in my code then it is not updated. Where as if i use 'MyModel.getInstanc e().someVar' then I am getting perfect result. For Ex: mx:Label text={xyz} / // view not updated with changes in model. mx:Label text={MyModel. getInstance( ).someVar} / //view updated everytime with changes in model.. So, I didn't get the difference between two above logically. Please explain the case as above. Thanks. Josh McDonald-4 wrote: I get what you're saying, but you're coming at it from the wrong angle is all. When you have this: [Bindable] public var myvar = someFunction( ); You're making it so that *other code* will be called when myvar changes. You're also giving it the initial value of someFunction( ). It won't escape back into the code for someFunction( ) and alter it so it becomes bindable. We need to have a difference betwen X = Y and create a binding from X to Y, otherwise the entire virtual machine would slow to a crawl. If you want to create a binding from actionscript from sourceObject. someValue to myValue you do this: BindingUtils. bindProperty( this, myValue, sourceObject, someValue) ; Then whenever sourceObject tells the word that someValue has been updated (with events), Flex will set the myValue field on your object. -Josh On Mon, Sep 22, 2008 at 1:07 PM, Manu Dhanda manuraj.dhanda@ gmail.comwrote: Hi Paul, if [Bindable] works just for initialization, then I think it is loosing it's existence altogether. At least I think it this way.. that [Bindable] changes with every change that it is bind to. And not just it's initialization. . Waiting for expert comments.. Thanks, Manu. Paul Andrews-4 wrote: - Original Message - From: Manu Dhanda manuraj.dhanda@ gmail.com To: [EMAIL PROTECTED] ups.com Sent: Monday, September 22, 2008 3:08 AM Subject: [flexcoders] [Bindable] is not getting updated.. Hii Guyz, Although it's very strange (even for me), but this [Bindable] tag is not working for me. I am following the cairngorm structure and storing a variable in Model. Now, in one of my code file, if I 'll create a local bindable variable, that binds to model.. then it is not being updated with the changes in model. [Bindable] private var xyz:String = MyModel.getInstance ().someVar; Now, if I use xyz in my code then it is not updated. Where as if i use 'MyModel.getInstanc e().someVar' then I am getting perfect result. Any thoughts here... Yes, some thoughts. [Bindable] private var xyz:String = MyModel.getInstance ().someVar Means that xyz is bindable and is initialised with the value of MyModel.getInstance ().someVar . It does not mean that xyz changes with the value of MyModel.getInstance ().someVar . If you wish to have a binding in an mxml file to MyModel.getInstance ()..someVar then use {MyModel.getInstan ce().someVar }, alternatively in actionscript you'll have to specifically set up a binding for it. Paul Regards, Manu. -- View this message in context: http://www.nabble. com/-Bindable- -is-not-getting- updated.. -tp19600797p1960 0797.html Sent from the FlexCoders mailing list archive at Nabble.com. - - -- -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= 942dbdc8- e469-446f- b4cf-1e62079f684 7 Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups Links -- View this message in context: http://www.nabble. com/-Bindable- -is-not-getting- updated.. -tp19600797p1960 1220.html Sent from the FlexCoders mailing list archive at Nabble.com. - - -- -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Alternative FAQ location: https://share. acrobat.com/
[flexcoders] Re: Preventing cutpaste in Flex3 application
Hi Paul, Here is the example: there is a text input field where you can enter only digits and a dot sign, nothing else. If you use restrict=0123456789. property - it's fine until user copy-pastes the string from somewhere else. If you allow c-n-p you have to do complex validation and point user to the invalid input. If you have 20 text input fields - this solution just sucks. All this Flex error tooltips and dumb error message boxes (20 errors - 20 popups) are bad, very bad. So, the simplest and just working solution is to disable copy- paste. This is probably what is called Apple solution - do not allow users to think too much, if it is not allowed - they don't need it, anyway.(c) And surprisingly, this works quite well. And as I said before, if TextInput control has a restrict property, it should be able to disable copy-pasting, otherwise it is useless, and sometimes dangerous, as not so many developers realise that setting this property does not protect them from the invalid input. Cheers, Dmitri. --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: Dmitri Girski [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, September 21, 2008 1:28 PM Subject: [flexcoders] Re: Preventing cutpaste in Flex3 application --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: Good software is all about enabling people not disabling them. This is just a meaningless statement. I think it's more of a guiding principle.. You can't enable everything for everyone in any possible way. That wasn't my suggestion. First, good software does whatever it is supposed to do. .. and more. Then comes the rest (including copy-paste). Even the OP agrees it's not a good idea to restrict copy-paste. Just to clarify Dmitri, my point was that the focus of software should be to enable people to do whatever they wish and not hamper them in that pursuit without very good reason. Paul Cheers, Dmitri.
Re: [flexcoders] Re: Preventing cutpaste in Flex3 application
I have to say that the solution to this problem is data validation, or simply fixing what sure looks like a bug in TextInput. You can't disable something as good for users as copy and paste simply because as a coder you're too lazy to validate the input. Well, you can, but your customers will notice, and your app will feel weird to them and they won't like it so much. -Josh On Mon, Sep 22, 2008 at 1:52 PM, Dmitri Girski [EMAIL PROTECTED] wrote: Hi Paul, Here is the example: there is a text input field where you can enter only digits and a dot sign, nothing else. If you use restrict=0123456789. property - it's fine until user copy-pastes the string from somewhere else. If you allow c-n-p you have to do complex validation and point user to the invalid input. If you have 20 text input fields - this solution just sucks. All this Flex error tooltips and dumb error message boxes (20 errors - 20 popups) are bad, very bad. So, the simplest and just working solution is to disable copy- paste. This is probably what is called Apple solution - do not allow users to think too much, if it is not allowed - they don't need it, anyway.(c) And surprisingly, this works quite well. And as I said before, if TextInput control has a restrict property, it should be able to disable copy-pasting, otherwise it is useless, and sometimes dangerous, as not so many developers realise that setting this property does not protect them from the invalid input. Cheers, Dmitri. -- Therefore, send not to know For whom the bell tolls. It tolls for thee. http://flex.joshmcdonald.info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] Re: Framework RSLs -- Any Reason Not To Use? Any Problems Related to Their Use?
That does seem odd. If you have any sample that we can use to reproduce please file it and let us know. Matt On 9/21/08 1:30 AM, Dmitri Girski [EMAIL PROTECTED] wrote: Hi Matt, I've got unconfirmed problem with RSLs - the loader *sometimes* is stuck while loading the libraries. I am unable to create an isolated test-case, but this thing popped in immediately after I converted the project into the RSLs. The problem seems to be highly discoverable if you run the app on the local machine, and appears rarely if you serve the app from a remote web server. And nothing else besides that :) Cheers, Dmitri. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin [EMAIL PROTECTED] wrote: I haven't heard of any :-) On 9/8/08 1:26 PM, greg h [EMAIL PROTECTED] wrote: Hi, I am on a team that is pushing into production a public facing Flex application on the Internet. We have configured the app to use the Flash Player's caching of the Framework RSL. Before going live, I am posting here to see if anyone has experience that causes them to caution against using the Framework RSL (e.g. framework_3.0.0.477.swz)? I have seen the following post by Dmitri Girski's with his analysis on where RSLs offer the most benefit (Thanks Dmitri :-): http://tech.groups.yahoo.com/group/flexcoders/message/108149 But I have not had luck tracking down any horror stories. I certainly am heartened by this lack of horror stories. However, if by using the Framework RSL we might be introducing any risks or pitfalls, we sure would prefer to know before we go live, rather than hear about them from our customers ;-) If anyone might have advice they are willing to share, we would be most appreciative if you could be so kind as to share your experiences. Thanks, g