p***@adobeforums.com
2006-12-19 05:11:08 UTC
Hi,
This is related to Terry's posting earlier regarding the 'word processor' function...
I am trying to have an expression determine if a return character exists in the current character being displayed.. If so, I would like it to stop outputting text for a moment, and allow the cursor to blink for a second, and then continue (hence Z).
This is what I have written so far, but I am having a problem with Slider.value, as depending on the length of sourceText, it could end up having 3 characters for every number... So i am just curious how I would solve this mathmatical issue...
var y;
var z;
if (z==null)
{z=0};
if (y!=null)
{z++; y;}
else
{
x=text.sourceText.charCodeAt(Slider.value);
if (x==13)
{y=Slider.value;}
else
{linear(value, key(1).value, (key(2).value)+z, key(1).value, (text.sourceText.length-2))+z;}
}
Thank you.
This is related to Terry's posting earlier regarding the 'word processor' function...
I am trying to have an expression determine if a return character exists in the current character being displayed.. If so, I would like it to stop outputting text for a moment, and allow the cursor to blink for a second, and then continue (hence Z).
This is what I have written so far, but I am having a problem with Slider.value, as depending on the length of sourceText, it could end up having 3 characters for every number... So i am just curious how I would solve this mathmatical issue...
var y;
var z;
if (z==null)
{z=0};
if (y!=null)
{z++; y;}
else
{
x=text.sourceText.charCodeAt(Slider.value);
if (x==13)
{y=Slider.value;}
else
{linear(value, key(1).value, (key(2).value)+z, key(1).value, (text.sourceText.length-2))+z;}
}
Thank you.