View Full Version : funky random text file not wraping words around
Hello there,
I have this random file here which pulls text from a file
http://www.actionscript.org/forums/attachment.php3?s=&postid=172471
but have the problem of if you put a long text line in the text file of the words dont' wrap around onto the next line. Could anyone help? - The text currently just trails off the screen. I've tried messing with it and am pretty sure it's not as simple as just modifying a simple text box.... I just want to put long sentences in and have them wrap nicely onto the next line
thanx for any help!
Q.a.Q.a.
tenoch
12-01-2003, 02:06 PM
:D Patience is a virtue...
Set the Line type of the text field to Multiline in the Properties Inspector in Flash or with AS:textField.multiline = true;
textField.wordWrap = true;
:)
Thanx for the reply friend. I think Patience and Persistence have to go hand in hand!
Ok, i done that for each text field in the properties meny - setting it to multiline but it's still not wrapping round. Am i doing something wrong?
Thanx!
tenoch
12-01-2003, 03:30 PM
Hmmm... Mysterious... :)
I'm not totally sure, but I think the text fields need to have enough lines before they start wrapping text.
Try using textField.autoSize = true; if they are only one line and see if that helps.
Hey tenoch,
No luck again :( Maybe im doing something wrong. Thanx for the replys though, was nice of you.
Anybody else want to look at the file?
Thank you for a reply.
I’ve been through the whole script. 1: I am new to action script, 2: to make things worse its written in Italian.
From my very limited knowledge, it looks like its working on some coordinate system, but I am not sure, which is why im posting, as when I’ve toyed around before with making flash files, text is no problem at all, which leads me to believe this is a simple problem. I don’t know at the end of the day, this is why im posting so an expert can look at it and decide in a second what it is and either fix it, or tell me how to.
>Please stop bumping your thread...
I hope that gives some reason to why I am bumping the thread, - I am really new to actionscript and at a brick wall.
Ive looked at the forum rules for posting and it says state your problem clearly. I feel I have done that. The problem is simple. – I want to somehow make the text wrap onto the next line.
Thanks.
CyanBlue
12-26-2003, 01:59 AM
The way I think, the reason why you were not getting any help is because people thought that you are just a freeloader who does not want to learn anything... If you have any intention to learn something, you'd start asking what the code in that script might be doing so that you will know what you are dealing with... and of course, bumping the post sorta ticked me off... :(
Well... Merry Christmast and hope this is what you want... ;)
Replace the script in frame 3 with this one... and see if this is the effect that you are looking for... i++;
dep++;
mc = "nuovo" + dep;
duplicateMovieClip("lettera", mc, dep);
_root[mc].animazione.testo = substring((_root["poople"]), i, 1);
lineChar = (i - 1) % 10;
if ((i - 1) % 10 == 0)
{
lineNum++;
}
_root[mc]._x = 200 + ((lineChar) * 20);
_root[mc]._y = y + 30 * lineNum;
Hello there CyanBlue,
thank you for being honest, and also replying with a solution!
I admit, im a complete begginer at flash....i usually create sound, not websites, but can't afford the help. I am learning bits as i go along though and probably im not as into it as most of the people here, which is why im asking for help.
I think i am understanding code. From a quick look;
"lineChar = (i - 1) % 10;
if ((i - 1) % 10 == 0)"
Is controlling the length of the line of text
"_root[mc]._x = 200 + ((lineChar) * 20);
_root[mc]._y = y + 30 * lineNum;"
Must be the x/y coordinates of the actuall txt. I think the root is bit is where it's looking to get the file from. Also, messing around with it i saw that the 'linechar' has a 'squash' value of of txt.
Still working on it though!
All the annotation was italian which bugged me as a newbie, as i think i was in too deep with this script, but hey, how do you learn.... Im really at the tweening stage so far where thats advanced enough for me!
I was bumping as i see the NET as a pool of information sharing. I have contributed review, tech help, hardware help, even guitar tabs and feel that bumping it was just a little give and take for me. I just hope this helps someone else also.
Anyway, i will persist with the learning, and thanx for the christmas pressie CyanBlue! :D
Seriously, if there is any audiohelp i can offer, i will be happy to. Just mail.
Regards!
Q.a.Q.a.
CyanBlue
12-26-2003, 06:37 PM
Glad we have cleared out the small misunderstanding part... :D
Hey, you are not that bad at understanding the script at all... You should really spend some time alone with the Flash rather than playing with the music... (Just kidding...) But I think you can improve alot if you try... I can see that... ;)
That _root is... The base of the Flash movie or the main timeline of the Flash movie... Everything starts from there... Let's say that you have two movieclip on the main timeline one being called box1_mc and another one being the circle1_mc... Both of them are on the main timeline which is basically the screen where you see when you have 'new' movie from the menu... In that box1_mc, you have another small circle called circle2_mc, and you have box2_mc inside of the circle1_mc...
Then this is how you reference those via ActionScript..._root.box1_mc.circle2_mc
_root.circle1_mc.box2_mcand you can trace out the _x property of each movieclips like this...trace(_root.box1_mc.circle2_mc._x);
trace(_root.circle1_mc.box2_mc._x);I know this won't give you the full picture of this path system, but go ahead and read the Path related tutorial from the Tutorials section of this site... I am sure you will learn alot from it... ;)
ah, thanx! :) Im trying to get it. That helps loads for me though it may be simple to you. It's just that this move is soo big for me! I usually dont have 'little movie's within movies which confuses things for me. To many global variables and whatnot. It's probably the same as learning audio input/ouput routing with aux effects in sequencers ;)
Though, sorry to dissapoint, but i'd rather play with sequencers and samplers than flash :x :D
Will check out that tutorial
Thanks for the sharing of info, take care for now!
CyanBlue
12-26-2003, 07:43 PM
Hehe... I know what you mean by that... ;)
I have gotten one mic mixing or recording box from the DigiDesign a while ago and it still is in the box... and I don't think I'll ever open that one and play with it myself... Sorta same thing I guess... ;)
Yup... No problem at all... Stop by anytime... :)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.