![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 5
OS: xp
|
allowing user to edit text in Flash site
Hi, I'm really stuck on something so I hope anyone can offer some direction here...
I have developed a Flash site for a customer and they really like it but they want to be able to edit/update the text on three of the pages without having to use Flash. Right now, I have those three pages set up as Static Text and I've been making their updates myself by opening the .fla file and literally typing the new text in. Is there a way to set up an HTML or text file that they can use to type the text in themselves and then have that text automatically display in the Flash site? Any help would be great! |
|
|
|
|
|
#2 (permalink) |
|
TSF Enthusiast
Join Date: Jul 2007
Location: Northampton, UK
Posts: 756
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)
|
Re: allowing user to edit text in Flash site
Hey, there are 2 ways to go about this, they're quite similar they differ slightly with the actionscript you'd need to use:
Both would need you to change the static text types to dynamic text. - Do that first and give the dynamic text box an instance name ending in "_txt". Method 1) Set up the flash so it reads in a variable from a text file then puts that in the dynamic text box. To do this: Code:
- create a text file in the same directory as the site and call it something like "paragraph.txt" (or something more descriptive)
- Within that text file type "paragraph=Blah blah blah your paragraph to insert goes here"
- Within flash add the following actionscript where you want the text to load into the dynamic text boxes:
//define a loadvars object
myParagraph = new LoadVars();
//define its onload handler
myParagraph.onLoad = function() {
//set the text of paragraph_txt(the dynamic text box) to the variable
paragraph_txt.text = this.paragraph;//here paragraph is from the text file (paragraph=)
};
//load the text file
myData.load("paragraph.txt");
There are some amazing flash tutorials on XML here: http://www.gotoandlearn.com/ Post back if you need more help. Cheers, Jamey
__________________
If i refuse you help because of forum rules don't have a go at me, i quite like this forum and do not wish to get kicked off it. However, if i refuse you help because of some moral issue feel free. Jamey |
|
|
|
|
|
#3 (permalink) |
|
Mentor
|
Re: allowing user to edit text in Flash site
another way to for the customer to edit the files without messing anything up is using adobe ontribute. You can set it up the customer can only access what you want them to access. You may want to check this option out.
http://www.adobe.com/products/contribute/
__________________
![]() Do not feed the trolls. |
|
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Feb 2008
Posts: 162
OS: Vista
|
Re: allowing user to edit text in Flash site
PHP Code:
|
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Jul 2008
Posts: 5
OS: xp
|
Re: allowing user to edit text in Flash site
Thank you everyone for your suggestions. Unfortunately, I can't get any of them to work correctly though. :( For some reason, only the first three lines of the text file are displayed in the dynamic text area of the Flash page. Any idea why this would happen?
I really appreciate any help with this! The client wants it done by the end of this week. |
|
|
|
|
|
#6 (permalink) |
|
TSF Enthusiast
Join Date: Jul 2007
Location: Northampton, UK
Posts: 756
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)
|
Re: allowing user to edit text in Flash site
Could you post the code/a link to the site?
Cheers, Jamey
__________________
If i refuse you help because of forum rules don't have a go at me, i quite like this forum and do not wish to get kicked off it. However, if i refuse you help because of some moral issue feel free. Jamey |
|
|
|
|
|
#8 (permalink) |
|
TSF Enthusiast
Join Date: Jul 2007
Location: Northampton, UK
Posts: 756
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)
|
Re: allowing user to edit text in Flash site
Hey, you'll have to post the source to the flash file...
Cheers, Jamey
__________________
If i refuse you help because of forum rules don't have a go at me, i quite like this forum and do not wish to get kicked off it. However, if i refuse you help because of some moral issue feel free. Jamey |
|
|
|
|
|
#10 (permalink) |
|
TSF Enthusiast
Join Date: Jul 2007
Location: Northampton, UK
Posts: 756
OS: Win Vista Home Premium & Ubuntu Hardy(8.04)
|
Re: allowing user to edit text in Flash site
lol, open the .fla, show us what actions are occuring, or just upload the .fla
__________________
If i refuse you help because of forum rules don't have a go at me, i quite like this forum and do not wish to get kicked off it. However, if i refuse you help because of some moral issue feel free. Jamey |
|
|
|
![]() |
| Thread Tools | |
|
|