PDA

View Full Version : using <textformat> with indent in textfile?


Paul Ferrie
07-02-2006, 12:37 PM
Hi guys,
i am trying to set the indent on some text that is being loaded into flash from a textfile

<li>Flash debugging</li>
<br />As any flash coder will know the problem is always simple but never obvious.<br />
You post on the forums and sometimes you don't get an answer for days. <br />
A day can be wasted easily scouring through code looking for that error.<br />
You send us your files and we will find the error. Comment that error pointing out<br />
were you went wrong. Not forgetting fix the error and comment relevant changes.<br />
<li>Image optimization</li><br />
The biggest part of any site wether it be flash or HTML is the image. Images on your site <br />
are what make your site. Here is an example of what can be accomplished. <br />
<li/>No hair left to pull out!!!</li><br />
Had enough? Flash got you pulling the last of your hair out? Deadline looming?<br />
Or just want to get it finished and move onto and move onto the next project?<br />
Send us your Fla's along with information on what is required to see the project<br />
finished and we will do what we can to get that deadline met.<br />

i checked flash help files about using indent but it has no info other than to say that you can use indent. no examples nothing, only <textformat>
How can i have the indent in flash as it is in this post.

thanks
Paul

pan69
07-02-2006, 12:52 PM
Well I guess, you're putting extra spaces and tabs in your text. How is Flash supposed to know you're not intended this?

Paul Ferrie
07-02-2006, 12:55 PM
Well I guess, you're putting extra spaces and tabs in your text. How is Flash supposed to know you're not intended this?
Exactly:rolleyes:
So how do i do it?

pan69
07-02-2006, 11:04 PM
Two options:

1) Don't put them in there.
2) Write some elaborated actionscript function that can read your mind.

Paul Ferrie
07-02-2006, 11:09 PM
Got the answer from some peep on flashkit

<textformat blockindent="30">
text to have indent 30 points
</textformat>

pan69
07-03-2006, 12:07 AM
Ah, sorry mate. I interpreted your question in a different way. I though you wanted to get rid of the extra tabbing and spacing you've put in the original xml file. Sorry, I was completly useless... :o