-
Special Member
Hi fellow flashers. <----"flashers"(hehe)
I have a section on my site where i put news about me... but i want my visitors to decide
which day of the month they want news on?
*So, I loaded the Variables in my text file
"July.txt"
on to my movie...
*Then the variables in the txt file are something like this:
&july01= I set the school on fire
&july02= I stole a seat from our classroom
&july03= I attended mass
..and so on
*Then I have a Dynamic Text area to load the above values..it's labeled
"news"
*I know i could just set the Variable of the dynamic text field "news" with the corresponding date
news=july01 (expression)
so that the txt field would contain july01 's content.
*But i want my visitors to type in the day of the month they want news on, that's
why i have input text fields labeled "month" and "day".
-----HERE's the PROBLEM-------
*so,now i want to catch and use the user inputs of month and day to set the "news" variable.
*The scripts i tried are somthing like:
news=(getVariable=month) add (getVariable=day)
//expression ofcourse
---i also tried---
news=(month add day)
---actually, i tried a whole bunch of methods---
and the results are either leaving the dynamic text field ("news") blank, or displaying the
freakin values of "day" and "month"
eg. "july01"
I want to know how i can use the visitor's input (month= "july" and day= "01") and make flash understand that "july01" is the variable i want to load from the txt file to the text field "news"
eg. news=july01
I've been trying to figure out how i can do this, but, no luck at all.. i know the answer to this is much simplier than the above question thingy..
Anyone's help will be very much appreciated... (id give ya'll a million dolla's, but aint got that big a piggy bank..... settle for some CREDITS on ma page? Praises if you will!!! Geeesh!)
PS
email me ur reply too..... cool_j3@hotmail.com
MORE POWER TO FLASHKIT!
Tea J
aka Azian Dawg
-
I'm not sure of the syntax, but I'm pretty sure you'll need an eval, so that the month day gets evaluated, rather than treating it as a string. Try
news= eval(month add day)
good luck
-
Special Member
Thanks a lot man.... Il go try this......... get back to ya..... for now, keep em ideas comin aight peeps? cool.... peace
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|