Re: [flexcoders] Flex arrows?
On Tuesday 25 July 2006 14:00, Douglas Knudsen wrote: attributes have a default value. Where is this default value set? I can't find it anywhere. Base class ? -- 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 not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/WktRrD/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex arrows?
On Monday 24 July 2006 17:36, JesterXL wrote: You have a choice; either go dig in the Button class to see how they are rotating the arrow, wait for me to do it this evening, or go take 2 minutes to create the arrows yourself, and use bitmap skins. Around line 253, they just seem to switch: if (name.charAt(0) == p) :-) -- 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 not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex arrows?
update...had some pressing issues. looking at \frameworks\source\mx\skins\halo\DateChooserMonthArrowSkin.aslooks like this thing does not even use a graphic at all. Code in there actually draws the arrows! I suppose this way screen scaling is a non-issue. DKOn 7/20/06, Douglas Knudsen [EMAIL PROTECTED] wrote: right, but I really don't want to creat a new skin, I want ot use the existing skin so that it inherits all the Halo goodness, eh? I still have not got this working yet. Looking deeper into the source for the DateChooser and the DateChoser skin I have found that the code actually draws the arrow. The DateChooser code adds styles like prevMonthOverSkin and nextMonthOverSkin with default values. These styles names are expected in teh programmatic skin and do not exist in the Button class. So Jester, me got brave...not so brave as Mel Gibson mind you, I like me entrails! This is a excerpt:fwdMonthButton = new Button(); fwdMonthButton.styleName = this; fwdMonthButton.autoRepeat = true; fwdMonthButton.focusEnabled = false; fwdMonthButton.upSkinName = nextMonthUpSkin; fwdMonthButton.overSkinName = nextMonthOverSkin; fwdMonthButton.downSkinName = nextMonthDownSkin; fwdMonthButton.disabledSkinName = nextMonthDisabledSkin;ugh where does Button.upSkinName come from? Its not in th edocs that i can see.DK On 7/20/06, juan sanchez [EMAIL PROTECTED] wrote: download the default skin here. http://www.adobe.com/devnet/flex/articles/flex_skins.htmlOn Jul 20, 2006, at 7:56 AM, Douglas Knudsen wrote: no workiehope jester's bag of tricks is deep! I looked around the Flex SDK source and see no arrow pngs at all, many other pngs though. My guess is the arrows are compiled in a swc somewheres, which means they should be 'grabable' eh? Be nice to use any graphics in the SDK in custom components to maintain the 'Flexiness', eh? What I'm trying to do is create a next/previous month browser. We have reports that users run on a month end basis, the datechoser is really not the right tool for this. I'm just using mxml to do this currently...suppose I will have to go off and lear the way of the force for building components soon. DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... try: mx:Button click=onPrev() upSkin=mx.skins.halo.DateChooserMonthArrowSkin / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css , so she IS in there. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 4:00 PM Subject: Re: [flexcoders] Flex arrows? hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this? mx:Button click=onPrev() upSkin=DateChooserMonthArrowSkin / throws a def not found error. Do I import the sckin somehow? DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin=DateChooserMonthArrowSkin* nextMonthDownSkin=DateChooserMonthArrowSkin * nextMonthOverSkin=DateChooserMonthArrowSkin * nextMonthUpSkin=DateChooserMonthArrowSkin * nextYearDisabledSkin=DateChooserYearArrowSkin* nextYearDownSkin=DateChooserYearArrowSkin * nextYearOverSkin=DateChooserYearArrowSkin * nextYearUpSkin=DateChooserYearArrowSkin * prevMonthDisabledSkin=DateChooserMonthArrowSkin* prevMonthDownSkin=DateChooserMonthArrowSkin * prevMonthOverSkin=DateChooserMonthArrowSkin * prevMonthUpSkin=DateChooserMonthArrowSkin * prevYearDisabledSkin=DateChooserYearArrowSkin* prevYearDownSkin=DateChooserYearArrowSkin * prevYearOverSkin=DateChooserYearArrowSkin * prevYearUpSkin=DateChooserYearArrowSkin - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 3:19 PM Subject: [flexcoders] Flex arrows? So, I'm creating a custom component with next/previous functionality. I'd like to use the same arrows on say the DateChooser control. Are these avaialbale to the developer somehow? DK -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsen http://www.cubicleman.comthis is my signature, like it? -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like 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
Re: [flexcoders] Flex arrows?
My guess is that was done for filesize reasons. The resulting SWF is smaller since ActionScript bytecode is a lot smaller via lzw compression than a PNG/GIF via the same. While the drawing is more CPU intensive, you cut corners for filesize where you can, and I understand their justification. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 11:27 AM Subject: Re: [flexcoders] Flex arrows? update...had some pressing issues. looking at \frameworks\source\mx\skins\halo\DateChooserMonthArrowSkin.aslooks like this thing does not even use a graphic at all. Code in there actually draws the arrows! I suppose this way screen scaling is a non-issue. DK On 7/20/06, Douglas Knudsen [EMAIL PROTECTED] wrote: right, but I really don't want to creat a new skin, I want ot use the existing skin so that it inherits all the Halo goodness, eh? I still have not got this working yet. Looking deeper into the source for the DateChooser and the DateChoser skin I have found that the code actually draws the arrow. The DateChooser code adds styles like prevMonthOverSkin and nextMonthOverSkin with default values. These styles names are expected in teh programmatic skin and do not exist in the Button class. So Jester, me got brave...not so brave as Mel Gibson mind you, I like me entrails! This is a excerpt:fwdMonthButton = new Button(); fwdMonthButton.styleName = this; fwdMonthButton.autoRepeat = true; fwdMonthButton.focusEnabled = false; fwdMonthButton.upSkinName = "nextMonthUpSkin"; fwdMonthButton.overSkinName = "nextMonthOverSkin"; fwdMonthButton.downSkinName = "nextMonthDownSkin"; fwdMonthButton.disabledSkinName = "nextMonthDisabledSkin";ugh where does Button.upSkinName come from? Its not in th edocs that i can see. DK On 7/20/06, juan sanchez [EMAIL PROTECTED] wrote: download the default skin here. http://www.adobe.com/devnet/flex/articles/flex_skins.html On Jul 20, 2006, at 7:56 AM, Douglas Knudsen wrote: no workiehope jester's bag of tricks is deep! I looked around the Flex SDK source and see no arrow pngs at all, many other pngs though. My guess is the arrows are compiled in a swc somewheres, which means they should be 'grabable' eh? Be nice to use any graphics in the SDK in custom components to maintain the 'Flexiness', eh? What I'm trying to do is create a next/previous month browser. We have reports that users run on a month end basis, the datechoser is really not the right tool for this. I'm just using mxml to do this currently...suppose I will have to go off and lear the way of the force for building components soon. DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... try: mx:Button click="onPrev()" upSkin="mx.skins.halo.DateChooserMonthArrowSkin" / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css , so she IS in there. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 4:00 PM Subject: Re: [flexcoders] Flex arrows? hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this? mx:Button click="onPrev()" upSkin="DateChooserMonthArrowSkin" /throws a def not found error. Do I import the sckin somehow? DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin="DateChooserMonthArrowSkin"* nextMonthDownSkin="DateChooserMonthArrowSkin" * nextMonthOverSkin="DateChooserMonthArrowSkin"* nextMonthUpSkin="DateChooserMonthArrowSkin"* nextYearDisabledSkin="DateChooserYearArrowSkin"* nextYearDownSkin="DateChooserYearArrowSkin" * nextYearOverSkin="DateChooserYearArrowSkin"* nextYearUpSkin="DateChooserYearArrowSkin"* prevMonthDisabledSkin="DateChooserMonthArrowSkin"* prevMonthDownSkin="
Re: [flexcoders] Flex arrows?
gotcha! Now the question, I want to create a custom component called NextButton that acts the same as the one in the DateChooser and inherits the skin the same as the one in the DateChoser thus seemlessly interacting with the Flex framework. Adobe has let loose the source code for DateChooser. Does Adobe envision some of us copying some of their code in order to fulfill such a community benefiting component? DKOn 7/24/06, JesterXL [EMAIL PROTECTED] wrote: My guess is that was done for filesize reasons. The resulting SWF is smaller since ActionScript bytecode is a lot smaller via lzw compression than a PNG/GIF via the same. While the drawing is more CPU intensive, you cut corners for filesize where you can, and I understand their justification. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 11:27 AM Subject: Re: [flexcoders] Flex arrows? update...had some pressing issues. looking at \frameworks\source\mx\skins\halo\DateChooserMonthArrowSkin.aslooks like this thing does not even use a graphic at all. Code in there actually draws the arrows! I suppose this way screen scaling is a non-issue. DK On 7/20/06, Douglas Knudsen [EMAIL PROTECTED] wrote: right, but I really don't want to creat a new skin, I want ot use the existing skin so that it inherits all the Halo goodness, eh? I still have not got this working yet. Looking deeper into the source for the DateChooser and the DateChoser skin I have found that the code actually draws the arrow. The DateChooser code adds styles like prevMonthOverSkin and nextMonthOverSkin with default values. These styles names are expected in teh programmatic skin and do not exist in the Button class. So Jester, me got brave...not so brave as Mel Gibson mind you, I like me entrails! This is a excerpt:fwdMonthButton = new Button(); fwdMonthButton.styleName = this; fwdMonthButton.autoRepeat = true; fwdMonthButton.focusEnabled = false; fwdMonthButton.upSkinName = nextMonthUpSkin; fwdMonthButton.overSkinName = nextMonthOverSkin; fwdMonthButton.downSkinName = nextMonthDownSkin; fwdMonthButton.disabledSkinName = nextMonthDisabledSkin;ugh where does Button.upSkinName come from? Its not in th edocs that i can see. DK On 7/20/06, juan sanchez [EMAIL PROTECTED] wrote: download the default skin here. http://www.adobe.com/devnet/flex/articles/flex_skins.html On Jul 20, 2006, at 7:56 AM, Douglas Knudsen wrote: no workiehope jester's bag of tricks is deep! I looked around the Flex SDK source and see no arrow pngs at all, many other pngs though. My guess is the arrows are compiled in a swc somewheres, which means they should be 'grabable' eh? Be nice to use any graphics in the SDK in custom components to maintain the 'Flexiness', eh? What I'm trying to do is create a next/previous month browser. We have reports that users run on a month end basis, the datechoser is really not the right tool for this. I'm just using mxml to do this currently...suppose I will have to go off and lear the way of the force for building components soon. DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... try: mx:Button click=onPrev() upSkin=mx.skins.halo.DateChooserMonthArrowSkin / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css , so she IS in there. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 4:00 PM Subject: Re: [flexcoders] Flex arrows? hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this? mx:Button click=onPrev() upSkin=DateChooserMonthArrowSkin / throws a def not found error. Do I import the sckin somehow? DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin=DateChooserMonthArrowSkin* nextMonthDownSkin=DateChooserMonthArrowSkin * nextMonthOverSkin=DateChooserMonthArrowSkin* nextMonthUpSkin=DateChooserMonthArrowSkin* nextYearDisabledSkin
Re: [flexcoders] Flex arrows?
I can't remember what email, but I showed the CSS. Can't you just use the same DateChooser CSS? NextButton { upSkin: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin"); downSkin: etc. } Then, just make a MXML file that extends Button. ??? - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 12:01 PM Subject: Re: [flexcoders] Flex arrows? gotcha! Now the question, I want to create a custom component called NextButton that acts the same as the one in the DateChooser and inherits the skin the same as the one in the DateChoser thus seemlessly interacting with the Flex framework. Adobe has let loose the source code for DateChooser. Does Adobe envision some of us copying some of their code in order to fulfill such a community benefiting component? DK On 7/24/06, JesterXL [EMAIL PROTECTED] wrote: My guess is that was done for filesize reasons. The resulting SWF is smaller since ActionScript bytecode is a lot smaller via lzw compression than a PNG/GIF via the same. While the drawing is more CPU intensive, you cut corners for filesize where you can, and I understand their justification. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 11:27 AM Subject: Re: [flexcoders] Flex arrows? update...had some pressing issues. looking at \frameworks\source\mx\skins\halo\DateChooserMonthArrowSkin.aslooks like this thing does not even use a graphic at all. Code in there actually draws the arrows! I suppose this way screen scaling is a non-issue. DK On 7/20/06, Douglas Knudsen [EMAIL PROTECTED] wrote: right, but I really don't want to creat a new skin, I want ot use the existing skin so that it inherits all the Halo goodness, eh? I still have not got this working yet. Looking deeper into the source for the DateChooser and the DateChoser skin I have found that the code actually draws the arrow. The DateChooser code adds styles like prevMonthOverSkin and nextMonthOverSkin with default values. These styles names are expected in teh programmatic skin and do not exist in the Button class. So Jester, me got brave...not so brave as Mel Gibson mind you, I like me entrails! This is a excerpt:fwdMonthButton = new Button(); fwdMonthButton.styleName = this; fwdMonthButton.autoRepeat = true; fwdMonthButton.focusEnabled = false; fwdMonthButton.upSkinName = "nextMonthUpSkin"; fwdMonthButton.overSkinName = "nextMonthOverSkin"; fwdMonthButton.downSkinName = "nextMonthDownSkin"; fwdMonthButton.disabledSkinName = "nextMonthDisabledSkin";ugh where does Button.upSkinName come from? Its not in th edocs that i can see. DK On 7/20/06, juan sanchez [EMAIL PROTECTED] wrote: download the default skin here. http://www.adobe.com/devnet/flex/articles/flex_skins.html On Jul 20, 2006, at 7:56 AM, Douglas Knudsen wrote: no workiehope jester's bag of tricks is deep! I looked around the Flex SDK source and see no arrow pngs at all, many other pngs though. My guess is the arrows are compiled in a swc somewheres, which means they should be 'grabable' eh? Be nice to use any graphics in the SDK in custom components to maintain the 'Flexiness', eh? What I'm trying to do is create a next/previous month browser. We have reports that users run on a month end basis, the datechoser is really not the right tool for this. I'm just using mxml to do this currently...suppose I will have to go off and lear the way of the force for building components soon. DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... try: mx:Button click="onPrev()" upSkin="mx.skins.halo.DateChooserMonthArrowSkin" / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css , so she IS in there. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 4:00 PM Subject: Re: [flexcoders] Flex arrows? hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this? mx:Button click="onPrev()" upSkin=&
Re: [flexcoders] Flex arrows?
did that?xml version=1.0 encoding=utf-8?mx:Button xmlns:mx=http://www.adobe.com/2006/mxml upSkin=mx.skins.halo.DateChooserMonthArrowSkin downSkin=mx.skins.halo.DateChooserMonthArrowSkin overSkin=mx.skins.halo.DateChooserMonthArrowSkin disabledSkin=mx.skins.halo.DateChooserMonthArrowSkin styleName=DateChooser autoRepeat=true focusEnabled=false/mx:Buttonall it does is display a arrow. Can't tell it to use left or right arrow and no button skin. Am I missing something really obvious? DKOn 7/24/06, JesterXL [EMAIL PROTECTED] wrote: I can't remember what email, but I showed the CSS. Can't you just use the same DateChooser CSS? NextButton { upSkin: ClassReference(mx.skins.halo.DateChooserMonthArrowSkin); downSkin: etc. } Then, just make a MXML file that extends Button. ??? - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 12:01 PM Subject: Re: [flexcoders] Flex arrows? gotcha! Now the question, I want to create a custom component called NextButton that acts the same as the one in the DateChooser and inherits the skin the same as the one in the DateChoser thus seemlessly interacting with the Flex framework. Adobe has let loose the source code for DateChooser. Does Adobe envision some of us copying some of their code in order to fulfill such a community benefiting component? DK On 7/24/06, JesterXL [EMAIL PROTECTED] wrote: My guess is that was done for filesize reasons. The resulting SWF is smaller since ActionScript bytecode is a lot smaller via lzw compression than a PNG/GIF via the same. While the drawing is more CPU intensive, you cut corners for filesize where you can, and I understand their justification. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 11:27 AM Subject: Re: [flexcoders] Flex arrows? update...had some pressing issues. looking at \frameworks\source\mx\skins\halo\DateChooserMonthArrowSkin.aslooks like this thing does not even use a graphic at all. Code in there actually draws the arrows! I suppose this way screen scaling is a non-issue. DK On 7/20/06, Douglas Knudsen [EMAIL PROTECTED] wrote: right, but I really don't want to creat a new skin, I want ot use the existing skin so that it inherits all the Halo goodness, eh? I still have not got this working yet. Looking deeper into the source for the DateChooser and the DateChoser skin I have found that the code actually draws the arrow. The DateChooser code adds styles like prevMonthOverSkin and nextMonthOverSkin with default values. These styles names are expected in teh programmatic skin and do not exist in the Button class. So Jester, me got brave...not so brave as Mel Gibson mind you, I like me entrails! This is a excerpt:fwdMonthButton = new Button(); fwdMonthButton.styleName = this; fwdMonthButton.autoRepeat = true; fwdMonthButton.focusEnabled = false; fwdMonthButton.upSkinName = nextMonthUpSkin; fwdMonthButton.overSkinName = nextMonthOverSkin; fwdMonthButton.downSkinName = nextMonthDownSkin; fwdMonthButton.disabledSkinName = nextMonthDisabledSkin;ugh where does Button.upSkinName come from? Its not in th edocs that i can see. DK On 7/20/06, juan sanchez [EMAIL PROTECTED] wrote: download the default skin here. http://www.adobe.com/devnet/flex/articles/flex_skins.html On Jul 20, 2006, at 7:56 AM, Douglas Knudsen wrote: no workiehope jester's bag of tricks is deep! I looked around the Flex SDK source and see no arrow pngs at all, many other pngs though. My guess is the arrows are compiled in a swc somewheres, which means they should be 'grabable' eh? Be nice to use any graphics in the SDK in custom components to maintain the 'Flexiness', eh? What I'm trying to do is create a next/previous month browser. We have reports that users run on a month end basis, the datechoser is really not the right tool for this. I'm just using mxml to do this currently...suppose I will have to go off and lear the way of the force for building components soon. DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... try: mx:Button click=onPrev() upSkin=mx.skins.halo.DateChooserMonthArrowSkin / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css , so she
Re: [flexcoders] Flex arrows?
No, you're not missing anything obvious, it's just hard to keep track of past email discussions on this topic, sorry. You have a choice; either go dig in the Button class to see how they are rotating the arrow, wait for me to do it this evening, or go take 2 minutes to create the arrows yourself, and use bitmap skins. I'd vote for the later: Quick, no dependencies, and it'll get you a solution that works sooner than later. You're not using the framework, but it's a frikin' arrow, whoop-dee-doo, know what I'm sayin'? Just go into your image editing program (Fireworks / Photoshop): - create arrow, both left and right - save as PNG with transparency - embed as the upSkin for NextButton next arrow, and left arrow for the PrevButton If you set those in the CSS, you'll be able to do: view:PrevButton / view:NextButton / And they'll automatically use the skin. This reduces the amount of code you'll need to write and makes it easy to modify the arrow application wide later. The DateChooser's arrow shouldn't be that hard to duplicate. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 12:25 PM Subject: Re: [flexcoders] Flex arrows? did that?xml version="1.0" encoding="utf-8"?mx:Button xmlns:mx="http://www.adobe.com/2006/mxml" upSkin="mx.skins.halo.DateChooserMonthArrowSkin " downSkin="mx.skins.halo.DateChooserMonthArrowSkin" overSkin="mx.skins.halo.DateChooserMonthArrowSkin" disabledSkin="mx.skins.halo.DateChooserMonthArrowSkin" styleName="DateChooser" autoRepeat="true" focusEnabled="false" /mx:Buttonall it does is display a arrow. Can't tell it to use left or right arrow and no button skin. Am I missing something really obvious? DK On 7/24/06, JesterXL [EMAIL PROTECTED] wrote: I can't remember what email, but I showed the CSS. Can't you just use the same DateChooser CSS? NextButton { upSkin: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin"); downSkin: etc. } Then, just make a MXML file that extends Button. ??? - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 12:01 PM Subject: Re: [flexcoders] Flex arrows? gotcha! Now the question, I want to create a custom component called NextButton that acts the same as the one in the DateChooser and inherits the skin the same as the one in the DateChoser thus seemlessly interacting with the Flex framework. Adobe has let loose the source code for DateChooser. Does Adobe envision some of us copying some of their code in order to fulfill such a community benefiting component? DK On 7/24/06, JesterXL [EMAIL PROTECTED] wrote: My guess is that was done for filesize reasons. The resulting SWF is smaller since ActionScript bytecode is a lot smaller via lzw compression than a PNG/GIF via the same. While the drawing is more CPU intensive, you cut corners for filesize where you can, and I understand their justification. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 11:27 AM Subject: Re: [flexcoders] Flex arrows? update...had some pressing issues. looking at \frameworks\source\mx\skins\halo\DateChooserMonthArrowSkin.aslooks like this thing does not even use a graphic at all. Code in there actually draws the arrows! I suppose this way screen scaling is a non-issue. DK On 7/20/06, Douglas Knudsen [EMAIL PROTECTED] wrote: right, but I really don't want to creat a new skin, I want ot use the existing skin so that it inherits all the Halo goodness, eh? I still have not got this working yet. Looking deeper into the source for the DateChooser and the DateChoser skin I have found that the code actually draws the arrow. The DateChooser code adds styles like prevMonthOverSkin and nextMonthOverSkin with default values. These styles names are expected in teh programmatic skin and do not exist in the Button class. So Jester, me got brave...not so brave as Mel Gibson mind you, I like me entrails! This is a excerpt:fwdMonthButton = new Button(); fwdMonthButton.styleName = this; fwdMonthButton.autoRepeat = true; fwdMonthButton.focusEnabled = false; fwdMonthButton.upSkinName = "nextMonthUpSkin"; fwdMonthButton.overSkinName = "nextMonthOverSkin"; fwdMonthButton.downSkinName = "nextMonthDownSkin"; fwdMonthButton.disabledSkinName = "nextMonthDisabledSkin";ugh where does Button.upSkinName come from? Its n
Re: [flexcoders] Flex arrows?
On 7/24/06, JesterXL [EMAIL PROTECTED] wrote: No, you're not missing anything obvious, it's just hard to keep track of past email discussions on this topic, sorry. You have a choice; either go dig in the Button class to see how they are rotating the arrow, wait for me to do it this evening, or go take 2 minutes to create the arrows yourself, and use bitmap skins.I gotcha! appreciate the offer, but I'm a glutton for punishment too. :) Not being a Flasher, this could be a good exercise in AS3 as well as Flex framework. Its kind of surprising the Flex team didn't create a ButtonArrow class that could be reused on other components. I guess the datechooser is the only control using it though, eh? I'd vote for the later: Quick, no dependencies, and it'll get you a solution that works sooner than later. You're not using the framework, but it's a frikin' arrow, whoop-dee-doo, know what I'm sayin'? Just go into your image editing program (Fireworks / Photoshop): - create arrow, both left and right - save as PNG with transparency - embed as the upSkin for NextButton next arrow, and left arrow for the PrevButton If you set those in the CSS, you'll be able to do: view:PrevButton / view:NextButton / And they'll automatically use the skin. This reduces the amount of code you'll need to write and makes it easy to modify the arrow application wide later. The DateChooser's arrow shouldn't be that hard to duplicate.righto, I've been reading up on skinning on adobe's site. Yeah, in this case it is a simple button. Larger picture, what if the theme is changed on the application? Will this method incur changes to the custom skin or would it automagically use the new theme? thanks again...off and running..well not literally, its too bloody hot in atlanta!DK - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 12:25 PM Subject: Re: [flexcoders] Flex arrows? did that?xml version=1.0 encoding=utf-8?mx:Button xmlns:mx=http://www.adobe.com/2006/mxml upSkin=mx.skins.halo.DateChooserMonthArrowSkin downSkin=mx.skins.halo.DateChooserMonthArrowSkin overSkin=mx.skins.halo.DateChooserMonthArrowSkin disabledSkin=mx.skins.halo.DateChooserMonthArrowSkin styleName=DateChooser autoRepeat=true focusEnabled=false /mx:Buttonall it does is display a arrow. Can't tell it to use left or right arrow and no button skin. Am I missing something really obvious? DK On 7/24/06, JesterXL [EMAIL PROTECTED] wrote: I can't remember what email, but I showed the CSS. Can't you just use the same DateChooser CSS? NextButton { upSkin: ClassReference(mx.skins.halo.DateChooserMonthArrowSkin); downSkin: etc. } Then, just make a MXML file that extends Button. ??? - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 12:01 PM Subject: Re: [flexcoders] Flex arrows? gotcha! Now the question, I want to create a custom component called NextButton that acts the same as the one in the DateChooser and inherits the skin the same as the one in the DateChoser thus seemlessly interacting with the Flex framework. Adobe has let loose the source code for DateChooser. Does Adobe envision some of us copying some of their code in order to fulfill such a community benefiting component? DK On 7/24/06, JesterXL [EMAIL PROTECTED] wrote: My guess is that was done for filesize reasons. The resulting SWF is smaller since ActionScript bytecode is a lot smaller via lzw compression than a PNG/GIF via the same. While the drawing is more CPU intensive, you cut corners for filesize where you can, and I understand their justification. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Monday, July 24, 2006 11:27 AM Subject: Re: [flexcoders] Flex arrows? update...had some pressing issues. looking at \frameworks\source\mx\skins\halo\DateChooserMonthArrowSkin.aslooks like this thing does not even use a graphic at all. Code in there actually draws the arrows! I suppose this way screen scaling is a non-issue. DK On 7/20/06, Douglas Knudsen [EMAIL PROTECTED] wrote: right, but I really don't want to creat a new skin, I want ot use the existing skin so that it inherits all the Halo goodness, eh? I still have not got this working yet. Looking deeper into the source for the DateChooser and the DateChoser skin I have found that the code actually draws the arrow. The DateChooser code adds styles like prevMonthOverSkin and nextMonthOverSkin with default values. These styles names are expected in teh programmatic skin and do not exist in the Button class. So Jester, me got brave...not so brave as Mel Gibson
Re: [flexcoders] Flex arrows?
no workiehope jester's bag of tricks is deep! I looked around the Flex SDK source and see no arrow pngs at all, many other pngs though. My guess is the arrows are compiled in a swc somewheres, which means they should be 'grabable' eh? Be nice to use any graphics in the SDK in custom components to maintain the 'Flexiness', eh? What I'm trying to do is create a next/previous month browser. We have reports that users run on a month end basis, the datechoser is really not the right tool for this. I'm just using mxml to do this currently...suppose I will have to go off and lear the way of the force for building components soon. DKOn 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... try: mx:Button click=onPrev() upSkin=mx.skins.halo.DateChooserMonthArrowSkin / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css, so she IS in there. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 4:00 PM Subject: Re: [flexcoders] Flex arrows? hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this?mx:Button click=onPrev() upSkin=DateChooserMonthArrowSkin /throws a def not found error. Do I import the sckin somehow? DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin=DateChooserMonthArrowSkin* nextMonthDownSkin=DateChooserMonthArrowSkin* nextMonthOverSkin=DateChooserMonthArrowSkin* nextMonthUpSkin=DateChooserMonthArrowSkin* nextYearDisabledSkin=DateChooserYearArrowSkin* nextYearDownSkin=DateChooserYearArrowSkin* nextYearOverSkin=DateChooserYearArrowSkin* nextYearUpSkin=DateChooserYearArrowSkin* prevMonthDisabledSkin=DateChooserMonthArrowSkin* prevMonthDownSkin=DateChooserMonthArrowSkin* prevMonthOverSkin=DateChooserMonthArrowSkin* prevMonthUpSkin=DateChooserMonthArrowSkin* prevYearDisabledSkin=DateChooserYearArrowSkin* prevYearDownSkin=DateChooserYearArrowSkin* prevYearOverSkin=DateChooserYearArrowSkin* prevYearUpSkin=DateChooserYearArrowSkin - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 3:19 PM Subject: [flexcoders] Flex arrows? So, I'm creating a custom component with next/previous functionality. I'd like to use the same arrows on say the DateChooser control. Are these avaialbale to the developer somehow?DK-- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like 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] Flex arrows?
Here G, this should get you started: http://pastebin.de/9387 http://pastebin.de/9388 ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" xmlns:local="*" mx:Style source="index.css" /local:NextMonthButton /mx:DateChooser //mx:Application NextMonthButton{/* ClassReference("mx.skins.halo.DateChooserMonthArrowSkin"); *//* ClassReference("mx.skins.halo.DateChooserYearArrowSkin"); *//* ClassReference("mx.skins.halo.DateChooserIndicator"); */disabledIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");downIcon:ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");icon:ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");overIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");selectedDisabledIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");selectedDownIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");selectedOverIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");selectedUpIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");upIcon:ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");} - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Thursday, July 20, 2006 10:56 AM Subject: Re: [flexcoders] Flex arrows? no workiehope jester's bag of tricks is deep! I looked around the Flex SDK source and see no arrow pngs at all, many other pngs though. My guess is the arrows are compiled in a swc somewheres, which means they should be 'grabable' eh? Be nice to use any graphics in the SDK in custom components to maintain the 'Flexiness', eh? What I'm trying to do is create a next/previous month browser. We have reports that users run on a month end basis, the datechoser is really not the right tool for this. I'm just using mxml to do this currently...suppose I will have to go off and lear the way of the force for building components soon. DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... try: mx:Button click="onPrev()" upSkin="mx.skins.halo.DateChooserMonthArrowSkin" / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css, so she IS in there. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 4:00 PM Subject: Re: [flexcoders] Flex arrows? hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this?mx:Button click="onPrev()" upSkin="DateChooserMonthArrowSkin" /throws a def not found error. Do I import the sckin somehow? DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin="DateChooserMonthArrowSkin"* nextMonthDownSkin="DateChooserMonthArrowSkin"* nextMonthOverSkin="DateChooserMonthArrowSkin"* nextMonthUpSkin="DateChooserMonthArrowSkin"* nextYearDisabledSkin="DateChooserYearArrowSkin"* nextYearDownSkin="DateChooserYearArrowSkin"* nextYearOverSkin="DateChooserYearArrowSkin"* nextYearUpSkin="DateChooserYearArrowSkin"* prevMonthDisabledSkin="DateChooserMonthArrowSkin"* prevMonthDownSkin="DateChooserMonthArrowSkin"* prevMonthOverSkin="DateChooserMonthArrowSkin"* prevMonthUpSkin="DateChooserMonthArrowSkin"* prevYearDisabledSkin="DateChooserYearArrowSkin"* prevYearDownSkin="DateChooserYearArrowSkin"* prevYearOverSkin="DateChooserYearArrowSkin"* prevYearUpSkin="DateChooserYearArrowSkin" - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 3:19 PM Subject: [flexcoders] Flex arrows? So, I'm creating a custom component with next/previous functionality. I'd like to use the same arrows on say the DateChooser control. Are these avaialbale to the developer somehow?DK-- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/
Re: [flexcoders] Flex arrows?
holy kow batman! Thank you Jester! I'm now fully lost, what book is this stuff you suggested in? have to read up! I will add somehting i just found thoughone word Binding! ooops! The below is starting to work. Just have to figure out the settings used in the DateChooser to get things to work exactly the same. Maybe make a custom component of just the button to share later. Thanks again d00d!mx:Button click=onPrev() upSkin={mx.skins.halo.DateChooserMonthArrowSkin } downSkin={mx.skins.halo.DateChooserMonthArrowSkin } overSkin={mx.skins.halo.DateChooserMonthArrowSkin } disabledSkin={mx.skins.halo.DateChooserMonthArrowSkin } selectedUpSkin={mx.skins.halo.DateChooserMonthArrowSkin } selectedOverSkin={mx.skins.halo.DateChooserMonthArrowSkin } selectedDownSkin={mx.skins.halo.DateChooserMonthArrowSkin } selectedDisabledSkin={mx.skins.halo.DateChooserMonthArrowSkin } overIcon={mx.skins.halo.DateChooserMonthArrowSkin } downIcon={mx.skins.halo.DateChooserMonthArrowSkin } icon={mx.skins.halo.DateChooserMonthArrowSkin } disabledIcon={mx.skins.halo.DateChooserMonthArrowSkin } upIcon={mx.skins.halo.DateChooserMonthArrowSkin }/ DKOn 7/20/06, JesterXL [EMAIL PROTECTED] wrote: Here G, this should get you started: http://pastebin.de/9387 http://pastebin.de/9388 ?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxml layout=vertical xmlns:local=* mx:Style source=index.css /local:NextMonthButton /mx:DateChooser //mx:Application NextMonthButton{/* ClassReference(mx.skins.halo.DateChooserMonthArrowSkin); *//* ClassReference(mx.skins.halo.DateChooserYearArrowSkin); *//* ClassReference(mx.skins.halo.DateChooserIndicator); */disabledIcon: ClassReference(mx.skins.halo.DateChooserMonthArrowSkin);downIcon:ClassReference(mx.skins.halo.DateChooserMonthArrowSkin);icon:ClassReference(mx.skins.halo.DateChooserMonthArrowSkin );overIcon: ClassReference(mx.skins.halo.DateChooserMonthArrowSkin);selectedDisabledIcon: ClassReference(mx.skins.halo.DateChooserMonthArrowSkin);selectedDownIcon: ClassReference(mx.skins.halo.DateChooserMonthArrowSkin);selectedOverIcon: ClassReference(mx.skins.halo.DateChooserMonthArrowSkin);selectedUpIcon: ClassReference(mx.skins.halo.DateChooserMonthArrowSkin);upIcon:ClassReference(mx.skins.halo.DateChooserMonthArrowSkin);} - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Thursday, July 20, 2006 10:56 AM Subject: Re: [flexcoders] Flex arrows? no workiehope jester's bag of tricks is deep! I looked around the Flex SDK source and see no arrow pngs at all, many other pngs though. My guess is the arrows are compiled in a swc somewheres, which means they should be 'grabable' eh? Be nice to use any graphics in the SDK in custom components to maintain the 'Flexiness', eh? What I'm trying to do is create a next/previous month browser. We have reports that users run on a month end basis, the datechoser is really not the right tool for this. I'm just using mxml to do this currently...suppose I will have to go off and lear the way of the force for building components soon. DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... try: mx:Button click=onPrev() upSkin=mx.skins.halo.DateChooserMonthArrowSkin / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css, so she IS in there. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 4:00 PM Subject: Re: [flexcoders] Flex arrows? hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this?mx:Button click=onPrev() upSkin=DateChooserMonthArrowSkin /throws a def not found error. Do I import the sckin somehow? DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin=DateChooserMonthArrowSkin* nextMonthDownSkin=DateChooserMonthArrowSkin* nextMonthOverSkin=DateChooserMonthArrowSkin* nextMonthUpSkin=DateChooserMonthArrowSkin* nextYearDisabledSkin=DateChooserYearArrowSkin* nextYearDownSkin=DateChooserYearArrowSkin* nextYearOverSkin=DateChooserYearArrowSkin* nextYearUpSkin=DateChooserYearArrowSkin* prevMonthDisabledSkin=DateChooserMonthArrowSkin* prevMonthDownSkin=DateChooserMonthArrowSkin* prevMonthOverSkin=DateChooserMonthArrowSkin* prevMonthUpSkin=DateChooserMonthArrowSkin* prevYearDisabledSkin=DateChooserYearArrowSkin* prevYearDownSkin=DateChooserYearArrowSkin* prevYearOverSkin=DateChooserYearArrowSkin* prevYearUpSkin=DateChooserYearArrowSkin - Original Message - From
Re: [flexcoders] Flex arrows?
Books? I don't much care for books... they're full of truths. I went digging into the defaults.css and ripped out what I saw in there for DateChooser. It's located here for me: C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\frameworks The reason I put it in the CSS is that you can use multiple NextDateButtons, and they are only 1 line, not the 14 below. However, if you are only using it once in your app, it's not worth extending Button putting it as a CSS selector like I did. If you need more info and are brave, look at the class here: C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\frameworks\source\mx\controls I'm sure it may reveal how it's handling some of the skins. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Thursday, July 20, 2006 12:26 PM Subject: Re: [flexcoders] Flex arrows? holy kow batman! Thank you Jester! I'm now fully lost, what book is this stuff you suggested in? have to read up! I will add somehting i just found thoughone word Binding! ooops! The below is starting to work. Just have to figure out the settings used in the DateChooser to get things to work exactly the same. Maybe make a custom component of just the button to share later. Thanks again d00d!mx:Button click="onPrev()" upSkin="{mx.skins.halo.DateChooserMonthArrowSkin }" downSkin="{mx.skins.halo.DateChooserMonthArrowSkin }" overSkin="{mx.skins.halo.DateChooserMonthArrowSkin }" disabledSkin="{mx.skins.halo.DateChooserMonthArrowSkin }" selectedUpSkin="{mx.skins.halo.DateChooserMonthArrowSkin }" selectedOverSkin="{mx.skins.halo.DateChooserMonthArrowSkin }" selectedDownSkin="{mx.skins.halo.DateChooserMonthArrowSkin }" selectedDisabledSkin="{mx.skins.halo.DateChooserMonthArrowSkin }" overIcon="{mx.skins.halo.DateChooserMonthArrowSkin }" downIcon="{mx.skins.halo.DateChooserMonthArrowSkin }" icon="{mx.skins.halo.DateChooserMonthArrowSkin }" disabledIcon="{mx.skins.halo.DateChooserMonthArrowSkin }" upIcon="{mx.skins.halo.DateChooserMonthArrowSkin }" /DK On 7/20/06, JesterXL [EMAIL PROTECTED] wrote: Here G, this should get you started: http://pastebin.de/9387 http://pastebin.de/9388 ?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="vertical" xmlns:local="*" mx:Style source="index.css" /local:NextMonthButton /mx:DateChooser //mx:Application NextMonthButton{/* ClassReference("mx.skins.halo.DateChooserMonthArrowSkin"); *//* ClassReference("mx.skins.halo.DateChooserYearArrowSkin"); *//* ClassReference("mx.skins.halo.DateChooserIndicator"); */disabledIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");downIcon:ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");icon:ClassReference("mx.skins.halo.DateChooserMonthArrowSkin ");overIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");selectedDisabledIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");selectedDownIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");selectedOverIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");selectedUpIcon: ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");upIcon:ClassReference("mx.skins.halo.DateChooserMonthArrowSkin");} - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Thursday, July 20, 2006 10:56 AM Subject: Re: [flexcoders] Flex arrows? no workiehope jester's bag of tricks is deep! I looked around the Flex SDK source and see no arrow pngs at all, many other pngs though. My guess is the arrows are compiled in a swc somewheres, which means they should be 'grabable' eh? Be nice to use any graphics in the SDK in custom components to maintain the 'Flexiness', eh? What I'm trying to do is create a next/previous month browser. We have reports that users run on a month end basis, the datechoser is really not the right tool for this. I'm just using mxml to do this currently...suppose I will have to go off and lear the way of the force for building components soon. DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... try: mx:Button click="onPrev()" upSkin="mx.skins.halo.DateChooserMonthArrowSkin" / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css, so she IS in there. - Original Message - From: Douglas Knudsen To:
Re: [flexcoders] Flex arrows?
download the default skin here.http://www.adobe.com/devnet/flex/articles/flex_skins.htmlOn Jul 20, 2006, at 7:56 AM, Douglas Knudsen wrote:no workiehope jester's bag of tricks is deep! I looked around the Flex SDK source and see no arrow pngs at all, many other pngs though. My guess is the arrows are compiled in a swc somewheres, which means they should be 'grabable' eh? Be nice to use any graphics in the SDK in custom components to maintain the 'Flexiness', eh? What I'm trying to do is create a next/previous month browser. We have reports that users run on a month end basis, the datechoser is really not the right tool for this. I'm just using mxml to do this currently...suppose I will have to go off and lear the way of the force for building components soon. DKOn 7/19/06, JesterXL [EMAIL PROTECTED] wrote:Hrm... try: mx:Button click="onPrev()" upSkin="mx.skins.halo.DateChooserMonthArrowSkin" / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css, so she IS in there. - Original Message -From: Douglas KnudsenTo: flexcoders@yahoogroups.comSent: Wednesday, July 19, 2006 4:00 PMSubject: Re: [flexcoders] Flex arrows?hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this?mx:Button click="onPrev()" upSkin="DateChooserMonthArrowSkin" /throws a def not found error. Do I import the sckin somehow? DKOn 7/19/06, JesterXL [EMAIL PROTECTED] wrote:Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin="DateChooserMonthArrowSkin" * nextMonthDownSkin="DateChooserMonthArrowSkin" * nextMonthOverSkin="DateChooserMonthArrowSkin" * nextMonthUpSkin="DateChooserMonthArrowSkin" * nextYearDisabledSkin="DateChooserYearArrowSkin" * nextYearDownSkin="DateChooserYearArrowSkin" * nextYearOverSkin="DateChooserYearArrowSkin" * nextYearUpSkin="DateChooserYearArrowSkin" * prevMonthDisabledSkin="DateChooserMonthArrowSkin" * prevMonthDownSkin="DateChooserMonthArrowSkin" * prevMonthOverSkin="DateChooserMonthArrowSkin" * prevMonthUpSkin="DateChooserMonthArrowSkin" * prevYearDisabledSkin="DateChooserYearArrowSkin" * prevYearDownSkin="DateChooserYearArrowSkin" * prevYearOverSkin="DateChooserYearArrowSkin" * prevYearUpSkin="DateChooserYearArrowSkin" - Original Message -From: Douglas KnudsenTo: flexcoders@yahoogroups.comSent: Wednesday, July 19, 2006 3:19 PMSubject: [flexcoders] Flex arrows?So, I'm creating a custom component with next/previous functionality. I'd like to use the same arrows on say the DateChooser control. Are these avaialbale to the developer somehow?DK-- Douglas Knudsen http://www.cubicleman.comthis is my signature, like it?-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like it?-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like 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] Flex arrows?
right, but I really don't want to creat a new skin, I want ot use the existing skin so that it inherits all the Halo goodness, eh? I still have not got this working yet. Looking deeper into the source for the DateChooser and the DateChoser skin I have found that the code actually draws the arrow. The DateChooser code adds styles like prevMonthOverSkin and nextMonthOverSkin with default values. These styles names are expected in teh programmatic skin and do not exist in the Button class. So Jester, me got brave...not so brave as Mel Gibson mind you, I like me entrails! This is a excerpt:fwdMonthButton = new Button(); fwdMonthButton.styleName = this; fwdMonthButton.autoRepeat = true; fwdMonthButton.focusEnabled = false; fwdMonthButton.upSkinName = nextMonthUpSkin; fwdMonthButton.overSkinName = nextMonthOverSkin; fwdMonthButton.downSkinName = nextMonthDownSkin; fwdMonthButton.disabledSkinName = nextMonthDisabledSkin;ugh where does Button.upSkinName come from? Its not in th edocs that i can see.DKOn 7/20/06, juan sanchez [EMAIL PROTECTED] wrote: download the default skin here. http://www.adobe.com/devnet/flex/articles/flex_skins.htmlOn Jul 20, 2006, at 7:56 AM, Douglas Knudsen wrote: no workiehope jester's bag of tricks is deep! I looked around the Flex SDK source and see no arrow pngs at all, many other pngs though. My guess is the arrows are compiled in a swc somewheres, which means they should be 'grabable' eh? Be nice to use any graphics in the SDK in custom components to maintain the 'Flexiness', eh? What I'm trying to do is create a next/previous month browser. We have reports that users run on a month end basis, the datechoser is really not the right tool for this. I'm just using mxml to do this currently...suppose I will have to go off and lear the way of the force for building components soon. DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Hrm... try: mx:Button click=onPrev() upSkin=mx.skins.halo.DateChooserMonthArrowSkin / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css , so she IS in there. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 4:00 PM Subject: Re: [flexcoders] Flex arrows? hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this? mx:Button click=onPrev() upSkin=DateChooserMonthArrowSkin / throws a def not found error. Do I import the sckin somehow? DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin=DateChooserMonthArrowSkin* nextMonthDownSkin=DateChooserMonthArrowSkin * nextMonthOverSkin=DateChooserMonthArrowSkin * nextMonthUpSkin=DateChooserMonthArrowSkin * nextYearDisabledSkin=DateChooserYearArrowSkin* nextYearDownSkin=DateChooserYearArrowSkin * nextYearOverSkin=DateChooserYearArrowSkin * nextYearUpSkin=DateChooserYearArrowSkin * prevMonthDisabledSkin=DateChooserMonthArrowSkin* prevMonthDownSkin=DateChooserMonthArrowSkin * prevMonthOverSkin=DateChooserMonthArrowSkin * prevMonthUpSkin=DateChooserMonthArrowSkin * prevYearDisabledSkin=DateChooserYearArrowSkin* prevYearDownSkin=DateChooserYearArrowSkin * prevYearOverSkin=DateChooserYearArrowSkin * prevYearUpSkin=DateChooserYearArrowSkin - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 3:19 PM Subject: [flexcoders] Flex arrows? So, I'm creating a custom component with next/previous functionality. I'd like to use the same arrows on say the DateChooser control. Are these avaialbale to the developer somehow? DK -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsen http://www.cubicleman.comthis is my signature, like it? -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like 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] Flex arrows?
So, I'm creating a custom component with next/previous functionality. I'd like to use the same arrows on say the DateChooser control. Are these avaialbale to the developer somehow?DK-- Douglas Knudsen http://www.cubicleman.comthis is my signature, like 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] Flex arrows?
Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin="DateChooserMonthArrowSkin"* nextMonthDownSkin="DateChooserMonthArrowSkin"* nextMonthOverSkin="DateChooserMonthArrowSkin"* nextMonthUpSkin="DateChooserMonthArrowSkin"* nextYearDisabledSkin="DateChooserYearArrowSkin"* nextYearDownSkin="DateChooserYearArrowSkin"* nextYearOverSkin="DateChooserYearArrowSkin"* nextYearUpSkin="DateChooserYearArrowSkin"* prevMonthDisabledSkin="DateChooserMonthArrowSkin"* prevMonthDownSkin="DateChooserMonthArrowSkin"* prevMonthOverSkin="DateChooserMonthArrowSkin"* prevMonthUpSkin="DateChooserMonthArrowSkin"* prevYearDisabledSkin="DateChooserYearArrowSkin"* prevYearDownSkin="DateChooserYearArrowSkin"* prevYearOverSkin="DateChooserYearArrowSkin"* prevYearUpSkin="DateChooserYearArrowSkin" - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 3:19 PM Subject: [flexcoders] Flex arrows? So, I'm creating a custom component with next/previous functionality. I'd like to use the same arrows on say the DateChooser control. Are these avaialbale to the developer somehow?DK-- Douglas Knudsen http://www.cubicleman.comthis is my signature, like 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] Flex arrows?
hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this?mx:Button click=onPrev() upSkin=DateChooserMonthArrowSkin /throws a def not found error. Do I import the sckin somehow? DKOn 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin=DateChooserMonthArrowSkin* nextMonthDownSkin=DateChooserMonthArrowSkin* nextMonthOverSkin=DateChooserMonthArrowSkin* nextMonthUpSkin=DateChooserMonthArrowSkin* nextYearDisabledSkin=DateChooserYearArrowSkin* nextYearDownSkin=DateChooserYearArrowSkin* nextYearOverSkin=DateChooserYearArrowSkin* nextYearUpSkin=DateChooserYearArrowSkin* prevMonthDisabledSkin=DateChooserMonthArrowSkin* prevMonthDownSkin=DateChooserMonthArrowSkin* prevMonthOverSkin=DateChooserMonthArrowSkin* prevMonthUpSkin=DateChooserMonthArrowSkin* prevYearDisabledSkin=DateChooserYearArrowSkin* prevYearDownSkin=DateChooserYearArrowSkin* prevYearOverSkin=DateChooserYearArrowSkin* prevYearUpSkin=DateChooserYearArrowSkin - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 3:19 PM Subject: [flexcoders] Flex arrows? So, I'm creating a custom component with next/previous functionality. I'd like to use the same arrows on say the DateChooser control. Are these avaialbale to the developer somehow?DK-- Douglas Knudsen http://www.cubicleman.comthis is my signature, like it? -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like 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] Flex arrows?
Hrm... try: mx:Button click="onPrev()" upSkin="mx.skins.halo.DateChooserMonthArrowSkin" / If that doesn't work, I have more ideas. The skin is already imported in the defaults.css, so she IS in there. - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 4:00 PM Subject: Re: [flexcoders] Flex arrows? hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this?mx:Button click="onPrev()" upSkin="DateChooserMonthArrowSkin" /throws a def not found error. Do I import the sckin somehow? DK On 7/19/06, JesterXL [EMAIL PROTECTED] wrote: Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin="DateChooserMonthArrowSkin"* nextMonthDownSkin="DateChooserMonthArrowSkin"* nextMonthOverSkin="DateChooserMonthArrowSkin"* nextMonthUpSkin="DateChooserMonthArrowSkin"* nextYearDisabledSkin="DateChooserYearArrowSkin"* nextYearDownSkin="DateChooserYearArrowSkin"* nextYearOverSkin="DateChooserYearArrowSkin"* nextYearUpSkin="DateChooserYearArrowSkin"* prevMonthDisabledSkin="DateChooserMonthArrowSkin"* prevMonthDownSkin="DateChooserMonthArrowSkin"* prevMonthOverSkin="DateChooserMonthArrowSkin"* prevMonthUpSkin="DateChooserMonthArrowSkin"* prevYearDisabledSkin="DateChooserYearArrowSkin"* prevYearDownSkin="DateChooserYearArrowSkin"* prevYearOverSkin="DateChooserYearArrowSkin"* prevYearUpSkin="DateChooserYearArrowSkin" - Original Message - From: Douglas Knudsen To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 3:19 PM Subject: [flexcoders] Flex arrows? So, I'm creating a custom component with next/previous functionality. I'd like to use the same arrows on say the DateChooser control. Are these avaialbale to the developer somehow?DK-- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like 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] Flex arrows?
here's a tutorial on skinning components where you can download all the default graphics in a flash, photoshop or fireworks setup. however the graphics should be available as a swf file somewhere where flex installs. On Jul 19, 2006, at 1:00 PM, Douglas Knudsen wrote:hmm, ok, I'm lost when it comes to fancy UI stuff :) How do you make use of this?mx:Button click="onPrev()" upSkin="DateChooserMonthArrowSkin" /throws a def not found error. Do I import the sckin somehow? DKOn 7/19/06, JesterXL [EMAIL PROTECTED] wrote:Found these digging in DateChooser.as. I'm assuming these skins are compiled into the base framework. Try using like DateChooserMonthArrowSkin as one of your upSkins and see what happens. * nextMonthDisabledSkin="DateChooserMonthArrowSkin" * nextMonthDownSkin="DateChooserMonthArrowSkin" * nextMonthOverSkin="DateChooserMonthArrowSkin" * nextMonthUpSkin="DateChooserMonthArrowSkin" * nextYearDisabledSkin="DateChooserYearArrowSkin" * nextYearDownSkin="DateChooserYearArrowSkin" * nextYearOverSkin="DateChooserYearArrowSkin" * nextYearUpSkin="DateChooserYearArrowSkin" * prevMonthDisabledSkin="DateChooserMonthArrowSkin" * prevMonthDownSkin="DateChooserMonthArrowSkin" * prevMonthOverSkin="DateChooserMonthArrowSkin" * prevMonthUpSkin="DateChooserMonthArrowSkin" * prevYearDisabledSkin="DateChooserYearArrowSkin" * prevYearDownSkin="DateChooserYearArrowSkin" * prevYearOverSkin="DateChooserYearArrowSkin" * prevYearUpSkin="DateChooserYearArrowSkin" - Original Message -From: Douglas KnudsenTo: flexcoders@yahoogroups.comSent: Wednesday, July 19, 2006 3:19 PMSubject: [flexcoders] Flex arrows?So, I'm creating a custom component with next/previous functionality. I'd like to use the same arrows on say the DateChooser control. Are these avaialbale to the developer somehow?DK-- Douglas Knudsen http://www.cubicleman.comthis is my signature, like it?-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like 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. __,_._,___