[flexcoders] Odd behaviour with scaleX/scaleY when only minWidth/minHeight is set
Consider this VBox: mx:VBox id=mybox borderStyle=solid minWidth=400 minHeight=300/ There's no explicit width or height, only the minimums are set. When the app runs, we get a 400x300 box. All good. However, if we try to scale this box: mybox.scaleX = mybox.scaleY = 0.5; I would think that we would get a box that's 200x150. Instead, I got a box that's 100x75. The scaling had been set to 0.25. I've tried this for different values and it appears that the value is being squared, eg. 0.5*0.5 = 0.25. If I try 0.6, I get 0.36, etc. If I set explicit dimensions of 400x300, then the scaling works fine. Am I missing something? I assume that this is not intended behaviour? Anybody else experience this?
Re: [flexcoders] Runtime CSS problem with SWFLoader
Yes, I had originally thought that you meant to load the CSS swf into the the current domain. However, StyleManager.loadStyleDeclarations() does not give the option of specifying a LoaderContext. It has a trustContent argument, but setting that to true fails when loading a local SWF (I've not tried from the network yet). The thing is, I wonder if it really is about not being able to see classes. For instance, my CSS file has a selector like this: .chickButton { up-skin: Embed('assets/chicklet_button_up.png'); } When the subswf loads this CSS at runtime, the button's upskin does not update on-screen (as before). However, I can see the class in the subswf. I trace this inside the subswf: var decl: CSSStyleDeclaration = StyleManager.getStyleDeclaration (.chickButton); trace(decl.getStyle(upSkin)); and I get output like: [class newstyles__embed_css_assets_chicklet_button_up_png_1372914861] And as stated in my last post, if I force a refresh of styles, the upskin does then update on-screen. It seems to me that the SystemManager of the subswf is not being told to refresh its styles after the CSS file is loaded. On 9/30/07, Alex Harui [EMAIL PROTECTED] wrote: Uh, sorry, I wasn't clear. You need to set the app domain in loadStyleDeclaration, not in SWFLoader. Every SWF has a copy of ModuleManager in it. That code is used to load every module including CSS files. Since that code says to make a child appdom of the ModuleManager's app dom, when your app is the main app, the style classes are loaded into a child domain and share common class definitions. When you load your app from a shell app, the ModuleManager is in the shell. Your sub-app gets a child app domain and so does the css file, which means that your app and the css file have sibling appdoms, which means the cannot share classes and that messes up your styling. By specifying the app domain in loadStyleDecl, you are telling it not to load the css into a child domain, but rather, to load it into the shell's appdom so it can be seen by other appdoms like your app. You can also specify your sub-apps app-dom or child of your sub-app's appdom, but they key is to load the CSS into a place where its classes share classes with your app. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Jason Y. Kwong *Sent:* Saturday, September 29, 2007 9:34 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Runtime CSS problem with SWFLoader Thank you for your reply, Alex. I tried doing the following with the SWFLoader: var lctx: LoaderContext = new LoaderContext(); lctx.applicationDomain = ApplicationDomain.currentDomain; loader.loaderContext = lctx; loader.load(MyApp.swf); However, when MyApp loads a runtime CSS SWF, its styles are still not updating. Both the loading SWF and the MyApp SWF are local files in the same directory. I poked around in the StyleManager code and saw that it calls the styleDeclarationsChanged() method after a CSS SWF has been loaded. It looks like this: public function styleDeclarationsChanged():void { var sms:Array /* of SystemManager */ = SystemManagerGlobals.topLevelSystemManagers; var n:int = sms.length; for (var i:int = 0; i n; i++) { var sm:SystemManager = SystemManager(sms[i]); sm.regenerateStyleCache(true); sm.notifyStyleChangeInChildren(null, true); } } When I stepped through this, I saw that the sms array contains only the SystemManager for the main application. So I decided to have MyApp explicitly update its own SystemManager after a CSS SWF is loaded: systemManager.mx_internal::regenerateStyleCache(true); systemManager.mx_internal::notifyStyleChangeInChildren (null, true); This actually got all the styles to update on-screen. So what's not working right here? Is it related to the application domain or is it something else? On 9/29/07, *Alex Harui* [EMAIL PROTECTED] wrote: That's a common tripping point with runtime CSS. In a subswf config, you have to specify the applicationDomain parameter to be ApplicationDomain.currentDomain. If you care why, see my modules presentation on my blog (blogs.adobe.com/aharui) -- *From:* [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] *On Behalf Of *Jason Y. Kwong *Sent:* Saturday, September 29, 2007 1:05 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Runtime CSS problem with SWFLoader I've got an app which loads different runtime CSS SWFs to change its appearance at runtime. Everything works fine. However, if I load this app inside another app using SWFLoader, the style changes don't happen. At best, some of the new styles are applied, but never all. I can confirm that the CSS SWF is indeed being loaded (I get info in the console about it), it's just that the new styles
[flexcoders] Runtime CSS problem with SWFLoader
I've got an app which loads different runtime CSS SWFs to change its appearance at runtime. Everything works fine. However, if I load this app inside another app using SWFLoader, the style changes don't happen. At best, some of the new styles are applied, but never all. I can confirm that the CSS SWF is indeed being loaded (I get info in the console about it), it's just that the new styles are not applied. Is this a bug? I'm using Flex Builder 2.01.
Re: [flexcoders] Runtime CSS problem with SWFLoader
Thank you for your reply, Alex. I tried doing the following with the SWFLoader: var lctx: LoaderContext = new LoaderContext(); lctx.applicationDomain = ApplicationDomain.currentDomain; loader.loaderContext = lctx; loader.load(MyApp.swf); However, when MyApp loads a runtime CSS SWF, its styles are still not updating. Both the loading SWF and the MyApp SWF are local files in the same directory. I poked around in the StyleManager code and saw that it calls the styleDeclarationsChanged() method after a CSS SWF has been loaded. It looks like this: public function styleDeclarationsChanged():void { var sms:Array /* of SystemManager */ = SystemManagerGlobals.topLevelSystemManagers; var n:int = sms.length; for (var i:int = 0; i n; i++) { var sm:SystemManager = SystemManager(sms[i]); sm.regenerateStyleCache(true); sm.notifyStyleChangeInChildren(null, true); } } When I stepped through this, I saw that the sms array contains only the SystemManager for the main application. So I decided to have MyApp explicitly update its own SystemManager after a CSS SWF is loaded: systemManager.mx_internal::regenerateStyleCache(true); systemManager.mx_internal::notifyStyleChangeInChildren (null, true); This actually got all the styles to update on-screen. So what's not working right here? Is it related to the application domain or is it something else? On 9/29/07, Alex Harui [EMAIL PROTECTED] wrote: That's a common tripping point with runtime CSS. In a subswf config, you have to specify the applicationDomain parameter to be ApplicationDomain.currentDomain. If you care why, see my modules presentation on my blog (blogs.adobe.com/aharui) -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Jason Y. Kwong *Sent:* Saturday, September 29, 2007 1:05 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Runtime CSS problem with SWFLoader I've got an app which loads different runtime CSS SWFs to change its appearance at runtime. Everything works fine. However, if I load this app inside another app using SWFLoader, the style changes don't happen. At best, some of the new styles are applied, but never all. I can confirm that the CSS SWF is indeed being loaded (I get info in the console about it), it's just that the new styles are not applied. Is this a bug? I'm using Flex Builder 2.01.
Re: [flexcoders] Re: remoting with public access modifier in cfc
I've been tinkering with the services-config.xml file in the wwwroot/WEB-INF/flex/ directory, specifically the method-access-level switch. The thing is, it doesn't seem to do anything (yes, I did restart the CF server). Whether it is set to public or remote, any Flex app can access both public and remote functions (while older Flash apps can access only remote functions). This is true even if the Flex app is loaded from the local hard drive. What I'm trying to do is to prevent Flex apps from accessing public functions. It doesn't make sense to me that you can't create server-side only CFCs. ie. utility components meant only for other CFCs to use. These utility CFCs need to have their functions marked public, but as soon as you do that, any Flex app can then access them remotely? Am I missing something? On 12/14/06, phillips1021 [EMAIL PROTECTED] wrote: Kevin Schmidt posted this in response to a blog entry on Ray Camden's blog: you only need to set access=remote if you are using flex with web services. If you are usimg AMF (Flash Remoting) you don't need to set access=remote. See: http://ray.camdenfamily.com/index.cfm/2006/11/24/Next-build-of-my-Flex-2ColdFusion-Security-Homework#more and check the comments It makes sense since both the Flex app and the CFC are on the same host, just like the CFM file and the CFC are on the same host.
Re: [flexcoders] FlexPrintJob problem: application background colors showing in margins
Since there doesn't appear to be any follow-up to this topic, I'll provide an example. I recently started working with printing (using 2.0.1) and noticed this problem of the background colour bleeding through into the margin of the printed output. This might be printer/driver specific, though. It happens on my HP Photosmart 2575 printer, but doesn't happen when I print to a PDF using CutePDF Writer. A quick example follows below. It would be good to know if this happens with other people's printers, and hopefully someone has a workaround. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute backgroundColor=0xff mx:Script ![CDATA[ import mx.printing.FlexPrintJobScaleType; import mx.printing.FlexPrintJob; private function doPrint(): void { var job: FlexPrintJob = new FlexPrintJob(); job.printAsBitmap = false; if (job.start()) { job.addObject(preview, FlexPrintJobScaleType.SHOW_ALL); job.send(); } } ]] /mx:Script mx:Button x=24 y=31 label=Print click=doPrint()/ mx:HBox id=preview x=24 y=61 backgroundColor=0xff paddingLeft=20 paddingRight=20 paddingTop=10 paddingBottom=0 mx:Canvas height=665 width=500 backgroundColor=0xff mx:DataGrid x=0 width=100% mx:columns mx:DataGridColumn headerText=Column 1 dataField=col1/ mx:DataGridColumn headerText=Column 2 dataField=col2/ mx:DataGridColumn headerText=Column 3 dataField=col3/ /mx:columns /mx:DataGrid /mx:Canvas /mx:HBox /mx:Application On 11/6/06, Samuel Reuben [EMAIL PROTECTED] wrote: can you send a the isolated printing code that you are seeing the problem in? Are you by any chance mentioning the corners that show the bg color, specially when the component has rounded corners? Thanks, -sam On 11/6/06, Tom Bray [EMAIL PROTECTED] wrote: The background color of my application is printing in the margins of the page when I print my component in landscape mode. In portrait mode, there's a tiny sliver of the bg color on each side. Is there a way to prevent that besides using a white background? It seems like a bug since I can't actually print my component in those areas (it gets cropped at the margins) but the background color shows anyway. Any thoughts? Thanks, Tom
Re: [flexcoders] Re: Tree drag drop: how to get node where item is dropped
I had posted a request to Adobe's wish form, asking that the drop data be made available. I got a very quick response (within 10 minutes!):Yes, we discovered this very soon after shipping that this data should have been exposed. We have a bug for this already logged internally, sowe will work on fixing it for the future. For now, I think you will haveto rewrite your own updateDropData function, which is unfortunate. So I'll have to stick with my original plan of duplicating a few methods (as stated in my original post).On 8/21/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote: I'm glad it's not just me! So, were you able to get something working for your scenario? Anyone from the Adobe team want to confirm this and/or offer alternative solutions? thanks, Thunder --- In flexcoders@yahoogroups.com, Jason Y. Kwong [EMAIL PROTECTED] wrote: I've running into this myself right now as well. If you look at the Tree code, you can see that the drop parent is being tracked in the variable _dropData.parent. It gets calculated in the method updateDropData(). Unfortunately, both the variable and the method are private, so they're useless as is (another example of Adobe being overly private, I'm afraid). I've had to duplicate (and tweak) the updateDropData() method to make use of the algorithm. The methods getChildIndexInParent() and getChildren() had to be duplicated as well. On 8/18/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote: Bump... I'm trying to do similar. Though I need to do it in the DragOver event, and determine under which node it is going to be dropped. I need to do this because certain places in the tree are acceptable places to drop certain items... I know I can get the dropIndex by using the tree function calculateDropIndex however this is not enough. It simply tells me where in the list of displayed nodes it will go. So if the item is being placed between the last item in a lower level node and the continuation of the next level up, the index is the same, but the parent of the ending drop is different. I can tell the Tree internals are tracking this because the drop indicator changes it's horizontal alignment to indicate which level it's going in... Anyone know how to determine the parent node of the indicated drop position? thanks, Thunder --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jonas Windey jonas@ wrote: Hi, I have a tree with drag drop enabled. Now what is the best way to find out where the current selected item is dropped? I'd need to know its parent (if it's not on the rootnode), and the position where it's dropped inside that parent. Or is there an easier way to find the position? Like comparing the dataproviders before after? Thanks for the tips, Jonas __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Tree drag drop: how to get node where item is dropped
I've running into this myself right now as well. If you look at the Tree code, you can see that the drop parent is being tracked in the variable _dropData.parent. It gets calculated in the method updateDropData(). Unfortunately, both the variable and the method are private, so they're useless as is (another example of Adobe being overly private, I'm afraid). I've had to duplicate (and tweak) the updateDropData() method to make use of the algorithm. The methods getChildIndexInParent() and getChildren() had to be duplicated as well. On 8/18/06, thunderstumpgesatwork [EMAIL PROTECTED] wrote: Bump... I'm trying to do similar. Though I need to do it in the DragOver event, and determine under which node it is going to be dropped. I need to do this because certain places in the tree are acceptable places to drop certain items... I know I can get the dropIndex by using the tree function calculateDropIndex however this is not enough. It simply tells me where in the list of displayed nodes it will go. So if the item is being placed between the last item in a lower level node and the continuation of the next level up, the index is the same, but the parent of the ending drop is different. I can tell the Tree internals are tracking this because the drop indicator changes it's horizontal alignment to indicate which level it's going in... Anyone know how to determine the parent node of the indicated drop position? thanks, Thunder --- In flexcoders@yahoogroups.com, Jonas Windey [EMAIL PROTECTED] wrote: Hi, I have a tree with drag drop enabled. Now what is the best way to find out where the current selected item is dropped? I'd need to know its parent (if it's not on the rootnode), and the position where it's dropped inside that parent. Or is there an easier way to find the position? Like comparing the dataproviders before after? Thanks for the tips, Jonas __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider
>From my experiences, the grid takes a beat to update its visual appearance when its data gets updated. After I know that the data has been updated, I normally use callLater() to set the scroll position. On 6/28/06, djbrown_rotonews [EMAIL PROTECTED] wrote: I'm still not having any luck. The reset event is being calledupstream and processed in my handler, with the proper value ofprevIndex calculated, but the grid still jumps to the top after thedata fill: if (event.kind == CollectionEventKind.RESET) {var prevIndex:int = this.dgDelays.verticalScrollPosition;trace(prevIndex = ,prevIndex);this.dgDelays.verticalScrollPosition=prevIndex;}--- In flexcoders@yahoogroups.com, Deepa Subramaniam[EMAIL PROTECTED] wrote: I'm sorry, I totally misspoke. I meant to say RESET in myexplanation below. When your collection is filled with new data after a fill() callto your DataService, the component bound to that collection will receive a CollectionEvent with kind = RESET. Internally, we re-populate the component with the new data and reset the scroll position to 0. What you can do is add your own collectionChange event handler toyour collection and upon receiving a RESET, reset the verticalScrollPosition to whatever value you've been tracking. private function acHandler(event:CollectionEvent):void { if (event.kind == CollectionEventKind.RESET) dg.verticalScrollPosition = vPos; } There's no need to use the scrollToIndex() method; by setting the verticalScrollPosition property directly, the scrollbar andcontent are update as if the user scrolled to that index. Best, deepa From: flexcoders@yahoogroups.com[mailto:flexcoders@yahoogroups.com] On Behalf Of djbrown_rotonews Sent: Wednesday, June 28, 2006 7:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider I added a collectionChange event to my XMLListCollection (that'sthe dataProvider for the grid) as follows: public function preserveScrollPosition(event:CollectionEvent):void { var prevIndex:int = this.dgDelays.verticalScrollPosition; trace(prevIndex = ,prevIndex); this.dgDelays.scrollToIndex(prevIndex); } and the trace info does give me the value of the currentScroll, but the grid still goes back to the top after the data is populated. is refresh() still being called after this guy? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Deepa Subramaniam dsubrama@ wrote: When the actual data comes in, the DataGrid encounters a REFRESH collectionChange event and if you look in ListBase.collectionChangeHandler's REFRESH case, you'll see that the verticalScrollPosition is set to 0. What you need to do is set the scroll position *after* the data has come in and the DataGrid has processed the REFRESH event. -deepa -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of djbrown_rotonews Sent: Tuesday, June 27, 2006 12:42 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Keeping DataGrid from scrolling to top on update to dataProvider I actually tried this (my dataProvider for the grid is an XMLListCollection being populated by a jsp. The grid has custom item renderers if that's relevant). anyhow, I have an update button which will call the jsp andget new results when clicked. I've set it up so the click() method correctly captures the scroll position, calls the jsp, and then sets the scrollToIndex to the previous value of the scroll position.It works great while the busy cursor is displayed, but it reverts back to scrolled all the way at the top once the actual data comes in from the jsp (it takes about 3 seconds to update the gridwith the new data). any ideas on where the scroll position is being reset? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Deepa Subramaniam dsubrama@ wrote: Hi Jordan - You can keep track of the verticalScrollPosition property inyour DataGrid and upon receving UPDATES, re-set the verticalScrollPosition to the previous value and the DataGrid will jump to the lastscroll position and show the correct content. -deepa From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Jordan Snyder Sent: Monday, June 26, 2006 7:34 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Keeping DataGrid from scrolling to top on update to dataProvider Hello All, I am working on an app in which I poll the server quite frequently to get new information. The information comes to me in an XML format that I simply assign as the dataProvider for a DataGrid component.
Re: [flexcoders] Re: Flex2B2 - cut off any gui controls that appear outside of parent container
I'm not sure exactly what effect you want. Do you always want a part of button2 to be clipped off the right? If so, by how much?What's happening in my example is that the nested Canvas gives button2 only 25% of the available horizontal space. When the HBox was 300 pixels wide, that gave it 75 pixels. Since I set button2 to be 100 pixels wide, the right 25 pixels are cut off. But if you set the HBox's width to be 100%, then that 25% space could be a lot wider than 75 pixels. If it goes over 100 pixels, then of course all of button2 would be shown. You'll have to play with the numbers to get a specific effect. On 6/20/06, bhaq1972 [EMAIL PROTECTED] wrote: hi JasonHow can I keep this effect if i modify your example to becomemx:HBox width=100% height=100 backgroundColor=yellow mx:Button label=number1 width=75%/ mx:Canvas width=25% horizontalScrollPolicy=off mx:Button width=100 label=number2/ /mx:Canvas /mx:HBox thanksbod--- In flexcoders@yahoogroups.com, Jason Y. Kwong [EMAIL PROTECTED]wrote: Have a nested container do the clipping for you. eg: mx:HBox width=300 height=100 backgroundColor=yellow mx:Button label=number1 width=75%/ mx:Canvas width=25% horizontalScrollPolicy=off mx:Button width=100 label=number2/ /mx:Canvas /mx:HBox On 6/16/06, bhaq1972 [EMAIL PROTECTED] wrote: Mike and Tom thanks for the input. firstly, I tried using clipContent before but doesn't work. if i was dealing with fixed widths and set the horizonatalScrollPolicy 'off', i can achieve the effect i was looking for eg mx:Application xmlns:mx=http://www.adobe.com/2006/mxmlxmlns=* mx:HBox width=300 height=100 backgroundColor=yellow horizontalScrollPolicy=off mx:Button label=number1 width=225/ mx:Button label=number2 width=85/ /mx:HBox /mx:Application But as i'm not dealing with fixed button widths, i had to thinkof another way to get this effecthence paddingRight=-15 and some kind of contentClip. As i'm only dealing with layout, i would have thought something would work out of the box. Adobe??? I'm willing to try your suggestion of a mask, if you can gives us a few ideas on how to do that thanks.regrds bod --- In flexcoders@yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: I don't think the layout algorithmtakes negetives into account. I didn't mean it doesn't use the negetive padding, just itdoesn't calculate the 'measured width' right when laying out the mask for the container using a negetive padding with a percentage. Ah, to hard to explain right. Peace, Mike On 6/15/06, Michael Schmalle teoti.graphix@ wrote: Hi, For you to understand the problem you need to understand howthe HBox laysit's children out and uses viewMetrics. The reason this is not working is because since you specified 75% width,the container will calc the .75 of the width minus anythingthat is staticIE your button 2. When you say paddingRight = -15, this kind defines the logicof thelayout. For some reason, when you specify -15 for paddingLeft, the content on bothsides then get clipped. I am not Adobe, but I would venture to guess this cannot be done rightnow. Not saying this is a bug but, I don't think the layout algorithmtakesnegetives into account. You could always subclass HBox and create a mask over it and useborderMetrics to size the mask. Peace, Mike On 6/15/06, Tom Chiverton tom.chiverton@ wrote:On Thursday 15 June 2006 12:09, bhaq1972 wrote: how do i achieve this ? clipContent ? -- Tom Chiverton 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 notthe 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 0870365 8008. For more information about Halliwells LLP visit www.halliwells.com. We are pleased to announce that Halliwells LLP has beenvoted AIM Lawyer of the Year at the 2005 Growth Company Awards --What goes up, does come down.-- What goes up, does come down
Re: [flexcoders] Re: Flex2B2 - cut off any gui controls that appear outside of parent container
Ah, ok. So if you want to clip 20 pixels, then you need to make sure that button2 is always 20 pixels wider than the enclosing canvas. You can make use of binding:mx:HBox width=100% height=100% backgroundColor=yellow mx:Button label=number1 width=75%/ mx:Canvas id=mycanvas width=25% horizontalScrollPolicy=off mx:Button width={mycanvas.width+20} label=number2/ /mx:Canvas/mx:HBoxYes, it's quite a pain when the HBox/VBox just won't clip their content. I always thought it was a bug. On 6/20/06, bhaq1972 [EMAIL PROTECTED] wrote: sorry, the width of button2 should have been 100% (i only want tospecify percentage widths). I'm not sure exactly what effect you want.Do you always want apart of button2 to be clipped off the right?If so, by how much? Thats correct. i want to have part of the button clipped off to theright.i'm only using a button as an example (could be any gui control).Essentially i want to clip the right edge of the following example. mx:Application xmlns:mx=http://www.adobe.com/2006/mxmlmx:HBox width=100% height=100 backgroundColor=yellow paddingRight=-20 clipContent=truemx:Button label=number1 width=75%/mx:Canvas width=25% horizontalScrollPolicy=off mx:Button width=100% label=number2//mx:Canvas/mx:HBox/mx:Applicationif i was using a Canvas instead of an HBox in the above example. it works.but then i'll have to position the children.--- In flexcoders@yahoogroups.com, Jason Y. Kwong [EMAIL PROTECTED]wrote: I'm not sure exactly what effect you want.Do you always want apart of button2 to be clipped off the right?If so, by how much? What's happening in my example is that the nested Canvas gives button2 only 25% of the available horizontal space.When the HBox was 300pixels wide, that gave it 75 pixels.Since I set button2 to be 100 pixelswide, the right 25 pixels are cut off. But if you set the HBox's width to be 100%, then that 25% spacecould be a lot wider than 75 pixels.If it goes over 100 pixels, then ofcourse all of button2 would be shown.You'll have to play with the numbers to get a specific effect. On 6/20/06, bhaq1972 [EMAIL PROTECTED] wrote: hi Jason How can I keep this effect if i modify your example to become mx:HBox width=100% height=100 backgroundColor=yellow mx:Button label=number1 width=75%/ mx:Canvas width=25% horizontalScrollPolicy=off mx:Button width=100 label=number2/ /mx:Canvas /mx:HBox thanks bod --- In flexcoders@yahoogroups.com, Jason Y. Kwong inlineblue@ wrote: Have a nested container do the clipping for you. eg: mx:HBox width=300 height=100 backgroundColor=yellow mx:Button label=number1 width=75%/ mx:Canvas width=25% horizontalScrollPolicy=off mx:Button width=100 label=number2/ /mx:Canvas /mx:HBox On 6/16/06, bhaq1972 mbhaque@ wrote: Mike and Tom thanks for the input. firstly, I tried using clipContent before but doesn't work. if i was dealing with fixed widths and set thehorizonatalScrollPolicy 'off', i can achieve the effect i was looking for eg mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* mx:HBox width=300 height=100 backgroundColor=yellowhorizontalScrollPolicy=offmx:Button label=number1 width=225/ mx:Button label=number2 width=85//mx:HBox/mx:Application But as i'm not dealing with fixed button widths, i had to think ofanother way to get this effecthence paddingRight=-15 andsomekind of contentClip. As i'm only dealing with layout, i would have thought somethingwould work out of the box. Adobe??? I'm willing to try your suggestion of a mask, if you cangives us afew ideas on how to do that thanks. regrdsbod --- In flexcoders@yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: I don't think the layout algorithmtakes negetives into account. I didn't mean it doesn't use the negetive padding, just it doesn'tcalculate the 'measured width' right when laying out the mask for the container using a negetive padding with a percentage. Ah, to hard to explain right. Peace, Mike On 6/15/06, Michael Schmalle teoti.graphix@ wrote: Hi, For you to understand the problem you need to understandhow theHBox lays it's children out and uses viewMetrics. The reason this is not working is because since youspecified75% width, the container will calc the .75 of the width minus anything thatis static IE your button 2. When you say paddingRight = -15, this kind defines the logic ofthe layout. For some reason, when you specify -15 for paddingLeft,the content on both sides then get clipped. I am not Adobe, but I would venture to guess this cannot be doneright now. Not saying this is a bug but, I don't think thelayoutalgorithmtakes negetives into account. You could always subclass HBox
Re: [flexcoders] Re: TextInput and ESC key **bug**
This is actually caused by this bug I posted a few days ago:http://groups.yahoo.com/group/flexcoders/message/39749When you hit Escape, the TextInput control reverts to the previous value by assigning it to the htmlText property. Once it does that, the text property is no longer useable. You can still assign values to the htmlText property, but it changes the font.On 6/19/06, bobpardoe1959 [EMAIL PROTECTED] wrote:I too have found this bug today. I thought I was going mad. I am using it in conjunction with a datagid, and the click to select arow is also kyboshed by this bug.There is half a day I won't get back again.Lets hope there is an easy work around or the bug has been fixed in the final version, that will hopefully be released soon.BOb--- In flexcoders@yahoogroups.com, kellyb723 [EMAIL PROTECTED] wrote: I appologize if this is an old topic.I've searched the list and cannot find any mention of it. There appears to be a bug in Flex 2.0 B3 that if a user presses the ESC key while focused in a TextInput control (or Editable ComboBox) the control will revert to empty or the previous text value. The bug is that from that point on you cannot programatically set the value of the .text property of the control. This can be easily reproduced in the TextInput sample in the Flex Component Explorer. 1) Click the [Copy] button. 2) Focus in the lower TextInput box and press the ESC key on the keyboard... the text will disappear. 3) Click the [Copy] button again... nothing happens. - kelly Yahoo! Groups Sponsor ~--Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] F2B3: Editable DataGrid focus problem
With an editable DataGrid, select a row to give the grid focus. On the desktop, bring some other application to the foreground. Then go back and click on the Flex app that's running in the browser (click on the app, not on the browser window title bar). The grid will then put a cell into edit mode. The grid is acting like as if it was just given focus via tabbing. The grid does try to avoid this behaviour when focus is given via a mouse click (in focusInHandler()), but it doesn't appear it catches this mouse click since it comes from outside. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Flex2B3: Bug when setting htmlText in TextInput
If you set the htmlText property of a TextInput control, any changes you make to the text property is ignored afterwards. This is a bug in the commitProperties() method. There's a block of code that looks like this: if (htmlTextChanged) { textField.htmlText = _htmlText;--- textChanged = false; }The highlighted line should be htmlTextChanged = false. Otherwise, it just keeps recycling the value in _htmlText. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] F2B3: DataGrid bugs
1. When editing a cell, pressing the Esc key should close the editor and cancel the edit. Currently, the editor is closed but changes made by ther user is written back to the dataprovider.2. The verticalScrollPosition property is not bindable. If you try to bind to it, you get the compiler warning Data binding will not be able to detect assignments to verticalScrollPosition. Sure enough, at runtime, updates do not happen. Actually, this is most likely a bug with a super class. Anyway, right now I'm using the scroll event as a workaround. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] F2B3: Error when passing single object to CF function
I'm not sure if this is an entirely Flex problem, but I don't recall seeing this when using Flash Remoting. The problem arises when trying to do a RemoteObject call to a CF function that has one required argument that's a struct. eg: cffunction name=CallMe access=remote returntype=struct cfargument name=arg1 type=struct required=yesI try to pass an Object for arg1 and I get the error The parameter ARG1 to function CallMe is required but was not passed in. If I change the signature of CallMe so that it accepts a second dummy argument (of any type) and I pass a second dummy value, the call works fine. The call also works fine if the type of arg1 is changed to string. The problem arises only when there's a single required struct argument. The workaround is to simply use a dummy argument, but this should be fixed. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] F2B3: Custom event type not used/recognized in MXML
I have a very simple MXML component with a custom event:-?xml version=1.0 encoding=utf-8?mx:Canvas xmlns:mx= http://www.adobe.com/2006/mxml width=400 height=300 mx:Metadata [Event(jump, type=MyNewEvent)] /mx:Metadata mx:Button x=10 y=10 label=Button//mx:Canvaspackage{ import flash.events.Event ; public class MyNewEvent extends Event { public var data: String;public function MyNewEvent(eventType: String, d: String) { super(eventType); data = ""> }public override function clone(): Event { return new MyNewEvent(type, data); } } }---And I try to use it in an application like this:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Script ![CDATA[ private function onJump(event: MyNewEvent) {trace(event.data); } ]] /mx:Script MyNewComp jump=onJump(event)/ /mx:Application When compiling, I get the error Implicit coercion of a value with static type flash.events:Event to a possibly unrelated type MyNewEvent. According to the docs, I should be able to declare onJump using the type MyNewEvent. If I change the type to Event, it compiles ok. At runtime, I can actually cast it to MyNewEvent and it works fine, so the right type is being passed. It just looks like the code generator is not using the right type when creating the listener. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Flex 2 Beta 3: Move effect no longer respects layout constraints
I know this isn't an overly critical issue, but it's real ugly. Does anyone have a workaround for this? Or at least confirm that it'll be fixed in the production version? Thanks.On 5/31/06, Jason Y. Kwong [EMAIL PROTECTED] wrote: I have a Canvas with a border and it contains a TextArea. The Canvas is intentionally made larger than the TextArea via layout constraints. I then apply a Move effect to the Canvas. While the Canvas is moving, the size of the Canvas gets reduced to the minimum size required to contain the TextArea. After the effect is complete, the Canvas is back to its original larger size. In Beta 2, the Canvas kept its size while it was being moved, which is the expected behaviour. The little app below demonstrates. Click the Button to move the Canvas. mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Move id=canvasMover duration=500 target={mycanvas} xBy=200/ mx:Canvas borderStyle=solid width=500 height=400 mx:Canvas id=mycanvas x=50 width=200 borderStyle=solid borderThickness=4 top=5 bottom=5 mx:TextArea x=33 y=51/ /mx:Canvas /mx:Canvas mx:Button x=10 y=408 label=Button click= canvasMover.play ()//mx:Application __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: F2b3: e4x XML object as Tree dataprovider, how to refresh tree display?
I've noticed one other problem: If a Tree's showRoot property is set to false, not even calling invalidateList() will refresh the display. In fact, I can't find any way to get the Tree to refresh in such a case. Any ideas? On 5/25/06, Michael Montagna [EMAIL PROTECTED] wrote: Post beta3, changes to XML will automatically get updated in the Treecontrol.And you won't be required to go through XMLListCollectionbut you can simply make changes to the XML model itself, e.g. delete,+, appendChild, etc. You're seeing a bug in the b3 Tree where the collection events aren'tbeing handled properly.HTH,-MichaelFlex Framework--- In flexcoders@yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: Well, I figured it out already: myTree.invalidateList(); cleanly updates my display. If there is a better way, let me know. Tracy From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Wednesday, May 24, 2006 8:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] F2b3: e4x XML object as Tree dataprovider, how to refresh tree display? I need to modify the xml node names and text nodes so I can't use the XMLListCollection API. In 1.5, we could dispatch a modelChanged event to update a control. What is the 2.0 style way to cause a Tree control to refresh? Tracy -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw are+design+and+developmentw4=Macromedia+flexw5=Software+development+be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]?subject=Unsubscribe *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arriveshttp://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: F2b3: e4x XML object as Tree dataprovider, how to refresh tree display?
Actually, let me clarify that a bit. I can't get the Tree to show new nodes added to the root node. If I add nodes to child nodes, they show up when calling invalidateList(). The root node is the problem. I did a trace of the Tree's dataprovider after adding to the root node and the new children are in the XML. Must be a problem with the Tree's refresh logic. On 6/6/06, Jason Y. Kwong [EMAIL PROTECTED] wrote: I've noticed one other problem: If a Tree's showRoot property is set to false, not even calling invalidateList() will refresh the display. In fact, I can't find any way to get the Tree to refresh in such a case. Any ideas? On 5/25/06, Michael Montagna [EMAIL PROTECTED] wrote: Post beta3, changes to XML will automatically get updated in the Treecontrol.And you won't be required to go through XMLListCollectionbut you can simply make changes to the XML model itself, e.g. delete,+, appendChild, etc. You're seeing a bug in the b3 Tree where the collection events aren'tbeing handled properly.HTH,-MichaelFlex Framework--- In flexcoders@yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: Well, I figured it out already: myTree.invalidateList(); cleanly updates my display. If there is a better way, let me know. Tracy From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Wednesday, May 24, 2006 8:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] F2b3: e4x XML object as Tree dataprovider, how to refresh tree display? I need to modify the xml node names and text nodes so I can't use the XMLListCollection API. In 1.5, we could dispatch a modelChanged event to update a control. What is the 2.0 style way to cause a Tree control to refresh? Tracy -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw are+design+and+developmentw4=Macromedia+flexw5=Software+development+be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]?subject=Unsubscribe *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arriveshttp://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM ~- --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex
Re: [flexcoders] Re: F2b3: e4x XML object as Tree dataprovider, how to refresh tree display?
Ya, that's always an option, but it's a little disruptive cause it closes all the nodes that the user opened. Oh well, for now I'm just showing the root node.On 6/6/06, Tracy Spratt [EMAIL PROTECTED] wrote: As a last resort, you can re-assign the dataProvider. That should definitely cause the tree to refresh. In 1.5, we could do myTree.dataProvider = myTree.dataProvider; Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Y. Kwong Sent: Tuesday, June 06, 2006 3:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: F2b3: e4x XML object as Tree dataprovider, how to refresh tree display? Actually, let me clarify that a bit. I can't get the Tree to show new nodes added to the root node. If I add nodes to child nodes, they show up when calling invalidateList(). The root node is the problem. I did a trace of the Tree's dataprovider after adding to the root node and the new children are in the XML. Must be a problem with the Tree's refresh logic. On 6/6/06, Jason Y. Kwong [EMAIL PROTECTED] wrote: I've noticed one other problem: If a Tree's showRoot property is set to false, not even calling invalidateList() will refresh the display. In fact, I can't find any way to get the Tree to refresh in such a case. Any ideas? On 5/25/06, Michael Montagna [EMAIL PROTECTED] wrote: Post beta3, changes to XML will automatically get updated in the Tree control.And you won't be required to go through XMLListCollection but you can simply make changes to the XML model itself, e.g. delete, +, appendChild, etc. You're seeing a bug in the b3 Tree where the collection events aren't being handled properly. HTH, -Michael Flex Framework --- In flexcoders@yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: Well, I figured it out already: myTree.invalidateList(); cleanly updates my display. If there is a better way, let me know. Tracy From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Wednesday, May 24, 2006 8:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] F2b3: e4x XML object as Tree dataprovider, how to refresh tree display? I need to modify the xml node names and text nodes so I can't use the XMLListCollection API. In 1.5, we could dispatch a modelChanged event to update a control. What is the 2.0 style way to cause a Tree control to refresh? Tracy -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1= Web+site+design+developmentw2=Computer+software+developmentw3=Software +design+and+developmentw4=Macromedia+flexw5=Software+development+best+ practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+ developmentw2=Computer+software+developmentw3=Software+design+and+deve lopmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=1 66.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practice w1=Web+site+design+developmentw2=Computer+software+developmentw3=Softw are+design+and+developmentw4=Macromedia+flexw5=Software+development+be st+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw YAHOO! GROUPS LINKS *Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. *To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]?subject=Unsubscribe *Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http
[flexcoders] Flex 2 Beta 3: Move effect no longer respects layout constraints
I have a Canvas with a border and it contains a TextArea. The Canvas is intentionally made larger than the TextArea via layout constraints. I then apply a Move effect to the Canvas. While the Canvas is moving, the size of the Canvas gets reduced to the minimum size required to contain the TextArea. After the effect is complete, the Canvas is back to its original larger size. In Beta 2, the Canvas kept its size while it was being moved, which is the expected behaviour. The little app below demonstrates. Click the Button to move the Canvas. mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Move id=canvasMover duration=500 target={mycanvas} xBy=200/ mx:Canvas borderStyle=solid width=500 height=400 mx:Canvas id=mycanvas x=50 width=200 borderStyle=solid borderThickness=4 top=5 bottom=5 mx:TextArea x=33 y=51/ /mx:Canvas /mx:Canvas mx:Button x=10 y=408 label=Button click=canvasMover.play ()//mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Accessing methods/properties (Flash 8 movies in Loader component)
Ok, say the Flex side needs to call methods on the Flash side. We set up a LocalConnection so that the Flash side acts as a server and the Flex side connects to it. In Flash 8: lc = new LocalConnection(); lc.connect(MyFlashServer); //Give it a unique name//Define callable methods lc.sayHello = function(s: String): Void { trace(s); } In Flex 2: import flash.net.LocalConnection; var lc: LocalConnection = new LocalConnection(); lc.send(MyFlashServer, sayHello, hello world); //Server name, method name, argument That's the basic mechanism. Note that this is one-way communication. You can't return a value from sayHello() back to Flex. If you need two-way communication, you'll have to set up another LocalConnection but reverse the client and server. On 4/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have reached that kind of conclusion myself reading through the archives. What I miss is an example of how to do this, since the documentation is not very complete. I also searched the net without any luck. Thanks.Torben Nielsen-Original Message-From:Roger Gonzalez [EMAIL PROTECTED]Subj:RE: [flexcoders] Accessing methods/properties (Flash 8 movies in Loader component) Date:Sun 9. Apr 2006 0:36Size:1KTo:flexcoders@yahoogroups.comFlash 8 SWFs and Flash 8.5 SWFs run different versions of Actionscript,and cannot communicate directly. You need to build a layer using LocalConnection to proxycommunicationsbetween the two different virtual machines.(Once the next version of Flash Authoring is out, this won't benecessary.) -rgFrom: flexcoders@yahoogroups.com[mailto:flexcoders@yahoogroups.com ] On Behalf Of Torben NielsenSent: Saturday, April 08, 2006 2:35 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Accessing methods/properties (Flash 8 movies in Loader component)Hi,maybe it would be better if I specified what it is that I amtrying to do.I am developing an application that loads external Flash 8 movies that contains some movieclips, methods and properties. I loadthem into a Loader component like this:mx:Loader id=detailClip source=assets/IC51030.swfwidth=650 height=400 / How can I access a method in the Flash 8 movie loaded into theLoader component???I saw the thread below but I am not able to grab the solutionfrom these bits and pieces of information. Could somebody help me please. I need this to work otherwise I have to abandon Flex for thisproject and move back into Flash. I really would prefer to make it inFlex.Thanks.Best regards. Torben NielsenFrom: flexcoders@yahoogroups.com[mailto: flexcoders@yahoogroups.com] On Behalf Of Torben NielsenSent: sabato 8 aprile 2006 20.16To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flash 8 swf in Flex 2.0 App?Hi,--- message truncated -Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* 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 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Few issues
Please remember that your Flex application runs locally on the user's computer. Sure, the user is able to download the SWF via http://www.mydomain.com:8701 , but because the IP address is hard-coded into the SWF, it will try to access IP address 192.168.1.103 when it runs. That IP address will not resolve because it's local to your LAN (or it might even resolve to a machine on his LAN, which will really confuse matters). Unless I'm missing something, I really think you should put http://www.mydomain.com:8701/flex2gateway/ in your flex-enterprise-services.xml file. That way it'll resolve to your machine from anywhere.On 4/6/06, angelosalsa [EMAIL PROTECTED] wrote: Hi Jason,Yes it is a Linksys, you see when someone calls up on my domain,example:http://www.mydomain.com:8701/test.htmlthat DNS is to my Static IP, then forwarded from the router to open that port to the 192.168... IP to IIS 6.0, inside the test.html thereare few calls to Webservices and RemoteObjects which will access thehttp://192.168.1.103/components/mycomponent.cfc?WSDL .Locally everything works fine, but from the net no data gets loaded,but no error shows up anywhere!@Angelo--- In flexcoders@yahoogroups.com , Jason Y. Kwong [EMAIL PROTECTED]wrote: An IP address like 192.168.1.103 is a local IP address assigned bya router (most likely a Linksys, right?).An outside machine (not on your LAN) won't be able to see your machine via that IP. At least that's my take on the situation... On 3/28/06, angelosalsa [EMAIL PROTECTED] wrote: Hi all., 1st issue: My remoteobjects and webservices work fine from my local serverbut when I try to access the site from the outside world, I get onlythe hourglass loading with no errors but nothing shows, My crossdomain is in both C:\Inetpub\wwwroot\crossdomain.xml and incase C:\CFusionMX7\wwwroot\crossdomain.xml, here is what the crossdomain file look like. ?xml version= 1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd cross-domain-policy allow-access-from domain=* / /cross-domain-policy My local host is running on http://192.168.1.103:8701 and the flexenterprise-services.xml has this: endpoint uri=http://192.168.1.103:80{context.root}/flex2gateway/ all my components and services are in C:\Inetpub\wwwroot\CFIDE\components\... any ideas? 2nd issue: My Application have many components on right hand of the App. I have an Accordion that has a TabNavigator and in the TabNavigator Ihave a component that search the database for employees, right now the result is bind to a TileList with a listItemRenderer, in that component 'detail State', what i want to do is: insted of theresult getting back to the TileList, I would like to bind this ArrayCollection to another component 'empDetails.mxml ' DataGrid which is on the mainApp as ns1:empDetails / I played around with loose coupling but on my matter it doesntlook like it would work unless I can make the ArrayCollection as a public object MAYBE! Right now this is how I am getting back the results: --empSearch.mxml-- mx:ArrayCollection id=searchResults source={ mx.utils.ArrayUtil.toArray(EmployeeService.search.result)} /mx:ArrayCollection Also played aroung with Calling component but I couldnt figure out how to pass the results to dataProvider in the ' empDetails.mxml' 3ed issue: using the Tree, how would I call other components in a ViewStackto view? Thanks Angelo -- 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 Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Few issues
An IP address like 192.168.1.103 is a local IP address assigned by a router (most likely a Linksys, right?). An outside machine (not on your LAN) won't be able to see your machine via that IP. At least that's my take on the situation...On 3/28/06, angelosalsa [EMAIL PROTECTED] wrote: Hi all.,1st issue:My remoteobjects and webservices work fine from my local server but when I try to access the site from the outside world, I get only thehourglass loading with no errors but nothing shows,My crossdomain is in both C:\Inetpub\wwwroot\crossdomain.xml andincase C:\CFusionMX7\wwwroot\crossdomain.xml, here is what the crossdomain file look like.?xml version=1.0?!DOCTYPE cross-domain-policySYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd cross-domain-policyallow-access-from domain=* //cross-domain-policyMy local host is running on http://192.168.1.103:8701 and theflexenterprise-services.xml has this:endpoint uri=http://192.168.1.103:80{context.root}/flex2gateway/all my components and services are in C:\Inetpub\wwwroot\CFIDE\components\...any ideas?2nd issue:My Application have many components on right hand of the App. I havean Accordion that has a TabNavigator and in the TabNavigator I havea component that search the database for employees, right now the result is bind to a TileList with a listItemRenderer, in thatcomponent 'detail State', what i want to do is: insted of the resultgetting back to the TileList, I would like to bind thisArrayCollection to another component ' empDetails.mxml' DataGridwhich is on the mainApp as ns1:empDetails /I played around with loose coupling but on my matter it doesnt looklike it would work unless I can make the ArrayCollection as a public object MAYBE!Right now this is how I am getting back the results:--empSearch.mxml--mx:ArrayCollection id=searchResultssource={mx.utils.ArrayUtil.toArray(EmployeeService.search.result )}/mx:ArrayCollectionAlso played aroung with Calling component but I couldnt figure outhow to pass the results to dataProvider in the 'empDetails.mxml'3ed issue:using the Tree, how would I call other components in a ViewStack to view?ThanksAngelo--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex beta 2 - add, remove and moving DataGridColumn
I've noticed that you can't actually manipulate the columns property directly cause it looks like the grid returns a copy of its internal columns array. eg: trace(grid.columns == grid.columns); //outputs false So doing things like grid.columns.push(...) doesn't change anything, even if you call invalidateDisplayList(). I've had to assign back the property: var cols: Array = grid.columns; cols.push (...); grid.columns = col;Once you assign the property, the grid automatically redraws itself.On 4/3/06, Matt Chotin [EMAIL PROTECTED] wrote: The columns are stored in an Array. You simply need to manipulate the array using operations like splice. Then make sure to call invalidateDisplayList to get it to redraw. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Bruno Martins Sent: Monday, April 03, 2006 11:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex beta 2 - add, remove and moving DataGridColumn I tryed almost every thing but I don't know how to add, remove and moving a column. Please send a example. Tks.. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] What is Incompatible override??
The function signatures have changed. eg:callProperty(name:Object, ... args):*has changed to:callProperty(name:*, ... args):* On 4/4/06, sn197412 [EMAIL PROTECTED] wrote: Hi.I'm trying to compile a [EMAIL PROTECTED]But I got errors every override lines.What is Incompatible override??package{import flash.util.Proxy;import flash.util.flash_proxy ;import flash.util.trace;use namespace flash_proxy;public dynamic class Person extends Proxy{protected var name:String;protected var age:uint;public function Person( name:String, age:uint ) {this.name = name;this.age = age;}flash_proxy override function callProperty(name:Object, ... args):*{trace(callProperty: + name); return super[name].apply(null,args);}flash_proxy override function setProperty(name:Object,value:Object):void{trace(setProperty: + name);super.setProperty (name, value);}flash_proxy override function deleteProperty(name:Object):void{trace(deleteProperty: + name);super.deleteProperty(name);}flash_proxy override function hasProperty(name:Object):Boolean {trace(hasProperty: + name);return super.hasProperty( name );}}}--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] in operator (F2B2)
In AS3, the in operator will iterate only through dynamically added properties. Properties/methods that are declared as part of the class are not included, so it will show nothing for the Label. On 4/4/06, David Moylan [EMAIL PROTECTED] wrote: I want to clone an mx:Label object.I thought I should be able to usefor (var i: String in label){trace(i);}to test cycling through the properties of my label, but no luck.There's no compile error, but it also doesn't loop.I've tried this directly on the label object and inside a function where the label wouldbe cast as an Object.Shouldn't I be able to treat any object as anassociative array?Dave--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * 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 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Run shortcut
I go to the Modify tab of the Keys preferences screen and do this:- select Run/Debug from Category dropdown- select Run Flex Application from Name dropdown- click the Name edit box under the Key Sequence section - press the key-combo I want (eg. Ctrl-Enter)- click Add then click Ok.This worked for me just fine.On 4/1/06, Stefan Richter [EMAIL PROTECTED] wrote: Anyone got any luck with this? I seem to be unable to set up a working shortcut for Run... From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Stefan RichterSent: 29 March 2006 15:54To: flexcoders@yahoogroups.comSubject: [flexcoders] Run shortcut I am having trouble configuring a keyboard shortcut for 'Run'. The preferences suggest that Ctrl-F11 should work but it doesn't for me and neither do any newly configured ones. Could someone walk me though this? I kinda fancy Ctrl-Enter as my shortcut to run my app (Ctrl-Shift-enter for debugging) from either design or code view. How is it done? I managed to set this up in Eclipse but in FB2 it's a no go for me. Alt+Shift+X also seems to do something but apart from pop up a little panel in the bottom right that's dead also. Stefan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Configuring RemoteObject destinations (Flex 2)
For our production environment, our SWFs are served from the same machine that our ColdFusion server resides on, so using {server.name} or {context.root} works fine when configuring destinations. During development, I compile and test SWFs locally. I don't run ColdFusion locally--we have a separate development server. So in this case, using { server.name} or {context.root} doesn't work. I have to change the flex-services.xml file and put in the development server's IP address. It's just awkward to have to manually do this. What I miss is the convenience of build profiles as seen in some other IDEs. I can have one for development and one for production, each having different compiler options (eg. so I can specify different flex-services.xml files). At least that's one way to do it. Can I do something like this with the current Flex Builder? I haven't found a way.On 3/15/06, Peter Farland [EMAIL PROTECTED] wrote: Additionally, you could configure several channels for a destination and rely on channel failover so that it will look for one then the other... From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Jason Y. KwongSent: Wednesday, March 15, 2006 7:41 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Configuring RemoteObject destinations (Flex 2) This came up cause I was configuring my Flex 2 app to communicate with ColdFusion, but I suppose it applies to RemoteObject in general. In order to tell your app the location of a web service destination, we're told to add something like this to the compiler command line: --services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml Now, my first question is, since the file flex-enterprise-services.xml resides on the server (be it ColdFusion or FES) and you typically don't do your client development on the same machine as the production server, how would this work in the general case? Anyway, so then I decided to copy the file to my development machine and then manually changed localhost to the server's IP address in the channel configuration. I compiled my app and it worked fine. But now it appears that the server's address is compiled directly into the swf. Are we unable to dynamically assign server addresses at runtime? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex 2 B2: Menu interfering with Alert popup
Ok, this is a pretty obscure bug, but the scenario isn't so weird. The following app creates a menu and has a button that causes it to be shown. When the menu item is clicked, it pops up an alert box: ?xml version= 1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute creationComplete=init() mx:Script ![CDATA[import mx.controls.Menu;import mx.controls.Alert;private var menu: Menu; private function init(): void{ var dp: XML = item1 label=Item1/ menu = Menu.createMenu(null, dp); menu.labelField = @label; menu.setStyle(openDuration, 0); menu.addEventListener(change, onChange); }private function onChange(event: Event): void{ Alert.show(Testing, title, Alert.YES);} ]] /mx:Scriptmx:Button x=10 y=10 label=Button click=menu.show()/ /mx:ApplicationThe problem is that when the menu item is clicked a second time, the alert popup does not appear but the whole screen still goes into a modal state. With no popup to dismiss, you can't get out of the modal state and your app is frozen out. Now, this happens only if the menu's openDuration is set to 0 and you specify some button flags for the alert window (eg. Alert.YES) . I know, sort of obscure, but not an unreasonable scenario (heck, this happened in my app). -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex 2: height and width of Loader when loading SWF
When the Loader loads a Flash 7/8 SWF, its height and width properties are set to the SWF's stage height and width. The thing is, the SWF could size its content dynamically so that it's actually larger than specified. The larger SWF is displayed properly in the Flex app and the contentHeight and contentWidth properties appear to be set accordingly. But since the entirety of the SWF is displayed (and not clipped), doesn't it follow that the Loader's height and width should be larger as well? I bring this up cause a Flex container doesn't clip or scroll its content if it thinks all of its children fit inside. But a Loader doesn't necessarily report its full height and width (at least visually), so its content can spill outside the borders of its non-clipping container. Thoughts? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex 2 B2: @ operator resolving to local variables?
I'm seeing some strangeness with the @ operator: var foo: String = hello; @foo = goodbye; trace(foo); //Traces out goodbyeWhy does @foo resolve to foo? Is this expected behaviour? If foo is a property and not a local variable, I get a compiler error (as expected). -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Is there a way to change the default error color of the TextInput border?
It's controlled by a global style as it's not specific to the TextInput component:mx:Style.ErrorTip { borderColor: #00FF00 }/mx:StyleorStyleManager.getStyleDeclaration (ErrorTip).setStyle(borderColor, 0x00FF00);On 3/22/06, Libby [EMAIL PROTECTED] wrote:I've been messing with StyleName, borderColor, errorColor to no avail. Nothing I do changes the red border. If this attribute is notmodifiable, is it possible to extend the TextInput in order to get tothe errorColor? If so, any hints?Thanks,Libby --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * 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 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Is there a way to change the default error color of the TextInput border?
Sorry, I thought you meant Flex 2. I haven't used Flex 1.5 so I'm not much help there.On 3/22/06, Libby [EMAIL PROTECTED] wrote:Is this code Flex 2.0? My StyleManager (v1.5) doesn't seem to have the method getStyleDeclaration().Thanks,Libby--- In flexcoders@yahoogroups.com, Jason Y. Kwong [EMAIL PROTECTED]wrote: It's controlled by a global style as it's not specific to the TextInput component: mx:Style .ErrorTip { borderColor: #00FF00 } /mx:Style or StyleManager.getStyleDeclaration(ErrorTip).setStyle(borderColor, 0x00FF00); On 3/22/06, Libby [EMAIL PROTECTED] wrote: I've been messing with StyleName, borderColor, errorColor to no avail. Nothing I do changes the red border. If this attribute is not modifiable, is it possible to extend the TextInput in order to get to the errorColor? If so, any hints? Thanks, Libby -- 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 Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex2/ColdFusion connectivity : session scope problem
I hope someone is actually looking into this. Here's a log of the null pointer exception when trying to use J2EE sessions. It's not terribly useful as the stack trace is not shown, but it does show that the exception occurred when trying to access the ColdFusion service, most likely the adapter class, coldfusion.flash.messaging.ColdFusionAdapter.[Flex] Channel endpoint my-cfamf received request.[Flex] Deserializing AMF/HTTP requestVersion: 3 (Message #0 targetURI=null, responseURI=/2) (Array #0) [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage') source = Phones.Catalog operation = getPhones headers = (Object #1) endpoint = my-cfamf clientId = null messageId = 946D7330-6674-C2DC-E66B1BA4 timeToLive = 0 timestamp = 0 body = (Array #2) destination = ColdFusion [Flex] Before invoke service: coldfusionsamples-service incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage) clientId: 998B396C-EF0C-6B0E-2DE2-DFF4A87835B8 destination: ColdFusion messageId: 946D7330-6674-C2DC-E66B1BA4 timestamp: 1142788019551 timeToLive: 1142788019551 body: null[Flex] Exception when invoking service: coldfusionsamples-service with message: Flex Message ( flex.messaging.messages.RemotingMessage) clientId: 998B396C-EF0C-6B0E-2DE2-DFF4A87835B8 destination: ColdFusion messageId: 946D7330-6674-C2DC-E66B1BA4 timestamp: 1142788019551 timeToLive: 1142788019551 body: null exception: flex.messaging.MessageException: java.lang.NullPointerException[Flex] Error handling message: flex.messaging.MessageException: java.lang.NullPointerException incomingMessage: Flex Message ( flex.messaging.messages.RemotingMessage) clientId: 998B396C-EF0C-6B0E-2DE2-DFF4A87835B8 destination: ColdFusion messageId: 946D7330-6674-C2DC-E66B1BA4 timestamp: 1142788019551 timeToLive: 1142788019551 body: null errorReply: Flex Message (flex.messaging.messages.ErrorMessage) clientId: null correlationId: 946D7330-6674-C2DC-E66B1BA4 destination: null messageId: 998B5227-800A-E98A-8ABC-086510840D21 timestamp: 1142788022144 timeToLive: 0 body: null code: Server.Processing message: java.lang.NullPointerException details: null rootCause: null body: null extendedData: {stacktrace=[ Ljava.lang.StackTraceElement;@1adfbe3}[Flex] Serializing AMF/HTTP responseVersion: 3 (Message #0 targetURI=/2/onStatus, responseURI=) (Typed Object #0 'flex.messaging.messages.ErrorMessage') rootCause = null destination = null headers = (Object #1) correlationId = 946D7330-6674-C2DC-E66B1BA4 message = java.lang.NullPointerException details = null messageId = 998B5227-800A-E98A-8ABC-086510840D21 timeToLive = 0.0 extendedData = (Object #2) stacktrace = (Array #3) [0] = (Typed Object #4 'java.lang.StackTraceElement ') [1] = (Typed Object #5 'java.lang.StackTraceElement') [2] = (Typed Object #6 'java.lang.StackTraceElement') [3] = (Typed Object #7 'java.lang.StackTraceElement') [4] = (Typed Object #8 ' java.lang.StackTraceElement') [5] = (Typed Object #9 'java.lang.StackTraceElement') [6] = (Typed Object #10 'java.lang.StackTraceElement') [7] = (Typed Object #11 'java.lang.StackTraceElement ') [8] = (Typed Object #12 'java.lang.StackTraceElement') [9] = (Typed Object #13 'java.lang.StackTraceElement') [10] = (Typed Object #14 'java.lang.StackTraceElement') [11] = (Typed Object #15 ' java.lang.StackTraceElement') [12] = (Typed Object #16 'java.lang.StackTraceElement') [13] = (Typed Object #17 'java.lang.StackTraceElement') [14] = (Typed Object #18 'java.lang.StackTraceElement ') [15] = (Typed Object #19 'java.lang.StackTraceElement') [16] = (Typed Object #20 'java.lang.StackTraceElement') [17] = (Typed Object #21 'java.lang.StackTraceElement') [18] = (Typed Object #22 ' java.lang.StackTraceElement') [19] = (Typed Object #23 'java.lang.StackTraceElement') [20] = (Typed Object #24 'java.lang.StackTraceElement') [21] = (Typed Object #25 'java.lang.StackTraceElement ') [22] = (Typed Object #26 'java.lang.StackTraceElement') [23] = (Typed Object #27 'java.lang.StackTraceElement') [24] = (Typed Object #28 'java.lang.StackTraceElement') [25] = (Typed Object #29 ' java.lang.StackTraceElement') [26] = (Typed Object #30 'java.lang.StackTraceElement') [27] = (Typed Object #31 'java.lang.StackTraceElement') [28] = (Typed Object #32 'java.lang.StackTraceElement ') [29] = (Typed Object #33 'java.lang.StackTraceElement') [30] = (Typed Object #34 'java.lang.StackTraceElement') [31] = (Typed Object #35 'java.lang.StackTraceElement') [32] = (Typed Object #36 ' java.lang.StackTraceElement') [33] = (Typed Object #37 'java.lang.StackTraceElement') [34] = (Typed Object #38 'java.lang.StackTraceElement') [35] = (Typed Object #39 'java.lang.StackTraceElement ') [36] = (Typed Object #40 'java.lang.StackTraceElement') code = Server.Processing timestamp = 1.142788022144E12 clientId = null body = null On 3/2/06, Benoit Hediard [EMAIL PROTECTED] wrote: Any news on this issue from the Mystic ColdFusion Updater team? This is a
[flexcoders] Configuring RemoteObject destinations (Flex 2)
This came up cause I was configuring my Flex 2 app to communicate with ColdFusion, but I suppose it applies to RemoteObject in general. In order to tell your app the location of a web service destination, we're told to add something like this to the compiler command line: --services=C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml Now, my first question is, since the file flex-enterprise-services.xml resides on the server (be it ColdFusion or FES) and you typically don't do your client development on the same machine as the production server, how would this work in the general case? Anyway, so then I decided to copy the file to my development machine and then manually changed localhost to the server's IP address in the channel configuration. I compiled my app and it worked fine. But now it appears that the server's address is compiled directly into the swf. Are we unable to dynamically assign server addresses at runtime? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Forced to use MoveEvent?
My custom component broadcasts an event called move. So I declare it in the MXML: mx:Metadata [Event(name=move, type=flash.events.Event)] /mx:Metadata And then later dispatch it: dispatchEvent(new Event(move));But I get a runtime error when dispatching: Type Coercion failed: cannot convert flash.events::[EMAIL PROTECTED] to mx.events.MoveEvent If I change my dispatch to this: dispatchEvent(new MoveEvent(move));It works fine. It also works fine if I rename the event to something else. It looks like Flex expects any event named move to be of type mx.Events.MoveEvent, no matter what you put in the Metadata tag. Surely it wasn't meant to be this way? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Forced to use MoveEvent?
Actually, never mind. I think I figured it out. An event named move was already declared previously by the framework. I guess I should just call it something else. An interesting scenario, anyway... On 3/10/06, Jason Y. Kwong [EMAIL PROTECTED] wrote: My custom component broadcasts an event called move. So I declare it in the MXML: mx:Metadata [Event(name=move, type=flash.events.Event )] /mx:Metadata And then later dispatch it: dispatchEvent(new Event(move));But I get a runtime error when dispatching: Type Coercion failed: cannot convert flash.events::[EMAIL PROTECTED] to mx.events.MoveEvent If I change my dispatch to this: dispatchEvent(new MoveEvent(move));It works fine. It also works fine if I rename the event to something else. It looks like Flex expects any event named move to be of type mx.Events.MoveEvent, no matter what you put in the Metadata tag. Surely it wasn't meant to be this way? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Uncaught exceptions in Flex 2.0
I figured it had something to do with _root, but it's not my code trying to get at it. In my tests, I tried loading a Flash 8 swf that contained nothing but a Label component. I get the error:ReferenceError: Error #1056: Cannot create property reserved on _TestApp_mx_managers_SystemManager Interestingly, this error doesn't happen if I specify the swf in the MXML, eg:mx:Loader source=Test.swf/But if use load() or the source property in script, the exception happens. Unfortunately, I need to use the load() method. So is there any way to catch these exceptions? I noticed that if you click Dismiss All on the error popup, it never pops up again for any other exceptions (it just traces warnings to the console). Any way to set that at startup? On 2/15/06, Matt Chotin [EMAIL PROTECTED] wrote: Actually, is your loaded SWF trying to access _root? If it is, those are legit errors, you can't just muck with the root anymore. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Y. Kwong Sent: Tuesday, February 14, 2006 10:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Uncaught exceptions in Flex 2.0 When using the Loader component to load a Flash 8 swf, I normally get a couple of uncaught exceptions that appear via a pop-up window: ReferenceError: Error #1056: Cannot create property __OnEnterFrameBeacon on _TestApp_mx_managers_SystemManager ReferenceError: Error #1056: Cannot create property reserved on _TestApp_mx_managers_SystemManager If you dismiss these exceptions, the swf runs fine. I trust that these exceptions will be fixed eventually. In the meantime, I would like to prevent the pop-up window. Since these exceptions are thrown during the asynchronous load, I can't catch them the usual way. In the docs, there's a section titled Uncaught exceptions, but it's currently blank. Is there a way in AS3 to declare something like a global exception handler to catch these uncaught exceptions? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Problems with Tree and XML.setChildren() (Flex 2)
I have a Tree with an XML dataprovider. I noticed a couple of problems when using the setChildren() method on the source XML object. First, if a branch has children and is open in the Tree, the player crashes if I call setChildren() and pass it an empty XMLList (to clear the children). Second, while I can successfully add children to an XML object using setChildren(), the call does not update the Tree. If I close and open the branch again, the new children show up, but any changes I make to these children don't get updated in the Tree either. Everything works fine if I use appendChild() instead. Just passing this along... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Code hint quirk in Flex Builder 2
This is about editing files outside of the current project. Code hints/completion works fine if I open a file via the [classpath] classes folder hierarchy, but if I open a file via Go to Definition (or Ctrl-click an identifier), code hinting does not work. Again, passing this along... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Passing nested objects to ColdFusion via WebService
Thanks for your response. I know this is a pretty obscure problem.Unfortunately, I've turned on all the logging I can for the CF server. CF has no problems with nested objects and the like. I did these kind of calls all the time using remoting with Flash. Perhaps it isn't a Flex issue but a CF/SOAP problem. Like I said, I'd much rather be using the ColdFusion/Flex Connectivity thing. You say that I can simply copy over stuff to our Linux server after running the installer on Windows? Are there any instructions on how to do a Linux install? Thanks. On 2/14/06, Matt Chotin [EMAIL PROTECTED] wrote: I'm not sure why CF running on Linux is a problem. Maybe the installer only supports Windows at the moment but everything that it drops could probably just be copied over. Can you turn on additional logging for CF? I'm not a CF user so I don't know what you'd need to do. Clearly the CFC doesn't like the data being passed to it. I don't know CF structs, are they allowed to take nested objects instead of just name-value pairs? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Problem binding to ColorPicker.selectedColor (Flex 2.0)
It's not a huge problem, but it's good to get these things fixed...When binding to ColorPicker.selectedColor, it works fine if the user manually changes the selected colour. However, if the property is changed programmatically, the binding does not execute. It has caused some minor headaches on my current project. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Uncaught exceptions in Flex 2.0
When using the Loader component to load a Flash 8 swf, I normally get a couple of uncaught exceptions that appear via a pop-up window:ReferenceError: Error #1056: Cannot create property __OnEnterFrameBeacon on _TestApp_mx_managers_SystemManager ReferenceError: Error #1056: Cannot create property reserved on _TestApp_mx_managers_SystemManagerIf you dismiss these exceptions, the swf runs fine. I trust that these exceptions will be fixed eventually. In the meantime, I would like to prevent the pop-up window. Since these exceptions are thrown during the asynchronous load, I can't catch them the usual way. In the docs, there's a section titled Uncaught exceptions, but it's currently blank. Is there a way in AS3 to declare something like a global exception handler to catch these uncaught exceptions? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Passing nested objects to ColdFusion via WebService
*BUMP*Sorry for the repost, but I know that the Adobe folks were pretty occupied last week. Trying this one again...On 2/4/06, Jason Y. Kwong [EMAIL PROTECTED] wrote:I'm attempting to call a CFC from a Flex 2.0 app. I would prefer to use RemoteObject but our ColdFusion server is running on Linux so we've got no Flex Connectivity. So I'm still using the WebService object to make calls via SOAP. This works fine normally, but things mess up if I try to pass a nested object to the CFC. Here's a simple example CFC method I'm trying to call: cffunction name=testMethod access=remote returntype=string cfargument name=data type=struct required=yes cfreturn data.name/cffunctionIn my Flex app, I create a WebService object:mx:WebService id=service wsdl=... result=onResult(event) fault=onFault(event)/ If I call it the following way, everything works fine:var parm: Object = new Object(); parm.name = XXX; service.testMethod(parm);I can add as many scalar properties to parm as I want. However, as soon as I add an Object property, it messes up. eg: parm.name = XXX;parm.stuff = {id:123};The service generates a fault and I get the generic HTTP request error. The fault detail isn't that helpful: Error: [IOErrorEvent type=ioError bubbles=false cancelable=false text=Error #2032: Stream Error. URL: http://...]. URL: http://... The server logs aren't that helpful either. Our CF server is fronted by Apache. The Apache logs do show a 500 result for the request (but nothing else). However, the CF logs show nothing at all. It's like the call/error never happened. I never had this kind of problem when I used Flash Remoting with Flash MX. Can anybody shed some light on this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex2 Tree
I have noticed that the following two lines are not equivalent: dataProvider = classpaths label=Class Paths/classpaths; dataProvider = XMLList(classpaths label=Class Paths/classpaths);The first results in an ArrayCollection dataProvider while the second one results in an XMLListCollection. Strange things happen with an ArrayCollection. Using the second way, I didn't get the undefined error. Good luck. On 2/9/06, Teoti Graphix [EMAIL PROTECTED] wrote: Hello, I am writting this more as a comment then question. I have spent 2 days experimenting with the mx.collections classes and it has been fun. Now, I have a project where I need the tree's root to be; ClassPaths - c:/classes - dir structure - c:/mm/classes ... - dir structure.. I am loading all the xml tree structure form php fine. What is the method for creating the root now ClassPaths ONCE, then on each new 'loadCLassPath() call, add the new xml to the CLassPaths root node. I have almost got it but, the tree gives me node opne errors after I get 2 nodes inserted. Am I doing something wrong? protected function loadDir(evt:ResultEvent):void { var newList:XMLList = new XMLList(evt.result); if (dataProvider == null) { dataProvider = classpaths label=Class Paths/classpaths; } dataProvider.source[0].appendChild(newList); } Peace, Mike PS the error when click to open the root node is... TypeError: Error #1010: undefined has no properties. at mx.controls::Tree/setIsOpen() at mx.controls.treeclasses::TreeCellRenderer/disclosurePress() -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] embed a movieclip
I'm actually trying to do something similar. What I've found so far should be able to help you. You need to load the SWF via the Loader component and then use its content property:mx:Loader id=myloader source= SimpleSWF.swf complete=onComplete()/private function onComplete(): void{ var swf: MovieClip = MovieClip(myloader.content); swf.gotoAndPlay(...); }My problem is that I can't access additional methods/properties that are declared in the loaded swf. I've seen a Flex 1.5 example where you can just go ahead and call those methods on the MovieClip instance, but that doesn't seem to work in Flex 2. I've tried casting it to an Object to get around the compiler, but I just end up with a runtime error. On 2/8/06, nacho [EMAIL PROTECTED] wrote: what I want to do is load a .SWF file and control the timeline of this movieclip, with gotoAndPlay, etc...but i don't know how to load it -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] embed a movieclip
Ok, I found something interesting about this. You can actually access properties in the loaded swf but trying to call a function messes up. The function is actually there, but it isn't recognized as a function. For example, my Flash8 swf has a function named callMe. I load this into my Flex2 app and then trace swf.callMe and I actually get [object Object]. But if try to call it via swf.callMe(), I get a runtime error: Call attempted on an object that is not a function.Ironically, you can actually access getter/setter functions. Since they're considered properties, I guess they're good to go. It's a useable workaround at this point. On 2/8/06, Jason Y. Kwong [EMAIL PROTECTED] wrote: I'm actually trying to do something similar. What I've found so far should be able to help you. You need to load the SWF via the Loader component and then use its content property:mx:Loader id=myloader source= SimpleSWF.swf complete=onComplete()/private function onComplete(): void{ var swf: MovieClip = MovieClip(myloader.content); swf.gotoAndPlay(...); }My problem is that I can't access additional methods/properties that are declared in the loaded swf. I've seen a Flex 1.5 example where you can just go ahead and call those methods on the MovieClip instance, but that doesn't seem to work in Flex 2. I've tried casting it to an Object to get around the compiler, but I just end up with a runtime error. On 2/8/06, nacho [EMAIL PROTECTED] wrote: what I want to do is load a .SWF file and control the timeline of this movieclip, with gotoAndPlay, etc...but i don't know how to load it -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] embed a movieclip
Yes, I was able to successfully call a setter property. I put arbitrary code in the function and it worked out fine. The only gotcha is that the getter/setter must be attached to a MovieClip instance inside the SWF. So you have to associate a class with a library MC, place it on the stage and give it an instance name. Then in the Flex code: var swf: MovieClip = MovieClip(myloader.content);var mc: MovieClip = MovieClip(swf.getChildByName(myMC));mc.myText = xxx; //setterI'm really hoping there's an easier way...or this gets fixed in the next release. On 2/8/06, JesterXL [EMAIL PROTECTED] wrote: Have you successfully set a getter/setter property? - Original Message - From: Jason Y. Kwong To: flexcoders@yahoogroups.com Sent: Wednesday, February 08, 2006 3:08 PM Subject: Re: [flexcoders] embed a movieclip Ok, I found something interesting about this. You can actually access properties in the loaded swf but trying to call a function messes up. The function is actually there, but it isn't recognized as a function. For example, my Flash8 swf has a function named callMe. I load this into my Flex2 app and then trace swf.callMe and I actually get [object Object]. But if try to call it via swf.callMe(), I get a runtime error: Call attempted on an object that is not a function.Ironically, you can actually access getter/setter functions. Since they're considered properties, I guess they're good to go. It's a useable workaround at this point. On 2/8/06, Jason Y. Kwong [EMAIL PROTECTED] wrote: I'm actually trying to do something similar. What I've found so far should be able to help you. You need to load the SWF via the Loader component and then use its content property:mx:Loader id=myloader source= SimpleSWF.swf complete=onComplete()/private function onComplete(): void{ var swf: MovieClip = MovieClip(myloader.content); swf.gotoAndPlay(...);}My problem is that I can't access additional methods/properties that are declared in the loaded swf. I've seen a Flex 1.5 example where you can just go ahead and call those methods on the MovieClip instance, but that doesn't seem to work in Flex 2. I've tried casting it to an Object to get around the compiler, but I just end up with a runtime error. On 2/8/06, nacho [EMAIL PROTECTED] wrote: what I want to do is load a .SWF file and control the timeline of this movieclip, with gotoAndPlay, etc...but i don't know how to load it -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] embed a movieclip
For what it's worth, here's a quick little example:http://corefile.net/LoadSimpleSWF.zip -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Tree control in Flex 2 Beta 1
Michael,Thanks for your timely response. It does clear up a few things. My comment about the XML approach being more supported was an (admittedly) obscure reference to my own experiments with the ITreeDataDescriptor interface. It again goes back to visually updating the Tree. If the dataProvider is XML, I can edit the XML objects directly and the changes are reflected in the Tree. However, if the dataProvider is a nested Object (with children fields), how does the Tree get notified if the data is changed? Do we manually call the notifyItemUpdate() method? Anyway, below is a simple MXML file that demonstrates the bugs I saw with the Tree. It opens the root node on startup. Click Add to root to add a child to the root node. An empty row will show up. Click Add to child to try to add a child to Child2. It crashes my browser. ---?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* layout=absolute width=431 height=340 mx:Script ![CDATA[ private var rootNode: XML; private function init(): void {rootNode = mytree.dataProvider[0].children()[0];mytree.setIsOpen(rootNode, true); } private function addToRoot(): void {rootNode.appendChild(node label=Child3/); } private function addToChild(): void {var child2: XML = rootNode.children()[1];trace(child2.toXMLString()); //Sanity checkchild2.appendChild(node label=Child4/); } ]] /mx:Script mx:Tree id=mytree rootVisible=false x=10 y=10 width=296 height=192 labelField=@label creationComplete=init() mx:dataProvider mx:XML format=e4xnode label=Root node label=Child1/ node label=Child2/ /node /mx:XML /mx:dataProvider /mx:Tree mx:Button x=10 y=210 label=Add to root click=addToRoot() / mx:Button x=107 y=210 label=Add to child click=addToChild()//mx:Application -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Tree control in Flex 2 Beta 1
Hari,Thanks for the code sample. It has given me a couple of ideas.Cheers! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Bug with Tree disclosure icon
It worked fine in the Alpha, but with Beta 1, setting a Tree's disclosure icon makes the icon unresponsive to mouse clicks. My example:mx:Tree width=294 height=262 disclosureClosedIcon=@Embed('blue_icon.png') /mx:TreeNow when you click on the disclosure icon, the node does not expand. My icon is a simple 13x13 png that's filled with all blue. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex 2 addTreeNode
To answer your specific question about adding nodes... Since you have an XML dataProvider, the selectedNode property will return an XML object. You can then use the appendChild() method to add child nodes. eg: var node: XML = XML(tree.selectedNode); node.appendChild(node label=newchild); On 2/5/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Hi,Can someone provide me with an example of addTreeNode for Flex 2?Ihave a XML structure that is loaded into my Tree as the dataProvider. I would like to be able to click on a node within the tree, and thenadd a sub node into that selected node.When I get the selectedNodefrom the tree, and attempt call addTreeNode on it, I get an errorCall attempted on an object that is not a function... Unfortunately, not much documentation on these methods yet, so anyhelp offered would be very much appreciated.Brendan--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Tree control in Flex 2 Beta 1
I'm really at a lost as to how we're supposed to work with the hierarchical data that's used with the Tree component. The XML approach seems to be the most supported at the moment, so consider this simple XML: var rootNode: XML = node label=Root node label=Child1/ node label=Child2/ /nodeThe dataProvider for the Tree then becomes an XMLListCollection. It displays fine. But now what's the expected way to modify the data so that the Tree updates? From the docs, I read: You can use the ICollectionView interface with list-based or hierarchical data. The following sections describe the basic ICollectionView operations using a list-based collection, but can also apply to similar operations on a hierarchical collection.How is ICollectionView used with hierarchical data? Michael Montagna gave a hint in the quoted code at the bottom, but it seems like XMLListCollection is no more hierarchy-aware than ArrayCollection. If I use a cursor with the above example, I find that the collection has just one item--the root node. I can add siblings to the root node via the cursor, but that's not very useful. How do I get to the children via the collection/cursor? So then I tried modifying the XML objects directly. I tried doing this: [EMAIL PROTECTED] = Hello;And to my surprise, the Tree updated! So I thought this was the answer. Well, sort of. With the root node open in the Tree, I tried this: rootNode.appendChild(node label=Child3/);The Tree does update itself with a new row, but it shows up empty (I can select it, though). If I collapse and expand the root, Child3 shows up ok. Now, if I try this: rootNode.node[1].appendChild(node label=Child3/);The Flash Player crashes, taking the browser with it. Looks like converting a leaf to a branch while it's being displayed is a no-no. Works ok if the root node is collapsed. Anyway, it looks like the Tree does get alerted for changes made directly to the XML. Is this an expected/acceptable way of doing things? And it just happens to be really buggy right now? Or are we supposed to go through the collection? If so, how? Suggestions?On 2/1/06, Michael Montagna [EMAIL PROTECTED] wrote: Here's a wordy example to add a leaf node:public function addTree() {var collection:ICollectionView = ICollectionView(myTree.dataProvider);var cursor:IViewCursor = collection.getCursor ();cursor.seek(CursorBookmark.CURRENT, 2);cursor.insert({label:added item}); cursor.release();} -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Passing nested objects to ColdFusion via WebService
I'm attempting to call a CFC from a Flex 2.0 app. I would prefer to use RemoteObject but our ColdFusion server is running on Linux so we've got no Flex Connectivity. So I'm still using the WebService object to make calls via SOAP. This works fine normally, but things mess up if I try to pass a nested object to the CFC. Here's a simple example CFC method I'm trying to call: cffunction name=testMethod access=remote returntype=string cfargument name=data type=struct required=yes cfreturn data.name/cffunctionIn my Flex app, I create a WebService object:mx:WebService id=service wsdl=... result=onResult(event) fault=onFault(event)/ If I call it the following way, everything works fine:var parm: Object = new Object();parm.name = XXX; service.testMethod(parm);I can add as many scalar properties to parm as I want. However, as soon as I add an Object property, it messes up. eg: parm.name = XXX;parm.stuff = {id:123};The service generates a fault and I get the generic HTTP request error. The fault detail isn't that helpful: Error: [IOErrorEvent type=ioError bubbles=false cancelable=false text=Error #2032: Stream Error. URL: http://...]. URL: http://... The server logs aren't that helpful either. Our CF server is fronted by Apache. The Apache logs do show a 500 result for the request (but nothing else). However, the CF logs show nothing at all. It's like the call/error never happened. I never had this kind of problem when I used Flash Remoting with Flash MX. Can anybody shed some light on this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Closable Panel? (flex2)
I ran into a similar situation a while ago where I needed to add stuff to the panel's title bar. While it's possible to use a Canvas to lay stuff on top of a Panel, this doesn't work if you're trying to create a re-useable custom Panel because the resulting component is a subclass of Canvas, not Panel. If you try to use it in MXML, you'll be adding children to the enclosing Canvas, which is not what you want. What I ended up doing was subclassing Panel via AS only and then overriding the createChildren() and updateDisplayList() methods. It just so happened that the Panel's title bar object, titleBar, was declared public so I was able to accessi it and add children to it. I've no idea if this still works in the Beta as I've yet to try it. Is there a better solution?On 2/3/06, Alex Uhlmann [EMAIL PROTECTED] wrote: You could use a Canvas tag to lay all kinds of things on top of a Panel. ie. mx:Canvas mx:Panel / /mx:Panel yourComps:CustomPanelHeader x=10 y=10 / /mx:Canvas Best, Alex Alex UhlmannTechnical Consultant (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969 m: +44 (0)7917 428 951[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of gunnar a reinsethSent: 03 February 2006 12:30To: flexcoders@yahoogroups.comSubject: [flexcoders] Closable Panel? (flex2) I know that mx.controls.Panel contains a 'closeButton' which is utilised in the subclass TitleWindow. I really would like to have this close button on panels as well, so i guess i have to subclass Panel to achieve this. However, I have no clue of how to make this button visible and position it in the title area. Could anybody please help with this? --gunnar -- 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 Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] flex string to interger
In AS3 you can now cast directly to int too. eg:var s: String = 123;var i: int = int(s);And, you know, it's interesting that the following works:var s: String = 123;var i: int = s * 10; //You get 1230 But this doesn't:var s: String = 123; var i: int = s;You get a compiler error: Implicit coercion of a value of type String to an unrelated type intI'm doing this with Alpha 1. On 2/3/06, Johannes Nel [EMAIL PROTECTED] wrote: parseInt parseFloatOn 2/3/06, wci.geo [EMAIL PROTECTED] wrote: hiis there a function in flex that conver string to integer?like toInteger() in java.thanksWilly--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * 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/ -- j:pn -- 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 Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Creating that Validator popup message? (Flex 2.0)
Ah yes... This led me to discover the ToolTipManager class. Its createToolTip() method can be used to arbitrarily create both regular and error tooltips. Very handy. On the down side, the class doesn't seem to offer up its tooltip placement algorithm. Oh well. On 2/1/06, Stephen Gilson [EMAIL PROTECTED] wrote: From the validator doc: The UIComponent class defines the errorString property that you can use to show a validation error for a component, without actually using a validator class. When you write a String value to the UIComponent.errorString property, Flex draws a red border around the component to indicate the validation error, and the String appears in a ToolTip as the validation error message when you move the mouse over the component, just as if a validator detected a validation error. To clear the validation error, write an empty String, , to the UIComponent.errorString property. Stephen -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Creating that Validator popup message? (Flex 2.0)
The Validator objects are not appropriate for what I'm doing, but I do like the way they popup that text bubble message when validation fails. Is there a way to manually create/show/hide such popup messages? -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Custom Tree Icons Flex 2.0
This works for me: mx:Script ![CDATA[ [Embed('item_bullet.png')] private var ITEM_BULLET_ICON: Class; ]] /mx:Script mx:Canvas width=100% height=100% mx:Tree defaultLeafIcon=ITEM_BULLET_ICON /mx:Tree /mx:CanvasOr you can short-hand it a bit: mx:Tree defaultLeafIcon=@Embed('item_bullet.png') On 1/30/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Hi,When I try to implement a custom icon in a Tree component for Flex2.0, it gives me a runtime error stating that it can't find thevariable I've defined for the icon class...Has anyone gotten this to work?I can post code if need be... Thanks,Brendan--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Custom Tree Icons Flex 2.0
After playing with it for a while, I wasn't able to set the icon of a branch, but I was able for a leaf, though it's not that straightforward. [Embed('item_bullet.png')]private var ITEM_BULLET_ICON: Class; mx:Tree iconField=icon / mx:dataProvider mx:XMLnode label=Node1 icon=Test2_ITEM_BULLET_ICON / /mx:XML /mx:dataProvider/mx:TreeAnd what the heck is Test2_ITEM_BULLET_ICON? It's the actual name of the class created by the embed. You can see the name if you trace the variable ITEM_BULLET_ICON. The project name I used was Test2 so that's where that came from. I think the problem here is that the ListBase class (which Tree inherits from) requires a reference to the class when specifying the icon. When I used a List component, the only way I got the icon to show up was to put the following in the Array dataprovider: mx:Object label=Item1 icon={ITEM_BULLET_ICON}You can't do something like that for an XML dataprovider cause that XML is just seen as raw data, so you have to specify the name of the class to get it to work. Meh...I just think it's broken. It certainly doesn't follow what the docs say...On 1/30/06, Brendan Meutzner [EMAIL PROTECTED] wrote:Hi Jason,Thanks for the reply.I really should have been more specific last night when I posted this...I'm actually trying to define an iconwithin the individual nodes using the icon parameter.I've definedthe Class as you have by embedding an asset, but when I try to reference that asset like so:[Embed(source='mypng.png')]public var myCustomIcon:Class;mx:Tree iconField=icon /and within the dataprovider structure for the tree...node label=Node 1 icon=myCustomIcon / it gives me the error I described previously.What works in 1.5 doesnot work in 2.0, although it's document the same... well actually, notquite the same... the documentation for 2.0 still states that the embedded asset be typed as String.So it works as a String in 1.5,but I've tried both String and Class in 2.0 with no luck.Thanks,Brendan--- In flexcoders@yahoogroups.com, Jason Y. Kwong [EMAIL PROTECTED]wrote: This works for me: mx:Script ![CDATA[ [Embed('item_bullet.png')] private var ITEM_BULLET_ICON: Class; ]] /mx:Script mx:Canvas width=100% height=100% mx:Tree defaultLeafIcon=ITEM_BULLET_ICON /mx:Tree /mx:Canvas Or you can short-hand it a bit: mx:Tree defaultLeafIcon=@Embed('item_bullet.png') On 1/30/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Hi, When I try to implement a custom icon in a Tree component for Flex 2.0, it gives me a runtime error stating that it can't find the variable I've defined for the icon class... Has anyone gotten this to work?I can post code if need be... Thanks, Brendan -- 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 Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Flex 2: Component inheritance?
No, there were no visual children in Base--just an empty canvas. I tried what you suggested and created Base using ActionScript only and that worked just fine. Thanks. However, it does bring up the question: Why doesn't the MXML approach work? Is it a bug? On 12/30/05, Matt Chotin [EMAIL PROTECTED] wrote: Did you put any visual children in Base? If you did it's not going to work because you can't have declared children in a parent component and subcomponent (though we may describe how to simulate that in some of our docs with other features). You can try rewriting Base.mxml to be Base.as if there weren't visual children Public class Base extends Canvas { //declare properties and methods } Matt From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Jason Y. Kwong Sent: Friday, December 30, 2005 10:44 AM To: Flashcoders mailing list; flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2: Component inheritance? I'm relatively new to Flex 2 and what I'm trying to do is to create a set of custom MXML components that share the same AS base class. So I start with the base component, an empty container to which I add properties/methods via AS. Call it Base.mxml: ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* mx:Script source=Base_inc.as/ !-- Declare base properties/methods -- /mx:Canvas Then I create a component based on Base. I add a Button and a TextInput. Call it ComponentA.mxml : ?xml version=1.0 encoding=utf-8? Base xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* mx:Script source=ComponentA_inc.as/ !-- Component-specific code -- mx:Button x=5 y=41 label=Button/ mx:TextInput x=2 y=12 text=hello id=MyText/ /Base Then I add ComponentA to an application. Everything looks fine in the design view. However, when the app is run, the controls added by ComponentA do not show up. I put in a creationComplete handler for ComponentA and traced the value of MyText and it came out null, so it looks like it never got created. Am I missing something? If this isn't how you do component inheritance, then how can it be done while still taking advantage of the easy layout offered by MXML? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex 2: Component inheritance?
I'm relatively new to Flex 2 and what I'm trying to do is to create a set of custom MXML components that share the same AS base class. So I start with the base component, an empty container to which I add properties/methods via AS. Call it Base.mxml:?xml version=1.0 encoding=utf-8?mx:Canvas xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* mx:Script source=Base_inc.as/ !-- Declare base properties/methods --/mx:CanvasThen I create a component based on Base. I add a Button and a TextInput. Call it ComponentA.mxml :?xml version=1.0 encoding=utf-8?Base xmlns:mx=http://www.macromedia.com/2005/mxml xmlns=* mx:Script source=ComponentA_inc.as/ !-- Component-specific code -- mx:Button x=5 y=41 label=Button/ mx:TextInput x=2 y=12 text=hello id=MyText//BaseThen I add ComponentA to an application. Everything looks fine in the design view. However, when the app is run, the controls added by ComponentA do not show up. I put in a creationComplete handler for ComponentA and traced the value of MyText and it came out null, so it looks like it never got created. Am I missing something? If this isn't how you do component inheritance, then how can it be done while still taking advantage of the easy layout offered by MXML? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.