Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / March 2006



Tip: Looking for answers? Try searching our database.

Flash Data Newbie needs data help please

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
snurg - 25 Mar 2006 17:14 GMT
Hi, I am a newbie to using dynamic data in Flash

I am building a site for a client that will have a News
section, where news text will live inside a ScrollPane
and I need to set up the RIA in a way for the company
to update this news text down the line, without them
having me re-authoring it in Flash

What is the simplest, most pain-free way for me to do
this without doing complex database work and do I
need to see if their ISP has specific data/server specs
to facilitate this?

thank you:confused;
ebob - 29 Mar 2006 16:58 GMT
The only way I can think of to accomplish this without a database involves
loading variables from an external text file. Look up the documentation for
Load or LoadVars in the help files.

The result will be one of three things:
1) You will have to peridically update the text file for your client (for a
maintenance fee, of course)
or
2) Your client will have to have ftp access to the site and be trained on how
to update the text file and upload it themselves. This can be dangerous unless
you have a web savvy client.
or
3) You can create an html form that will post to a perl script in your cgi-bin
that will update or overwrite the text file. You may be able to modify an
existing perl script or write your own. This is the most autonomous solution.

Here is a basic example of how to load the variables into the movie.
// Create LoadVars Object
_root.externalVars = new LoadVars();
// After Variables Have Loaded, do this. . .
_root.externalVars.onLoad = function() {
 // If you don't need to perform anything after the text loads just delete the
onLoad part.
};
// Load Variables for this section. Change myText.txt to the path and name of
your text file.
_root.externalVars.load("myText.txt");

Then you can access the variable in _root.externalVars something like this:

myTextBox_txt.text = _root.externalVars.myText

You must format the text file (myText.txt) as:
myText=BlahBlahBlah&myOtherText=BlahBlahBlah&myOtherOtherText=BlahBlahBlah

The initial variable in the text file doesn't need a '&' in from of it, but
every other variable you declare in the text file will need a '&' in front of
it.

Hope that is helpful.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.