Basically, i want to make an expiration component that
I can reuse. I just would like to have something to
expire my drafts when I send them out. Nothing at all
fancy or even secure.

Now, I'm having smashing success making simple
components in Flex for login and email panels (the
livedocs and other blogs have clear examples of
those). But because I'm used to AS 2.0 and a timeline,
I'm having trouble with what I know is a baby project
(beneath everyone here).

In Flash, I used to use simple code from LA Flash with
the timeline:

theDate = new Date();
if (theDate.getFullYear() >= 2007) {
if (theDate.getMonth() >= 1) {
if (theDate.getDate() > 4) {
gotoAndPlay("expired");
}
}
}

But I am lost in Flex and AS3. I'm not sure what
packages to import, whether the vars should be public
or private (or even how to state them, really), or
what should be placed in between the mxml tags. I
figure I will need a base state and an expired state
for my component, but getting there has been really
uphill.

Any help would not only be helpful, but also quite educational/merciful.

Reply via email to