PDA

View Full Version : separating dynamically loaded text



hsadan
May 7th, 2003, 08:32 AM
Is it possible to call different data from a same text file?

in the tutorial about the dynamically loaded text, the example was "kirupatext=" and the text was loaded from after that in the txt file

is it possible to make it stop loading after a certain point? for example,
"
kirupatext=
Hello There!
I am an example of text that has been loaded from a separate location on kirupa's server.
Best of all, notice that you can scroll the contents of the text up and down by clicking on the arrows. This is a nice, useful feature that you can use on your site.
"

how can i make it load only up to "Best of all"?
is it possible to break up the text into 2 parts so that they are loaded by different text boxes? i tried adding another marker like "kirupatext2=" at another point, but it just gets loaded along with the first "kirupatext=" :-\

I hope u get what i'm asking
thx =)

kode
May 7th, 2003, 08:38 AM
separate each variable in the .txt with &. ;)

ie. &kirupatext1=hello&kirupatext2=bye

hsadan
May 7th, 2003, 08:59 AM
thanks :)

kode
May 7th, 2003, 09:04 AM
no problem, hsadan. =)

hsadan
May 7th, 2003, 09:11 AM
hey uh any other way? cos like my txt file is now very loooong....

"name=dinousaur name&family=family name&TimePeriod=(example)Jurassic&DietaryType=(example)Carnivore&Size=(example)up to 10 metres long&weight=(example)1~3 tonnes&other=other facts (eg location found, breif description, what name means)&" :P

kode
May 7th, 2003, 09:19 AM
you could use

&name=dinousaur name
&family=family name
&TimePeriod=(example)Jurassic
&etc=etc, etc etc.

but once the .txt is loaded into flash, the variables would have a carriage return \r and a newline \n at the end.

ie. name would be equal to "dinousaur name\r\n". :-\
of course, it won't be visible, you would just have some extra new lines.

hsadan
May 7th, 2003, 09:22 AM
oh ok...
working on a project, have to issue jobs to my members to do - and probably they might not get it done too well if it's so disorganized :-/

hsadan
May 7th, 2003, 09:24 AM
hm...anyway to prevent "text scrolling" by highlighting?

mjULTRA
May 7th, 2003, 04:31 PM
try turning of the higlighting feature for the dynamic text in flash. its in the properties box (MX), and it looks like 'Ab' with the b highlighted. turn it off and then test.. hope this helps..