Has anyone used the dateChooser component with any success?
And does anyone know how to block out dates so their not selectable?
any pointers would be realy welcome
Cheers
Printable View
Has anyone used the dateChooser component with any success?
And does anyone know how to block out dates so their not selectable?
any pointers would be realy welcome
Cheers
Manny,
I've never been a great lover of components, basically because they seem to have a minimum size of 36Kbs which is approx 9 seconds on a dial up system before anything else starts to load.
I've just had a quick look at the dateChooser component and it doesn't seem that hard to set up. It seems very simple say to black out every Sat and Sun and a bit more complicated to black out dates between one date and another.
How you actually get any action on clicking a date I've no idea and the help file doesn't seem to contain any info on this either.
Perhaps we can work it out together although I think the actual component looks crap.
Thanks Egg, I forgot the help menu in flash (sometime’s I can’t see the wood for the trees), and you right their doesn’t seem to be any info on attaching actions apart from showing the date, however after an extensive goggle search and hacking a few other peoples work together( I’ll use Availors quote here “no need to reinvent the bicycle”) I seem to have ended up with a useful an functional piece of flash with a lot of code that I haven’t got a clue on which I will try to understand as I pick through it, it’s kind of like a flash blog that is xml driven with a touch of CSS.Just want to style the dateChooser a little so i guess it's back to the help menu.
I’ll post the results once I’ve got it running and looking ok as I think it will be a very useful addition to anyone’s toll box.
Availor,
I've no problem with the clean design and I'm no lover of what's "in" at any particular point in time.
What I have a problem with is this tendency to create all text in Flash at 8pt's or less! More than this the selected date highlight is this very pale green. Hardly a highlight. Similarly the "Closed out dates" are nearly the same grey as the "open" dates.
Worse than this if you enlarge the component, the buttons and highlights alignment with the date get even more off-placed than they are at present.
Manny,
Please post the final results, I'd be interested in seeing the final output.
Manny
No-one has asked what you are trying to achieve! There are some JavaScript options if you simply want to get dates into an HTML form.
Egg
will do, should be latter this week if I get time (with no bells and whistles I’d like to add) maybe someone will be able to expand on it, fingers crossed.
On the topic of the feel and look of the components egg I’ve worked out how to change the font size for the month header and days by embedding them via the setStyle AS still struggling with the dates though, seems there are a few options you can change via AS
Stlewis I’m just exploring the components in flash 8 and how they can be applied in practical terms and thought I’d have a bash at the dateChooser, it’s just a healthy interest really in trying to understand how they work, it’ll come in handy one day I guess.
Manny
Ok like I said no bells and whistle’s, just a very crude file, the main code is credited to the name in the comments in the .fla a little bit of CSS has been added, if anybody expands on this please let us all know and post it. (must have flash 8 pro for it to work)
Hi Manny,
Thanks for sharing that. I'm pulling it apart now. Very interesting. Still don't like the 50 Kb file size but that's me going back to dial up days ~ perhaps I need to rethink a bit on this but I still loathe Flash starts that have a pre-loader.
I still haven't found how to enlarge the date text.
Egg, you can change the pale green to any color your like without the need of coding (forgot how to do it though).
Mannym have you tried http://www.kirupa.com/ ? Lots of tutorials and ready-made scripts.
Hi Availor, yes I use Kirupa it’s a very useful site indeed, oh and thanks for removing that post for me.
Egg
I can’t seem to set it too, I think it might have to be done via the _global.styles.DateChooser.setStyle section and then it sets a default sizes that are relative throughout (well that’s what the help menu seems to suggest) but as the header date text and week day text has been set elsewhere it maybe conflicting, just an idea. I'm not to happy about the 50kb size too, but say you were going to use something like this on a full flash size the section could always be loaded in dynamically
If you find a solution let me know
Cheers
Manny
What post? :confused: Egg?
Anyhow, you have these links. You can dowload some scripts for free, and some for very little cost.
http://www.scriptsbank.com/Flash/index.html
http://www.tufat.com/index.php
EDIT; oh and by the way, you can use flash cms for flash developers http://flashblocks.com
Thanks for those links Availor....bookmarked
any success on this one Egg with the date size?
Manny
Did a search on actionscript.org and came up with the following;
26 is way to big but it does change the date size. 17 seems to be the maximum.Quote:
myDC.setStyle("fontSize","26")
myDC.dateDisplay.setStyle("fontSize","12")
Really you need another piece of code to alter the button size behind the dates.
I find these components end up making more work than they cure.
Anyway just drop the code above on the end of your own code to see that it does in fact work. Hope you can make more of it than I did.
Egg
Nice one Egg,
I tend to agree with your take on components. I wonder if the button size behind the dates can be changed by fiddling with the skins, I’ll let you know if I have any success.
Thanks for the code snippet.
Cheers
Manny,
It just so happens that I need a diary for a site I'm working on. You can see the current state of play HERE
It's nowhere near complete, just 1 month at present, but once it is I'll send you a copy.
Sorry for the delayed response Egg. Been having a few senior moments of late:)
Looking good though, the calendar is so much more legible than the flash component one, or is that the comonent skinned?, look forward to seeing the finished article and looking at the way it’s coded.
Nice one
Manny,
No it doesn't use the dateChooser so everything can be edited and enlarged etc if required.
Here's the almost completed diary
And here's the Edit Page to add/subtract events.
Thats a great piece of work Egg. I wouldnt mind a pick through that to see how you got it all working.
You make some good applications.
Weldone fella
Hi Manny,
I sent you a PM. Did you receive it?
Yep i did, i've sent you an e-mail
Thanks Egg