Re: [flexcoders] Zoom instance
ret.easingFunction = mx.effects.easing.Exponential On 03/04/2007, at 3:50 PM, {reduxdj} wrote: I started an AS3.0 zoomEffect, how do I add Exponential easing? I need a little more clear example please. (Here is my code, how do i do the easing method) private function zoomOut(e:MouseEvent):void{ var ret = new Zoom(); ret.duration = 1000; ret.zoomWidthFrom=2; ret.zoomWidthTo=1; ret.zoomHeightFrom=2; ret.zoomHeightTo=1; ret.target=this; ret.start(); } Thanks, Patrick
[flexcoders] Re: A question about rsl files and path
First all, thanks, Brian, for your answer. I'm using Flex builder path Add SWC, I'm triying with your options, but I can't see any difference as result. When I build my Library, I get a file library.swf, packed in my .swc. When I build my project with this library (included as Right click project properties Flex Build Path Library Path Add SWC ), I have some files in the root directory, AND library.swf, also in the root directory. I want to remove this file, or, at least, change it to a subdirectory, if it's possible. I'm quite sure that the solution is a simple use of paths and compiler options. When working with applications and flex libraries side by side just include the library as a project. Right click project properties Flex Build Path Library Path Add Project You then may need to change the build order of your projects to make sure the Library gets built before the application
[flexcoders] How to determine in XML structure that node of interest is at root level?
Dear flexcoders, I have the following XML: root Folder id=1/ Folder id=2 Station id=1 / Station id=7/ /Folder Folder id=5 / /root How to determine that XML node, say Folder id=5 is located at rool level of XML structure? Pretend that variable 'myNode' contains a reference to Folder id=5 XML node. The following boolean check: myNode.parent()name.toString() != root does not work for me and it seems to be rigid and insecure. -- With flex regards, JabbyPanda
[flexcoders] forms examples
Hi all, can anyone link to an example (or three) showing the use of forms in flex please? I have a client who'd like to see some samples or even screenshots of general form bits and pieces as done in flex, so I thought I'd see if there's anything out there I don't know about before knocking something up myself. cheers, Toby --- Life is poetry, write it in your own words --- Toby Tremayne Senior Technical Consultant Lyricist Software 0416 048 090 ICQ: 13107913
[flexcoders] How to invoke a class built as a swc automatically with the use of mixin?
Hi My problem is that I have a Flex library file (swc) that contains a class that holds several methods that I want several Flex-projects to register with the ExternalInterface API so that they can be reached from Javascript or ActiveX. I want the Flex project to just include the swc file. I figure that I need to use mixin and to register the library class with the APPLICATION_COMPLETE. I want to be able to add this swc file as a library, and without making any calls to this class, making the addCallback methods be registered automatically. How do I do that? Thanks Peter [Mixin] public class ExternalLib { public function ExternalLib(root:DisplayObject) { root.addEventListener(FlexEvent.APPLICATION_COMPLETE, applicationCompleteHandler); } public static function init(root:DisplayObject):void { if(!externalLib) { _root = root; externalLib= new ExternalLib(root); } } private function applicationCompleteHandler(event:FlexEvent):void { _root.removeEventListener(FlexEvent.APPLICATION_COMPLETE, applicationCompleteHandler); externalLib= this; if(ExternalInterface.available) { ExternalInterface.addCallback(addevent, catchEvent); ExternalInterface.addCallback(checkProperty, catchProperty); } else trace(Error: Not available); } }
[flexcoders] Re: Accessing nested DisplayObjects programatically
I'm not trying to acces the children from MXML file, but from a Controller class. My app is set up in the following way: application script var ctrl:Controller = new Controller(this); script !-- all the nested ui elements here -- /application What I wanted to achieve is that I don't have to have any code in the MXML file (well appart from instantiating controller) and that I controll all the UI from a Controller class which upon construction creates the references to all the UI elements I'm interested in. Now, this works by casting to Conatainers and drilling down with the getChildByName() but I don't know if I want to do that anymore. Beacuse: I heard that in Adobe labs they dropped this concept of a controller helper and are instead relying quite heavily on the code inside MXML. Heavily means all the UI stuff. I'm quite new so I don't know which approach to take. I'm personally n favour of keeping as much as possiblenthe classes, but if the Adobe folks say different then I'm sure they also know what they're talking about. --- I have heard the Adobe folks advise against using getChildByName() because name is internal and may not forever equal id. Why aren't you just using id? Tracy From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Alen Balja Sent: Monday, April 02, 2007 3:37 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Accessing nested DisplayObjects programatically Cheers, it works. The return type of getChildByName() is DisplayObject so I didn't even think of typing it to something else. Now I can easily drill down the UI hierarchy and create references to important UI elements in class. I just started with Flex and the idea is to remove all the code from mxml file and use a class to interact with UI elements. Alen -- Type it as a Container Object. Can DisplayObject even contain children??? On 02/04/2007, at 7:52 AM, Alen Balja wrote: Hi list, Is there a way to access nested children of the Application object programatically? I have an app: Application object and inside I have HDividededBox (id=topFrame) and inside of this I have two more elements with ID properties. These are VBox (id=leftPane) and VBox (id=rightPane). If I do like this: topFrame = app.getChildByName(topContainer);
Re: [flexcoders] INCLUDING mxml data?
On Monday 02 Apr 2007, Steve Kellogg wrote: I have things like a bunch of effects, etc that I'd like to organize into a separate file for easier maintainability. If you break it into /main.mxml, foo/bar/other.mxml and baz/effect.xml, than you can import the namespaces in main.mxml similar to the main Adobe space: xmlns:bar=foo.bar.* xmlns:fx=baz.* Then call the MXML components thus: bar:other / fx:effect / -- Tom Chiverton Helping to quickly grow integrated patterns 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re:OS X spotlight component
take a look at this component http://examples.kuwamoto.org/completion/ v0.7/Completion.html
Re: [flexcoders] Flex Builder-Mac
Hi matt, Thanks so much for your help:) When I downloaded the trial this was the only option. Not a big deal, but when I buy it this week, I would like the plugin version over the stand alone. You say this is a different download? Is there a link? I just went to: http://www.adobe.com/cfusion/tdrc/index.cfm?loc=en%5Fusproduct=flex picked English|Mac but no plug in vs standalone option happened. Thanks, John - Original Message From: Matt Chotin [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, April 2, 2007 2:48:11 AM Subject: RE: [flexcoders] Flex Builder-Mac Hi, there is a different download for the plugin version of FB on Mac. I think you probably should grab that rather than copying plugins around. Matt From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of John Barrett Sent: Friday, March 30, 2007 1:40 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] Flex Builder-Mac Hi, I just downloaded the Flex Builder for the Mac, this is the 30 trial. My Question is it all downloaded to: /Applications/ Adobe/FlexBuilde r2/ inside here there is flex sdk 2 plugins plus others If I want to use the plug in version for eclipse, do I just transfer the pluings in the plugin folder into the plug in folder to ecplise? Seems like this was the only options for Mac, I remember when I did this on a Windows machine, their was an option before the download (standalone, or plugin), but tonight it just downloaded this way. If I just transfer the plug ins into eclipse, where should I keep the sdk? Thanks, John Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. http://autos.yahoo.com/new_cars.html
[flexcoders] Re: forms examples
Toby, might i suggest that for a simple request like this, maybe a quick google search would produce results? http://www.google.com/search?client=safarirls=enq=flex-2+form+exampleie=UTF-8oe=UTF-8 shows quite a few examples of Flex based forms Mitch --- In flexcoders@yahoogroups.com, Toby Tremayne [EMAIL PROTECTED] wrote: Hi all, can anyone link to an example (or three) showing the use of forms in flex please? I have a client who'd like to see some samples or even screenshots of general form bits and pieces as done in flex, so I thought I'd see if there's anything out there I don't know about before knocking something up myself. cheers, Toby --- Life is poetry, write it in your own words --- Toby Tremayne Senior Technical Consultant Lyricist Software 0416 048 090 ICQ: 13107913
Re: [flexcoders] Re: forms examples
Yes, I've done the google searches, and was looking for what I might find from the experts as something more specific ;p Toby On 03/04/2007, at 22:12 , maunger wrote: Toby, might i suggest that for a simple request like this, maybe a quick google search would produce results? http://www.google.com/search?client=safarirls=enq=flex-2+form +exampleie=UTF-8oe=UTF-8 shows quite a few examples of Flex based forms Mitch --- In flexcoders@yahoogroups.com, Toby Tremayne [EMAIL PROTECTED] wrote: Hi all, can anyone link to an example (or three) showing the use of forms in flex please? I have a client who'd like to see some samples or even screenshots of general form bits and pieces as done in flex, so I thought I'd see if there's anything out there I don't know about before knocking something up myself. cheers, Toby --- Life is poetry, write it in your own words --- Toby Tremayne Senior Technical Consultant Lyricist Software 0416 048 090 ICQ: 13107913 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links --- Life is poetry, write it in your own words --- Toby Tremayne Senior Technical Consultant Lyricist Software 0416 048 090 ICQ: 13107913
Re: [flexcoders] Re: forms examples
On Tuesday 03 Apr 2007, Toby Tremayne wrote: Yes, I've done the google searches, and was looking for what I might find from the experts as something more specific ;p Your question wasn't very specific, sorry :-) Had you seen the 'style explorer' ? -- Tom Chiverton Helping to evangelistically e-enable fine-grained customers 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Repost: FileReference.upload() and IIS 6.0 (Windows Server 2003)
Nothing. It appeared to me from the documentation that it was not needed for IIS, however this would not be the first time I miss read the documentation. Is there a server side upload component for IIS 6.0 and/or ASP.NET 2.0? Brian --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote: What are you using as a server side upload component? --- In flexcoders@yahoogroups.com, bsausser bsausser@ wrote: Upload Progresses, then fails at the end of the POST. Why? and What can be done to fix it? Flex Error Text: Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error. HTTP Sniff Result: http://www.dendera.com/dir/fr_upload_snif_result.xml Multiple IIS configurations did not change the result. Write on/off Integrated Windows Authentication on/off Anonymous access on/off NTFS file security IUSR_ | Full Control NTFS file secutiry EVERYONE | Full Control ** The IIS Server(s) is a part of an Active Directory Domain *** Hosted on two different IIS Machines with the same result on each one of them. sniff result ?xml version=1.0 encoding=UTF-16? log homepage=http://www.ieinspector.com; product=HttpAnalyzer version=1 entry method=POST url=http://fm.dendera.com/IMG_1567.JPG; timestart2007-03-31T07:52:17.655Z/timestart timeend2007-03-31T07:52:19.118Z/timeend duration1.463 s/duration processname/ result404/result size1795/size stageREQUEST_CLOSE/stage mimetypetext/html/mimetype redirecturl/ requestCamefromCacheFalse/requestCamefromCache responseCamefromCacheFalse/responseCamefromCache requestobjectname/IMG_1567.JPG/requestobjectname winet_sr_resultTrue/winet_sr_result winet_sr_errormessage/ bodySize1635/bodySize headers requestheaders headerPOST /IMG_1567.JPG HTTP/1.1/header headerAccept: text/*/header headerContent-Type: multipart/form-data; boundary=- -cH2ae0ei4KM7Ij5KM7GI3gL6ae0gL6/header headerUser-Agent: Shockwave Flash/header headerHost: fm.dendera.com/header headerContent-Length: 3595908/header headerConnection: Keep-Alive/header headerCache-Control: no-cache/header /requestheaders responseheaders headerHTTP/1.1 404 Not Found/header headerContent-Length: 1635/header headerContent-Type: text/html/header headerServer: Microsoft-IIS/6.0/header headerX-Powered-By: ASP.NET/header headerDate: Sat, 31 Mar 2007 14:52:18 GMT/header /responseheaders /headers content contentLength1635/contentLength mimetypetext/html/mimetype text ![CDATA ]] /text /content cookies sent/ received/ /cookies cache BeforeRequest UrlInCacheFalse/UrlInCache /BeforeRequest AfterRequest UrlInCacheFalse/UrlInCache /AfterRequest /cache QueryString/ PostData/ /entry /log
[flexcoders] Where does flexunit live?
Hi there, I was wondering where is the home of the current maintained version of flexunit? Some posts suggest the google code site http://code.google.com/p/as3flexunitlib/ which has version 0.85, however a more recent version (0.9) is available on the iterationtwo site here: http://www.iterationtwo.com/open_source_flexunit.html Thanks, Manish
[flexcoders] Re: is there a simple way to center a loaded image?
OMG so many thanks :) it was really that simple. got rid of all that AS code and even got rid of that canvas. :D many thanks, herculano --- In flexcoders@yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Why not get rid of the canvas as well. It doesn't seem to serve a purpose. mx:Image width=190 height=190 topPadding=10 leftPadding=10 horizontalAlign=center verticalAlign=middle / scaleContent and maintainAspectRatio are set by default; On 03/04/2007, at 11:54 AM, Muzak wrote: Not sure, but it seems like you're not realizing that the Image component itself is a container. CanvasImageloaded_jpg/Image/Canvas So you don't need to *tell the Image component to center inside the canvas*, but rather you need to *center the loaded image inside the Image component* and set the Image component to 100% width and height (so it completely fills the canvas). The following should do the trick. mx:Canvas width=250 height=250 borderStyle=solid mx:Image width=100% height=100% source=path_to_image.jpg verticalAlign=middle horizontalAlign=center scaleContent=true maintainAspectRatio=true / /mx:Canvas regards, Muzak - Original Message - From: herklano [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, April 02, 2007 11:07 PM Subject: [flexcoders] Re: is there a simple way to center a loaded image? the image is dynamic loaded through a database. i want to scale proportionally the image to the canvas boundaries and then center it. i allready got it working with this code, but thx for the help anyway :) mx:Canvas x=10 y=10 width=190 borderStyle=none backgroundColor=#d0d0d0 height=190 mx:Image id=SMCDadosImg complete=changeDadosImg(event); / /mx:Canvas private function changeDadosImg(event:Event):void { var pW_DadosImg:Number; var pH_DadosImg:Number; pW_DadosImg = event.target.contentWidth; pH_DadosImg = event.target.contentHeight; var scaleF:Number; trace(W.ini = + pW_DadosImg); trace(H.ini = + pH_DadosImg); if (pW_DadosImg pH_DadosImg) { scaleF = 190/pW_DadosImg; pH_DadosImg = scaleF * pH_DadosImg; event.target.width = 190; event.target.height = pH_DadosImg; trace(scaleH = + scaleF); } else if (pW_DadosImg pH_DadosImg) { scaleF = 190/pH_DadosImg; pW_DadosImg = scaleF * pW_DadosImg; event.target.height = 190; event.target.width = pW_DadosImg; trace(scaleW = + scaleF); } else if (pW_DadosImg == pH_DadosImg) { event.target.height = 190; event.target.width = 190; } event.target.y = (190/2) - (event.target.height/2); event.target.x = (190/2) - (event.target.width/2); pW_DadosImg = event.target.width; pH_DadosImg = event.target.height; trace(W.2 = + pW_DadosImg); trace(H.2 = + pH_DadosImg); } --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: OK, I'm now confused. If you want an image to fill a canvas then you don't really need to center it (unless there's going to be distortion from aspect ratio changing). And, if you fill the Canvas, I'd think you'd just use the backgroundImage instead. Can you provide more details on the scenario? -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of herklano Sent: Monday, April 02, 2007 7:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: is there a simple way to center a loaded image? hi, i tried that aprouch but the problem is that i want to scale the image to the canvas boundaries, so i really think the only way to do it is through AS. --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , B. Korsmit bmod@ wrote: Hi Herklano, You probably want to use the horizontalAlign and verticalAlign styles to do this? mx:Image id=SMCDadosImg horizontalCenter=0 verticalCenter=0 horizontalAlign=center verticalAlign=middle / That's what I often use... herklano wrote: hi, i'm kinda noob at coding in general, but i'm trying to work my way to get a image that is loaded in a Canvas to center to it after it has been loaded to it. i'm trying this but it doesn't work: mx:Canvas x=10 y=10 width=190 borderStyle=none backgroundColor=#d0d0d0 height=190 mx:Image id=SMCDadosImg complete=changeSMCDadosImg(event); horizontalCenter=0 verticalCenter=0/ /mx:Canvas private function changeSMCDadosImg(event:Event):void { var pW_SMCDadosImg:Number; var pH_SMCDadosImg:Number; pW_SMCDadosImg = event.target.width; pH_SMCDadosImg = event.target.height; trace(W = + pW_SMCDadosImg); trace(H = + pH_SMCDadosImg); if (pW_SMCDadosImg pH_SMCDadosImg)
[flexcoders] Flex Builder 2 hotfix, error ResourceBundle:charts unable to resolve class
Hi, Has anyone else experienced problems with charts after applying the FB hotfix? I'm getting an error that says: Unable to resolve a class for resource bundle:charts. This happens when I put a ColumnChart or a BarChart on a panel in design mode and compile. Some of the other charts work fine. If i rollback to the old sdk dir the app will compile without error. (I unzipped the hotfix, selected all and copy/pasted the contents into the old sdk dir and said yes when it asked me to replace all. After the update I had to reneter my serial numbers and copy the charts.swc file from the old sdk dir to the new sdk/framworks/lib dir as it is not in the hotfixes frameworks/lib dir. FWIW, OSX on PPC, FB 2.0.1 with charting. Does anyone have any clues to offer on how I can fix this problem? Other than to not use the hotfix. Thanks for any help. - shaun
[flexcoders] Re: TextArea htmltext parsing
Thanks for the update... i've also made progress in my spell checker suggest words algorithm. I'm basically using a modified version of the Levenshtein algorithm. I've found that with some minor tweaks it works great for 90% of mispelled words. I'm always looking to speed up the word distance algorithm Levenshtein provides. As far as UI, i just modeled the spell checker dialog window MS Word uses. It seams to be the most intuitive and what most people know. I would be curious to know your performance since everytime you want to suggest a word or check some text for bad spellings you have to go back to the server. I have the complete word list downloaded into my app and do all checking and suggesting based on that list. It's not perfect but no spell checker is. I get suggestions back within 100- 500 milliseconds, sometimes less depending on the length of the word. Now the question is, how well will this perform for me on a slower pc... i'm running a dual core 2.4ghz with 2gb of ram, i'm guessing on a slower pc i won't see as fast of a response. I plan to test to see how well it holds up. --Scott --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: Scott, I'm sending the word Array to PHP for checking. PHP will check each word until it finds an incorrect word, then it will send the wrong word back, along with 10 suggestions. I'm not that good at PHP, so I hired someone to do this for me. We've worked out a fairly comprehensive logorithm that I'm quite pleased with the suggested words it returns. I'm still working on the Flex part, but how I envision this is that Flex gets the wrong word back, searches for it and highlights/underlines it. The user is presented with a list of words they can replace it with, or they can type in a new word (there are some good examples of similar stuff in the Flex Builder Help/Flex 2 Developer's Guide: Selecting and modifying text and Programming RichTextEditor Subcontrols). Programming RichTextEditor Subcontrols has a section near the end that has a find/replace Application that uses a RichTextEditor with a TitleWindow popup. Anyway, after correcting or adding the wrong word, I re-send the word Array to PHP for checking. Since I'll allow them to modify the text during the spell checking process, I resend the whole array until there are no incorrect words. Still thinking about how to give them the option to ignore words, without adding to their custom dictionary, so the spell check doesn't get caught in a loop of returning a word that the user says is correct, but they don't want to add.
[flexcoders] Re: flex authenticating and sessions...
Nick, Thanks for the reply... One question, if you are using SSL, why are you also encrypting the data through the application? I also saw mention in several presentations that Flex apps are being used by financial institutions, so this must have been tackled already in an enterprise security setting. Is it a full custom activity to implement strong security for flex applications? Thanks JK --- In flexcoders@yahoogroups.com, Nick Collins [EMAIL PROTECTED] wrote: The way I have been doing it, while admittedly probably not best, is this: I have all my roles and user information in my database. When the user types in their username and password, it is encrypted, sent to the CFC which decrypts it, and runs a query against the database. If the authentication is successful, it ecrypts and returns the users data (name, role, etc.) to the flex frontend, which then decrypts it and displays the information they have access to. The roles table of my database has flags for different sections of the app, and it has to return a positive value to open up access to view, or to edit, that section. The encryption key for the AES encryption is stored in an external XML file and is read in when the app loads. Additionally, I send the data via SSL. Is it hacker-proof, probably not, but what is? It at least makes it enough of a pain that I haven't had any problems. On 4/2/07, ripe101 [EMAIL PROTECTED] wrote: OK, I have only found several posts asking, and many answers that don't seem to really address the issue. How is user authentication and session management handled best in Flex? Taking into consideration the following: * All business logic is server side and available only to an authenticated user (and only the components they have access to). * Cannot reverse engineer the flash file to gain access to the server side. * Each server side call must be authenticated. * Preferably the main application is not downloaded until the user is authenticated. I saw suggestions on authenticating the user and then storing the roles on the client, this seems very insecure, as the user could potentially write their own app and stick roles in that client side variable. I got the few books on Flex that are out there, but none of them really cover this critical issue. Maybe I'm missing something basic? Thanks JK
Re: [flexcoders] VerifyError: Error #1030
After leaving my code alone for the night can coming back in the morning my answer became obvious. The line that is doing it is: callLater(textField.setSelection[0,0]); this should be callLater(textField.setSelection,[0,0]); I guess it's a bug in the complier because textField.setSelection[0,0] isn't a function and should have thrown a compile time error. Either way that's what it was. Thanks, - Dan On 4/2/07, Alex Harui [EMAIL PROTECTED] wrote: You cannot write code that generates a verifyError. A verifyError is either a bug in the compiler, or a mismatch between player versions and compiler output, which can sometimes be caused by linking against old AS code. If you don't have that situation, can you post the example? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Freiman *Sent:* Monday, April 02, 2007 12:27 PM *To:* flexcoders *Subject:* [flexcoders] VerifyError: Error #1030 VerifyError: Error #1030: Stack depth is unbalanced. 1 != 0. This is thrown when I past text into an extension of UITextField. I think it's trying to verify the function that's listening for the KeyboardEvent.KEY_DOWN. For the record, I don't know what that last sentence means. Anybody have a guess at what's going on? - Dan Freiman
Re: [flexcoders] Flex Builder 2 hotfix, error ResourceBundle:charts unable to resolve class
On Tuesday 03 Apr 2007, shaun etherton wrote: After the update I had to reneter my serial numbers and copy the charts.swc file from the old sdk dir to the new sdk/framworks/lib dir as it is not in the hotfixes frameworks/lib dir. Could there be a separate hotfix for the charts ? -- Tom Chiverton Helping to evangelistically network cutting-edge content 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. 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.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Help with finding days between a start and end date
Thank you, this is working nicely -Mark --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Your math is OK, but for timezones that support Daylight Savings Time your logic isn't. In those timezones, not every day will be exactly 24 hours long. A quick way to verify is to make the following change: hListArray.addItem(lastDate.toUTCString()); If you need dates converted to local time, you'll have to adjust for the timezone offset of the date in question. I think the following should work: var lastDate:Date = new Date(nextDay); lastDate.setTime(lastDate.getTime() - lastDate.getTimezoneOffset () *6); hListArray.addItem(lastDate.toLocaleString()); You may also have a few issues to sort out regarding the timezone of the stored dates, and how those stored values are initially converted to local dates. --- In flexcoders@yahoogroups.com, Mark pusateri02@ wrote: I'm having some problems with my, I think, math for getting all the days into an arrayCollection. It works well on items with less time between start and end dates such as a few days or months apart. But when it gets up to about 200+ days something strange happens, it changes from Date Sun Nov 5 2006 12:00:00 AM to Sun Nov 5 2006 11:00:00 PM. Then a few months down it will switch back to 12. So I guess that's why I think it may be my Math. I'd like someone to double check what I'm doing because I can't see the error. The dates are stored like 2007,12,25 var StartDate:String = item.startDate; var startResults:Array = StartDate.split(,); var nsd:Date = new Date(startResults[0],startResults[1]- 1,startResults[2],0,0,0,0); trace(SD + nsd); // var ENDDate:String = item.endDate; var ENDResults:Array = ENDDate.split(,); var ned:Date = new Date(ENDResults[0],ENDResults[1]-1,ENDResults [2],0,0,0,0); trace(ED + ned); // test for all days var millisecondsPerDay:int = 1000 * 60 * 60 * 24 //8640; var totalDays:Number = (ned.getTime() - nsd.getTime ())/millisecondsPerDay+1; trace(total + totalDays); var nextDay:Number = nsd.getTime(); hListArray.removeAll(); for(var i:int = 0; itotalDays; i++){ var lastDate:Date = new Date(nextDay) hListArray.addItem(lastDate.toLocaleString()); nextDay += millisecondsPerDay; }
[flexcoders] Re: flex authenticating and sessions...
What I do is this: authenticate the user's ID and password. If the credentials check out, I generate a UUID token which I then send back to the client. The database table logs the token, the user ID it belongs to, and a timestamp representing the last time the token was used. On subsequent calls to the server, the token is passed along as a parameter. Before filling a request, the server side components all pass the token they receive to a security component which validates the token against the database table, checks the timestamp is within a given timeout window, and updates the last-used timestamp if everything checks out. Everything goes over SSL. --- In flexcoders@yahoogroups.com, ripe101 [EMAIL PROTECTED] wrote: Nick, Thanks for the reply... One question, if you are using SSL, why are you also encrypting the data through the application? I also saw mention in several presentations that Flex apps are being used by financial institutions, so this must have been tackled already in an enterprise security setting. Is it a full custom activity to implement strong security for flex applications? Thanks JK --- In flexcoders@yahoogroups.com, Nick Collins ndcollins@ wrote: The way I have been doing it, while admittedly probably not best, is this: I have all my roles and user information in my database. When the user types in their username and password, it is encrypted, sent to the CFC which decrypts it, and runs a query against the database. If the authentication is successful, it ecrypts and returns the users data (name, role, etc.) to the flex frontend, which then decrypts it and displays the information they have access to. The roles table of my database has flags for different sections of the app, and it has to return a positive value to open up access to view, or to edit, that section. The encryption key for the AES encryption is stored in an external XML file and is read in when the app loads. Additionally, I send the data via SSL. Is it hacker-proof, probably not, but what is? It at least makes it enough of a pain that I haven't had any problems. On 4/2/07, ripe101 ripe909@ wrote: OK, I have only found several posts asking, and many answers that don't seem to really address the issue. How is user authentication and session management handled best in Flex? Taking into consideration the following: * All business logic is server side and available only to an authenticated user (and only the components they have access to). * Cannot reverse engineer the flash file to gain access to the server side. * Each server side call must be authenticated. * Preferably the main application is not downloaded until the user is authenticated. I saw suggestions on authenticating the user and then storing the roles on the client, this seems very insecure, as the user could potentially write their own app and stick roles in that client side variable. I got the few books on Flex that are out there, but none of them really cover this critical issue. Maybe I'm missing something basic? Thanks JK
[flexcoders] Re: need a little help with itemRenderer
Thank you, this is working much better than what I had :) -Mark --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Mark, Try something like this: (make sure that your itemRenderer is a container that supports the backgroundColor style property. You can change the text color this way as well, using color. override public function set data(value:Object):void { super.data = value; if( value != null ) { if ( value.myProperty == myCondition ) { this.setStyle(backgroundColor,red); } else { this.setStyle(backgroundColor,#FF); } super.invalidateDisplayList(); } } -TH __ Tim Hoff Cynergy Systems, Inc. http://www.cynergysystems.com Office http://www.cynergysystems.comoffice/ : 866-CYNERGY --- In flexcoders@yahoogroups.com, Mark pusateri02@ wrote: I need to change the background color of some items in the HorizontalList. I thought the easiest way would be to create an itemRenderer such as below. But I can't change the color this way. Does anyone know what the problem is here? The setColor function will have much more to it once I get the setStyle to work. Thanks ## In the Application## mx:HorizontalList id=hl width=100% height=50 dataProvider={hListArray} columnWidth=125 showScrollTips=true scrollTipFunction=myScrollFunction selectable=false itemRenderer=com.radar.HListRenderer / ## ItemRenderer ## ?xml version=1.0 encoding=utf-8? mx:TextArea xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=setColor() mx:Script ![CDATA[ public var newColor:Number; public function setColor():void { trace(changing); this.setStyle(Color, 0xFF); } ]] /mx:Script /mx:TextArea
[flexcoders] Disapperaring images in datagrid
Hi All, I have a strange problem with images I am putting in a datagrid. I have two columns in a datagrid populated with icons. I get the image name from an xml file and use an itemrenderer to display the icons. In creating the page everything works fine, but as soon as I move the compiled files to another persons machine, or even a different directory on my own, the images don't appear. When moving the files I've checked to make sure the images are moved along with everything else. Here's the datagrid (for brevity I've only included the two columns): mx:DataGrid x=10 y=35 width=765 height=195 rowHeight=18 headerColors=[#ed8e5f, #ed8e5f] headerHeight=20 borderColor=#66 id=dgInvoiceResults selectedIndex=0 wordWrap=false alternatingItemColors=[#dd,#cc] textAlign=left dataProvider={invoicesXML.item} creationComplete=totalGrid() mx:columns mx:DataGridColumn headerText=! dataField=indicator width=30 headerRenderer=comps.cmpHeaderRenderer itemRenderer=comps.invoices.indicator / mx:DataGridColumn headerText=Source dataField=source width=55 headerRenderer=comps.cmpHeaderRenderer itemRenderer=comps.invoices.invSource / /mx:columns /mx:DataGrid and here are the two renderers: Indicator: mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=2 width=50 height=20 horizontalAlign=center mx:Image source=../images/{data.indicator} width=14 height=14 left=5 toolTip={data.alert}/ /mx:HBox and invSource: mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=2 width=50 height=20 horizontalAlign=center mx:Image source=../images/{data.invSource} width=14 height=14/ /mx:HBox Can anyone see why the images display correctly when in the same directory as the source files but not when they are moved elsewhere? Thanks, Jack
[flexcoders] Timezone of Date Object
is there a way to set the timezone of a date object to something other than the local timezone? I would would like to be able to allow the user to select a timezone when they enter a time in a field. - Kevin
[flexcoders] Re: Timezone of Date Object
short answer, no. But I have been working on a library that provides this option. It's not really ready for release yet. Give me a few more days to document it and I'll send you what I have. Paul --- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: is there a way to set the timezone of a date object to something other than the local timezone? I would would like to be able to allow the user to select a timezone when they enter a time in a field. - Kevin
[flexcoders] Re: DateField Bug
I ran into this exact same issue the other day. I have a form with a datefield/datepicker component and I found that if it is set to, say today's date, and you then expand the date chooser and reselect the same date, it comes back with NaN/NaN/NaN as the selected date. Anyone else seen this or know what might be causing it? --- In flexcoders@yahoogroups.com, Chad Callahan [EMAIL PROTECTED] wrote: When selecting the date that the DateField object is already set to, the DateField text display becomes empty. Does selecting the same date as is already selected cause the new selected date to become null? Is there a property I can set to disable this feature? CHAD CALLAHAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x195 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you.
[flexcoders] Upload file along with other associatred data?
I'm in the process of making a small form to upload a file to my PHP server. I'm using a FileReference and was following the examples in the AS3 documentation. It's working well. But I'd like to send additional information along with it (basically equivalent to hidden fields in an HTML form) like my user's ID, and the id of an associated item in the database. Does anyone have an example/code to do this? All the examples I see assume the file is the ONLY thing being uploaded. If possible, I'd like to get the same feedback as the myFileReference.upload() events, such as progress, complete, etc if possible, but that's secondary. Thanks! -- TC
[flexcoders] Re: Problem calculating repeater Height
Any help? On 3/27/07, Paolo Bernardini [EMAIL PROTECTED] wrote: Hi, I have nested repeaters, I need to dispatch an event after all repeater have finished rendering, and pass the height of the UIComponet that holds the repeaters. The problem is that I haven't found a way to know when the final height is available. I have tried using repeatEnd event callLater but all the methods that I've tried, are been dispatched too soon, before the actual height is been set. this is an example of my situation, I need to dispatch an event that pass techVBox.height after all repeater are rendered. mx:VBox id=techVBox width=100% verticalGap= 1 backgroundColor=#ff mx:Repeater id=categoriesDp dataProvider={model.product.categories } views:TecnicalDetailsCategoriesView categoria= { categoriesDp.currentItem} index={ categoriesDp.currentIndex} width= 100%/ /mx:Repeater /mx:VBox TecnicalDetailsCategoriesView contains another repeater mx:Repeater id=detDb dataProvider={categoria.Descriptions } views:TecnicalDetailsDescriptionView width= 100% description={ detDb.currentItem} rowNumb={detDb.currentIndex % 2} parentIndex= { index} index={detDb.currentIndex }/ /mx:RepeaterAny help?
Re: [flexcoders] Upload file along with other associatred data?
Try creating URLvariables var params:URLVariables = new URLVariables(); params.id = memberID; then add the variables to the request.data request.data = params; Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] Re: Connect and Retrieve from MS SQL Server 2005
Hey many thanks Point 1. So, you in general point the new feutures of SQL Server Web Services. Is that suported by either Express and Full Version? Can someone support me with some tutorials of any kind ? Point 2. I have tried by : PHP (with result in a difficul process because the DSN requirements) and ColdFusion 7 ( still in research but seams pretty good) Point 3 Fluorine project use witch languague ? Asp.NET? Thanks For All --- In flexcoders@yahoogroups.com, hugocorept [EMAIL PROTECTED] wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote: If you are using the full version of SQL 2005 (meaning not Express) you may be able to use the built-in Web Services Endpoints ... Have not tried it myself, but I think in theory that should work. -Iko --- In flexcoders@yahoogroups.com, Clint Tredway grumpee@ wrote: you can use just about any server side language (ColdFusion, PHP, ASP, .NET, etc) to connect to SQL Server On 3/28/07, hugocorept hugocore@ wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! -- http://indeegrumpee.spaces.live.com/
[flexcoders] Re: Module Interface Problems
From my experience there is a definite timing issue when loading modules. The ModuleLoader ready event is fired before the Module is fully loaded and you have the ability to talk to it through a common interface (hence the error reporting access to a null value). I would term this one as a bug that is not yet documented by Adobe. This could be because some modules take longer than expected to load, I have no idea, just the observed problem with talking with modules within the ready. I also attempted to use an interface to talk with a module when the the progress event had reached 100%, but still no luck. A possible workaround would be to fire some event from inside the loaded module that tells the outside world that it is indeed loaded. The other option is to set a timer interval and keep checking if the module is loaded (meaning not reporting NULL in the ready event handler). Unless someone else as a viable solution? Adobe? Anyone? - mr --- In flexcoders@yahoogroups.com, kristian_wright2002 [EMAIL PROTECTED] wrote: *BUMP* Anyone have any ideas? I still haven't found a solution... K.
[flexcoders] How to open windows with the background greyed out
Hi, Can anyone tell me or point me to a article which shows how to open a window or a form, with the background greyed out, in a similar way that an Alert popup box does. I have seen loads of examples where people are using it but I cannot see how to do it. Thanks Stephen
Re: [flexcoders] How to open windows with the background greyed out
when using the popUp manager, set the popUp to be modal and that will do the same as an Alert box. var helpWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(this, what, true)); in the above code, if you set the last param to true, it will be modal and that will do what you want. On 03 Apr 2007 08:40:22 -0700, stephen50232 [EMAIL PROTECTED] wrote: Hi, Can anyone tell me or point me to a article which shows how to open a window or a form, with the background greyed out, in a similar way that an Alert popup box does. I have seen loads of examples where people are using it but I cannot see how to do it. Thanks Stephen -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
RE: [flexcoders] enhancement for AS4
FYI, you can make feature requests at http://www.adobe.com/go/wish -matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Thursday, March 29, 2007 3:54 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] enhancement for AS4 Looks like C# to me... at least, that's how the array accessor stuff works. The syntax is nice, sure, though I don't really mind the current style of properties. I do find the proxy stuff to be irritating to extend (if you want customize array access [ ]), and do prefer the C# approach better. Troy. On 3/29/07, Jeffry Houser [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I thought AS3 was made to be ECMA compliant. As such I wasn't expecting a new rendition of ActionScript anytime soon. The question I ask myself, is this supported ECMAScript syntax? Is it supported in any language? ( I actually don't know ). At 03:36 PM 3/29/2007, One Person wrote: I would like to make a request for an upgrade to AS4 and I'm not sure where to send it. So here it is. If there is a better place, please let me know. Currently if I want to create properties I have to do this: public function get useStringCache() : Boolean { return _useStringCache; } public function set useStringCache( value:Boolean ) : void { _useStringCache = value; } I would like to see it changed to this: public property useStringCache:Boolean { get { return _useStringCache; } set { _useStringCache = Value; } } where 'Value' is always the value that is being set. I would also like to have a way to create an indexer like this: public property this[ key:String ]:int { get { return _intArray[ key ]; } set { _intArray[ key ] = Value; } } -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com http://www.dot-com-it.com/ My Podcast: http://www.theflexshow.com http://www.theflexshow.com/ My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com/ Connecticut Macromedia User Group: http://www.ctmug.com http://www.ctmug.com/
[flexcoders] Re: Problem calculating repeater Height
I have also had a few problems getting the final height of components and have been using the updateComplete() event to call a function that stores the final height. --- In flexcoders@yahoogroups.com, Paolo Bernardini [EMAIL PROTECTED] wrote: Any help? On 3/27/07, Paolo Bernardini [EMAIL PROTECTED] wrote: Hi, I have nested repeaters, I need to dispatch an event after all repeater have finished rendering, and pass the height of the UIComponet that holds the repeaters. The problem is that I haven't found a way to know when the final height is available. I have tried using repeatEnd event callLater but all the methods that I've tried, are been dispatched too soon, before the actual height is been set. this is an example of my situation, I need to dispatch an event that pass techVBox.height after all repeater are rendered. mx:VBox id=techVBox width=100% verticalGap= 1 backgroundColor=#ff mx:Repeater id=categoriesDp dataProvider={model.product.categories } views:TecnicalDetailsCategoriesView categoria= { categoriesDp.currentItem} index={ categoriesDp.currentIndex} width= 100%/ /mx:Repeater /mx:VBox TecnicalDetailsCategoriesView contains another repeater mx:Repeater id=detDb dataProvider={categoria.Descriptions } views:TecnicalDetailsDescriptionView width= 100% description={ detDb.currentItem} rowNumb={detDb.currentIndex % 2} parentIndex= { index} index={detDb.currentIndex }/ /mx:RepeaterAny help?
[flexcoders] Validating Datagrid
I am trying to validate a datagrid before I allow the user to click the submit button. I am adding a cell editor for each cell with a validator. On the change event in the cell renderer I validate the cell and set a variable valid in the cell renderer. In the datagrid I capture the cell edit end event and access the valid variable in the cell editor and store it's value in a validation array. I then check the validation array to see if it has any invalid values and if so disable the submit button. The problem I have with this is the validator in the cell editor does not execute until after the cell edit end event. So I do not get the proper status. Does anyone have a better way of doing this or have a code sample on how to do this?
[flexcoders] Re: Module Interface Problems
Well scratch those ideas. NO matter what I do the loaded module reports that the ModuleLoader.child is Null. Back to the lab for more experiments. -mr --- In flexcoders@yahoogroups.com, Michael Ritchie [EMAIL PROTECTED] wrote: From my experience there is a definite timing issue when loading modules. The ModuleLoader ready event is fired before the Module is fully loaded and you have the ability to talk to it through a common interface (hence the error reporting access to a null value). I would term this one as a bug that is not yet documented by Adobe. This could be because some modules take longer than expected to load, I have no idea, just the observed problem with talking with modules within the ready. I also attempted to use an interface to talk with a module when the the progress event had reached 100%, but still no luck. A possible workaround would be to fire some event from inside the loaded module that tells the outside world that it is indeed loaded. The other option is to set a timer interval and keep checking if the module is loaded (meaning not reporting NULL in the ready event handler). Unless someone else as a viable solution? Adobe? Anyone? - mr --- In flexcoders@yahoogroups.com, kristian_wright2002 karnal69@ wrote: *BUMP* Anyone have any ideas? I still haven't found a solution... K.
[flexcoders] Re: ComboBox padding
You can set the paddingLeft and paddingRight attributes inline to adjust to your liking. mx:ComboBox x=443 y=230 paddingLeft=-3 paddingRight=0 mx:dataProvider mx:Array mx:Object label=Item 1/ mx:Object label=Item 2/ mx:Object label=Item 3/ mx:Object label=Item 4/ mx:Object label=Item 5/ mx:Object label=Item 6/ /mx:Array /mx:dataProvider /mx:ComboBox Or do it via CSS: ComboBox { paddingLeft:0; paddingRight:0; } Juan scalenine.com --- In flexcoders@yahoogroups.com, alex steel [EMAIL PROTECTED] wrote: Hi to you all, I recently started developing in Flex, mostly because of Apollo and AS3 I am very good at Flash and AS2 anyway my problem is ComboBox padding text is very wide from sides by default which I really don't need in Flex Style explorer there is no example how to use padding for combobox I see it's there for Text in examples so please if you can give me an example on padding for ComboBox I admin I didn't try to use CSS at all I've asked here first
[flexcoders] Re: DateField Bug
That's the default bahavior (unfortunately) for DateField, last I heard. See this thread: http://tech.groups.yahoo.com/group/flexcoders/message/28095 --- In flexcoders@yahoogroups.com, billy_d_white [EMAIL PROTECTED] wrote: I ran into this exact same issue the other day. I have a form with a datefield/datepicker component and I found that if it is set to, say today's date, and you then expand the date chooser and reselect the same date, it comes back with NaN/NaN/NaN as the selected date. Anyone else seen this or know what might be causing it? --- In flexcoders@yahoogroups.com, Chad Callahan chad@ wrote: When selecting the date that the DateField object is already set to, the DateField text display becomes empty. Does selecting the same date as is already selected cause the new selected date to become null? Is there a property I can set to disable this feature? CHAD CALLAHAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x195 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you.
[flexcoders] Checkbox in DataGrid cell won't turn invisible!
Can someone help please ? In the following itemRenderer code for a dataGridColumn, I'm trying to have the checkbox not show - but it seems that despite having 'visible=false' or even 'includeInLayout=false' it still shows up! In reality, of course, I have a function defining whether or not I show the checkbox but to illustrate the problem I'm having I think the following is as basic an example as I can get: mx:DataGridColumn headerText= dataField=@itemSelected mx:itemRenderer mx:Component mx:CheckBox visible=false/ /mx:Component /mx:itemRenderer /mx:DataGridColumn As you can see, checkbox is forced to false always - but this is totally ignored and the checkbox shows up on all rows! Does anyone know why this happens - and how I can resolve it ? Thanks, Jamie.
Re: [flexcoders] Checkbox in DataGrid cell won't turn invisible!
Hi Jamie, I believe this is a bug in 2.0.1. I have run into the same issue with trying to set a datagrid column to visible=false. It seems to be ignored. Can you try and build your project in 2.0 and see if the issue still occurs? Ben - Original Message From: jamiebadman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 3, 2007 12:18:27 PM Subject: [flexcoders] Checkbox in DataGrid cell won't turn invisible! Can someone help please ? In the following itemRenderer code for a dataGridColumn, I'm trying to have the checkbox not show - but it seems that despite having 'visible=false ' or even 'includeInLayout= false' it still shows up! In reality, of course, I have a function defining whether or not I show the checkbox but to illustrate the problem I'm having I think the following is as basic an example as I can get: mx:DataGridColumn headerText= dataField=@ itemSelected mx:itemRenderer mx:Component mx:CheckBox visible=false / /mx:Component /mx:itemRenderer /mx:DataGridColumn As you can see, checkbox is forced to false always - but this is totally ignored and the checkbox shows up on all rows! Does anyone know why this happens - and how I can resolve it ? Thanks, Jamie. !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} --
[flexcoders] Re: Reference to a class variable
Thanks, but could you please give an example, how to attach the model to the token (I guess build a subclass of the AsyncToken and implement a new property that includes my model???) and most important how to reference it later in the Handler? I don't know how to reference to the class property of a current instance without creating a new instance of the ModelClass. Thanks, Mane
[flexcoders] Re: Make a component 'modal'
So, returning to this issue ... I just ended up going through the PopUpManagerImpl code, looking at the createModalWindow() and showModalWindow() methods and modeled my own modal implementation after that. It's a bit of a pain in the arse. I'm creating a whole notification management framework for a project, so I have the luxury of being able to do this. Might be overkill for other projects ... - Sean --- In flexcoders@yahoogroups.com, Shaun [EMAIL PROTECTED] wrote: I'll do the same if (err.. I mean when) I figure it out. Shaun --- In flexcoders@yahoogroups.com, Sean sean@ wrote: Shaun, I'm working on this problem as well for an application that I'm developing. I'll be sure to post here if I come up with something ... but there seems to be no elegant solution. I'm likely to go the route of using PopUpManager to overlay a copy of my component in the correct spot. Seems kludgey though ... - Sean --- In flexcoders@yahoogroups.com, Shaun sthalberstadt@ wrote: Hey guys, thanks for the additional suggestions. I'm thinking reparenting might involve working through some layout issues, but would probably work. Alex, I assume you mean I should use popupmanager to popup a new instance of the component and set its location to be on top of first instance? What if I want to set focus to an arbitrary box that contains several components - i.e. something arbitrary that I can't create a new instance of? Is there some way to make a popup display an existing displayobject that I'm not aware of? Thanks again! Shaun --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: You could popup a copy of the component over the component in question. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Mark Hawley Sent: Friday, March 30, 2007 10:22 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Make a component 'modal' You could try temporarily reparenting the strong focused component so it was over everything else in the displayList, then drop a big translucent grey box behind it, set to intercept mouse clicks. That sounds like it should work, eh? -Mark Hawley From: Shaun sthalberstadt@ Date: 2007/03/30 Fri AM 09:08:29 CST To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Make a component 'modal' That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus(control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com, Clint Tredway grumpee@ wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun sthalberstadt@ wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] MXML Schema
I am new to Flex and looking for the XML Schema document that defines the structure of an MXML document. I have found a schema at the following URL: http://falkensweb.com/mxml2.xsd However, according to XMLSpy, this schema is not well-formed and therefore not valid. Can you please point me to where Adobe has posted the correct schema? Thanks very much.
[flexcoders] SharedObject.getLocal() throws RangeError
I have two Flex Applications: one is a Flex 1.5 App, the other a Flex 2 App. Both want to access the same local SharedObject (lso). SharedObject.getLocal(foo, /) Both Apps are running on the same domain. When I load the Flex 1.5 App, it accesses and reads the lso correctly. If I then load the Flex 2 App, I get an error every time I try to access the lso. Error.toString(): (RangeError) message: Error #2006: The supplied index is out of bounds. (*) name: RangeError (*) errorID: 2006 (int) Error.getStackTrace(): RangeError: Error #2006: The supplied index is out of bounds. at flash.net::SharedObject$/getLocal() at -- snip -- After this error, the lso is cleared. When the original Flex 1.5 app tries to access it, it's empty. The corresponding .sol file in my Application Data dir is deleted. It happens even if both apps are not running simultaneously. As long as the Flex 1.5 App accesses it first, the Flex 2 app can't. The same error doesn't happen between 2 Flex 1.5 Apps or 2 Flex 2.0 Apps.
RE: [flexcoders] Re: How to disable the default drop shadow for a chartseries?
set the seriesFilters property on the chart. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anewgene Sent: Monday, April 02, 2007 2:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to disable the default drop shadow for a chartseries? Thanks for the reply. But what is the appropriate style to set for a series. From the reference, I known I can set for fill and stroke. What else I can set to disable the drop shadow? Lei --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tom Chiverton [EMAIL PROTECTED] wrote: On Saturday 31 Mar 2007, anewgene wrote: want to disable the drop shadow for the better appearance. However, Have you tried setting the apropiate style ? -- Tom Chiverton Helping to greatly evolve guinine communities on: http://thefalken.livejournal.com 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 St James's Court Brown Street Manchester M2 2JF. 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 Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Need to different images in datagrid column
Hi, Need your help to load an different images in a datagrid column Thanks Vinoth - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.
[flexcoders] Re: Module Interface Problems
Using ModuleManager to load the modules allows me to access the Interface methods(in this case 'selectedMedia'). It seems that casting the child within ModuleLoader as an ISoundPlayer interface (in my example) always reports the child as NULL when loaded. However, casting the loaded module as a DisplayObject gives me access to the methods. Example: private var info:IModuleInfo; public var sm:Object; private function initComponent():void { info = ModuleManager.getModule(SoundPlayer.swf); info.addEventListener(ModuleEvent.READY,onLoadComplete) info.addEventListener(ModuleEvent.ERROR,onLoaderError); info.load(); } private function onLoadComplete(event:ModuleEvent):void { trace(Completed and ready); sm = info.factory.create() as DisplayObject; soundPlayer.addChild(sm as DisplayObject); // add to display if( sm != null ) { trace(w, its ready); sm.selectedMedia = _mp3URL; //the function in the interface } else { trace(sound player not ready); } } private function onLoaderError(event:ModuleEvent):void { trace(Problem + event.errorText); } mx:Canvas id=soundPlayer width=100% height=100%/ // Interface package com.custom.interfaces { import flash.events.IEventDispatcher; public interface ISoundPlayer extends IEventDispatcher { function set selectedMedia(mp3URL:String):void; } } - mr --- In flexcoders@yahoogroups.com, kristian_wright2002 [EMAIL PROTECTED] wrote: *BUMP* Anyone have any ideas? I still haven't found a solution... K.
[flexcoders] Re: Make a component 'modal'
Is this the kind of thing you might be able to share? Shaun --- In flexcoders@yahoogroups.com, Sean [EMAIL PROTECTED] wrote: So, returning to this issue ... I just ended up going through the PopUpManagerImpl code, looking at the createModalWindow() and showModalWindow() methods and modeled my own modal implementation after that. It's a bit of a pain in the arse. I'm creating a whole notification management framework for a project, so I have the luxury of being able to do this. Might be overkill for other projects ... - Sean --- In flexcoders@yahoogroups.com, Shaun sthalberstadt@ wrote: I'll do the same if (err.. I mean when) I figure it out. Shaun --- In flexcoders@yahoogroups.com, Sean sean@ wrote: Shaun, I'm working on this problem as well for an application that I'm developing. I'll be sure to post here if I come up with something ... but there seems to be no elegant solution. I'm likely to go the route of using PopUpManager to overlay a copy of my component in the correct spot. Seems kludgey though ... - Sean --- In flexcoders@yahoogroups.com, Shaun sthalberstadt@ wrote: Hey guys, thanks for the additional suggestions. I'm thinking reparenting might involve working through some layout issues, but would probably work. Alex, I assume you mean I should use popupmanager to popup a new instance of the component and set its location to be on top of first instance? What if I want to set focus to an arbitrary box that contains several components - i.e. something arbitrary that I can't create a new instance of? Is there some way to make a popup display an existing displayobject that I'm not aware of? Thanks again! Shaun --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: You could popup a copy of the component over the component in question. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Mark Hawley Sent: Friday, March 30, 2007 10:22 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Make a component 'modal' You could try temporarily reparenting the strong focused component so it was over everything else in the displayList, then drop a big translucent grey box behind it, set to intercept mouse clicks. That sounds like it should work, eh? -Mark Hawley From: Shaun sthalberstadt@ Date: 2007/03/30 Fri AM 09:08:29 CST To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Make a component 'modal' That would work, but it would only disable controls, not give the greyed out look to the rest of the screen, like the popups do. I suppose I could do like you say, but instead have the style changed for the other components... but I'm really hoping there's some way to create a magic function like: public static function strongFocus (control:DisplayObject):void { ... } that I can call from anywhere and it will grey out and disable mouse interaction with everything on the stage but the control passed in. Am I hoping for too much? --- In flexcoders@yahoogroups.com, Clint Tredway grumpee@ wrote: without seeing how you setup your code, here is my suggestion. Set the parent containers of the other 'components' enabled attribute to a bindable var or even a state, and then when that specific button is clicked, set the var to false or in the case of using states, just change the state. Either way, that should accomplish what you are describing. HTH, Clint On 30 Mar 2007 07:36:17 -0700, Shaun sthalberstadt@ wrote: Is there any way to make a component modal/hilight it? I would like to be able to gray out (like when a popup is shown) everything on the screen but a certain component when the user click on a specific button. Basically I want a popup that's not a popup, but rather sets the focus on a particular component that is already in the displaylist. Thoughts on the best way to acheive this? Thanks, Shaun -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) -- Flexcoders Mailing List FAQ:
[flexcoders] Re: Array to Grid
Okay, I've switched it to this: public function toWords():void{ var str:String = myRTA.text; var pattern:RegExp = /\b[A-Za-z0-9'-]+\b/gi; var result:Array = new Array(); result = pattern.exec(str); result.word = result; result.position = result.index; while (result != null) { result.word = result; result.position = result.index; trace (result.index, result); result = pattern.exec(str); } myDGrid.dataProvider = result; } How do I get the results to a DataGrid? When I do this: myDGrid.dataProvider = result; the result Array has a null value.
[flexcoders] Modules vs RSLs - Are they mutually exclusive?
I am wondering if modules have taken over all the functionality of an RSL? From what I can tell, using Modules with load-externs and link-report should be able to split an application up into many SWFs, and reduce file size. Or are RSLs still required in order to have a separate library. What I am looking to have is a shell application, which loads various modules, but all of those modules should be sharing the same common code/classes from a library SWF (or SWFs). Collin
[flexcoders] Re: Connect and Retrieve from MS SQL Server 2005
Yes, Fluorine uses ASP.NET. So you can use any CLR compatible language. (Fluorine itself is written in C#) It also has an installer that creates a web site template project and comes with samples. I highly recommend it. Shaun --- In flexcoders@yahoogroups.com, hugocorept [EMAIL PROTECTED] wrote: Hey many thanks Point 1. So, you in general point the new feutures of SQL Server Web Services. Is that suported by either Express and Full Version? Can someone support me with some tutorials of any kind ? Point 2. I have tried by : PHP (with result in a difficul process because the DSN requirements) and ColdFusion 7 ( still in research but seams pretty good) Point 3 Fluorine project use witch languague ? Asp.NET? Thanks For All --- In flexcoders@yahoogroups.com, hugocorept hugocore@ wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: If you are using the full version of SQL 2005 (meaning not Express) you may be able to use the built-in Web Services Endpoints ... Have not tried it myself, but I think in theory that should work. -Iko --- In flexcoders@yahoogroups.com, Clint Tredway grumpee@ wrote: you can use just about any server side language (ColdFusion, PHP, ASP, .NET, etc) to connect to SQL Server On 3/28/07, hugocorept hugocore@ wrote: Hello all, In your opnion, witch is the simple/best way to connect a MSSQLServer 2005. I prefer java-less.. Thank you , Very Much! -- http://indeegrumpee.spaces.live.com/
RE: [flexcoders] Labelling the bubbles of a bubble chart
three ways, in order of difficulty: 1) custom bubble renderer. easy to do, but hard to do anything smart so the labels don't overlap. 2) custom annotation using the post from my blog. Easy to do, but not the most efficient approach. 3) custom bubble series. Requires rolling up your sleves and getting into the series code, but most performant, and reusable. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of simonjpalmer Sent: Sunday, April 01, 2007 3:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Labelling the bubbles of a bubble chart I want to put a data value alongside the bubbles on my bubble chart. Anyone know how? Ideally I would have something that was a cross between a tooltip and the flyout labels on a pie chart. Any clues?
[flexcoders] Re: SharedObject.getLocal() throws RangeError
Flex 2 serializes lso's as AMF3. Flex 1.5 as AMF0. SharedObject.defaultObjectEncoding = ObjectEncoding.AMF0; var cookie:Object = SharedObject.getLocal(foo, /).data; You have to know the encoding before you try to access the lso. Get it wrong and the lso is deleted. Kinda harsh. --- In flexcoders@yahoogroups.com, Ed [EMAIL PROTECTED] wrote: I have two Flex Applications: one is a Flex 1.5 App, the other a Flex 2 App. Both want to access the same local SharedObject (lso). SharedObject.getLocal(foo, /) Both Apps are running on the same domain. When I load the Flex 1.5 App, it accesses and reads the lso correctly. If I then load the Flex 2 App, I get an error every time I try to access the lso. Error.toString(): (RangeError) message: Error #2006: The supplied index is out of bounds. (*) name: RangeError (*) errorID: 2006 (int) Error.getStackTrace(): RangeError: Error #2006: The supplied index is out of bounds. at flash.net::SharedObject$/getLocal() at -- snip -- After this error, the lso is cleared. When the original Flex 1.5 app tries to access it, it's empty. The corresponding .sol file in my Application Data dir is deleted. It happens even if both apps are not running simultaneously. As long as the Flex 1.5 App accesses it first, the Flex 2 app can't. The same error doesn't happen between 2 Flex 1.5 Apps or 2 Flex 2.0 Apps.
RE: [flexcoders] Re: Module Interface Problems
That sounds like a still existing Flash issue if you try to load a swf that has a shared library attached to it. Then you will get a loaded callback before it's actually loaded. So in Flash you can check on the loaded event if current frame == 0. In that case you can't access any properties and no code will be executed yet. But you can still write to the object. In our scenario we have attached a callback event method. So when the swf is really loaded it will check if the callback exist and then execute it. Which will tell the loader that it's ready to be initiated. Something similar should be easy to implement on the module but not with a check for a frame number :-) . Should be a better solution for this. I don't want to go back to old Flash hacks hehe. //as2 example private function onLibraryLoaded(libraryClip:MovieClip, cb:CallBack):Void { var me:SharedLibraryLoader = getInstance(); if(libraryClip._currentframe == 0){ libraryClip.onComplete = new CallBack(me, me.onLibraryInitiated, null, cb); }else onLibraryInitiated(libraryClip, cb); } _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ritchie Sent: den 3 april 2007 11:24 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Module Interface Problems From my experience there is a definite timing issue when loading modules. The ModuleLoader ready event is fired before the Module is fully loaded and you have the ability to talk to it through a common interface (hence the error reporting access to a null value). I would term this one as a bug that is not yet documented by Adobe. This could be because some modules take longer than expected to load, I have no idea, just the observed problem with talking with modules within the ready. I also attempted to use an interface to talk with a module when the the progress event had reached 100%, but still no luck. A possible workaround would be to fire some event from inside the loaded module that tells the outside world that it is indeed loaded. The other option is to set a timer interval and keep checking if the module is loaded (meaning not reporting NULL in the ready event handler). Unless someone else as a viable solution? Adobe? Anyone? - mr --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, kristian_wright2002 [EMAIL PROTECTED] wrote: *BUMP* Anyone have any ideas? I still haven't found a solution... K.
RE: [flexcoders] Re: Drawing a box over top of an image
Search for addChild in the code. They are in the override of the load() method. You cannot move the z-order of the graphics layer. It is always in the back which is why I added children instead. Your shortest path may be to use Canvas instead of HBox and have a second child of the Canvas that overlays the Image. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cardinalflexjeremy Sent: Monday, April 02, 2007 11:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Drawing a box over top of an image re-reading this it sounds more negative than I meant it to. Simply put, I dont see in the code, where you are adding a child to the image is all. If there is some code I need to implement below, so as to not have to re-work the image component I would be greatly appreciative for any help or advice. JS --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , cardinalflexjeremy [EMAIL PROTECTED] wrote: Sorry its been a long day. Is there any simple explanation of how to bring the graphics layer to the front? Here is my code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute width=100% height=100% backgroundColor=#FF mx:Script ![CDATA[ import flash.events.MouseEvent; import mx.controls.Alert; import mx.utils.GraphicsUtil; private var _xStart:Number; private var _yStart:Number; public function drawBox(event:MouseEvent):void{ _xStart = event.localX; _yStart = event.localY; addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove); addEventListener(MouseEvent.MOUSE_UP, endDraw); } public function endDraw(event:MouseEvent):void{ removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove); } public function onMouseMove(event:MouseEvent):void{ drawRectangle(event); } public function drawRectangle(event:MouseEvent):void{ var width:Number = event.localX - _xStart; var height:Number = event.localY - _yStart; var g:Graphics = myImage.graphics; g.clear(); g.lineStyle(2, 0xFF, 1); g.beginFill(0x00, 0); myImage.setFocus(); GraphicsUtil.drawRoundRectComplex(g, _xStart, _yStart, width, height, 0, 0, 0, 0); g.endFill(); } ]] /mx:Script mx:HBox width=100% height=100% mouseDown=drawBox(event) id=myImage mx:Image x=0 y=0 source=@Embed('../resources/spring-reference6.jpeg') / /mx:HBox /mx:Application --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: The graphics layer is below all children, so you need to add other visuals as children over the image. Below is the code I prototyped for an Image with a close button and resize handle. public class CloseResizeImage extends Image { public function CloseResizeImage() { super(); } private var closeButton:Button; private var resizer:Image; [Embed(source=ATOC_F8_v3r9_8.swf,symbol=Button_Up)] private var upSkin:Class; [Embed(source=ATOC_F8_v3r9_8.swf,symbol=Button_Over)] private var overSkin:Class; [Embed(source=ATOC_F8_v3r9_8.swf,symbol=Button_Down)] private var downSkin:Class; [Embed(source=ATOC_F8_v3r9_8.swf,symbol=WindowResizer)] private var resizerSkin:Class; override public function load(url:Object = null):void { super.load(url); if (!closeButton) { closeButton = new Button; closeButton.setStyle(upSkin, upSkin); closeButton.setStyle(overSkin, overSkin); closeButton.setStyle(downSkin, downSkin); addChildAt(closeButton, 1); closeButton.addEventListener(click, clickHandler); resizer = new Image; resizer.source = resizerSkin; addChildAt(resizer, 2); resizer.addEventListener(mouseDown, mouseDownHandler); } setChildIndex(closeButton, 1); setChildIndex(resizer, 2); } override protected function updateDisplayList(uw:Number, uh:Number):void { super.updateDisplayList(uw, uh); closeButton.move(uw - closeButton.getExplicitOrMeasuredWidth(), 0); closeButton.setActualSize(closeButton.getExplicitOrMeasuredWidth(), closeButton.getExplicitOrMeasuredHeight()); var rw:Number = resizer.getExplicitOrMeasuredWidth(); var rh:Number = resizer.getExplicitOrMeasuredHeight(); resizer.move(uw - rw, uh - rh); resizer.setActualSize(rw, rh); // graphic is porous so make a hit area for it. resizer.graphics.clear(); resizer.graphics.beginFill(0, 0); resizer.graphics.moveTo(rw, 0); resizer.graphics.lineTo(0, rh); resizer.graphics.lineTo(rw, rh); resizer.graphics.lineTo(rw, 0); resizer.graphics.endFill(); } private function clickHandler(event:Event):void { visible = false; } private function mouseDownHandler(event:Event):void { stage.addEventListener(mouseUp, mouseUpHandler); stage.addEventListener(mouseLeave, mouseUpHandler); stage.addEventListener(mouseMove, mouseMoveHandler); } private function
Re: [flexcoders] Re: Timezone of Date Object
that would be great. I have been thinking over different ways to accomplish this. i look forward to seeing your library. thanks! - Kevin On Apr 3, 2007, at 10:50 AM, Paul DeCoursey wrote: short answer, no. But I have been working on a library that provides this option. It's not really ready for release yet. Give me a few more days to document it and I'll send you what I have. Paul --- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: is there a way to set the timezone of a date object to something other than the local timezone? I would would like to be able to allow the user to select a timezone when they enter a time in a field. - Kevin
[flexcoders] Re: Need to different images in datagrid column
Try using an itemRenderer. Create a separate component that looks like this: (saved as imageRenderer.mxml in the comps directory) ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=2 width=50 height=20 horizontalAlign=center mx:Image source=images/image.gif width=14 height=14 / /mx:HBox then add it to your datagrid like this: mx:DataGridColumn headerText=! itemRenderer=comps.imageRenderer / HTH, Jack --- In flexcoders@yahoogroups.com, Vinoth Babu [EMAIL PROTECTED] wrote: Hi, Need your help to load an different images in a datagrid column Thanks Vinoth - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends.
[flexcoders] Re: Disapperaring images in datagrid
Well, I've seemed to have solved my problem so I'll post it here in case anyone else runs into this. turns out to have been a relative path issue. The datagrid liked source='../images/{data.indicator}' as long as we stayed in the initial directory but once we moved it out it blew up. So I gave it an absolute path of comps/invoices/images and everyone is happy. --- In flexcoders@yahoogroups.com, Jack OMelia [EMAIL PROTECTED] wrote: Hi All, I have a strange problem with images I am putting in a datagrid. I have two columns in a datagrid populated with icons. I get the image name from an xml file and use an itemrenderer to display the icons. In creating the page everything works fine, but as soon as I move the compiled files to another persons machine, or even a different directory on my own, the images don't appear. When moving the files I've checked to make sure the images are moved along with everything else. Here's the datagrid (for brevity I've only included the two columns): mx:DataGrid x=10 y=35 width=765 height=195 rowHeight=18 headerColors=[#ed8e5f, #ed8e5f] headerHeight=20 borderColor=#66 id=dgInvoiceResults selectedIndex=0 wordWrap=false alternatingItemColors=[#dd,#cc] textAlign=left dataProvider={invoicesXML.item} creationComplete=totalGrid() mx:columns mx:DataGridColumn headerText=! dataField=indicator width=30 headerRenderer=comps.cmpHeaderRenderer itemRenderer=comps.invoices.indicator / mx:DataGridColumn headerText=Source dataField=source width=55 headerRenderer=comps.cmpHeaderRenderer itemRenderer=comps.invoices.invSource / /mx:columns /mx:DataGrid and here are the two renderers: Indicator: mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=2 width=50 height=20 horizontalAlign=center mx:Image source=../images/{data.indicator} width=14 height=14 left=5 toolTip={data.alert}/ /mx:HBox and invSource: mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=2 width=50 height=20 horizontalAlign=center mx:Image source=../images/{data.invSource} width=14 height=14/ /mx:HBox Can anyone see why the images display correctly when in the same directory as the source files but not when they are moved elsewhere? Thanks, Jack
[flexcoders] Cairngorm event
Good Afternoon, I know this has been asked before, I see 51 threads on tree events cairngorm yet none seem to take the last step. From this thread: http://tech.groups.yahoo.com/group/flexcoders/message/51927 I created a tree and have successfully passed the events. I do not need at this time to add nodes, just that this code seemed like a good basis to start. I know from the documents/ProductDetails.mxml that I should be looking to pass an event such as this: public function addProductToShoppingCart () : void { var event : UpdateShoppingCartEvent = new UpdateShoppingCartEvent( UpdateShoppingCartEvent.EVENT_ADD_PRODUCT_TO_SHOPPING_CART ); event.product = selectedItem; event.quantity = numericStepperComp.value; CairngormEventDispatcher.getInstance ().dispatchEvent( event ); } which can then be used like this: mx:Button label=Add to Cart click=addProductToShoppingCart(); / Yet with the tree component having it's own event (change=treeChanged(event)) how does one grab the change event to dispatch a CairngormEventDispatcher? Any help would be appreciated. Thanks.
RE: [flexcoders] can i add custom labels to my chart's x-axis?
Hi Tushar. What you're trying to do sounds like the default beahvior for charts, so I'm not sure I'm understanding the request. Can you provide more details? Thanks. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dd.shah Sent: Monday, April 02, 2007 4:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] can i add custom labels to my chart's x-axis? hello group, i want to customize my chart's x-axis labels. i customized chart's vertical grid lines and i want to add labels according to that vertical lines. the labels should be outside x-axis. how can i accomplish that? can anyone help me? please. thanks in advance. tushar
[flexcoders] Re: visual effect of mouse over using dispatchEvent
Alex, Thanks, the wrong event was my problem. As soon as I changed my addEventListener and my dispatchEvent lines to MouseEvent.ROLL_OVER instead of MouseEvent.MOUSE_OVER it started working. Thanks again, Dan --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: We fake events all of the time w/o much trouble. The Automated Testing feature does some things like this. However, you have to know which event to fake. In this case, Buttons do not listen to MOUSE_OVER, they listen to ROLL_OVER -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Schultheiss Sent: Sunday, April 01, 2007 6:58 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] visual effect of mouse over using dispatchEvent when you dispatch an Event that way does your handler still fire? You may have to manually switch the normalskin to the value of the overskin. This would be nasty tho. Good question, perhaps Ely or Alex can elaborate? On 01/04/2007, at 3:46 AM, dantmcgowan wrote: and I use dispatch event to simu! late the mouse over: myButton.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_OVER));
[flexcoders] Datagrid - Disable row
Hi, I have a datagrid with three columns. In my first column I have a itemrenderer with checkbox and in the other two columns I have two labels. I'm trying to disable a row of the datagrid when the user pick a checkbox in the first column. I used selectedItem to get a row and itemToItemRenderer to get the reference of the row, but just the first column of the datagrid is disabled. var someItemReference:Object = my_datagrid.selectedItem; var itemRenderer:IListItemRenderer = my_datagrid.itemToItemRenderer(someItemReference); itemRenderer.enabled = false; Any suggestions? Cheers!
[flexcoders] getChildren
is there a way to tell if an object has a getChildren method before calling it? I'm calling something that takes any type as the first argument public function myFunc(obj:*):void I need to tell if obj has a getChildren() method before I call it and get an error saying Error #1006: getChildren is not a function.
Re: [flexcoders] getChildren
Hi, You could do this; try { children = obj.getChildren(); } catch (e:Error) { trace(e, obj did not have getChildren()); } Peace, Mike On 03 Apr 2007 11:41:25 -0700, blc187 [EMAIL PROTECTED] wrote: is there a way to tell if an object has a getChildren method before calling it? I'm calling something that takes any type as the first argument public function myFunc(obj:*):void I need to tell if obj has a getChildren() method before I call it and get an error saying Error #1006: getChildren is not a function. -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Re: Timezone of Date Object
Paul: I'm interested to know how your library will handle timezones. Are you trying to hook into all DateTimes or just writing some login to change datetimes and such. I submitted a long time ago a feature request to Adobe to allow hooking into AMF Deserialization to handle timezone changes. The problem that I face is that datetimes are always automaticaly deserialized from the server into the client local time even if i don't want them to be. Sam On 03 Apr 2007 10:52:37 -0700, Kevin [EMAIL PROTECTED] wrote: that would be great. I have been thinking over different ways to accomplish this. i look forward to seeing your library. thanks! - Kevin On Apr 3, 2007, at 10:50 AM, Paul DeCoursey wrote: short answer, no. But I have been working on a library that provides this option. It's not really ready for release yet. Give me a few more days to document it and I'll send you what I have. Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: is there a way to set the timezone of a date object to something other than the local timezone? I would would like to be able to allow the user to select a timezone when they enter a time in a field. - Kevin
[flexcoders] Re: getChildren
If your object is not typed, you can do this: if (obj.getChildren) { obj.getChildren(); } This will not work if the object is typed (1069 error). Also, if it has a property by the name of getChildren, I think you'll get a 1006. Otherwise, it seems to work just fine. Shaun --- In flexcoders@yahoogroups.com, blc187 [EMAIL PROTECTED] wrote: is there a way to tell if an object has a getChildren method before calling it? I'm calling something that takes any type as the first argument public function myFunc(obj:*):void I need to tell if obj has a getChildren() method before I call it and get an error saying Error #1006: getChildren is not a function.
Re: [flexcoders] getChildren
only objects that inherit the Container class have this functions. When i have a situation like yours, I usually do something like : if ( obj is Container) { //code here } and it works fine. It is possible not to work if your object was originally an Object , and you further created your object using a class reference. - Original Message From: Michael Schmalle [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 3, 2007 11:51:48 AM Subject: Re: [flexcoders] getChildren Hi, You could do this; try { children = obj.getChildren( ); } catch (e:Error) { trace(e, obj did not have getChildren( )); } Peace, Mike On 03 Apr 2007 11:41:25 -0700, blc187 [EMAIL PROTECTED] com wrote: is there a way to tell if an object has a getChildren method before calling it? I'm calling something that takes any type as the first argument public function myFunc(obj:* ):void I need to tell if obj has a getChildren( ) method before I call it and get an error saying Error #1006: getChildren is not a function. -- Teoti Graphix http://www.teotigra phix.com Blog - Flex2Components http://www.flex2com ponents.com You can find more by solving the problem then by 'asking the question'. !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
[flexcoders] upload multiple FileReferences without FileReferenceList?
I have an area of my app where the user can make a new Thing and can upload 2 files against it (1 is an image, the other is a text file). I'd like to have the user interface show a TextInput for the title of the Thing, and then have 2 Browse buttons, one for the image and another for the text file. I'm essentially creating 2 FileReference instances, each with its own FileFilter. In order to upload the info to my (php) server, I'll have to make 3 round trips, each with a hit to the server, database, etc.: 1. Create the Thing in the database and respond with a success. 2. Assuming Success in 1, upload the Image, responding with a success. 3. Assuming Success in 2, upload the text file. I thought of using a FileReferenceList (seemed logical) but the fileList property is read only! I thought I could PUSH my 2 FileReferences onto it, but apparently not. So i either have to have one browse button where the user can pick BOTH the image and the text file (not very intuitive) or else do my round trips above. Does anyone know of another technique to upload two files with one round trip? I thought about trying to extend FileReferenceList and add a setter for fileList, but can't figure out how to find the source files in the flash package? I'll take any input on that as well. Thanks! -- TC
[flexcoders] Re: FlexBuilder Keyboard Not Responsive on the Mac
I've got a 1.5ghz G4 powerbook with 1.5gb RAM and the first application I've used that made me think this machine is slow and needs upgrading is flexbuilder. sometimes the keyboard doesn't keep up with my typing, etc.
[flexcoders] Web Service Error #1009 - null object reference?
Does anyone know how is it posible for a web service to have a method and a minute later it doesn't have it? I'm getting an error that web service method doesn't exist: TypeError: Error #1009: Cannot access a property or method of a null object reference. (Before this error occured, the method was available. Then Flex decided not to see the method any more. After restarting the application, the method is available again.)
Re: [flexcoders] Re: FlexBuilder Keyboard Not Responsive on the Mac
I have a toshiba core 2 duo with 2gb of ram and mine does the same thing.. On 03 Apr 2007 12:42:53 -0700, Tony Obermeit [EMAIL PROTECTED] wrote: I've got a 1.5ghz G4 powerbook with 1.5gb RAM and the first application I've used that made me think this machine is slow and needs upgrading is flexbuilder. sometimes the keyboard doesn't keep up with my typing, etc. -- I am not a diabetic, I have diabetes my blog - http://grumpee.instantspot.com/blog
[flexcoders] Reverting back to an older version of Plug-in inside FlexBuilder?
Hello All, Ever since I updated the ColdFusion FlexBuilder extensions 3 days ago, FlexBuilder crashes periodically. VERY irritating. Anyway, what would be the quickest way to revert back to the previous version of the Plug-in? Thanks in advance for your help, Mike
[flexcoders] Nested Repeater Issues
I have a Repeater of CheckBoxes, which may or may not have a sublayer of CheckBoxes. It should look something like: [] archive 1 [] archive 2 [] dataSource 1 [] dataSource 2 [] dataSource 3 [] archive 3 By default all CheckBoxes are unselected, and any sublayer CheckBoxes are not enabled. If you select a CheckBox(archive 2) that has sublayer CheckBoxes (dataSource 1- 3), they are enabled. If you unselect a CheckBox that has sublayer CheckBoxes, they are disabled and unselected. I'm using the Cairngorm framework, so the call results from the database are returned to my model. This model is used as the dataProvider for the Repeater. The issue is that I can not update my model and have the sublayer Repeater update properly. For example, if there are three sublayer CheckBoxes (like above), selecting the parent CheckBox (archive 2) will enable only the first 2 sublayer CheckBoxes (dataSource 1 2). Then deselecting the parent CheckBox will disable the first 2 sublayer CheckBoxes, but enable the third (dataSource 3). From this point on the enabled property for dataSource 12 will be in a opposite state from dataSource 3. Below are code snippets: Library.mxml: mx:Repeater id=archiveRepeater dataProvider={__model.archiveElements} mx:CheckBox id=archive label={archiveRepeater.currentItem.archiveName} click=__model.archiveChanged(event)/ mx:Repeater id=dataSourceRepeater dataProvider= {archiveRepeater.currentItem.archiveDataRepositories} mx:CheckBox id=dataSource label={dataSourceRepeater.currentItem.repositoryName} enabled={dataSourceRepeater.currentItem.enabled} selected={dataSourceRepeater.currentItem.selected} click=__model.dataSourceChanged(event) /mx:CheckBox /mx:Repeater /mx:Repeater LibraryModel.as: public function archiveChanged( event:MouseEvent ):void { var selectionChoice:Boolean = event.target.selected; var selectionName:String = event.target.label; var al:ArchiveLocation = ArchiveLocation(event.target.getRepeaterItem()); al.selected = selectionChoice; // Go through any data repositories // and toggle their enabled property if (al.archiveDataRepositories != null) { var adr:Array = al.archiveDataRepositories; if (selectionChoice == false) { // Deselect and disable all CheckBoxes for (var i:uint = 0; i adr.length; i++) { // Update the model adr[i].selected = false; adr[i].enabled = false; } else { // Enable all CheckBoxes for (i = 0; i adr.length; i++) { adr[i].enabled = true; } } } } } As you can tell, there are ValueObjects that store the enabled and selected attributes for the dataSource CheckBoxes. What's even weirder, is that the ValueObjects that make up the dataProvider for the Repeater are updated correctly (their selected and enabled properties), but the last CheckBox of any sublayer remains in a state that is opposite of the other grouped sublayer CheckBoxes. I've gotten around this by directly updating the display by using: event.target.document.dataSource[i][j].enabled = false; But I don't want to rely on this as it will cause issues later on. I feel that I should be able to update the dataProvider for the various Repeaters and this should update the display properly. Any suggestions would be greatly appreciated. ~Geoff~
[flexcoders] Re: Module Interface Problems
I ruled out the timing issue, but your post has some great information how to handle this. I think I have isolated the specific module loading issue to one factor. I have a module that loads another module using a mx:ModuleLoader and I am trying to access the second ModuleLoader child through the interface. I can't seem get a reference to the child of the second ModuleLoader, it always reports null. I have a successfully loaded a module and talked using the interface, but if move this within the context of another module, I get the null reference. --- In flexcoders@yahoogroups.com, - FI / Jonas Eliasson + [EMAIL PROTECTED] wrote: That sounds like a still existing Flash issue if you try to load a swf that has a shared library attached to it. Then you will get a loaded callback before it's actually loaded. So in Flash you can check on the loaded event if current frame == 0. In that case you can't access any properties and no code will be executed yet. But you can still write to the object. In our scenario we have attached a callback event method. So when the swf is really loaded it will check if the callback exist and then execute it. Which will tell the loader that it's ready to be initiated. Something similar should be easy to implement on the module but not with a check for a frame number :-) . Should be a better solution for this. I don't want to go back to old Flash hacks hehe. //as2 example private function onLibraryLoaded(libraryClip:MovieClip, cb:CallBack):Void { var me:SharedLibraryLoader = getInstance(); if(libraryClip._currentframe == 0){ libraryClip.onComplete = new CallBack(me, me.onLibraryInitiated, null, cb); }else onLibraryInitiated(libraryClip, cb); } _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ritchie Sent: den 3 april 2007 11:24 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Module Interface Problems From my experience there is a definite timing issue when loading modules. The ModuleLoader ready event is fired before the Module is fully loaded and you have the ability to talk to it through a common interface (hence the error reporting access to a null value). I would term this one as a bug that is not yet documented by Adobe. This could be because some modules take longer than expected to load, I have no idea, just the observed problem with talking with modules within the ready. I also attempted to use an interface to talk with a module when the the progress event had reached 100%, but still no luck. A possible workaround would be to fire some event from inside the loaded module that tells the outside world that it is indeed loaded. The other option is to set a timer interval and keep checking if the module is loaded (meaning not reporting NULL in the ready event handler). Unless someone else as a viable solution? Adobe? Anyone? - mr --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, kristian_wright2002 karnal69@ wrote: *BUMP* Anyone have any ideas? I still haven't found a solution... K.
[flexcoders] Re: Checkbox in DataGrid cell won't turn invisible!
I'll try it tomorrow in FB 2.0 - though that won't help me 'cos the project requires 2.0.1 unfortunately. Thanks for the info though. If it turns out to be definitely a bug in Flex 2.0.1 then I'll report it (somehow! anyone know how ?!). I guess I'll have to figure out a different metaphor for now. Shame. Jamie. --- In flexcoders@yahoogroups.com, Ben Densmore [EMAIL PROTECTED] wrote: Hi Jamie, I believe this is a bug in 2.0.1. I have run into the same issue with trying to set a datagrid column to visible=false. It seems to be ignored. Can you try and build your project in 2.0 and see if the issue still occurs? Ben - Original Message From: jamiebadman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 3, 2007 12:18:27 PM Subject: [flexcoders] Checkbox in DataGrid cell won't turn invisible! Can someone help please ? In the following itemRenderer code for a dataGridColumn, I'm trying to have the checkbox not show - but it seems that despite having 'visible=false ' or even 'includeInLayout= false' it still shows up! In reality, of course, I have a function defining whether or not I show the checkbox but to illustrate the problem I'm having I think the following is as basic an example as I can get: mx:DataGridColumn headerText= dataField=@ itemSelected mx:itemRenderer mx:Component mx:CheckBox visible=false / /mx:Component /mx:itemRenderer /mx:DataGridColumn As you can see, checkbox is forced to false always - but this is totally ignored and the checkbox shows up on all rows! Does anyone know why this happens - and how I can resolve it ? Thanks, Jamie. !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} --
[flexcoders] Smooth resize in Flexbook
I want to create a smoother resize effect on a flexbook component. Right now I have multiple transparent pages that are custom components inside of a flexbook component. In each of those pages I am drawing a lot in UpdateDisplayList. When I resize the component it calls UpdateDisplayList multiple times. I'm guessing that it calls it as many times as it can for the effect duration to make it a smooth transition. Well this takes up some processing power and results in a jumpy resize. My question: Is there a way to convert what is seen on the flexbook into a bitmap and do the resize on that. Then when the resize is done call UpdateDisplayList and build everything again and get rid of the bitmap. Would this even be a performance boost? Is it possible? Thanks in advance.
RE: [flexcoders] MXML Schema
We no longer provide a schema for MXML. The language was designed to be easily written by a human and isn't well-suited to being described in a schema -- it's too loosy-goosy in terms of what can nest inside what, whether you write a property as an attribute or child tag, etc.The schema we offered for Flex 1.5 was so large it didn't perform well and it was pretty much unmaintainable and inextensible so with Flex 2.0 we stopped providing one. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of neilac Sent: Tuesday, April 03, 2007 9:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] MXML Schema I am new to Flex and looking for the XML Schema document that defines the structure of an MXML document. I have found a schema at the following URL: http://falkensweb.com/mxml2.xsd http://falkensweb.com/mxml2.xsd However, according to XMLSpy, this schema is not well-formed and therefore not valid. Can you please point me to where Adobe has posted the correct schema? Thanks very much.
RE: [flexcoders] getChildren
I think this may be another way... if (obj.hasOwnProperty(getChildren)) children = obj.getChildren(); - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dordea cosmin Sent: Tuesday, April 03, 2007 12:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] getChildren only objects that inherit the Container class have this functions. When i have a situation like yours, I usually do something like : if ( obj is Container) { //code here } and it works fine. It is possible not to work if your object was originally an Object , and you further created your object using a class reference. - Original Message From: Michael Schmalle [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 3, 2007 11:51:48 AM Subject: Re: [flexcoders] getChildren Hi, You could do this; try { children = obj.getChildren( ); } catch (e:Error) { trace(e, obj did not have getChildren( )); } Peace, Mike On 03 Apr 2007 11:41:25 -0700, blc187 [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] wrote: is there a way to tell if an object has a getChildren method before calling it? I'm calling something that takes any type as the first argument public function myFunc(obj:* ):void I need to tell if obj has a getChildren( ) method before I call it and get an error saying Error #1006: getChildren is not a function. -- Teoti Graphix http://www.teotigra phix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2com ponents.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. Get your own web address. http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domain s/?p=BESTDEAL Have a HUGE year through Yahoo! Small Business. http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domain s/?p=BESTDEAL
[flexcoders] talking to Flash SWF's
hi all; in one of my projects; i wanted to use some of my old flash 8 projects as external SWF's. I tried to use SWFLoader but i was not able to extract the content as a movie clip (so couldn't have control over the loaded swf) hardly after i realized that the problem is AS2. Then i downloaded Flash 9 Alpha; and tried to compile my old projects with AS3 but it was so difficult since _root , _x etc. are disabled and changed in AS3. actually i couldn't compiled my old codes error free... So is there a way to communicate to AS2 SWF's after loading them into flex dynamically ? what i mean by control is : =listen swf's events =control the movieclip (play stop etc) =call swf's functions... if the answer is no; so sorry for those dying projects :( . thanks... yigit Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097
Re: [flexcoders] talking to Flash SWF's
I'm using external interface which works a little like local connection except you can have synchronus calls.. I'm using this api/examples : http://www.flashextensions.com/products/flashinterface.php I'm using the flashmaps flash 8 component with flex and although it hasn't been plain sailing it is working. Grant. - Original Message - From: Yiit_Boyar [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: 4/3/07 5:38 PM Subject: [flexcoders] talking to Flash SWF's hi all; in one of my projects; i wanted to use some of my old flash 8 projects as external SWF's. I tried to use SWFLoader but i was not able to extract the content as a movie clip (so couldn't have control over the loaded swf) hardly after i realized that the problem is AS2. Then i downloaded Flash 9 Alpha; and tried to compile my old projects with AS3 but it was so difficult since _root , _x etc. are disabled and changed in AS3. actually i couldn't compiled my old codes error free... So is there a way to communicate to AS2 SWF's after loading them into flex dynamically ? what i mean by control is : =listen swf's events =control the movieclip (play stop etc) =call swf's functions... if the answer is no; so sorry for those dying projects :( . thanks... yigit Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097
[flexcoders] Flex and responsiveness
Hi. Is it just me or once in a while when using flex does it, for instance, slow to crawl and take several seconds to perform a cut and paste (or other operation). Or, does it seem to run slowly after your desktop goes to sleep and you re-log in. I experience this stuff often enough where I have to restart flexbuilder 2 or 3 times in a day. However, compared to eclipse, flexbuilder seems to run a lot slower. I am just curious if any other developers have noticed this? Would these improvements be expected in version 3? Thanks, Patrick
Re: [flexcoders] Flex and responsiveness
Yes, Flex Builder is a dog. The more I use it, the slower it gets. Especially if you are using the debugger. I'm in the habit of restarting every 2-4 hours. And I'll probably double the RAM on my machine. At 05:58 PM 4/3/2007, Patrick Lemiuex wrote: Hi. Is it just me or once in a while when using flex does it, for instance, slow to crawl and take several seconds to perform a cut and paste (or other operation). Or, does it seem to run slowly after your desktop goes to sleep and you re-log in. I experience this stuff often enough where I have to restart flexbuilder 2 or 3 times in a day. However, compared to eclipse, flexbuilder seems to run a lot slower. I am just curious if any other developers have noticed this? Would these improvements be expected in version 3? Thanks, Patrick -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com
[flexcoders] Binding xml to dataGrid - dynamic columns
Hi, I have a dataGrid which I bind to an xml which I get from the server. The xml is of the following format: Element Value Columns3/Columns Header h0=col 1 h1=col 2 h2=col 3 / Row c0=a1 c1=a2 c2=a3 / Row c0=b1 c1=b2 c2=b3 / /Value /Element The first time through everything works perfectly, but when we set the grid's dataProvider to a new xml, with more columns, it continues to render the original number of columns. [The dataProvider definitely has the new columns, its just that the datagrid is ignoring them. ] How can I get the grid to render the number of columns as described in the xml? thanks-
[flexcoders] Re: MXML Schema
Thanks for letting me know, Gordon. I can certainly understand how complex such a schema would be, but then how does a tool, FlexBuilder or anything else, know that an MXML file is valid at design time? Or must I wait until runtime to find errors? Or simply write the UI in ActionScript? Neil --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: We no longer provide a schema for MXML. The language was designed to be easily written by a human and isn't well-suited to being described in a schema -- it's too loosy-goosy in terms of what can nest inside what, whether you write a property as an attribute or child tag, etc.The schema we offered for Flex 1.5 was so large it didn't perform well and it was pretty much unmaintainable and inextensible so with Flex 2.0 we stopped providing one. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of neilac Sent: Tuesday, April 03, 2007 9:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] MXML Schema I am new to Flex and looking for the XML Schema document that defines the structure of an MXML document. I have found a schema at the following URL: http://falkensweb.com/mxml2.xsd http://falkensweb.com/mxml2.xsd However, according to XMLSpy, this schema is not well-formed and therefore not valid. Can you please point me to where Adobe has posted the correct schema? Thanks very much.
Re: [flexcoders] Flex and responsiveness
Try these: http://www.kyrsoft.com/opentools/stmemmon.html http://www.kyrsoft.com/opentools/memmon.html regards, Muzak - Original Message - From: Jeffry Houser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com Sent: Wednesday, April 04, 2007 12:12 AM Subject: Re: [flexcoders] Flex and responsiveness Yes, Flex Builder is a dog. The more I use it, the slower it gets. Especially if you are using the debugger. I'm in the habit of restarting every 2-4 hours. And I'll probably double the RAM on my machine. At 05:58 PM 4/3/2007, Patrick Lemiuex wrote: Hi. Is it just me or once in a while when using flex does it, for instance, slow to crawl and take several seconds to perform a cut and paste (or other operation). Or, does it seem to run slowly after your desktop goes to sleep and you re-log in. I experience this stuff often enough where I have to restart flexbuilder 2 or 3 times in a day. However, compared to eclipse, flexbuilder seems to run a lot slower. I am just curious if any other developers have noticed this? Would these improvements be expected in version 3? Thanks, Patrick
Re: [flexcoders] Modules vs RSLs - Are they mutually exclusive?
My definition would be that Modules are used to split a single application into multiple SWF's while RSL's are swfs used across multiple applications. B On 04/04/2007, at 3:04 AM, Collin Peters wrote: I am wondering if modules have taken over all the functionality of an RSL? From what I can tell, using Modules with load-externs and link-report should be able to split an application up into many SWFs, and reduce file size. Or are RSLs still required in order to have a separate library. What I am looking to have is a shell application, which loads various modules, but all of those modules should be sharing the same common code/classes from a library SWF (or SWFs). Collin
Re: [flexcoders] Binding xml to dataGrid - dynamic columns
did you try dataGrid.invalidateList() and or (inavlidateDisplayList) i think one of them should solve the problem... - Original Message From: kho7002 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, April 4, 2007 1:20:56 AM Subject: [flexcoders] Binding xml to dataGrid - dynamic columns Hi, I have a dataGrid which I bind to an xml which I get from the server. The xml is of the following format: Element Value Columns3/ Columns Header h0=col 1 h1=col 2 h2=col 3 / Row c0=a1 c1=a2 c2=a3 / Row c0=b1 c1=b2 c2=b3 / /Value /Element The first time through everything works perfectly, but when we set the grid's dataProvider to a new xml, with more columns, it continues to render the original number of columns. [The dataProvider definitely has the new columns, its just that the datagrid is ignoring them. ] How can I get the grid to render the number of columns as described in the xml? thanks- !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121
Re: [flexcoders] Cairngorm event
In the tree's parent. tree.addEventListener( TreeEvent.CHANGE, addProductToShoppingCart ); On 04/04/2007, at 4:18 AM, mapper2255 wrote: Good Afternoon, I know this has been asked before, I see 51 threads on tree events cairngorm yet none seem to take the last step. From this thread: http://tech.groups.yahoo.com/group/flexcoders/message/51927 I created a tree and have successfully passed the events. I do not need at this time to add nodes, just that this code seemed like a good basis to start. I know from the documents/ProductDetails.mxml that I should be looking to pass an event such as this: public function addProductToShoppingCart () : void { var event : UpdateShoppingCartEvent = new UpdateShoppingCartEvent( UpdateShoppingCartEvent.EVENT_ADD_PRODUCT_TO_SHOPPING_CART ); event.product = selectedItem; event.quantity = numericStepperComp.value; CairngormEventDispatcher.getInstance ().dispatchEvent( event ); } which can then be used like this: mx:Button label=Add to Cart click=addProductToShoppingCart(); / Yet with the tree component having it's own event (change=treeChanged(event)) how does one grab the change event to dispatch a CairngormEventDispatcher? Any help would be appreciated. Thanks.
[flexcoders] browser() bug?
Is this a bug or am i doing something wrong? i have a script where i call a browser() method and it all goes well in debug mode, but when i compile normally it doesn't work! var imageTypes:FileFilter = new FileFilter(Images (*.jpg, *.jpeg, *.gif), *.jpg; *.jpeg; *.gif); var fileTypes:Array = new Array(imageTypes); SMCDadosFile.browse(fileTypes);
Re: [flexcoders] Flex Builder 2 hotfix, error ResourceBundle:charts unable to resolve class
Tom Chiverton wrote: On Tuesday 03 Apr 2007, shaun etherton wrote: After the update I had to reneter my serial numbers and copy the charts.swc file from the old sdk dir to the new sdk/framworks/lib dir as it is not in the hotfixes frameworks/lib dir. Could there be a separate hotfix for the charts ? I didnt see one but I'll double check. - shaun -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! 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] Tree and Array
hi, i have an array of records received from an amfphp call and i need to fill a tree control with that data. the array has this format: aArr[0].id aArr[0].description aArr[0].parent aArr[0].order aArr[1].id aArr[1].description aArr[1].parent aArr[1].order ... and so on i didn't find any method of the control that adds node or that sets node parent. Any ideas? Thanks.
[flexcoders] Re: getChildren
Gordon's way does work -- and in fact it can be taken even further by not only checking that there is a property called getChildren, but also that that property is a function: if (obj.hasOwnProperty(getChildren) typeof obj[getChildren] == function) { children = obj.getChildren(); } However, I think Dordea's answer -- to test obj is Container -- is actually what you should be using. You are not really trying to check whether obj has a getChildren() function -- you are trying to check whether, semantically speaking, it is a container. To take the old object-oriented programming example, let's say there was a class called Artist, with a function draw(). If you just tested for the existence of function draw and then called it, that doesn't necessarily mean you are asking an Artist to draw -- that just means you have asked *something* to draw. Maybe Cowboy also has a draw() function, to draw his gun. Oops! So back to your example, I think probably what you're really trying to say is, If the object that was passed in is a Container, then I want to get its children. So, if (obj is Container) is the way to go. - Mike Morearty, Flex Builder --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: I think this may be another way... if (obj.hasOwnProperty(getChildren)) children = obj.getChildren(); - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dordea cosmin Sent: Tuesday, April 03, 2007 12:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] getChildren only objects that inherit the Container class have this functions. When i have a situation like yours, I usually do something like : if ( obj is Container) { //code here } and it works fine. It is possible not to work if your object was originally an Object , and you further created your object using a class reference. - Original Message From: Michael Schmalle [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 3, 2007 11:51:48 AM Subject: Re: [flexcoders] getChildren Hi, You could do this; try { children = obj.getChildren( ); } catch (e:Error) { trace(e, obj did not have getChildren( )); } Peace, Mike On 03 Apr 2007 11:41:25 -0700, blc187 [EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] wrote: is there a way to tell if an object has a getChildren method before calling it? I'm calling something that takes any type as the first argument public function myFunc(obj:* ):void I need to tell if obj has a getChildren( ) method before I call it and get an error saying Error #1006: getChildren is not a function. -- Teoti Graphix http://www.teotigra phix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2com ponents.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. Get your own web address. http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domain s/?p=BESTDEAL Have a HUGE year through Yahoo! Small Business. http://us.rd.yahoo.com/evt=49678/*http://smallbusiness.yahoo.com/domain s/?p=BESTDEAL
[flexcoders] How can I tell if I have the latest hotfix installed correctly?
I just installed hotfix 1 from http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb401224 How can I tell if it is installed properly? If I goto Help - About Adobe Flex Builder 2 it just says Version 2.0.1. On my co-workers machine he has Version 2.0.143459 If I goto Help - Software Updates - Manage Configuration I have 'Adobe Flex Builder Core Feature 2.0.155577' and again my co-worker has the same except 143459 even though we have both installed the hotfix. Regards, Collin
[flexcoders] Flex Security Best Practices
Hello, Are there any high level flex developers out there who have a response to this article on Ajax security with regards to flex? AJAX Apps Ripe Targets for JavaScript Hijacking http://www.eweek.com/article2/0,1895,2110554,00.asp Is Flex vulnerable to such types of attacks? Is there a Flex Security consortium, similar to the PHP security consortium that gives best practices regarding secure code and data requests? Thanks.
Re: [flexcoders] Modules vs RSLs - Are they mutually exclusive?
Alex Harui did a presentation on Modules at 360Flex.org last month. Alex's presentation slides are downloadable here: http://blogs.adobe.com/aharui/2007/03/modules.html Following is excerpted from slide 8 (out of 50): *Which is better**:** Modules or RSLs?* -- §Neither. They serve different purposes. §-- RSLs are libraries of supporting classes (and assets) other classes need in order to operate. §RSLs load before the application starts and can actually penalize load time if the RSL is not already in the browser cache. §Thus, no advantage if no other application is sharing that RSL. -- §Modules are libraries of classes (and assets) that you only need after application startup (or choose dynamically at startup). §You cannot refer to the classes in a module, only the interfaces they share with the application. -- §A large application will almost always benefit from using Modules, but may not benefit from using RSLs. Subsequent slides make additional references to RSLs. Also subsequent slides cover topics like: - When do I use Modules? - Where Do I Use Modules? - How Do I Use Modules? hth, g On 4/3/07, Collin Peters [EMAIL PROTECTED] wrote: I am wondering if modules have taken over all the functionality of an RSL? From what I can tell, using Modules with load-externs and link-report should be able to split an application up into many SWFs, and reduce file size. Or are RSLs still required in order to have a separate library. What I am looking to have is a shell application, which loads various modules, but all of those modules should be sharing the same common code/classes from a library SWF (or SWFs). Collin
Re: [flexcoders] Modules vs RSLs - Are they mutually exclusive?
Yes, but could an RSL not also be a swf used across multiple modules? On 03 Apr 2007 16:54:37 -0700, Bjorn Schultheiss [EMAIL PROTECTED] wrote: My definition would be that Modules are used to split a single application into multiple SWF's while RSL's are swfs used across multiple applications. B On 04/04/2007, at 3:04 AM, Collin Peters wrote: I am wondering if modules have taken over all the functionality of an RSL? From what I can tell, using Modules with load-externs and link-report should be able to split an application up into many SWFs, and reduce file size. Or are RSLs still required in order to have a separate library. What I am looking to have is a shell application, which loads various modules, but all of those modules should be sharing the same common code/classes from a library SWF (or SWFs). Collin
Re: [flexcoders] Modules vs RSLs - Are they mutually exclusive?
If it is loaded into the shell each module already has access to it. On 04/04/2007, at 11:24 AM, Collin Peters wrote: Yes, but could an RSL not also be a swf used across multiple modules?
[flexcoders] Eclipse Plugin - Debug - An Error has occurred . Please see error log for more
Everytime I run something in the flex debugger Eclipse opens up a dialog box that says .. An Error has occurred. Please see error log for more info. I seem to get 3 of them and then its ok til I step and then I get 3 more. Its really annoying and makes debugging pretty much impossible.. Any ideas ? I cannot seem to find the 'error log' its referring too either ..