Ask a Question related to Macromedia Director Basics, Design and Development.
-
greenshot #1
[DIR MX] - list & text line ..
i 'd create a list that count the number of lines in a textfield and keep
the result :
oldlist=[]
textlisted = string (member("texte a lire field").text)
linelist = the number of lines in textlisted
repeat with i= 1 to linelist
oldlist.add(i)
end repeat
put oldList
so it gives a series of num : [1, 2, 3, 4]
then i made a random function and create a newlist to keep results :
so for newlist it gives : [2, 1, 4, 3] -- or an other order
what i want now is changing the line order of my textfield to change the
text; but i m loosing with comparison versus list and line (num)...
any help to solve that please ?
greenshot Guest
-
Multi-line TextBox - Paste text with numbered list, bullet list, tab character
Hi All, I need a server control that's exactly like a multi-line TextBox, but also allow users to paste text with numbered list, bullet list, and... -
remove green line around list component
How can I remove the green line around flash object like buttons, text fields and data component I have a list component that keep on displaying... -
text line spacing and line tool
1.) Using InDesign 2.0.2 - When aligning text (in one particular text frame)to a base grid, the text will always skip one line even though the base... -
Can you make list boxes wrap text so information goes onto the next line?
Can you make list boxes wrap text so information goes onto the next line? instead of keep going past the outside of the width of the box. cheers 4... -
list to line up 3d models
hi, i am getting a error 'handler not found in object' this is the script, it a parent script and what i am trying to do line up the models by... -
Rob Dillon #2
Re: [DIR MX] - list & text line ..
If I'm reading you correctly, you want to change the order of the lines
of text in a text or field member based on a randomized number list. If
that's the case then how about something like this:
----------
on randomizeText theMemberName
tempString = member(theMemberName).text
thisLineCount = member(theMemberName).line.count
repeat while thisLineCount > 0
thisLine = random(thisLineCount)
tempString2 = tempString2 & tempString.line[thisLine] & RETURN
delete line thisLine of tempString
thisLineCount = thisLineCount - 1
end repeat
lastLine = tempString2.line.count
delete line lastLine of tempString2
put tempString2
-- or
-- member(theMemberName).text = tempString2
end
--
Rob
_______
Rob Dillon
Team Macromedia
[url]http://www.ddg-designs.com[/url]
412-243-9119
[url]http://www.macromedia.com/software/trial/[/url]
Rob Dillon Guest
-
-
greenshot #4
Re: [DIR MX] - list & text line ..
----------
on randomizeText theMemberName
tempString = member(theMemberName).text
thisLineCount = member(theMemberName).line.count
repeat while thisLineCount > 0
thisLine = random(thisLineCount)
tempString2 = tempString2 & tempString.line[thisLine] & RETURN
delete line thisLine of tempString
thisLineCount = thisLineCount - 1
end repeat
lastLine = tempString2.line.count
delete line lastLine of tempString2
put tempString2
-- or
-- member(theMemberName).text = tempString2
end
************************************************** **************************
********
i m also wondering if there is a way to make comparison between the old
order -thisLineCount- and the new one
indeed i would like the user click on the melt line to put it on the right
place
something to deal with "true" or "false" but i don t know how to compare
that
if newline = old line then alert "ok"
.....
"greenshot" <greenshot@wanadoo.fr> a écrit dans le message de news:
bo0sg6$k32$1@forums.macromedia.com...> thanks a lot it works fine ...
>
>
greenshot Guest
-
Rob Dillon #5
Re: [DIR MX] - list & text line ..
You will need to compare the string in line X of the original text to
the string in line X of tempString2. To accomplish that you would need
to make tempString2 a global variable so that you could access it from
another function.
--
Rob
_______
Rob Dillon
Team Macromedia
[url]http://www.ddg-designs.com[/url]
412-243-9119
[url]http://www.macromedia.com/software/trial/[/url]
Rob Dillon Guest



Reply With Quote

