Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: [flasher] RE: problem parsing html/text effect engine
From: olga
Date: Fri, 23 Feb 2001 00:44:22 -0000

Hmm.. you know, I am already loading in using load variables, the problem is
when I loop through and treat each character with an effect, it doesn't
parse the HTML, but treats them as regular characters. So "<" and "i" and
">" all come in loaded as separate characters with their own effect.

Here's the code, being applied to a mc of the letter "a". (It's biggest
flaw other than the html parsing is that is places the letters monospaced,
and most fonts aren't, so the tracking gets kind of off.

frame1:
loadVariablesNum ("./enlightening.txt", 0);
msg = _level.quote;
msgLength = length(msg);
_level0.effect = (random(4))+1;

frame 2:
x = x+1;
if (x>=msglength) {
gotoAndPlay (10);
}
newname = "letter" + x;
if (newname eq "letterx") {
newname = "letter";
}
duplicateMovieClip ("letter", newname, x);
current = substring(msg, x, 1);
setProperty (newname, _x, (GetProperty("letter",_x))+ ((10)*x));
setProperty (newname, _y, getProperty("letter", _y)+nextline);
if (nextline != "") {
setProperty (newname, _y, getProperty("letter", _y)+nextline);
setProperty (newname, _x,
(GetProperty("letter",_x))+((10)*x-((10)*x1)));
}
if (current eq " " && (GetProperty(newname,_x))>250 ) {
x1 = x;
nextline = nextline+25;
}

frame 3:
go to and play 2



----- Original Message -----
From: "Brett Marlin AIGA" <brett [dot] marlinatweberize [dot] com>
To: "flasher from chinwag" <flasheratlists [dot] chinwag [dot] com>
Sent: Thursday, February 22, 2001 4:01 PM
Subject: [flasher] RE: problem parsing html/text effect engine


> You should try loading your text into a blank text bow in a movie clip as
a
> .txt file using the LoadVariables command. Then you can manipulate the
whole
> line of text any way you like. You can even concatenate the text within
the
> .txt and name different string different variables. This way you can have
> one text file with all your desired text.
>
> Brett Marlin AIGA
> Art Director
> Weberize
> 615.301.8398
>
> -----Original Message-----
> From: olgaattwitchy [dot] com [olgaattwitchy [dot] com (mailto:olgaattwitchy [dot] com)]
> Sent: Thursday, February 22, 2001 3:46 PM
> To: flasher from chinwag
> Subject: [flasher] problem parsing html/text effect engine
>
> I think I've found this problem and uncovered another-- I am currently
> running this dynamic text through a dynamic text effect engine. The way
the
> engine currently works is that a mc of one letter is assigned a value
> incrementally according to the quote, duplicated and assigned a particular
> effect. So, each letter is independently filtered into the Flash movie,
and
> I believe why the parsing of the HTML is messed up.. it is actually
> receiving <, i, > rather than <i>.
>
> Is there a better way to apply text effects to dynamically loaded text in
> Flash?
>
> Thanks!
> Olga
>
> ----- Original Message -----
> From: <olgaattwitchy [dot] com>
> To: "flasher from chinwag" <flasheratlists [dot] chinwag [dot] com>
> Sent: Thursday, February 22, 2001 12:13 PM
> Subject: [flasher] problem parsing html
>
>
> > When would this:
> >
> > quote1="If you cannot feed a million people, then feed just one.
> <I>Mother
> > Teresa</I>"
> >
> > display this within the flash text field:
> > "If you cannot feed a million people, then feed just one. I>Mother
> > Teresa/I>"
> >
> > I've tried with and without embedding fonts, and HTML is turned on in
both
> > instances.
> >
> > thanks!
> > olga
> >
> >
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > The Chinwag site carries a wealth of Flash resources.
> > Find useful links, suggested reading and archives at:
> >
> > ** http://www.chinwag.com/flasher **
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > You are subscribed to flasher as: olgaattwitchy [dot] com
> > To unsubscribe, email leave-flasher-479343Datlists [dot] chinwag [dot] com
> >
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> The Chinwag site carries a wealth of Flash resources.
> Find useful links, suggested reading and archives at:
>
> ** http://www.chinwag.com/flasher **
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> You are subscribed to flasher as: brett [dot] marlinatweberize [dot] com
> To unsubscribe, email leave-flasher-479343Datlists [dot] chinwag [dot] com
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> The Chinwag site carries a wealth of Flash resources.
> Find useful links, suggested reading and archives at:
>
> ** http://www.chinwag.com/flasher **
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> You are subscribed to flasher as: olgaattwitchy [dot] com
> To unsubscribe, email leave-flasher-479343Datlists [dot] chinwag [dot] com
>




[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]