-
Hi i was just wondering if someone could give me a consice explanation of how i can have flash 5 display a news page from a text file. The goal I'm trying to accomplish is to have cool effects on the text, or the area surrounding them, but still make the news page of my site easier to update. As it is now, I have to edit my fla and re-publish every time I update the news. I would like to just be able to edit a text file. All I'm doing right now is making the text scroll up and down. You can see at http://www.famine-inc.com , click on [N]ews or hit "n" to get to the news.
Thx.
-AtRoCiTy
-
Ok you are obviously using PHP or ASP or something to do the rest of your site so this is how to do it
get you page to output like this ( or Text file )
News=BlarBlarBlar&Alldone=1
standard querrystring format
then in you movie you do
frame 1
allDone = 0
loadVariables("news.asp");
this calls the asp now we need to wait
frame 2
if (AllDone==1){
gotoAndPlay(4);
}
frame3
GotoAndPlay(2);
these two frames will loop till you get a reply and as AllDone is the last bit if its here eerything else is as well
by frame 4 you now have a new variable called News which can be tied to a dynamic text box
hope this make sence
David
PS if you can use something to generate the page instead of a txt file it works better with proxy servers who chache the text file if there not set up Ok
-
I have a related tutorial on my site. Try it out.
http://www.designshelf.com
Use the ASP on the site, which is a bit different from the code in the .zip file.
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
|