Re: [flexcoders] Re: Flex 4 layout documentation for spark ActionScript components
I may not be understanding your issue. I’m pretty sure our SkinnableContainers delegate their assigned layouts to the contentGroup because the contentGroup’s measurements affect the size given to it by its parent and the eventual call to updateDisplayList. If you subclass updateDisplayList in the SkinnableComponent I don’t see how the assigned layout will know that its measurement is not right. One way to encapsulate the measurement and layout logic together is to create a custom layout. I suppose you could also just override measure() in the component as well. On 5/31/10 12:34 AM, Florian florian.saliho...@gmail.com wrote: Hi Alex, usually i would agree right on spot but the fact that i am using a basic layout in for group and the layouting is done correctly, i don't really see the need for another class. There is just one update of the measuring missing, which i don't understand. When a Group is using a BasicLayout contentWidth and contentHeight should be equal with width and height, if clipping is not enabled and no values for width or height are set explicitly. Or am i mistaken in this point? Best regards and thanks for taking the time. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aha...@... wrote: I would create a new Layout class and properly measure and layout in its measure() and updateDisplayList() methods and use that as the contentGroup's layout, otherwise the Group's default layout class is going to be arguing with your code. On 5/30/10 3:36 AM, Florian florian.saliho...@... wrote: Hi, i was and i am still running into problems with sizing and placing components in skins programmatically for spark ActionScript and MXML/ActionScript components. I want to initialize the components in MXML and size and position the children in the component's (a component's skin) updateDisplayList, although this might be a bit of an uncommon approach. I was implementing the positioning via UIComponent.move, which i realized was the wrong approach. After just setting the x and y properties, i did some research and stumbled across the ILayoutElement and its methods like setLayoutBoundsPosition and corresponding methods to modify the skin's display list. But somehow the group, which contains the children, does not propagate its new size up to its parent. I use the updateComplete event to invalidate the group's size and force the layout to be calculated properly a last time. The view looks as expected. But i don't think that invalidating a component a last time after an updateComplete event was dispatched is wrong. Now, what is the right approach for the following task: implementing a skinnable component and a corresponding skin. The skin creates the skin parts in MXML in a Group (id=contentGroup) but the layout is calculated within the skin's updateDisplayList method. I only found one useful article on the web, which is not really a lot of information at all (http://www.adobe.com/devnet/flex/articles/spark_layouts_print.html). Best regards. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Has the Flex 4 component architecture changed much from Flex 3?
Hi, Has the Flex 4 component architecture changed much from Flex 3? I was recommended to get the Flash Builder 4 Flex 4 Bible to learn about writing components but I'm still working with Flex 3 projects and realistically, I probably will be for a couple more years... Thanks, Nick
Re: [flexcoders] Has the Flex 4 component architecture changed much from Flex 3?
On 01/06/2010 11:00, Nick Middleweek wrote: Hi, Has the Flex 4 component architecture changed much from Flex 3? I was recommended to get the Flash Builder 4 Flex 4 Bible to learn about writing components but I'm still working with Flex 3 projects and realistically, I probably will be for a couple more years... If that's the case, I'd stick with Flex 3 books for the moment. Things have certainly changed. Thanks, Nick
Re: [flexcoders] Has the Flex 4 component architecture changed much from Flex 3?
Hi Paul, Although I'll be working with Flex 3 for a couple more years, any new projects will be Flex 4. More importantly though, in what way has the component architecture changed? Cheers, Nick On 1 June 2010 11:29, Paul Andrews p...@ipauland.com wrote: On 01/06/2010 11:00, Nick Middleweek wrote: Hi, Has the Flex 4 component architecture changed much from Flex 3? I was recommended to get the Flash Builder 4 Flex 4 Bible to learn about writing components but I'm still working with Flex 3 projects and realistically, I probably will be for a couple more years... If that's the case, I'd stick with Flex 3 books for the moment. Things have certainly changed. Thanks, Nick
[flexcoders] Re: Problem with wizard Flex---don't know the librairy flashmatticomponents.swc
First off, you should download the source from SVN and compile it yourself. Once you do that you will notice immediately that the example posted in the wiki does not include the files in the correct path. You need to change the xmlns in the example from: com.flashmattic.framework.wizard.* to: com.flashmattic.flashmatticomponents.framework.wizard.* caveat: I have not used this library. All I did was download it, checked the path, posted this message, and deleted it. --- In flexcoders@yahoogroups.com, Nini7016 Nini7016 nahloulaha...@... wrote: Hello I found a site which shows how to build a wizard : http://code.google.com/p/flashmatticomponents/wiki/Wizard and i added the librairy flashmatticomponents.swc but i have an error : Unable to locate specified base class 'com.flashmattic.framework.wizard.WizardStep' for component class 'ProductsWizardStep'. I don't know why :( :( Any idea
[flexcoders] Re: Problem with wizard Flex---don't know the librairy flashmatticomponents.swc
Please do not hijack other people's threads. I have created a new thread for you. --- In flexcoders@yahoogroups.com, Nini7016 Nini7016 nahloulaha...@... wrote: Hello I found a site which shows how to build a wizard : http://code.google.com/p/flashmatticomponents/wiki/Wizard and i added the librairy flashmatticomponents.swc but i have an error : Unable to locate specified base class 'com.flashmattic.framework.wizard.WizardStep' for component class 'ProductsWizardStep'. I don't know why :( :( Any idea _ Vous voulez regarder la TV directement depuis votre PC ? C'est très simple avec Windows 7 http://clk.atdmt.com/FRM/go/229960614/direct/01/
[flexcoders] Re: StyleName property ignored : when precisely and workarround ?
If you are looking for ways to style a component I would recommend looking at the Flex 3 Style Explorer at http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html Note that colors #11 and #22 are so close to black that you probably wouldn't notice the difference. --- In flexcoders@yahoogroups.com, carnau...@... carnau...@... wrote: Hello, I have noticed that the following quite simple CSS may be ignored depending on our MXML structure...? : .myBytton { color: #11; } Button { color: #22; } Both CSS styles are ignored below : mx:Button styleName=myButton .../ // color #11 ignored mx:Button .../ // color #22 ignored = and default color for mx:Button gets displayed :-( Does anyone know about this issue ? and how to workarround it ? With thanks, Regard. PS : config. is AIR application run on WinXP via Flex Builder 3
Re: [flexcoders] Has the Flex 4 component architecture changed much from Flex 3?
It became more customizable in terms of skinning, the component rendering now is a different concept (you are suggested to have each component as a two-complements, the logic and the representation), so that representation may be changed w/o affecting the logic. It will also enable in certain situations a virtual layout, where some components will be able to share the canvas so to reduce the number of display objects actually created. However, the features side overweight the optimization side, so, overall the components became bigger in size, as well as the framework itself grew in size significantly. Most important change regarding the size and visualization is that new components use TLF for text rendering and UIComponents for skinning. The states have been given more attention and this has also reflected on MXML language in that now it has special syntax for addressing states. Flex CSS acquired namespaces, although it still seems like work in the progress. Flex compiler now can compile native graphics from textual format - GFX, although a nice feature, still requires some tuning until it gets really useful. Well, this is what I could remember at the moment.
[flexcoders] Re: Showing tooltip on the line
If it were me, I would create a custom tooltip; add a mouseover event listener to your line; check the color directly under the mouse pointer and show the tooltip. --- In flexcoders@yahoogroups.com, akshar akshar.k...@... wrote: i have a line in my application. i require that a tooltip should come only on the line. The line is in a custom component. when i add the tooltip to the component it shows the tooltip for whole of the component. is there a way to show the tooltip only for the line. here is a sample which i am trying :- main application file:- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=100% height=100% xmlns:local=* local:drawtheline/ /mx:Application drawtheline component :- ?xml version=1.0 encoding=utf-8? mx:Box xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 creationComplete=createLine() toolTip=this tooltip should come only on the line borderColor=#00FF00 borderStyle=solid mx:Script ![CDATA[ import mx.core.UIComponent; private function createLine():void { var g:Shape = new Shape(); g.graphics.lineStyle(2, 0xFF, .75); g.graphics.moveTo(0,0); g.graphics.lineTo(400,300); this.rawChildren.addChild(g); } ]] /mx:Script /mx:Box
[flexcoders] Re: Ctrl+Enter to complete url
Add a key up (or down) event listener to the text field (or whatever). In the function, check for CTRL+Enter and act appropriately. --- In flexcoders@yahoogroups.com, Shabir Gilkar shabirgil...@... wrote: Hi Thompson, i know that prepend and addpends relation. But i wanna to know how to write listener for this action of a user. On Sat, May 29, 2010 at 10:01 PM, Kerry Thompson al...@...wrote: Shabir Gilkar wrote: I have to activate Ctrl+Enter to complete url in my FB Project, Can any body help? I'm not sure what the problem is. Ctrl-Enter is a browser shortcut that prepends http://www. and addpends .com. Can you tell us a little more about why that's a problem? Cordially, Kerry Thompson -- With Regards Shabir Ahmad Gilkar Srinagar Kashmir JK Voice: +91 9419942501 email: shabirgil...@... URL: http://shabirgilkar.wordpress.com Skype: shabirgilkar Join I Feel The Pain on Facebook By Visiting http://bit.ly/c5tYqB
[flexcoders] Re: Have a Spark List with an Itemrenderer
I figured it out; Add an addEventListener FlexEvent.UPDATE_COMPLETE to the List component, and in the event function; public function eventcalledfunction(event:FlexEvent):void { if (List.dataGroup.getElementAt(0) == null) return; var newVar:ArrayCollection = new ArrayCollection(); newVar = this.parentDocument.formArray as ArrayCollection; var i:int = 0; var j:int = 0; for (i=0;iList.dataGroup.numElements;i++) { var rRenderer:ListRenderer = List.dataGroup.getElementAt(i) as ListRenderer; var rPanel:Panel = rRenderer.panelComponent as Panel; rPanel.removeAllElements(); } for (i=0;inewVar.length;i++) { var sRenderer:ListRenderer = List.dataGroup.getElementAt(i) as ListRenderer; var sPanel:Panel = sRenderer.panelComponent as Panel; sPanel.addElement(newVar[i]); } } Randy --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: I'd add more smarts to the ItemRenderers so they can add the elements themselves. On 5/29/10 7:56 AM, Netaman rtigr...@... wrote: I have a spark List that uses an itemRenderer to add a empty panel. I then have a dynamic list of components that I need to add to each panel in the List. How can I addElement to the itemRenderer panel in the List, after the list is displayed? I have seen the List dataGroup indexToRenderer array and would be perfect, but it is a private variable, I have looked for a function that would retrieve the index, but sadly could not find one. Any help would be appreicated, thanks Randy -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Flex 4 Spark HSlider ThumbSkin with ellipses?
Hi. I am having trouble locating the HSlider Skin classes (for Flex 4 Spark component) that use an ellipse for the thumb. All the classes I find in the SDK source seem to be using rects? Am I delusional? Anyone have any ideas where the source for this is? (I am trying to create a derivative skin and the HSlider skins are where I want to start from...however, the source for the skins that I can find don't look like what I am seeing in a compiled app.) Thanks, -Kyle
Re: [flexcoders] Flex 4 Spark HSlider ThumbSkin with ellipses?
The thumb graphic is a Rect/ whose radiusX/radiusY settings make it appear circular, e.g.: s:Rect height=20 width=20 radiusX=10 radiusY=10 s:stroke s:SolidColorStroke caps=none color=#5380D0 / /s:stroke s:fill s:SolidColor color=#ff/ /s:fill /s:Rect The HSliderThumbSkin.mxml file contains this kind of markup in the !-- fill -- section. -Tim On Tue, Jun 1, 2010 at 8:34 AM, turdontherun flexmonkeypatc...@gmail.comwrote: Hi. I am having trouble locating the HSlider Skin classes (for Flex 4 Spark component) that use an ellipse for the thumb. All the classes I find in the SDK source seem to be using rects? Am I delusional? Anyone have any ideas where the source for this is? (I am trying to create a derivative skin and the HSlider skins are where I want to start from...however, the source for the skins that I can find don't look like what I am seeing in a compiled app.) Thanks, -Kyle
[flexcoders] Re: Flex 4 Spark HSlider ThumbSkin with ellipses?
And of course no sooner that I post that I start to comprehend and find the right track. The rects have radiusX and radiusY set and so if your thumb (button) is the correct size, it will appear circular. That and looking at styles like fixedThumbSize:true;. I think I am on the right track now... --- In flexcoders@yahoogroups.com, turdontherun flexmonkeypatc...@... wrote: Hi. I am having trouble locating the HSlider Skin classes (for Flex 4 Spark component) that use an ellipse for the thumb. All the classes I find in the SDK source seem to be using rects? Am I delusional? Anyone have any ideas where the source for this is? (I am trying to create a derivative skin and the HSlider skins are where I want to start from...however, the source for the skins that I can find don't look like what I am seeing in a compiled app.) Thanks, -Kyle
[flexcoders] Re: Comobox/DataGrid does not display data
Thanks Ashkar for the reply, I had already tried but it didn't work --- In flexcoders@yahoogroups.com, Akshar Kaul akshar.k...@... wrote: try using formType.refresh() after you modify your array collection. Akshar Kaul On Sat, May 29, 2010 at 03:49, md_ars mdar...@... wrote: I have a Combobox and its dataprovide is an ArrayCollection(formType) which is being populate from XMLLIst(formXMLListB) as given below public function getForms(vForm:Object):void { formXMLListB = vForm.mtResult.tuples.item.tuple; // resultFormat=e4x var i:int = 0; formType.removeAll(); for(i=0; iformXMLListB.length(); i++) { if (formXMLListB[i].item..stringValue[2] == 'FORM_TYPE'){ formType.addItem({label:formXMLListB[i].item.stringValue[0].toString(), data:formXMLListB[i].item.stringValue[1].toString() } ); } } For some reason combobox is not populate eventhough I can see the data in dataprovider when run with debugger. The formType is [Bindable] variable. mx:ComboBox id=frmType x=258 y=124 dataProvider={formType} labelField=label width=281 / It works fine when I define a dataprovider with static values. Any suggestions? Thanks Arshad
[flexcoders] Re: Possible to capture the console log and act on it?
Well, I agree, but it's the only way that I can think of eg: the 3rd party swf file won't update the code, and the only way to detect a state change is thru the console log . . --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: On 28/05/2010 22:25, luvfotography wrote: Hi, My flex program is loading an external swf and the swf file outputs trace statements to the console log, is there a way to capture and act on those trace statements? Whether it's possible or not, it's an awful way to try and communicate between components.
Re: [flexcoders] Re: Possible to capture the console log and act on it?
Not sure if this will work but you can try to define a top-level package function with the name trace() - I never tried it, chances are this won't work though :) Another thing, if it's an AS2 SWF you can compile with MTASC and specify your own function for trace. I haven't tried this, but maybe if you redefine the trace() in HaXe, then it will override the default tracing method... I also think that in AS2 you could redefine it through AsNative. But I'm sure that other than that you cannot read from the output stream of another SWF with SWF.
Re: [flexcoders] Flex Training
Why not just google Flex 4 in a Week? It's like free-ninety-nine. I believe that covers a good breathe of the concepts out there. I don't think there is much value learning from advanced Flex 3 tactics (with the exception of those mx components that haven't made it's way into spark). On Mon, May 31, 2010 at 12:40 PM, aasifqau aasif...@yahoo.com wrote: I am looking for flex training institute in USA that can offer us a advanced course for 2 to 3 weeks long duration for a group of 5 persons. If any one interested please contact...
[flexcoders] Form not responding to 'enter keyDown' event
I have a delete confirmation Form object, with a 'keyDown' listener that is not responding when the enter key is pressed. The code works in isolation, but not as part of a larger, complex project. Any ideas/tips how I can enable this functionality? Thanks, Philip ?xml version=1.0 encoding=utf-8? s:TitleWindow xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx s:VGroup mx:Form keyDown={this.checkKey()} defaultButton={this.ok_btn} width=100% height=100% mx:FormItem s:HGroup horizontalAlign=center s:Label text={this._labelText} / /s:HGroup /mx:FormItem mx:FormItem s:HGroup s:Button id=ok_btn label=OK click=handleOK()/ s:Button label=Cancel click=handleCancel() / /s:HGroup /mx:FormItem /mx:Form /s:VGroup /s:TitleWindow
RE: [flexcoders] Form not responding to 'enter keyDown' event
I found the answer in 'setFocus()'. To: flexcoders@yahoogroups.com From: loudj...@hotmail.com Date: Tue, 1 Jun 2010 23:20:47 + Subject: [flexcoders] Form not responding to 'enter keyDown' event I have a delete confirmation Form object, with a 'keyDown' listener that is not responding when the enter key is pressed. The code works in isolation, but not as part of a larger, complex project. Any ideas/tips how I can enable this functionality? Thanks, Philip ?xml version=1.0 encoding=utf-8? s:TitleWindow xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx s:VGroup mx:Form keyDown={this.checkKey()} defaultButton={this.ok_btn} width=100% height=100% mx:FormItem s:HGroup horizontalAlign=center s:Label text={this._labelText} / /s:HGroup /mx:FormItem mx:FormItem s:HGroup s:Button id=ok_btn label=OK click=handleOK()/ s:Button label=Cancel click=handleCancel() / /s:HGroup /mx:FormItem /mx:Form /s:VGroup /s:TitleWindow _ http://clk.atdmt.com/UKM/go/19780/direct/01/ We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
Re: [flexcoders] Flex Training
Hi aasifqau, We currently have 2 weeks (8 days) Flex 4 Instructor Led Training Confirmed. Dates: - Tuesday, June 8 to Friday, June 11 - Monday, June 14 to Thursday, June 17 Details here: http://blog.halcyonsolutions.net/2010/05/25/flex4_classes_in_las_vegas/ We can reschedule a similar block of classes for you at any time if the dates above do not work for you. Also, additional topics can be added should you or your team desire. Also, we can come to you and deliver onsite (requests for international deliveries welcome ;-) All classes are Adobe official curriculum delivered by very seasoned Adobe Certified Instructors (who also are hard-core developers, and frequent conference speakers, e.g. 360Flex, Adobe MAX, etc.) For further support please contact training[at]halcyonSolutions.net. Best regards, g On Mon, May 31, 2010 at 9:40 AM, aasifqau aasif...@yahoo.com wrote: I am looking for flex training institute in USA that can offer us a advanced course for 2 to 3 weeks long duration for a group of 5 persons. If any one interested please contact... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
Re: [flexcoders] Re: Flex Training
No problem. We can manage for 2 or 3 weeks. we are developing data driven and gis applications. so any course covering these two areas really helps us. Regards,asif --- On Tue, 6/1/10, Jeffry Houser j...@dot-com-it.com wrote: From: Jeffry Houser j...@dot-com-it.com Subject: [flexcoders] Re: Flex Training To: flexcoders@yahoogroups.com Date: Tuesday, June 1, 2010, 3:51 AM That's a long course; and I would not expect anyone to have a 2 or 3 week course planned out. If memory serves me, even the Adobe official training courses are only 2-3 days. What did you want to learn? Were you looking for something tailored to your needs? --- In flexcoders@yahoogroups.com, aasifqau aasif...@... wrote: I am looking for flex training institute in USA that can offer us a advanced course for 2 to 3 weeks long duration for a group of 5 persons. If any one interested please contact...
[flexcoders] Re: ItemRenderer factories, on the fly resetting
Thanks all for the help...I think the SDK update is the right plan for my situation...an update to 3.5 and the problem goes away