This content has been marked as final. Show 8 replies
You could do it either way, depending on whether you want the server date or the local date (they can be different by a day depending on where you are in the world!). It would probably be easiest if you were doing it from the server to pass it in as a flashvar.
But its even easier inside flash (NOTE : This is as2 code). Try pasting this code on the timeline. I think it will do something like what you need.
Very many thanks for your time.
Actions Script would remove the need for an external .asp file which probably makes things easier. I have come across this before about pasting code on the timeline, but what does it mean? How can I paste code there? The date would need to be visible throughout the site. Do I create a Dynamic Text box at the top of my page and paste your script into Action Script? I don't think that is what you mean, do you?
I'm gateful again for your help and apologies for my naivete!
to try that code, just do this:
(if you're using CS3, choose Flash File actionscript 2 )
1.click on the first frame in the timeline, so you see it selected.
2. in menu, choose Window-->actions
3. paste that code in there
4. Ctrl-Enter to test Movie
If you have a textfield that is 'Dynamic' that you put on stage manually, and you give it the name 'dateField' in the properties panel, then you can remove the line it that code that starts with 'this.createTextField...'
Many thanks again for your message.
I decided to crate a new layer, then a dynamic text box, input dateField in the 'instance name' field and then copied and pasted your script. I needed to position the text box a little and messed about with a couple of colours and, do you know what?
I'm delighted! It looks great!
Very many thanks for all your help and patience!
Actually I just realised an error with my code.
It will output
Because I was just checking the last digit and didn't think about those exceptions. I just thought about that. I'll fix it and correct the original code above. Give me 5 mins from the time of this post.
OK, no worries. That has happened to me before in VB script.
I'll look out for your post.
I already corrected it above in the original code I posted.