[flexcoders] Re: using custom components
I have no idea how you would use Catalyst - I haven't used it. I know you can't embed an MXML file like you are trying. You may like to peruse the archives of this list as I seem to remember seeing something like this before. Perhaps compiling your MXML file to a SWF and embedding that may help. I will leave this to people more in the know about skinning. --- In flexcoders@yahoogroups.com, hgnowhg hgno...@... wrote: thank you. Yeah, I've seen those but how do I use something created in catalyst? It gives me a bunch of mxml files that replace the jpeg or png files you'd normally have. How do I use those? I get an error w/ this: upArrowSkin: Embed(source=../assets/scrollUpArrow2.mxml); but when I replace it w/ a .png file there are no problems. --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: Check these two sites out for good examples of custom scrollbars for datagrids... http://www.switchonthecode.com/tutorials/flex-fun-advanced-datagrid-topics http://www.pixelbox.net/2008/06/02/skinning-scrollbars-in-flex-3/ --- In flexcoders@yahoogroups.com, hgnowhg hgnowhg@ wrote: newbie here, using flex 4. I've seen many posts about creating custom components but none really explain how to use them in a text box or datagrid. How do I use my custom scrollbar in a datagrid? In my mxml application I have in the opening application tag the following: xmlns:custom=org.custom.* In my datagrid, I've tryed setting verticalScrollBarStyleName to my component's name, which is customSroll. I have no idea where to go from here. thx!
[flexcoders] Re: using custom components
thank you. Yeah, I've seen those but how do I use something created in catalyst? It gives me a bunch of mxml files that replace the jpeg or png files you'd normally have. How do I use those? I get an error w/ this: upArrowSkin: Embed(source=../assets/scrollUpArrow2.mxml); but when I replace it w/ a .png file there are no problems. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Check these two sites out for good examples of custom scrollbars for datagrids... http://www.switchonthecode.com/tutorials/flex-fun-advanced-datagrid-topics http://www.pixelbox.net/2008/06/02/skinning-scrollbars-in-flex-3/ --- In flexcoders@yahoogroups.com, hgnowhg hgnowhg@ wrote: newbie here, using flex 4. I've seen many posts about creating custom components but none really explain how to use them in a text box or datagrid. How do I use my custom scrollbar in a datagrid? In my mxml application I have in the opening application tag the following: xmlns:custom=org.custom.* In my datagrid, I've tryed setting verticalScrollBarStyleName to my component's name, which is customSroll. I have no idea where to go from here. thx!
[flexcoders] Re: using custom components
Check these two sites out for good examples of custom scrollbars for datagrids... http://www.switchonthecode.com/tutorials/flex-fun-advanced-datagrid-topics http://www.pixelbox.net/2008/06/02/skinning-scrollbars-in-flex-3/ --- In flexcoders@yahoogroups.com, hgnowhg hgno...@... wrote: newbie here, using flex 4. I've seen many posts about creating custom components but none really explain how to use them in a text box or datagrid. How do I use my custom scrollbar in a datagrid? In my mxml application I have in the opening application tag the following: xmlns:custom=org.custom.* In my datagrid, I've tryed setting verticalScrollBarStyleName to my component's name, which is customSroll. I have no idea where to go from here. thx!
[flexcoders] Re: using custom components
I resolved the problem, here is the solution if anyone is interested: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical xmlns:fnw=assets.src.components.* creationComplete=addChildren (); mx:Style source=assets/src/styles/fnw.css/ mx:Script ![CDATA[ import assets.src.components.FNWPanel; private function addChildren():void{ var myFNWPanel:FNWPanel = new FNWPanel; divider.fnwLeftPanel.addChild(myFNWPanel); } ]] /mx:Script fnw:FNWDivider id=divider /fnw:FNWDivider /mx:Application