|
-
ANYBODY MAN ENOUGH TO HELP???
Hi I have a text field with(multiline and wordwrap)...What I want is that when a user clicks a button the text should appear on the 1st line of the textfield ...when clicked again it should appear on the second line of the textfield.. and so on..
In short with every click.. the desired text should appear on a new line in the textfield
Thanx
Urgent pls help
-
MJA Studio 2003-04 (MX ReaLM)
not really gettin wut you mean ... if you just extract wut you sayin it might be easier ...
smell yah ...
but if it means ...
that you have the text feild in your movie ..
and you want a highlight to move over the movie with user clicks this would be clear .. i dont know but you can do this as the way am thinkin abt it now ...
(( i didnt really debug the code ))
get the hieght of a text bar ( one line text bar ) with the font size you desire ...
then set a highlight movie clip and name the instance ..
okik ...
for example .. (MCinstance)
then set the button where ever you want,
and add this code in it
on (realease) {
firstline = " the y position of the first line in the text field or bar ";
endline = "the y position of the last line of the text field/bar";
if (_root.MCinstance._y < endline){
_root.MCinstance._x = _root.text._x
_root.MCinstance._y = _root.MCinstance._y + ("the hieght of the one line text bar");
}else if (_root.MCinstance._y = endline ) {
_root.MCinstance._y == firstline;
}
it should work this way i guess
if this is wut you want .. or make it a little more clear ..
smell yah
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|