PDA

View Full Version : Quick Question...



dizz
February 5th, 2003, 09:50 PM
Okay I have a movie where i am trying to load variables through a text file.... The dynamic textbox is loacated in a MC named "text" and the instance of the dynamic text box "text", what I forget is how to load the variables from the text file to that area in my movie..

this is what i have in the root frame one:

loadVariablesNum("rock.txt", _root.text.textbox);

but no luck! it works fine when the dynamic text box is in the root but i can't figure it out when it's in a MC?

Any help would be great thanx!!!

kode
February 5th, 2003, 10:11 PM
well .. text is actually a property of a text field .. maybe that's causing the problem

try something like ..
movie clip instance name: textMC
text field instance name: textBox [ which you already have ]

anyway .. i think it's easier with the LoadVars (object)
http://www.kirupa.com/developer/mx/dynamic_scroller.asp


hopi it helps :)

dizz
February 5th, 2003, 10:25 PM
thats works good except all of my HTML formatting got messed up?? any help?

kode
February 5th, 2003, 10:28 PM
nope :stunned:

post your file so i can take a look :smirk:

dizz
February 5th, 2003, 10:31 PM
this is the text file i am trying to load...
before it would parse the HTML now it just skips it???

kode
February 5th, 2003, 10:34 PM
ehmm .. yeah .. and the fla ?? :cyclops:

kode
February 5th, 2003, 10:47 PM
i can't open your file :-\ failed to open document

what's going on here ?? second time it happens today :hair:


here's a fast example .. hope it solves your problem :smirk:

dizz
February 5th, 2003, 10:53 PM
thanx works great i have no idea why mine wasnt workin?
anyways thanx again!!

kode
February 5th, 2003, 10:56 PM
no problem =)

and since i couldn't open your file i don't know either :P

dizz
February 5th, 2003, 11:08 PM
i have one more question how would I be able to align all of the text full/justified... the button on the dynamic text box doesnt work its just stuck on left/justified

kode
February 5th, 2003, 11:27 PM
seems like flash doesn't support it :-\

however ..

<p align="left">
<p align="right">
<p align="center">
are supported ..

dizz
February 5th, 2003, 11:35 PM
what about fully justified?

kode
February 5th, 2003, 11:44 PM
nope :*(

seems like flash doesn't support it

or at leats .. i couldn't get it :(

let me see if i can find a list or something of the supported tags ..

kode
February 5th, 2003, 11:50 PM
<a href="url">
<b>
<font [color="#xxxxxx"] [face="Type Face"] [size="Type Size"]>
<I>
<p [align="left"|"right"|"center"]>
<u>
&lt; (<, less-than sign)
&gt; (>, greater-than sign)
&amp; (&, ampersand)
&quot; (", double-quote)
&apos; (', apostrophe)

nope .. it's not supported. sorry :-\

[ EDIT ]

ehemm .. lol :P it's all messed up

here's the link
http://www.macromedia.com/support/flash/ts/documents/htmltext.htm