[flexcoders] GIS and Flex
Hi All, Does anybody have idea how to implement gis(geographyical information system) in flex with the gis data in it. What kind of gis data format files the flex requires so that i can retrieve the data and display it in the UI. Thanks Bollywood, fun, friendship, sports and more. You name it, we have it on http://in.promos.yahoo.com/groups
[flexcoders] Re: Bidirection databinding with states
--- In flexcoders@yahoogroups.com, florian.salihovic [EMAIL PROTECTED] wrote: I'm trying to create a little application, which consists of multiple states and forms. When i try to establish a bidirectional databing connection between my model (a simple XMLListCollection) and my controls, it simply won't work. So does anybody have some pointers for me how to initialize databinding when using states? Best regards
Re: [flexcoders] GIS and Flex
On Fri, Mar 14, 2008 at 7:52 AM, kapil b [EMAIL PROTECTED] wrote: Hi All, Does anybody have idea how to implement gis(geographyical information system) in flex with the gis data in it. What kind of gis data format files the flex requires so that i can retrieve the data and display it in the UI. Have a look at esri (http://www.esri.com). I think they have some cool api to let you display GIS data in your Flex apps. Also, have a look at mapquest (http://www.mapquest.com) Another solution is to use yahoo or google maps. I don't know how that works, so you better wait for someone to reply to that. All the best, Fidel.
[flexcoders] Re: independent vertical scrolling in hbox elements
It works if I add height=150 to the sidebar. --- In flexcoders@yahoogroups.com, dfalling [EMAIL PROTECTED] wrote: This seems like a really simple question, but I can't figure it out... I have a two-column view and want the columns to scroll independently of each other (if one needs to scroll, then it will show scrollbars.) I've tried dozens of combinations of height and can't get it to work. Either neither columns scroll, or both scroll together. Here's a basic example I'm trying. The sidebar below is too tall, and causing the entire interface to scroll. mx:HBox height=150 width=100% backgroundColor=#efefef mx:VBox id=sidebar width=200 mx:VBox backgroundColor=#33 height=250 width=100%/ /mx:VBox mx:VBox id=main mx:Text fontWeight=bold fontSize=16 text=main/ /mx:VBox /mx:HBox
[flexcoders] Export To Outlook. in flex
Hi I need to implement Export To Outlook feature in flex application. . I got data from response which I need to export to Outlook Calendar. could anyone give tips. Thanks Bhaskar. - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Re: [flexcoders] GIS and Flex
kapil b wrote: Does anybody have idea how to implement gis(geographyical information system) in flex with the gis data in it. what do you mean by with the gis data in it? you mean to develop a flex app to replace a desktop GIS like arcMap w/the data local to the client? if so, that's a tall order. if you mean to just talk to a GIS server then as suggested esri, yahoo or google will do. flex libs (at least flex 2.x libs) are available for all of these services. What kind of gis data format files the flex requires so that i can retrieve the data and display it in the UI. images. esri shapefile. SVG (maybe via degrafa).
[flexcoders] Re: need help with XML predicate filtering
I tried that too and it came up empty too. I tried it without the klass node as I was miss reading the root, but that still didn't work. when I printout courseList.depts.dept.(name == needle) it returns all the name nodes like I expect but I want to get the klass node that is parented two levels up. Maybe it can't be done, most examples I've seen only return one parent node up from what they are searching for. be well, Hoyt --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Did you try: courseList.klass.(depts.dept.name==needle) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 7:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: need help with XML predicate filtering Hmmm ... doesn't seem to work. When I use the parent() method nothing is returned: tempXMLList = courseList.klass.depts.dept.(name==needle).parent().parent() --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: Immediate parent. So that would be depts. parent().parent() should return klass Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 5:31 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: need help with XML predicate filtering will that return it's immediate parent or the one all the way at the top? so tempXMLList = courseList.klass.depts.dept.(name==needle).parent() returns klass and not depts - right? Thanks, hoyt --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: .parent() will return the parent node. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 3:53 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] need help with XML predicate filtering Hello, I have an XML file which consists of a list of classes and it's attributes (teacher, length, category, etc., etc., ...) Classes can belong to different depts. I want to be able to grab all the classes and their attributes that are part of a certain dept. The dept nodes is a child of the class node. I can filter out the xml file to find all the nodes whose dept value equals the dept I am looking for, but I don't know how to return the main parent node. here is the xml file : klasses klass id=0 titleklass A/title length unit=hr1.5/length categorycore/category depts dept nameart/name /dept dept namepe/name /dept dept namemodeling/name /dept dept nameanimation/name /dept /depts /klass klass id=1 titleklass B/title length unit=hr1.5/length categorycore/category depts dept namer and d/name /dept dept nametd/name /dept dept namelighting/name /dept dept namematte painting/name /dept /depts /klass ... ... ... /klasses I get the xml file from: courseList = evt.result.klass // I want to get all klass objects that has art as one of the dept.name nodes var needle:String = art I try using this predicate filter but it only returns a XMLLIst that consists of nameneedle/name tempXMLList = courseList.klass.depts.dept.(name==needle) what I want returned is: klass ... ... ... /klass klass ... ... ... /klass ... ... ... where inside klass ... /klass at least one of the dept.name nodes is equal to art I know it's probably simple but I can't seem to get the syntax right. I've looked at a lot of examples but they don;t make sense to me and most don't deal with anything deeper than a single level. I can't seem to find any good documentation on predicate filtering either. I appreciate any help, its kinda got me stuck from moving forward on this development project. I am still a novice on all this stuff. Thanks. be well, Hoyt
[flexcoders] Subclassed PopupButton in a module and external F\work rsl - Not Popping Up
I have subclassed the popupbutton to include a data grid (advanced or std) to create a multi-column combo box. This has all worked fine in Flex 2.0. In Flex 3 when the same component is used in a module that has the framework as external rsl's and deployed to JBoss it fails to popup. The data is set into the grid, but it appears that the commitProperties() is not being called and therefore the popup listeners not being added, but I am not 100% sure of this. When I put the same component into a project that has the framework merged into code and run locally from the filesystem it works fine ! Has anyone else seen something like this ? I have seen the issues relating to the popup being removed from stage but I don't think this is happening although I haven't tried to test for this. Any advise appreciated Thanks BOb
[flexcoders] Re: Flash For linux
I can do samething with linux, I can use virtualisation but it is not my point. I want to use all softwares natively as it is. By the way I tryed nvu as a html editor it works quite good and looks like dreamweaver. it wort to try.
RE: [flexcoders] Re: Timed Reminder System
Is there a version of the toast alert for simple Flex (rather than AIR)? Running in the browser rather than the desktop... It would suit my needs very nicely! Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abyss Knight Sent: 13 March 2008 17:03 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Timed Reminder System I haven't seen anything like that, but there is no reason it couldn't be created. Just set a timer to run each minute, check for reminders, and dispatch the events. One neat thing I just found the other day was the EverythingFlexAIR1.swc which lets you do little popups in the corner of the user's screen. Pretty neat stuff! -- William
[flexcoders] Multiple sorting in datagrid
Hi, I want to know if is possible to build sth like: | Column Header 1| Col Header 2 | | Sub Header 1 s Sub Head 2 s Sub Head 3 | | | value of sub header 1 s value of sub head 2 | value | | value of sub header 3 | | | ... where s is spacer and my problem is if it's possible to do sorting on the Sub Header 1, Sub Header 2 and Sub Header 3 (one column - 3 values) in Datagrid maybe do you have any example of sth similar thanks david -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex 3 Export Source Bug?
Hi All I have uploaded a project here with source code here: http://giles.roadnight.name/Carousel/srcview/index.html All the source code is there ok but when you download the zip there are no mxml / as files in there. I can't remember if I built this with Flex 3 Beta or the release version. Has anyone else had this problem? Thanks Giles
Re: [flexcoders] Export To Outlook. in flex
O - I feel a very handy tool in the making - syncing outlook with Google calendar :) waits with interest for answer On Fri, Mar 14, 2008 at 7:07 AM, bhaskar M [EMAIL PROTECTED] wrote: Hi I need to implement Export To Outlook feature in flex application. . I got data from response which I need to export to Outlook Calendar. could anyone give tips. Thanks Bhaskar. -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- Giles Roadnight http://giles.roadnight.name
Re: [flexcoders] Export To Outlook. in flex
Last year I needed to output reports that I was showing in a Flex app to MS Word documents. I did this on the back end by generating Open XML documents that MS Word 2003 or later could understand from my servlet. A very quick Google search turned up this article http://office.microsoft.com/en-us/outlook/HA101687211033.aspx which seems to imply that there is an Open XML format for Office Calendar as well. So... (provided that your targeted version of outlook supports the OpenXML format) my suggestion would be to get the spec for that open XML format and generate a document that contains your data. Note: if you want to be even more open than that, see if you can find the XML spec used by open office and verify that your version of outlook can read in docs that use that schema. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com Giles Roadnight wrote: O - I feel a very handy tool in the making - syncing outlook with Google calendar :) waits with interest for answer On Fri, Mar 14, 2008 at 7:07 AM, bhaskar M [EMAIL PROTECTED] wrote: Hi I need to implement Export To Outlook feature in flex application. . I got data from response which I need to export to Outlook Calendar. could anyone give tips. Thanks Bhaskar. -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
[flexcoders] Updating flash version w/in Flex
Is there any way to go through the player update process w/in a Flex application? My problem is I want to be able to embed my application and have it detect and update user's flash version w/out using Javascript. The version detection kit from adobe only contains AS2 code which obviously won't work w/in a Flex application. Any ideas? Thanks, Sam
Re: [flexcoders] Re: Flash For linux
Well, I wish I could run they natively, too. However, virtualization is the only option currently (or use wine, but I find wine to be too buggy for any serious-use). Again, hoping that Adobe will release native versions of their software (Photoshop, Flash IDE and Flex IDE) for Linux soon! Lack of good, professional software like this is one of the main factors that pushes back the adoption of linux desktop workstations. I'm not an open source freak. I love Open Source, but I do pay for good software... why not? Gimp is not an option. As for Linux being difficult, that shouldn't be the case. There are distros. for everyone - for those who like the straightforwardness of Windows there is the excellent Ubuntu and for the control freak there is Gentoo ;) Anyways, the point is that Windows has not the supremacy it used to have a long time ago. Cross-platform development should be top priority for **any** softwarehouse. On Fri, Mar 14, 2008 at 6:01 AM, Deniz Davutoglu [EMAIL PROTECTED] wrote: I can do samething with linux, I can use virtualisation but it is not my point. I want to use all softwares natively as it is. By the way I tryed nvu as a html editor it works quite good and looks like dreamweaver. it wort to try.
[flexcoders] Re: Sources for Charts cannot be found in datavisualization.swc
Source will be extracted and you can reach to that by F3 key but for that you need to provide valid professional key a fresh. If flex builder is re installed then the old key is not removed so license extraction is not triggered. solution here is you need to delete the license file under C:\Documents and Settings\All Users\Application Data\Adobe\Flex and then give your professional key again.
[flexcoders] mx:HTML tag in Flex Projects!
Hi all. I have a question: you know about mx:HTML tag in AIR projects in Flex Builder 3.0 and how it's working. Can we use this tag in a Web Project (Flex-Based)? there is no way in a common. if there is specific solution please help me. thanks for your replies. Borna
[flexcoders] Flex 3.0 + Java + Hibernate + Granite + Cairngorm
Hi all. I have developed one application using Flex3.0, Java, Granite and Hibernate and was so funny and very interesting. My next step is use the Cairngorm framework to make it more scalable I don´t know which version of Cairngorm i should useand i don´t know so much about this framework for RIA applications... I would like to know is there is able one manual explaining the step i must follow for use it. Thanks in advance See you.
Re: [flexcoders] Flex 3.0 + Java + Hibernate + Granite + Cairngorm
I found this series of articles http://www.adobe.com/devnet/flex/articles/cairngorm_pt1.html very helpful when I was getting started with Cairngorm. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com txakin wrote: Hi all. I have developed one application using Flex3.0, Java, Granite and Hibernate and was so funny and very interesting. My next step is use the Cairngorm framework to make it more scalable I don´t know which version of Cairngorm i should useand i don´t know so much about this framework for RIA applications... I would like to know is there is able one manual explaining the step i must follow for use it. Thanks in advance See you.
RE: [flexcoders] Custom component with custom style - help please
There is an example in the doc explaining this process: http://livedocs.adobe.com/flex/3/html/skinstyle_3.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Thursday, March 13, 2008 10:47 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Custom component with custom style - help please I assume you removed the getter/setters? Try: .wax { waxColor: #F0F0F0; } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dbronk Sent: Thursday, March 13, 2008 7:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom component with custom style - help please I've made a custom component and on it I want to place a custom style named waxColor. I started by simply creating getter/setters for waxColor. Worked great when I include waxColor=#F0F0F0 to the mxml, but I want this to be property driven. So I added [Style(name=waxColor, format=Color, type=unit, inherit=no)] to my as file. I then coded: override public function setStyle(styleProp:String, newValue:*) : void override public function styleChanged(styleProp:String) : void override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void to do what I needed. In my component that instantiates my custom component I do myComp.setStyle(waxColor, 0xF0F0F0) and it works great. But, the entire reason that I've added this as a style was that I wanted to control the color via a style sheet. So in my css file I added .wax { waxColor: 0xF0F0F0; } and removed the setStyle code. Now my mxml does not have waxColor=#F0F0F0 and instead has styleName=wax. This does not work. I have trace statements in all of my overridden functions and while styleChanged gets triggered, never with styleProp of waxColor. setStyle is never called. What am I doing wrong? I really want waxColor to be able to be set via my css file. Thanks, Dale
[flexcoders] Re: Sources for Charts cannot be found in datavisualization.swc
I believe this has to do with thte fact that the data visualization components aren't released as open source. So even though you have the pro version and don't have the watermark, you still don't get to see the code. --- In flexcoders@yahoogroups.com, Ljuba M [EMAIL PROTECTED] wrote: When i command-click on an mxml tag for, say, BarChart or any other data visualization component, I get the error: Source could not be found for mx.charts.BarChart in /Applications/ Adobe Flex Builder 3/sdks/3.0.0/frameworks/libs/datavisualization.swc I have no problem viewing the source of regular flex components, just the charting ones. Â I'm running Flex Builder 3 Pro. Â Please help.
[flexcoders] Re: Adding Flex Server to existing Project
What do you mean, Flex Server? -- William --- In flexcoders@yahoogroups.com, Anthony Cintron [EMAIL PROTECTED] wrote: Is it possible to add a Flex Server to an existing project. Everywhere I look, demonstrates it by creating a new project. - Never miss a thing. Make Yahoo your homepage.
[flexcoders] Re: GIS and Flex
Check this out: http://www.adobe.com/devnet/flex/articles/dashboard_ilog.html -- William --- In flexcoders@yahoogroups.com, kapil b [EMAIL PROTECTED] wrote: Hi All, Does anybody have idea how to implement gis(geographyical information system) in flex with the gis data in it. What kind of gis data format files the flex requires so that i can retrieve the data and display it in the UI. Thanks Bollywood, fun, friendship, sports and more. You name it, we have it on http://in.promos.yahoo.com/groups
Re: [flexcoders] Presenting at a user group meet regarding Flex + PHP...
On Thu, Mar 13, 2008 at 03:02:34PM -0600, Beau Scott wrote: If ya?ll have any other topic recommendations, I?m all ears J Using PHP's SoapServer class to expose PHP classes to Flex. No need for AMFPHP. And the resultant services communicate in a standard format and can be consumed by other environments aside from the Flash player. -Jeff
[flexcoders] convert flex to air
What is the best way to convert my flex application to an air application in flex builder?
Re: [flexcoders] Re: independent vertical scrolling in hbox elements
But then the sidebar has knowledge of its container's height. If the container is resized, the sidebar will not resize. I simply made the outer container 150px to force scrolling and point out the problem. On Fri, Mar 14, 2008 at 2:01 AM, arieljake [EMAIL PROTECTED] wrote: It works if I add height=150 to the sidebar. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dfalling [EMAIL PROTECTED] wrote: This seems like a really simple question, but I can't figure it out... I have a two-column view and want the columns to scroll independently of each other (if one needs to scroll, then it will show scrollbars.) I've tried dozens of combinations of height and can't get it to work. Either neither columns scroll, or both scroll together. Here's a basic example I'm trying. The sidebar below is too tall, and causing the entire interface to scroll. mx:HBox height=150 width=100% backgroundColor=#efefef mx:VBox id=sidebar width=200 mx:VBox backgroundColor=#33 height=250 width=100%/ /mx:VBox mx:VBox id=main mx:Text fontWeight=bold fontSize=16 text=main/ /mx:VBox /mx:HBox
[flexcoders] performace issue with repeating same component
Hi, I have a performance issue with a screen that is composed of many (lets say up to 40) identical childs. The number of childs is decided at run-time, something like this: var parentBox:VBox = new VBox(); for each (var data:XML in datas) { var chart:MyComp = new MyComp() parentBox.addChild(chart); chart.init(data); } Here MyComp is a complex component with many buttons, vboxes and a chart (and other stuff). The rendering of parentBox takes very long (alomst 7 seconds on a QuadCore machine). Because all the chart-components are exactly the same, except for the chart-data that is passed through the init(), is there a way to clone components to speed up performance? Or something else? Cheers, Andrej
[flexcoders] Re: Why are modules so buggy?
Hi Alex, We are using ModuleLoader so the GC thing shouldn't be an issue. (I tried it with ModuleManager this morning to no avail either.) The animation is just a placeholder at this point so its just a 10 frame tween created in Flash CS3 with a stop() at the beginning and end. When it finishes loading we tell it to play(). The speedup is only present when I add the demon button with addChild() instead of rawChildren.addChild() so I don't think it is related to any intentional framerate increases. I did what you suggested and checked that the module exists, has the correct parent, correct x, y, width and height and all of those properties return the expected values. Not sure what you mean about checking invalidation flags though. More weirdness in today's testing: Our basic setup is that we have a few ModuleLoaders that are on stage and sized but have visibility set to false and we don't give them a url value until we want them to load. When they've finished loading we turn them visible. If I set visible to true and set url to the specified module swf the application never gets out of frame one. The progress bar shows the load completing in the sense that the bar is full width but thats it. The progress bar stays on stage and the app just sits. We never see our actual application stage. So. Con. Fused. Thanks for your help, Ben --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Well, it doesn't ring any bells, but someone else hit a problem where they were loading the module twice and timing issues from the module being cached in the browser cache affected whether it worked or not. The classic no-show problem is when the IModuleInfo handle returned from ModuleManager is kept only in a local variable to the function that calls ModuleManager.getModule Then a GC can punt the module and that can happen randomly. If you are using ModuleLoader, you won't run into this problem. How does the animation SWF work? Is it code-based, frame-based, timer-based? We pump up the frame-rate during app startup, so that could affect animations. I guess I would start by proving after no-show that the module actually exists, and introspect it for sizes, parenting, invalidation flags, etc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, March 13, 2008 8:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Why are modules so buggy? Thanks Alex. Unfortunately, and as usually seems to be the case, this is happening inside of a fairly complex structure. Something else I just noticed though is also strange. When the app loads we have a SWF that gets loaded and plays an animation before presenting a button that can be clicked which takes you to the module. When the problem arises as I originally described, the intro animation also plays much quicker than usual. Its at least twice as fast as the SWF plays when the problem is not present. Does that give you any clues? Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: It is a known bug that % width/height doesn't work in modules and using percentWidth/Height is the workaround. Can't think of any reason for the second behavior. I'll look at a test case if you want. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Thursday, March 13, 2008 7:04 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Why are modules so buggy? I've admittedly only been using them for a short time but they seem phenomenally fickle. Our basic setup is that we have States defined in the main app, each of which holds a module and sets its visibility accordingly. Couldn't be much more straightforward. The other day my module stopped appearing when I set the layout property of one of its child components (TeaserWindow). The way I ended up fixing it was by changing the mx:Module tag from width=100% height=100% to percentWidth=100 percentHeight=100. Today my module has stopped showing up when I changed one of TeaserWindow's child components (a Button) from being added to rawChildren to being added as a regular child. TeaserWindow has 3 child buttons and only this specific one being in children causes this issue. The (totally illogical) fix of using percentWidth and percentHeight is not preventing this latest absurd behavior. I am at a complete loss as to how the child composition of a child of the Module or the layout mode of a child could cause the entire module not to show. Note that even when it doesn't show it reports its visible property as true and width
[flexcoders] Adobe RIA Architect Summit 2008 - 03 April - Bangalore, India
It's summit time again folks ! You might recollect the RIA Leadership Summithttp://raghuonflex.wordpress.com/2007/10/30/shantanu-in-bangalore/that happened when Shantanu was in Bangalore, which saw industry leaders from various IT Companies from across India attended the talk about Adobe's vision and plans for the Rich Internet Application space. Since then, the India RIA scene has been more dynamic than ever and there has been an increasing demand for insights into architecture design principles around RIAs. As an acknowledgment to this Adobe brings *The RIA Architect Summit*. *What is in it for me?: * - Hear *Naresh Gupta* (MD, Adobe India), *David Wadhwani* (VP, Platform BU, Adobe) share the exciting future of RIAs using Flex AIR - Meet acclaimed evangelists *James Ward* *Ben Forta * - Hear about the success stories of leading IT Enterprises who have adopted Flex AIR. - Experience RIAs built on Adobe platforms and hear from the teams that built them *Who should attend ? :* Architects, Technical Managers and Strategic Decision Makers *When Where? :* Date : 03 April '08 Venue : The Chancery Pavillion, Bangalore *How do I get in?: * Register ASAP at http://adoberiarch.eventbrite.com/ Hurry! Registrations on a First Come First Serve basis…
[flexcoders] Re: Custom component with custom style - help please
I actually did have waxColor: #F0F0F0, simply a typo when posting to the forum. I did remove the getters/setters and it still did not work. I started looking at different things and found out that setStyle and styleChanged are simply not called when styles are set via a css. I think this is very bad, but I was able to work with it. This did tell me that the styles were actually being set, but since I had code in the styleChanged to set a boolean, I now simply do the check in updateDisplayList which actually is a bit easier to follow code. I still believe that styleChanged should be called no matter how the style is changed. Thanks for you help. It didn't answer my question, but it led me to look in the right place which is better because I learned something else. Dale --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I assume you removed the getter/setters? Try: .wax { waxColor: #F0F0F0; } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dbronk Sent: Thursday, March 13, 2008 7:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom component with custom style - help please I've made a custom component and on it I want to place a custom style named waxColor. I started by simply creating getter/setters for waxColor. Worked great when I include waxColor=#F0F0F0 to the mxml, but I want this to be property driven. So I added [Style(name=waxColor, format=Color, type=unit, inherit=no)] to my as file. I then coded: override public function setStyle(styleProp:String, newValue:*) : void override public function styleChanged(styleProp:String) : void override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void to do what I needed. In my component that instantiates my custom component I do myComp.setStyle(waxColor, 0xF0F0F0) and it works great. But, the entire reason that I've added this as a style was that I wanted to control the color via a style sheet. So in my css file I added .wax { waxColor: 0xF0F0F0; } and removed the setStyle code. Now my mxml does not have waxColor=#F0F0F0 and instead has styleName=wax. This does not work. I have trace statements in all of my overridden functions and while styleChanged gets triggered, never with styleProp of waxColor. setStyle is never called. What am I doing wrong? I really want waxColor to be able to be set via my css file. Thanks, Dale
[flexcoders] Re: performace issue with repeating same component
You may want to mess with the new profiler to figure out where the bottleneck is but my initial guess at the bottleneck is the layout of the components. If you've got a whole bunch of relative sizing of positioning of the children that can chew up a lot of time. This is where you set the width and height properties of child components to a percentage of the parent, also this applies to setting the top, left, right and bottom properties. You may want to do some of this layout yourself. Ryan --- In flexcoders@yahoogroups.com, mavdzee [EMAIL PROTECTED] wrote: Hi, I have a performance issue with a screen that is composed of many (lets say up to 40) identical childs. The number of childs is decided at run-time, something like this: var parentBox:VBox = new VBox(); for each (var data:XML in datas) { var chart:MyComp = new MyComp() parentBox.addChild(chart); chart.init(data); } Here MyComp is a complex component with many buttons, vboxes and a chart (and other stuff). The rendering of parentBox takes very long (alomst 7 seconds on a QuadCore machine). Because all the chart-components are exactly the same, except for the chart-data that is passed through the init(), is there a way to clone components to speed up performance? Or something else? Cheers, Andrej
Re: [flexcoders] Re: GIS and Flex
I built a simple quick and dirty map in Flex using geocoded data, a Map image and a Plot chart from built-in charting. Its not Google maps but gets the job doneand is totally self-contained. http://www.magazooms.com/images/sampleMap.gif I have worked with Yahoo maps, ESRI, and MapQuest and prefer MapQuest even though it comes with significant fees. Abyss Knight wrote: Check this out: http://www.adobe.com/devnet/flex/articles/dashboard_ilog.html http://www.adobe.com/devnet/flex/articles/dashboard_ilog.html -- William --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, kapil b [EMAIL PROTECTED] wrote: Hi All, Does anybody have idea how to implement gis(geographyical information system) in flex with the gis data in it. What kind of gis data format files the flex requires so that i can retrieve the data and display it in the UI. Thanks Bollywood, fun, friendship, sports and more. You name it, we have it on http://in.promos.yahoo.com/groups http://in.promos.yahoo.com/groups -- Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Re: Flash For linux
On Friday 14 Mar 2008, Marcelo de Moraes Serpa wrote: Again, hoping that Adobe will release native versions of their software (Photoshop, Flash IDE and Flex IDE) for Linux soon! Flex Builder for Linux is in public trials on labs.adobe.com right now. It's fine for day to day use. Anyways, the point is that Windows has not the supremacy it used to have a long time ago. Cross-platform development should be top priority for **any** softwarehouse. This is why even Microoft is trying to promote Silverlight as cross platform. -- Tom Chiverton Helping to administratively iterate holistic markets on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Reloading application in stand alone player
I was trying to find the reference for this but couldn't find it through Google for some reason. Anyhow, you can replace the main SWF by using this code: navigateToURL(new URLRequest(newURL), '_level0'); Where new URL can be any SWF. If you want to simply reload the current SWF, use: var newURL:String = loaderInfo.loaderURL; On Fri, Mar 14, 2008 at 12:17 AM, Alex Harui [EMAIL PROTECTED] wrote: If your application uses model-view or MVC architecture, you can reset the model to restart the app. Similarly, if the view portion uses states, you can reset to the default state to reset the view. You can use fscommand to kill the current standalone player and leave the new window up. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo Kirkner Sent: Thursday, March 13, 2008 1:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Reloading application in stand alone player Hi, I am trying to find out how I can reset my application to the state it was in when first loaded (or even better, to reload the application). I know that when embedding the application in a web browser I can use the navigateToURL method to achieve this, and it works good enough. The problem is, I want to play my application inside the flash player (so I can run it full screen) instead of using the browser. When running inside the flash player, the navigateToURL method cannot use the _self window, but can only open up a new window, so I need to find an alternate way to do this. Any ideas? Thank you in advance. -- Derek Vadneau
RE: [flexcoders] Presenting at a user group meet regarding Flex + PHP...
Performance reasons alone are enough to put preference in the AMFPHP 1.9 plugin when dealing with flash/flex interfaces… though I will probably show how to set up dual gateways (one SOAP one AMFPHP) so interoperability is not lost. Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, March 14, 2008 7:19 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Presenting at a user group meet regarding Flex + PHP... On Thu, Mar 13, 2008 at 03:02:34PM -0600, Beau Scott wrote: If ya?ll have any other topic recommendations, I?m all ears J Using PHP's SoapServer class to expose PHP classes to Flex. No need for AMFPHP. And the resultant services communicate in a standard format and can be consumed by other environments aside from the Flash player. -Jeff No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1328 - Release Date: 3/13/2008 11:31 AM No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.21.7/1328 - Release Date: 3/13/2008 11:31 AM image001.jpgimage002.jpg
Re: [flexcoders] Re: Sources for Charts cannot be found in datavisualization.swc
On Friday 14 Mar 2008, actionscript_czar wrote: So even though you have the pro version and don't have the watermark, you still don't get to see the code. Sure you do. If it doesn't unpack itself, you can use the java command line given in https://bugs.adobe.com/jira/browse/FBE-284 -- Tom Chiverton Helping to widespreadedly facilitate integrated bandwidth on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Custom itemRenderers for different rows
Let's say I have a dataGrid with just two rows and one column. If I want to have different itemRenderers for each row how would I do that? Thanks
[flexcoders] double sided h-scroll
Hello, I know everry time I ask for something:P this time I need doble sided h-scroll component to enter min an max values. does any one know some thing like that? Thanks
RE: [flexcoders] Re: need help with XML predicate filtering
What does the actual XML look like? Do you by chance have a namespace in the xml that you haven’t set to use in flex? Beau From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hoytlee2000 Sent: Friday, March 14, 2008 2:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: need help with XML predicate filtering I tried that too and it came up empty too. I tried it without the klass node as I was miss reading the root, but that still didn't work. when I printout courseList.depts.dept.(name == needle) it returns all the name nodes like I expect but I want to get the klass node that is parented two levels up. Maybe it can't be done, most examples I've seen only return one parent node up from what they are searching for. be well, Hoyt --- In HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Did you try: courseList.klass.(depts.dept.name==needle) From: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.com[EMAIL PROTECTED] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 7:04 PM To: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com Subject: [flexcoders] Re: need help with XML predicate filtering Hmmm ... doesn't seem to work. When I use the parent() method nothing is returned: tempXMLList = courseList.klass.depts.dept.(name==needle).parent().parent() --- In HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: Immediate parent. So that would be depts. parent().parent() should return klass Tracy From: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 5:31 PM To: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: need help with XML predicate filtering will that return it's immediate parent or the one all the way at the top? so tempXMLList = courseList.klass.depts.dept.(name==needle).parent() returns klass and not depts - right? Thanks, hoyt --- In HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: .parent() will return the parent node. Tracy From: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 3:53 AM To: HYPERLINK mailto:flexcoders%40yahoogroups.comflexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] need help with XML predicate filtering Hello, I have an XML file which consists of a list of classes and it's attributes (teacher, length, category, etc., etc., ...) Classes can belong to different depts. I want to be able to grab all the classes and their attributes that are part of a certain dept. The dept nodes is a child of the class node. I can filter out the xml file to find all the nodes whose dept value equals the dept I am looking for, but I don't know how to return the main parent node. here is the xml file : klasses klass id=0 titleklass A/title length unit=hr1.5/length categorycore/category depts dept nameart/name /dept dept namepe/name /dept dept namemodeling/name /dept dept nameanimation/name /dept /depts /klass klass id=1 titleklass B/title length unit=hr1.5/length categorycore/category depts dept namer and d/name /dept dept nametd/name /dept dept namelighting/name /dept dept namematte painting/name /dept /depts /klass ... ... ... /klasses I get the xml file from: courseList = evt.result.klass // I want to get all klass objects that has art as one of the dept.name nodes var needle:String = art I try using this predicate filter but it only returns a XMLLIst that consists of nameneedle/name tempXMLList = courseList.klass.depts.dept.(name==needle) what I want returned is: klass ... ... ... /klass klass ...
Re: [flexcoders] Stylizing menu items on a per item basis
I found the correct syntax for the overrides to be: public function get measuredBranchIconWidth():Number { return 10;} On 3/14/08, justSteve [EMAIL PROTECTED] wrote: I've found a sample of using a MenuItemRenderer at: http://blog.flexmonkeypatches.com/2007/10/08/flex-rounded-menues-using-masking/ However, under the current SDK the above code tosses: Interface method get measuredBranchIconWidth in namespace mx.controls.menuClasses:IMenuItemRenderer not implemented by class MyMenuItemRenderer. Adding: override public function get measuredBranchIconWidth():Number {} tosses: 1020: Method marked override must override another method. Sure would appreciate another pointer. thx --steve... On 3/13/08, Alex Harui [EMAIL PROTECTED] wrote: I don't have that, but I show how datagrid item renderers can color differently based on the data. Blogs.adobe.com/aharui itemRenderers category -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *justSteve *Sent:* Thursday, March 13, 2008 5:20 PM *To:* flexcoders *Subject:* [flexcoders] Stylizing menu items on a per item basis My menu items have to show 'state' in the sense that overdue items are highlighted. - any tutorials/samples showing something like that? thx much --steve...
RE: [flexcoders] Re: need help with XML predicate filtering
I have used parent().parent(). But Alex's expression looks better. Also, remember that you can use a separate function (that returns a boolean) to perform more complex logic. I have found that this sometimes is easier to keep track of than trying to do the whole expression inline. Approach this one step at a time. Use some temporary XML and XMLList variables, be verbose in the expressions, and use toXMLString() at every step, making sure you have what you expect. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hoytlee2000 Sent: Friday, March 14, 2008 4:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: need help with XML predicate filtering I tried that too and it came up empty too. I tried it without the klass node as I was miss reading the root, but that still didn't work. when I printout courseList.depts.dept.(name == needle) it returns all the name nodes like I expect but I want to get the klass node that is parented two levels up. Maybe it can't be done, most examples I've seen only return one parent node up from what they are searching for. be well, Hoyt --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Did you try: courseList.klass.(depts.dept.name==needle) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 7:04 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: need help with XML predicate filtering Hmmm ... doesn't seem to work. When I use the parent() method nothing is returned: tempXMLList = courseList.klass.depts.dept.(name==needle).parent().parent() --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: Immediate parent. So that would be depts. parent().parent() should return klass Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 5:31 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: need help with XML predicate filtering will that return it's immediate parent or the one all the way at the top? so tempXMLList = courseList.klass.depts.dept.(name==needle).parent() returns klass and not depts - right? Thanks, hoyt --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt tspratt@ wrote: .parent() will return the parent node. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of hoytlee2000 Sent: Thursday, March 13, 2008 3:53 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] need help with XML predicate filtering Hello, I have an XML file which consists of a list of classes and it's attributes (teacher, length, category, etc., etc., ...) Classes can belong to different depts. I want to be able to grab all the classes and their attributes that are part of a certain dept. The dept nodes is a child of the class node. I can filter out the xml file to find all the nodes whose dept value equals the dept I am looking for, but I don't know how to return the main parent node. here is the xml file : klasses klass id=0 titleklass A/title length unit=hr1.5/length categorycore/category depts dept nameart/name /dept dept namepe/name /dept dept namemodeling/name /dept dept nameanimation/name /dept /depts /klass klass id=1 titleklass B/title length unit=hr1.5/length categorycore/category depts dept namer and d/name /dept dept nametd/name /dept dept namelighting/name /dept dept namematte painting/name /dept /depts /klass ... ... ... /klasses I get the xml file from: courseList = evt.result.klass // I want to get all klass objects that has art as one of the dept.name
[flexcoders] DateField disabledRange attribute setting?
Hi, I want to limited DateField and let only select date in current year.I want to set the disabledRange propery, Do you have a idea how to set it? mx:DateField x=160 y=129 disabledRange=?/ Please help me.Thanks Mark
[flexcoders] mxmlc help
I have a flex project (MyProjectA) which references a MyProjectB via the Flex Build Path (Source path tab) properties window. This builds fine in flexbuilder but when I try to replicate the build using the mxmlc command-line, I just cant get it to work. I tried the following mxmlc C:\MyProjectA\test.mxml -compiler.source-path C:\MyProjectB C:\MyProjectA -output C:\test.swf but doesn't work. any ideas? thanks
[flexcoders] When is Flex going to support real Web Services?
Hello there, I find the XML Schema limitations described by the Adobe Flex3 docs ( here http://livedocs.adobe.com/labs/flex3/html/help.html?content=data_access\ _\3.html ) outrageous. When is Flex going to support real Web Services? Thanks, Robert
Re: [flexcoders] mx:HTML tag in Flex Projects!
This came up on the list last than 24 hours ago: http://tech.groups.yahoo.com/group/flexcoders/message/106221 -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: bornaeon [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:HTML tag in Flex Projects! Date: Fri, 14 Mar 2008 12:27:34 - Hi all. I have a question: you know about mx:HTML tag in AIR projects in Flex Builder 3.0 and how it's working. Can we use this tag in a Web Project (Flex-Based)? there is no way in a common. if there is specific solution please help me. thanks for your replies. Borna
[flexcoders] When is Flex going to really support Web Services?
Hello there, I find the XML Schema limitations described by the Adobe Flex3 docs ( here http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_3.h\ tml , in section XML Schema element support ) outrageous. Why these limitations and when is Flex going to support real Web Services? Thanks, Robert
[flexcoders] WeakMethodClosure - what is this ?
O, thank you! What about array.length = 0;? Returning to WeakMethodClosure - in 1 hour of running application profiller has 5600 instances of this thing, take 90kb of memory. Examinig backreference shhows that many of them is adding events listener inside components like charts. Are this valid things or just something internal what I shoul ignore? Use array.splice to remove items from an array
RE: [flexcoders] Re: Custom component with custom style - help please
styleChaned is only when someone calls setStyle after the component is initialized. It would be poor performance to call it for 100 styles you inherit at init time so we don't. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dbronk Sent: Friday, March 14, 2008 7:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Custom component with custom style - help please I actually did have waxColor: #F0F0F0, simply a typo when posting to the forum. I did remove the getters/setters and it still did not work. I started looking at different things and found out that setStyle and styleChanged are simply not called when styles are set via a css. I think this is very bad, but I was able to work with it. This did tell me that the styles were actually being set, but since I had code in the styleChanged to set a boolean, I now simply do the check in updateDisplayList which actually is a bit easier to follow code. I still believe that styleChanged should be called no matter how the style is changed. Thanks for you help. It didn't answer my question, but it led me to look in the right place which is better because I learned something else. Dale --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: I assume you removed the getter/setters? Try: .wax { waxColor: #F0F0F0; } From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of dbronk Sent: Thursday, March 13, 2008 7:24 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Custom component with custom style - help please I've made a custom component and on it I want to place a custom style named waxColor. I started by simply creating getter/setters for waxColor. Worked great when I include waxColor=#F0F0F0 to the mxml, but I want this to be property driven. So I added [Style(name=waxColor, format=Color, type=unit, inherit=no)] to my as file. I then coded: override public function setStyle(styleProp:String, newValue:*) : void override public function styleChanged(styleProp:String) : void override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void to do what I needed. In my component that instantiates my custom component I do myComp.setStyle(waxColor, 0xF0F0F0) and it works great. But, the entire reason that I've added this as a style was that I wanted to control the color via a style sheet. So in my css file I added .wax { waxColor: 0xF0F0F0; } and removed the setStyle code. Now my mxml does not have waxColor=#F0F0F0 and instead has styleName=wax. This does not work. I have trace statements in all of my overridden functions and while styleChanged gets triggered, never with styleProp of waxColor. setStyle is never called. What am I doing wrong? I really want waxColor to be able to be set via my css file. Thanks, Dale
Re: [flexcoders] DateField disabledRange attribute setting?
http://livedocs.adobe.com/labs/flex3/langref/mx/controls/DateField.html#disabledRanges hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://blog.fastlanesw.com markflex2007 wrote: Hi, I want to limited DateField and let only select date in current year.I want to set the disabledRange propery, Do you have a idea how to set it? mx:DateField x=160 y=129 disabledRange=?/ Please help me.Thanks Mark
[flexcoders] Possible problems with construction like - {name:Name, value:23}.... ??
One more things - Is it possible to have any potential problem with constructiuon like: arayColl.addItem({name:Name, value:23}); ? in favor of following piece of code: var myObj = new MyObj(); myObj.name = Name; myObj.value = 23; arayColl.addItem(myObj); ?
RE: [flexcoders] Re: Why are modules so buggy?
OK, that smells like invalidation loops. At the end of the validation pass something remains invalidated so we do another validation pass, but something still ends up invalidated, so we Until we get a complete validation, the app won't show, and after app startup, until a new component finishes validation, it won't show up. I debug this by setting a breakpoint in LayoutManager.doPhasedInstantiation. If you try it on a test app, you should see that it gets called 3 to 8 times and stops when the app shows up. If you have an invalidation loop, it never stops getting called, and then I debug into it to see who keeps ending up dirty and then try to figure out why. Your demon button could be forcing some edge condition where scrollbars show up then go away (hysteresis). -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Friday, March 14, 2008 6:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Why are modules so buggy? Hi Alex, We are using ModuleLoader so the GC thing shouldn't be an issue. (I tried it with ModuleManager this morning to no avail either.) The animation is just a placeholder at this point so its just a 10 frame tween created in Flash CS3 with a stop() at the beginning and end. When it finishes loading we tell it to play(). The speedup is only present when I add the demon button with addChild() instead of rawChildren.addChild() so I don't think it is related to any intentional framerate increases. I did what you suggested and checked that the module exists, has the correct parent, correct x, y, width and height and all of those properties return the expected values. Not sure what you mean about checking invalidation flags though. More weirdness in today's testing: Our basic setup is that we have a few ModuleLoaders that are on stage and sized but have visibility set to false and we don't give them a url value until we want them to load. When they've finished loading we turn them visible. If I set visible to true and set url to the specified module swf the application never gets out of frame one. The progress bar shows the load completing in the sense that the bar is full width but thats it. The progress bar stays on stage and the app just sits. We never see our actual application stage. So. Con. Fused. Thanks for your help, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Well, it doesn't ring any bells, but someone else hit a problem where they were loading the module twice and timing issues from the module being cached in the browser cache affected whether it worked or not. The classic no-show problem is when the IModuleInfo handle returned from ModuleManager is kept only in a local variable to the function that calls ModuleManager.getModule Then a GC can punt the module and that can happen randomly. If you are using ModuleLoader, you won't run into this problem. How does the animation SWF work? Is it code-based, frame-based, timer-based? We pump up the frame-rate during app startup, so that could affect animations. I guess I would start by proving after no-show that the module actually exists, and introspect it for sizes, parenting, invalidation flags, etc. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Thursday, March 13, 2008 8:00 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Why are modules so buggy? Thanks Alex. Unfortunately, and as usually seems to be the case, this is happening inside of a fairly complex structure. Something else I just noticed though is also strange. When the app loads we have a SWF that gets loaded and plays an animation before presenting a button that can be clicked which takes you to the module. When the problem arises as I originally described, the intro animation also plays much quicker than usual. Its at least twice as fast as the SWF plays when the problem is not present. Does that give you any clues? Thanks, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: It is a known bug that % width/height doesn't work in modules and using percentWidth/Height is the workaround. Can't think of any reason for the second behavior. I'll look at a test case if you want. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Thursday, March 13, 2008
RE: [flexcoders] Multiple sorting in datagrid
See the item renderer posts on my blog (blogs.adobe.com/aharui). I don't have multi-column sort example, but you can certainly do it. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Melon Sent: Friday, March 14, 2008 2:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Multiple sorting in datagrid Hi, I want to know if is possible to build sth like: | Column Header 1| Col Header 2 | | Sub Header 1 s Sub Head 2 s Sub Head 3 | | | value of sub header 1 s value of sub head 2 | value | | value of sub header 3 | | | ... where s is spacer and my problem is if it's possible to do sorting on the Sub Header 1, Sub Header 2 and Sub Header 3 (one column - 3 values) in Datagrid maybe do you have any example of sth similar thanks david -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Adding Flex Server to existing Project
Hi. Create a new Flex project with the Server technology you choose, and copy your source into flexbuilder, works for me, or maybe there is a anther way, let us know :) --- In flexcoders@yahoogroups.com, Anthony Cintron [EMAIL PROTECTED] wrote: Is it possible to add a Flex Server to an existing project. Everywhere I look, demonstrates it by creating a new project. - Never miss a thing. Make Yahoo your homepage.
RE: [flexcoders] WeakMethodClosure - what is this ?
The doc says setting length it will work, but I've never tried it. If you have WMC's referencing Charts, you need to make sure the Charts aren't leaking, and that when a chart goes way it takes all or most of its WMCs with it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lytvynyuk Sent: Friday, March 14, 2008 9:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] WeakMethodClosure - what is this ? O, thank you! What about array.length = 0;? Returning to WeakMethodClosure - in 1 hour of running application profiller has 5600 instances of this thing, take 90kb of memory. Examinig backreference shhows that many of them is adding events listener inside components like charts. Are this valid things or just something internal what I shoul ignore? Use array.splice to remove items from an array
[flexcoders] Details on subclassing MenuItemRenderer
Following LiveDocs overview on ItemRenderer usage is fairly clear. I'm able to reproduce the Inline itemrender that shows State/Capitals/link to popup. But i'm trying to implement something with the complexity (outlined at http://www.colettas.org/?p=85) of adding a decorator to existing labels (adapt text label to display the associated accelerator key). Dave offers this high-level view of what's required in the itemrenderer... 2. Subclass MenuItemRenderer, and override createChildren(), measure(), updateDisplayList(), and the data setter function. In the createChildren() override, create a UITextField and add it as a child. In measure(), adjust measuredWidth by the textWidth of the UITextField. In updateDisplayList(), set your UITextField's x position, and in the data setter, get the accelerator decoration text out of the value object and set it into your UITextField. Would very much appreciate seeing that implemented in metacode or viewable sample. thx --steve...
[flexcoders] Re: DateField disabledRange attribute setting?
Hi I still have a question for this.I try the feature,but it doesn't work when I return the Array from function.but I need get current year in a function. The following code works fine mx:DateField x=160 y=159 disabledRanges = {[{rangeEnd: new Date(2007,11,31)},{rangeStart: new Date(2008,12,1)}]} / But the following code doesn't work, the function return an Array, I am not sure if the Array format is ok or not. mx:Script ![CDATA[ [Bindable] private var dataRang:Array; private function disRange():Array{ dataRang =new Array({rangeEnd: new Date(2007,11,31)},{rangeStart: new Date(2008,12,1)}); return dataRang; } ]] /mx:Script mx:DateField x=160 y=129 disabledRanges = {disRange()} / Please give me a help. Thanks Mark --- In flexcoders@yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote: http://livedocs.adobe.com/labs/flex3/langref/mx/controls/DateField.html#disabledRanges hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://blog.fastlanesw.com markflex2007 wrote: Hi, I want to limited DateField and let only select date in current year.I want to set the disabledRange propery, Do you have a idea how to set it? mx:DateField x=160 y=129 disabledRange=?/ Please help me.Thanks Mark
[flexcoders] Re: WeakMethodClosure - what is this ?
How typically you detect if Charts are leaking? Coz I having troubles with that, but definitely something going on. The doc says setting length it will work, but I've never tried it. If you have WMC's referencing Charts, you need to make sure the Charts aren't leaking, and that when a chart goes way it takes all or most of its WMCs with it.
Re: [flexcoders] drag and drop between list - changing default behavior to allow dropping into list item.
Thanks Alex, Actually,that's exactly the answer I was afraid off.. when looking at the said code, I have a feeling, -since I'm using custom itemrenderrer in my list- it might be simpler to dispatch mouse over events from there. Am I wrong ? On Fri, Mar 14, 2008 at 3:04 AM, Alex Harui [EMAIL PROTECTED] wrote: Tree has drop into folder code. Is that what you're looking for? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Thibaud Van Vreckem *Sent:* Thursday, March 13, 2008 10:59 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] drag and drop between list - changing default behavior to allow dropping into list item. Here we go again... sorry message was sent unfinished by mistake.. I Have 2 List: list1 contains *folders. *list2 contains *files *they are both drag and drop enabled: dragEnabled=true dragMoveEnabled=true dropEnabled=true dragEnter=dragEnterHandler(event) * *I'm keeping the default dnd behavior for reordering only *within *each list. private function dragEnterHandler(event:DragEvent):void { if (event.dragInitiator != event.currentTarget) { event.preventDefault(); } } * *Now How should I go about enabling my files items from list2 to be dropped *over *the folder items in list1 (instead of being inserted in the list rows). is there an easy way to detect which item in the list I am rolling over without resorting to some fancy coordinate position detection ? Thanks.
Re: [flexcoders] GIS and Flex
You can use the ESRI, yahoo, mapquest, google, etc map APIs. You can also read the ArcView Shape files and associated DBF files using this library and create your own components. http://code.google.com/p/vanrijkom-flashlibs/ I started with that library to create a heat-map component using maps. The problem with embedding or even downloading ArcView shape files is their size - even the US is over a meg. The problem is that shape files just store points and there are a great number of points. You can reduce the size by storing in your own format (a fixed width integer is half the size of a floating point number). I did that plus ran some map simplification algorithms to reduce the number of points and ended up getting even a world map down to under 100K. Sadly I cannot share the code (it was done for hire). On Fri, Mar 14, 2008 at 12:52 AM, kapil b [EMAIL PROTECTED] wrote: Hi All, Does anybody have idea how to implement gis(geographyical information system) in flex with the gis data in it. What kind of gis data format files the flex requires so that i can retrieve the data and display it in the UI. Thanks -- Now you can chat without downloading messenger. Click herehttp://in.rd.yahoo.com/tagline_webmessenger_5/*http://in.messenger.yahoo.com/webmessengerpromo.phpto know how.
[flexcoders] Reading local drive/folder
Hello, I don't know if it's possible with Flex or that I have to use another way to do this but hopefully one is able to help me out with this or at least point me in the right direction. I want to make a Flex/AIR application that reads the local drive or a folder on it so and store the file(names) in an array or so. This so the files can be targeted by another script. Is this possible ? If so please give me some extra information about the functions I have to use or point me in the right direction (documentation/tutorial that explains it)...
[flexcoders] SOLUTION multiple ComboBox data with HttpService e4x format xml file !
First special thanks to brendansjunk my teacher :) -- The solution of my post is : xml structure example is :(gouv.xml) * ?xml version=1.0 encoding=utf-8? tunisie gouv nom=ARIANA 1 deleg nom=ARIANA VILLE 1 loca cp=2080 nom=ARIANA 1/ loca cp=2027 nom=BORJ EL BACCOUCHE 1/ /deleg deleg nom=ETTADHAMEN 1 loca cp=2041 nom=CITE 18 JANVIER 1/ loca cp=2041 nom=CITE BEN YERFES 1/ /deleg /gouv gouv nom=ARIANA 2 deleg nom=ARIANA VILLE 2 local cp=2080 nom=ARIANA 2/ local cp=2027 nom=BORJ EL BACCOUCHE 2/ /deleg deleg nom=ETTADHAMEN 2 local cp=2041 nom=CITE 18 JANVIER 2/ local cp=2041 nom=CITE BEN YERFES 2/ /deleg /gouv gouv nom=ARIANA 3 deleg nom=ARIANA VILLE 3 local cp=2080 nom=ARIANA 3/ local cp=2027 nom=BORJ EL BACCOUCHE 3/ /deleg deleg nom=ETTADHAMEN 3 local cp=2041 nom=CITE 18 JANVIER 3/ local cp=2041 nom=CITE BEN YERFES 3/ /deleg /gouv /tunisie * The MXML is : - ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=dataGouv.send() mx:HTTPService id=dataGouv url=data/gouv.xml useProxy=false result=gouvHandler(event) fault=gouvHandlerfault(event) showBusyCursor=true resultFormat=e4x/ mx:Script ![CDATA[ import mx.rpc.events.*; [Bindable] public var comboData:XMLList; private function gouvHandler(event:ResultEvent):void { comboData = event.result.gouv as XMLList; } private function gouvHandlerfault(event:FaultEvent):void { mx.controls.Alert.show('fault'); } ]] /mx:Script mx:ComboBox id=combo1 dataProvider={comboData} labelField=@nom / mx:ComboBox id=combo2 dataProvider={combo1.selectedItem.deleg} labelField=@nom / mx:ComboBox id=combo3 dataProvider={combo2.selectedItem.local} labelField=@nom / mx:Label id=lblCodPostal editable=false text=[EMAIL PROTECTED]/ /mx:Application -- so, the expert tips is in resultFormat in HttpService e4x and the type of the result data XMLList hope that is helpful ! by FLEX is the future :)
Re: [flexcoders] Re: Skinning Flex Buttons: Sizing Stretching Issues
When using bitmaps, you simply have to define the scale9 it in the css like so: Button { upSkin: Embed(/assets/skins/button/Button_upSkin.png, scaleGridLeft=10, scaleGridTop=10, scaleGridRight=12, scaleGridBottom=12); padding-left:0; padding-right:0; } In any case, in flash it's extremely important to watch out to properly place your registration point. On Fri, Mar 14, 2008 at 12:01 AM, Kyle Neath [EMAIL PROTECTED] wrote: Well, it took me a long time of random searching but I did finally answer my questions. For the record, here's what I found. 1. This happened because my top/left marker was a bit off (you can see the star icon in the top/left of the scale9 image). It was creating some false negative left margin on the skin. 2. This happens because scale9 in flash does not apply to any bitmaps embedded (even if they are inside a movieclip!). This is a huge problem, and dissapointing to say the least. 3. Nope, stretching was occuring because I was using bitmaps, not native flash illustration tools.
[flexcoders] How to change window title font in flexmdi?
Hi, Using the Vista effect in flexmdi per the below. How does one change the font for the window title? effectsLib={flexlib.mdi.effects.effectsLib.MDIVistaEffects} PS: Flexmdi is very cool! Thanks in advance. Joe
RE: [flexcoders] memory leak questions
Thanks Gaurav and Alex for the confirmation on the Strings. I did turn on the allocation stack trace option and the strings would show as being created in lines with basic expressions such as a toString() method or something like new XML(string value), so my hunch was that this was something internal and nothing I'd have to be too concerned with. As for the label creation test, I realized that in the attempts I made earlier I made the mistake of monitoring the System.totalMemory value while running the app with the profiler (with the intent of looking for any correlation between the profiler's reported value and the System.totalMemory). Though I imagine most of the logging and performance measuring happens in the Builder process, I guess there is something inside the player that's also performing something cumulative that causes the player's memory usage to increase continuously. In any case, running a release build of the test application seems to keep the memory usage bound, just like Alex described. Thanks for your help in this, Oliver -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, March 14, 2008 12:38 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] memory leak questions If you want to test using System.totalMemory, generally, I set up a timer and run a loop forever (create the label on the first timer call back, remove it on the next call back, etc) and watch System.totalMemory. It will grow for a while and should stop growing or slow down to a crawl. It may not stop because of the number-to-string you do to report the value. Strings without back-references are generally ignorable. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gaurav. Jain Sent: Thursday, March 13, 2008 8:46 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] memory leak questions I believe some strings are interned by the player, there was a fix related to this in flex 3, and now the number of such strings is a lot less than with flex 2.0.1. If you run profiling session with the option to generated objects stack traces, you can find out where the object was created using the allocation trace. The profiler memory usage is specific to the application being profiled. Profiler memory usage may not always map to System.totalMemory as System.totalMemory also shows memory for the VM and the rendering engine. As you create a new Label in each iteration player may allocate more memory than required (player allocates memory in chucks), probably that is the reason why you don't see the increase in profiler numbers. But if the increase was significant it would be reflected by the profiler. Also there is no way you can force memory release in the release player. Thanks, Gaurav --- The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. TradeWeb reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the TradeWeb e-mail system.
Re: [flexcoders] Reading local drive/folder
On Friday 14 Mar 2008, roelvogels wrote: I want to make a Flex/AIR application that reads the local drive or a folder on it so and store the file(names) in an array or so. This so the files can be targeted by another script. Flex doesn't have an API for this. AIR does, check out the File object. -- Tom Chiverton Helping to adaptively deploy synergistic supply-chains on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Presenting at a user group meet regarding Flex + PHP...
On Fri, Mar 14, 2008 at 08:28:09AM -0600, Beau Scott wrote: Performance reasons alone are enough to put preference in the AMFPHP 1.9 plugin when dealing with flash/flex interfaces? though I will probably show how to set up dual gateways (one SOAP one AMFPHP) so interoperability is not lost. The debate of slim binary format versus verbose text format is for those wiser than I, but it does give you a contrast point for your demo, as you mentioned. -Jeff
[flexcoders] DataEvent.UPLOAD_COMPLETE_DATA does not exist on new machine
I have a project done in Flex 2 that uses DataEvent.UPLOAD_COMPLETE_DATA to upload files. I wrote it a while ago and I do not remember if I had to do anything special, but I have seen that the first versions of Flash Player 9 did not include this property, only DataEvent.DATA. I switched machines, going from an old XP machine to a new Vista machine. I downloaded the files from source control and imported the project, but now when I compile Flex acts like this property does not exist and it throws a compile error. The error is Access of possible undefined property UPLOAD_COMPLETE_DATA through a reference with static type Class. When I attempt to rewrite the code and use the intellisense, the only option after the period is DATA. It's like this fresh install of Flex Builder 2 is stuck with the older Flash Player. But I have tried looking for updates to Flex Builder 2, I got the latest Flash Player (9.0.115), I downloaded a trial version of Flex Builder 3, I've restarted, everything. Nothing works, Flex Builder refuses to recognize this property. Does anyone have any ideas of what I can do to get FlexBuilder to realize it is a property? Thanks
Re: [flexcoders] How to change window title font in flexmdi?
Off the top of my head I think the style is called titleStyleName (its the one inherited from Panel). You can optionally use titleStyleNameFocus and titleStyleNameNoFocus if you want differences depending on the window's focus state. These will override the default titleStyleName. These styles are also completely independent of the effects. You should be able to see examples of these styles in use in the explorer. HTH, Ben On Fri, Mar 14, 2008 at 8:04 AM, joseph_freemaker [EMAIL PROTECTED] wrote: Hi, Using the Vista effect in flexmdi per the below. How does one change the font for the window title? effectsLib={flexlib.mdi.effects.effectsLib.MDIVistaEffects} PS: Flexmdi is very cool! Thanks in advance. Joe
[flexcoders] Re: DataEvent.UPLOAD_COMPLETE_DATA does not exist on new machine
I don't think it has to do with player version. Pretty sure that was added in one of the hot fixes to the Flex framework, maybe even HF1. HTH, Ben --- In flexcoders@yahoogroups.com, thegators_2002 [EMAIL PROTECTED] wrote: I have a project done in Flex 2 that uses DataEvent.UPLOAD_COMPLETE_DATA to upload files. I wrote it a while ago and I do not remember if I had to do anything special, but I have seen that the first versions of Flash Player 9 did not include this property, only DataEvent.DATA. I switched machines, going from an old XP machine to a new Vista machine. I downloaded the files from source control and imported the project, but now when I compile Flex acts like this property does not exist and it throws a compile error. The error is Access of possible undefined property UPLOAD_COMPLETE_DATA through a reference with static type Class. When I attempt to rewrite the code and use the intellisense, the only option after the period is DATA. It's like this fresh install of Flex Builder 2 is stuck with the older Flash Player. But I have tried looking for updates to Flex Builder 2, I got the latest Flash Player (9.0.115), I downloaded a trial version of Flex Builder 3, I've restarted, everything. Nothing works, Flex Builder refuses to recognize this property. Does anyone have any ideas of what I can do to get FlexBuilder to realize it is a property? Thanks
Re: [flexcoders] Re: DateField disabledRange attribute setting?
It looks to me like the array you are creating in your function will contain two String objects. You need to correct your array initialization syntax. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://blog.fastlanesw.com markflex2007 wrote: Hi I still have a question for this.I try the feature,but it doesn't work when I return the Array from function.but I need get current year in a function. The following code works fine mx:DateField x=160 y=159 disabledRanges = {[{rangeEnd: new Date(2007,11,31)},{rangeStart: new Date(2008,12,1)}]} / But the following code doesn't work, the function return an Array, I am not sure if the Array format is ok or not. mx:Script ![CDATA[ [Bindable] private var dataRang:Array; private function disRange():Array{ dataRang =new Array({rangeEnd: new Date(2007,11,31)},{rangeStart: new Date(2008,12,1)}); return dataRang; } ]] /mx:Script mx:DateField x=160 y=129 disabledRanges = {disRange()} / Please give me a help. Thanks Mark --- In flexcoders@yahoogroups.com, Scott Melby [EMAIL PROTECTED] wrote: http://livedocs.adobe.com/labs/flex3/langref/mx/controls/DateField.html#disabledRanges hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com http://blog.fastlanesw.com markflex2007 wrote: Hi, I want to limited DateField and let only select date in current year.I want to set the disabledRange propery, Do you have a idea how to set it? mx:DateField x=160 y=129 disabledRange=?/ Please help me.Thanks Mark
Re: [flexcoders] Re: Why are modules so buggy?
So (unsurprisingly) I tried a shortcut and it seems like your scrollbar theory is correct. I first tried setting the scroll policies of demon button's parent to off but that didn't help. I then changed demon button's positioning (in updateDisplayList()) to 0, 0 and that fixed the issue. Its nice to have it showing the module but I can't be too excited since the positioning obviously can't stay at 0, 0. The original lines from inside updateDisplayList() look like this: nextBtn.x = this.width - nextBtn.width - 15; nextBtn.y = ( this.height - nextBtn.height ) / 2; Seems reasonable to me, am I missing something? Thanks yet again! Ben On Fri, Mar 14, 2008 at 12:20 PM, Alex Harui [EMAIL PROTECTED] wrote: OK, that smells like invalidation loops. At the end of the validation pass something remains invalidated so we do another validation pass, but something still ends up invalidated, so we…. Until we get a complete validation, the app won't show, and after app startup, until a new component finishes validation, it won't show up. I debug this by setting a breakpoint in LayoutManager.doPhasedInstantiation. If you try it on a test app, you should see that it gets called 3 to 8 times and stops when the app shows up. If you have an invalidation loop, it never stops getting called, and then I debug into it to see who keeps ending up dirty and then try to figure out why. Your demon button could be forcing some edge condition where scrollbars show up then go away (hysteresis). -Alex -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *ben.clinkinbeard *Sent:* Friday, March 14, 2008 6:54 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Why are modules so buggy? Hi Alex, We are using ModuleLoader so the GC thing shouldn't be an issue. (I tried it with ModuleManager this morning to no avail either.) The animation is just a placeholder at this point so its just a 10 frame tween created in Flash CS3 with a stop() at the beginning and end. When it finishes loading we tell it to play(). The speedup is only present when I add the demon button with addChild() instead of rawChildren.addChild() so I don't think it is related to any intentional framerate increases. I did what you suggested and checked that the module exists, has the correct parent, correct x, y, width and height and all of those properties return the expected values. Not sure what you mean about checking invalidation flags though. More weirdness in today's testing: Our basic setup is that we have a few ModuleLoaders that are on stage and sized but have visibility set to false and we don't give them a url value until we want them to load. When they've finished loading we turn them visible. If I set visible to true and set url to the specified module swf the application never gets out of frame one. The progress bar shows the load completing in the sense that the bar is full width but thats it. The progress bar stays on stage and the app just sits. We never see our actual application stage. So. Con. Fused. Thanks for your help, Ben --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Well, it doesn't ring any bells, but someone else hit a problem where they were loading the module twice and timing issues from the module being cached in the browser cache affected whether it worked or not. The classic no-show problem is when the IModuleInfo handle returned from ModuleManager is kept only in a local variable to the function that calls ModuleManager.getModule Then a GC can punt the module and that can happen randomly. If you are using ModuleLoader, you won't run into this problem. How does the animation SWF work? Is it code-based, frame-based, timer-based? We pump up the frame-rate during app startup, so that could affect animations. I guess I would start by proving after no-show that the module actually exists, and introspect it for sizes, parenting, invalidation flags, etc. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of ben.clinkinbeard Sent: Thursday, March 13, 2008 8:00 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Why are modules so buggy? Thanks Alex. Unfortunately, and as usually seems to be the case, this is happening inside of a fairly complex structure. Something else I just noticed though is also strange. When the app loads we have a SWF that gets loaded and plays an animation before presenting a button that can be clicked which takes you to the module. When the problem arises as I originally described, the intro animation also plays much quicker than usual. Its at least twice as fast as the SWF plays when the
[flexcoders] What happened to Array.splice?
I was developing in FB3 beta, and I was adding items to an array using splice. it was adding the elements to the provided index, and if it was greater then 0, it would add the empty elements as needed. Then I installed FB3 and it stopped added the needed preceding elements. so if the array was empty, even if I spesify the 3 index to put the item, it just places it in the 0 index. ugg Russ
RE: [flexcoders] Re: Why are modules so buggy?
Assuming you've sized the button before you hit this code, you are also in danger if there is a scale factor applied to the component. We recommend using the unscaledWidth/Height parameters passed into updateDisplayList instead of this.width/height as they are not affected by scale. Setting a child's x,y will trigger invalidation in some containers. Normally, the invalidateDisplayListFlag is still set at this time which prevents another invalidation pass. However, if it affects the scrollbar calculation it could ripple back up and make the parent think about its size again. If scrollPolicy=on the scrollbar is factored into the measurements. If not, it isn't. I would check the numbers you are using and see if that updateDL gets called over and over and what numbers it gets. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben Clinkinbeard Sent: Friday, March 14, 2008 10:30 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Why are modules so buggy? So (unsurprisingly) I tried a shortcut and it seems like your scrollbar theory is correct. I first tried setting the scroll policies of demon button's parent to off but that didn't help. I then changed demon button's positioning (in updateDisplayList()) to 0, 0 and that fixed the issue. Its nice to have it showing the module but I can't be too excited since the positioning obviously can't stay at 0, 0. The original lines from inside updateDisplayList() look like this: nextBtn.x = this.width - nextBtn.width - 15; nextBtn.y = ( this.height - nextBtn.height ) / 2; Seems reasonable to me, am I missing something? Thanks yet again! Ben On Fri, Mar 14, 2008 at 12:20 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: OK, that smells like invalidation loops. At the end of the validation pass something remains invalidated so we do another validation pass, but something still ends up invalidated, so we Until we get a complete validation, the app won't show, and after app startup, until a new component finishes validation, it won't show up. I debug this by setting a breakpoint in LayoutManager.doPhasedInstantiation. If you try it on a test app, you should see that it gets called 3 to 8 times and stops when the app shows up. If you have an invalidation loop, it never stops getting called, and then I debug into it to see who keeps ending up dirty and then try to figure out why. Your demon button could be forcing some edge condition where scrollbars show up then go away (hysteresis). -Alex From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Friday, March 14, 2008 6:54 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Why are modules so buggy? Hi Alex, We are using ModuleLoader so the GC thing shouldn't be an issue. (I tried it with ModuleManager this morning to no avail either.) The animation is just a placeholder at this point so its just a 10 frame tween created in Flash CS3 with a stop() at the beginning and end. When it finishes loading we tell it to play(). The speedup is only present when I add the demon button with addChild() instead of rawChildren.addChild() so I don't think it is related to any intentional framerate increases. I did what you suggested and checked that the module exists, has the correct parent, correct x, y, width and height and all of those properties return the expected values. Not sure what you mean about checking invalidation flags though. More weirdness in today's testing: Our basic setup is that we have a few ModuleLoaders that are on stage and sized but have visibility set to false and we don't give them a url value until we want them to load. When they've finished loading we turn them visible. If I set visible to true and set url to the specified module swf the application never gets out of frame one. The progress bar shows the load completing in the sense that the bar is full width but thats it. The progress bar stays on stage and the app just sits. We never see our actual application stage. So. Con. Fused. Thanks for your help, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Well, it doesn't ring any bells, but someone else hit a problem where they were loading the module twice and timing issues
RE: [flexcoders] Re: WeakMethodClosure - what is this ?
If you try to remove a chart and the profiler shows it is still there, it is leaking. If you reset its dataprovider several times and the number of renderers and other objects it creates keeps increasing, there's a leak there. You just have to keep digging through with the profiler to find the root cause. Sometimes, building simple test cases help too. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lytvynyuk Sent: Friday, March 14, 2008 9:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WeakMethodClosure - what is this ? How typically you detect if Charts are leaking? Coz I having troubles with that, but definitely something going on. The doc says setting length it will work, but I've never tried it. If you have WMC's referencing Charts, you need to make sure the Charts aren't leaking, and that when a chart goes way it takes all or most of its WMCs with it.
RE: [flexcoders] drag and drop between list - changing default behavior to allow dropping into list item.
The Tree code is extra complex as it handles parent/child relationships. Yours can be simpler. I suppose you could turn off dropEnabled on the List and have each renderer be a dropTarget. Should work, but I don't recall ever seeing a complete solution. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thibaud Van Vreckem Sent: Friday, March 14, 2008 2:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] drag and drop between list - changing default behavior to allow dropping into list item. Thanks Alex, Actually,that's exactly the answer I was afraid off.. when looking at the said code, I have a feeling, -since I'm using custom itemrenderrer in my list- it might be simpler to dispatch mouse over events from there. Am I wrong ? On Fri, Mar 14, 2008 at 3:04 AM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Tree has drop into folder code. Is that what you're looking for? From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Thibaud Van Vreckem Sent: Thursday, March 13, 2008 10:59 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] drag and drop between list - changing default behavior to allow dropping into list item. Here we go again... sorry message was sent unfinished by mistake.. I Have 2 List: list1 contains folders. list2 contains files they are both drag and drop enabled: dragEnabled=true dragMoveEnabled=true dropEnabled=true dragEnter=dragEnterHandler(event) I'm keeping the default dnd behavior for reordering only within each list. private function dragEnterHandler(event:DragEvent):void { if (event.dragInitiator != event.currentTarget) { event.preventDefault(); } } Now How should I go about enabling my files items from list2 to be dropped over the folder items in list1 (instead of being inserted in the list rows). is there an easy way to detect which item in the list I am rolling over without resorting to some fancy coordinate position detection ? Thanks.
RE: [flexcoders] Details on subclassing MenuItemRenderer
I don't have any examples, but you can look at MenuItemRenderer.as and see how it works too. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of justSteve Sent: Friday, March 14, 2008 9:30 AM To: flexcoders Subject: [flexcoders] Details on subclassing MenuItemRenderer Following LiveDocs overview on ItemRenderer usage is fairly clear. I'm able to reproduce the Inline itemrender that shows State/Capitals/link to popup. But i'm trying to implement something with the complexity (outlined at http://www.colettas.org/?p=85 http://www.colettas.org/?p=85 ) of adding a decorator to existing labels (adapt text label to display the associated accelerator key). Dave offers this high-level view of what's required in the itemrenderer... 2. Subclass MenuItemRenderer, and override createChildren(), measure(), updateDisplayList(), and the data setter function. In the createChildren() override, create a UITextField and add it as a child. In measure(), adjust measuredWidth by the textWidth of the UITextField. In updateDisplayList(), set your UITextField's x position, and in the data setter, get the accelerator decoration text out of the value object and set it into your UITextField. Would very much appreciate seeing that implemented in metacode or viewable sample. thx --steve...
Re: [flexcoders] Re: Why are modules so buggy?
Yep, updateDisplayList() gets called continuously with an ever increasing width argument. I let it go above 100,000 before I closed the browser window. I've switched the code to use the w and h args that get passed in as well but it still happens. Now that we know what the problem is how do we figure out the why and how to prevent it? Thanks, Ben On Fri, Mar 14, 2008 at 1:42 PM, Alex Harui [EMAIL PROTECTED] wrote: Assuming you've sized the button before you hit this code, you are also in danger if there is a scale factor applied to the component. We recommend using the unscaledWidth/Height parameters passed into updateDisplayList instead of this.width/height as they are not affected by scale. Setting a child's x,y will trigger invalidation in some containers. Normally, the invalidateDisplayListFlag is still set at this time which prevents another invalidation pass. However, if it affects the scrollbar calculation it could ripple back up and make the parent think about its size again. If scrollPolicy=on the scrollbar is factored into the measurements. If not, it isn't. I would check the numbers you are using and see if that updateDL gets called over and over and what numbers it gets. -Alex -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ben Clinkinbeard *Sent:* Friday, March 14, 2008 10:30 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Why are modules so buggy? So (unsurprisingly) I tried a shortcut and it seems like your scrollbar theory is correct. I first tried setting the scroll policies of demon button's parent to off but that didn't help. I then changed demon button's positioning (in updateDisplayList()) to 0, 0 and that fixed the issue. Its nice to have it showing the module but I can't be too excited since the positioning obviously can't stay at 0, 0. The original lines from inside updateDisplayList() look like this: nextBtn.x = this.width - nextBtn.width - 15; nextBtn.y = ( this.height - nextBtn.height ) / 2; Seems reasonable to me, am I missing something? Thanks yet again! Ben On Fri, Mar 14, 2008 at 12:20 PM, Alex Harui [EMAIL PROTECTED] wrote: OK, that smells like invalidation loops. At the end of the validation pass something remains invalidated so we do another validation pass, but something still ends up invalidated, so we…. Until we get a complete validation, the app won't show, and after app startup, until a new component finishes validation, it won't show up. I debug this by setting a breakpoint in LayoutManager.doPhasedInstantiation. If you try it on a test app, you should see that it gets called 3 to 8 times and stops when the app shows up. If you have an invalidation loop, it never stops getting called, and then I debug into it to see who keeps ending up dirty and then try to figure out why. Your demon button could be forcing some edge condition where scrollbars show up then go away (hysteresis). -Alex -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *ben.clinkinbeard *Sent:* Friday, March 14, 2008 6:54 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Why are modules so buggy? Hi Alex, We are using ModuleLoader so the GC thing shouldn't be an issue. (I tried it with ModuleManager this morning to no avail either.) The animation is just a placeholder at this point so its just a 10 frame tween created in Flash CS3 with a stop() at the beginning and end. When it finishes loading we tell it to play(). The speedup is only present when I add the demon button with addChild() instead of rawChildren.addChild() so I don't think it is related to any intentional framerate increases. I did what you suggested and checked that the module exists, has the correct parent, correct x, y, width and height and all of those properties return the expected values. Not sure what you mean about checking invalidation flags though. More weirdness in today's testing: Our basic setup is that we have a few ModuleLoaders that are on stage and sized but have visibility set to false and we don't give them a url value until we want them to load. When they've finished loading we turn them visible. If I set visible to true and set url to the specified module swf the application never gets out of frame one. The progress bar shows the load completing in the sense that the bar is full width but thats it. The progress bar stays on stage and the app just sits. We never see our actual application stage. So. Con. Fused. Thanks for your help, Ben --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Well, it doesn't ring any bells, but someone else hit a problem where they were loading the module twice and timing issues
RE: [flexcoders] Re: Why are modules so buggy?
What is the class who's updateDL is overridden? It feels like the module's measuredWidth/Height is driven by the right side of the child. As you center you push the child to the right so the container says it wants to be wider and then you push again... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben Clinkinbeard Sent: Friday, March 14, 2008 10:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Why are modules so buggy? Yep, updateDisplayList() gets called continuously with an ever increasing width argument. I let it go above 100,000 before I closed the browser window. I've switched the code to use the w and h args that get passed in as well but it still happens. Now that we know what the problem is how do we figure out the why and how to prevent it? Thanks, Ben On Fri, Mar 14, 2008 at 1:42 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Assuming you've sized the button before you hit this code, you are also in danger if there is a scale factor applied to the component. We recommend using the unscaledWidth/Height parameters passed into updateDisplayList instead of this.width/height as they are not affected by scale. Setting a child's x,y will trigger invalidation in some containers. Normally, the invalidateDisplayListFlag is still set at this time which prevents another invalidation pass. However, if it affects the scrollbar calculation it could ripple back up and make the parent think about its size again. If scrollPolicy=on the scrollbar is factored into the measurements. If not, it isn't. I would check the numbers you are using and see if that updateDL gets called over and over and what numbers it gets. -Alex From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Ben Clinkinbeard Sent: Friday, March 14, 2008 10:30 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Why are modules so buggy? So (unsurprisingly) I tried a shortcut and it seems like your scrollbar theory is correct. I first tried setting the scroll policies of demon button's parent to off but that didn't help. I then changed demon button's positioning (in updateDisplayList()) to 0, 0 and that fixed the issue. Its nice to have it showing the module but I can't be too excited since the positioning obviously can't stay at 0, 0. The original lines from inside updateDisplayList() look like this: nextBtn.x = this.width - nextBtn.width - 15; nextBtn.y = ( this.height - nextBtn.height ) / 2; Seems reasonable to me, am I missing something? Thanks yet again! Ben On Fri, Mar 14, 2008 at 12:20 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: OK, that smells like invalidation loops. At the end of the validation pass something remains invalidated so we do another validation pass, but something still ends up invalidated, so we Until we get a complete validation, the app won't show, and after app startup, until a new component finishes validation, it won't show up. I debug this by setting a breakpoint in LayoutManager.doPhasedInstantiation. If you try it on a test app, you should see that it gets called 3 to 8 times and stops when the app shows up. If you have an invalidation loop, it never stops getting called, and then I debug into it to see who keeps ending up dirty and then try to figure out why. Your demon button could be forcing some edge condition where scrollbars show up then go away (hysteresis). -Alex From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Friday, March 14, 2008 6:54 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Why are modules so buggy? Hi Alex, We are using ModuleLoader so the GC thing shouldn't be an issue. (I tried it with ModuleManager this morning to no avail either.) The animation is just a placeholder at this point so its just a 10 frame tween created in Flash CS3 with a stop() at the beginning
[flexcoders] Flex 3 invalid byte AGAIN :(
I downloaded the Flex 3 trial onto my development box (I'm already a registered Flex 2.10 user). Compiling my first, simple, Flex application gave me a Invalid byte 1 of 1-byte UTF-8 error. Mmm ... I was using the default UTF-8 coding and had changed nothing. So ... I downloaded Flex 3 trial onto my laptop and repeated the process. Same error. WTF? Any ideas please guys? I only want to get off the runway with this baby.
Re: [flexcoders] Re: Why are modules so buggy?
Ah ha! The component is a subclass of TitlleWindow and giving it a width and height prevents the problem. I hadn't been assigning a size because the component eventually has an image loaded into it that is of variable size. I still don't understand why it was happening though since nothing had been added to the component yet, meaning it should be very small. Oh well. Not sure of the best way to approach the issue since maxWidth and maxHeight don't accept percentage values but thats a fairly minor issue compared to where I was yesterday. Note to self: give all module children sizes. Thanks a ton Alex, NEVER would have figured this out on my own. Ben On Fri, Mar 14, 2008 at 2:05 PM, Alex Harui [EMAIL PROTECTED] wrote: What is the class who's updateDL is overridden? It feels like the module's measuredWidth/Height is driven by the right side of the child. As you center you push the child to the right so the container says it wants to be wider and then you push again... -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ben Clinkinbeard *Sent:* Friday, March 14, 2008 10:54 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Why are modules so buggy? Yep, updateDisplayList() gets called continuously with an ever increasing width argument. I let it go above 100,000 before I closed the browser window. I've switched the code to use the w and h args that get passed in as well but it still happens. Now that we know what the problem is how do we figure out the why and how to prevent it? Thanks, Ben On Fri, Mar 14, 2008 at 1:42 PM, Alex Harui [EMAIL PROTECTED] wrote: Assuming you've sized the button before you hit this code, you are also in danger if there is a scale factor applied to the component. We recommend using the unscaledWidth/Height parameters passed into updateDisplayList instead of this.width/height as they are not affected by scale. Setting a child's x,y will trigger invalidation in some containers. Normally, the invalidateDisplayListFlag is still set at this time which prevents another invalidation pass. However, if it affects the scrollbar calculation it could ripple back up and make the parent think about its size again. If scrollPolicy=on the scrollbar is factored into the measurements. If not, it isn't. I would check the numbers you are using and see if that updateDL gets called over and over and what numbers it gets. -Alex -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ben Clinkinbeard *Sent:* Friday, March 14, 2008 10:30 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Why are modules so buggy? So (unsurprisingly) I tried a shortcut and it seems like your scrollbar theory is correct. I first tried setting the scroll policies of demon button's parent to off but that didn't help. I then changed demon button's positioning (in updateDisplayList()) to 0, 0 and that fixed the issue. Its nice to have it showing the module but I can't be too excited since the positioning obviously can't stay at 0, 0. The original lines from inside updateDisplayList() look like this: nextBtn.x = this.width - nextBtn.width - 15; nextBtn.y = ( this.height - nextBtn.height ) / 2; Seems reasonable to me, am I missing something? Thanks yet again! Ben On Fri, Mar 14, 2008 at 12:20 PM, Alex Harui [EMAIL PROTECTED] wrote: OK, that smells like invalidation loops. At the end of the validation pass something remains invalidated so we do another validation pass, but something still ends up invalidated, so we…. Until we get a complete validation, the app won't show, and after app startup, until a new component finishes validation, it won't show up. I debug this by setting a breakpoint in LayoutManager.doPhasedInstantiation. If you try it on a test app, you should see that it gets called 3 to 8 times and stops when the app shows up. If you have an invalidation loop, it never stops getting called, and then I debug into it to see who keeps ending up dirty and then try to figure out why. Your demon button could be forcing some edge condition where scrollbars show up then go away (hysteresis). -Alex -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *ben.clinkinbeard *Sent:* Friday, March 14, 2008 6:54 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Why are modules so buggy? Hi Alex, We are using ModuleLoader so the GC thing shouldn't be an issue. (I tried it with ModuleManager this morning to no avail either.) The animation is just a placeholder at this point so its just a 10 frame tween created in Flash CS3 with a stop() at the
[flexcoders] Dead simple garbage collection problem
I have a container: mx:VBox id=mainContainer width=100% height=100%/ and the following code private var masterView:Container; public function loadHome () : void { masterView = null; mainContainer.removeAllChildren(); masterView = new Home(); mainContainer.addChild(masterView); } If i call loadHome() repetively, it never deallocate Home(), and the # of Home() objects keep on increasinng, even if i run the garbage collection through the Profiler. Same problem if i don't declare masterView, and instead just say mainContainer.addChild (new Home()) Does anyone know how to explicitly free the memory? The documentation said removeAllChildren() will not deallocate the object, but i also set it to null. So technically the Home() has no references pointing to it, and should be deallocated? Any input? Thank you Vu
[flexcoders] Please Help. Pulling hair with TileList and FilterFunction
Hello and thanks for reading this !!! I am using a TileList with a FilterFunction on the dataprovider which is an XMLListCollection. mx:TileList id=productTiles dragEnabled=true dragMoveEnabled=false height=100% width=100% useRollOver=false fontStyle=normal columnCount={m_columCount} rowCount={m_rowCount} selectionColor=WHITE direction=horizontal borderThickness=0 itemRenderer=ProductRenderer dataProvider={m_products} allowMultipleSelection=false / And my Filter Function is: private function searchDemo(item:Object):Boolean{ var src:String = filterText.text; var dst:String = XML(item).toXMLString(); var isMatch:Boolean = false if(dst.toLocaleLowerCase().search(src.toLowerCase()) != -1){ isMatch = true } return isMatch; } The problem is when I type text in a Text Entry Box the TileList shrinks to show the matched string ( which is good ) HOWEVER, When I start dragging a Tile Item the faded Icon is of the wrong image as if the TileList did not fully update the XMLList collection or something. Is there something I need to do in order to tell my TileList the the data provider ( XMLListCollection ) is filtered ? I do execute the refresh() on my FilterFunction and all seem ok only that when starting to drag items from the filtered TileList does not work correctly ... Please Help... Thanks again, Sean.