Hi All and Happy New Year,
I am having trouble constructing dynamic text fields that need to be updated for a real estate site.
First of all it will not read or render html when it reads the txt. file.
Second i need to update 10 seperate fields at the same time and I am not sure how to go about it especially putting a preloader into it.
Any help would be great
Post your fla, so we can see what you’re talking about. =)
not sure about the rendering HTML, I’m just kinda starting this myself, but as for the fields, you can put as many as you want (text areas) and use the same txt file. All you have to do is change the Var: in each text field … then have and & in between each one.
Ex: name=Mary&home=Atlantis&birthday=September 12, 2005&listing=4 bedroom, two and half bath, balcony view of the Sarah Desert&price=$1,500,000
Those &'s in the dynamic tags are nice, makes it easy. But what if there is an &(ampersand) that’s supposed to be in the text itself. For ex: if someone were to write a Perl tutorial and had something like …
"#!/usr/bin/perl
"&“hello;
sub hello
{
print “Hello”;
}”
… the text that it dynamically updated ends at the & and will not scroll or show up past that point. Is there a way around this? kinda like a delimiter(sp?) in c … using the \ symbol?
P.S. … I just found this site, and I think it’s awesome … lots of good info on here. Cheers
Using MX?
Read in the vars (as above), assign to textfields using
textfield.text=var (so you need to name each instance!), not with the variable you could assign in property inspector to each!
Thnx, will have to try that when I’m a little more sober … Cheers, and Happy New Year !
I found the solution to what I was trying to do. Basically, all you have to do to put in those symbols is the % character and a number. For example, to load an & symbol, you would but %26 in your text file. there is a list of them on http://www.macromedia.com/support/flash/ts/documents/url_encoding.htm . Just thought I’d share this in case anyone else was having the same problems and/or looking for some help.
Cheers,
—Dax