Re: Re: [Flashcoders] weird htmlText problem...

2006-09-11 Thread grimmwerks

Yeah, turns out that it was something simple - multiline I believe.

It's been a VERY long weekend of sleepless coding.
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] weird htmlText problem...

2006-09-11 Thread GregoryN

Seems this problem is quite the same as I described  recently in my
"Textfield optimizes itself in a weird way" thread in August. It was
about Flash eating out the space between  or  etc tags...

I've ended up considering it as a bug and created my own
"optimization" (based on split().join() ) .

Also, in my case a guy named "m-e-" wrote that this bug appears only
if you publish SWF from Flash MX 2004. He said that if you publish in
Flash 8 and then play in Flash Player v8.0.22 or later, the bug won't
appear...
However, I didn't tested all this, as I prefer to create a work-around
in such a case :-).

  

-- 
Best regards,
 GregoryN

http://GOusable.com
Flash components development.
Usability services.

> === grimmwerks wrote:
> 
> Ok, I've got a class that I've used that all it does is take in a
> string of htmlText, create a textfield and apply it. But something is
> happening that is killing the text for some reason;
> 
> If I send INTO the function this htmlText:
> 
>  FACE="QuadraatSans-Regular" SIZE="30" COLOR="#00"
> LETTERSPACING="0"
KERNING="0">>whatever> SIZE="30" COLOR="#00" LETTERSPACING="0"
KERNING="0">>man
> 
> A textfield is created and applied, but then it turns into:
> 
>  FACE="QUADRAATSANS-REGULAR" SIZE="30" COLOR="#00"
> LETTERSPACING="0" KERNING="0">WHATEVERMAN
> 
> and I can't figure out why.


___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] weird htmlText problem...

2006-09-11 Thread Kenneth Kawamoto

At least you need to add this:

mTitle.multiline = true;

--
// Kenneth Kawamoto (on the road)
// materia prima limited
// [EMAIL PROTECTED] 
// www.materiaprima.co.uk 


Ok, I've got a class that I've used that all it does is take in a
string of htmlText, create a textfield and apply it. But something is
happening that is killing the text for some reason;




___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] weird htmlText problem...

2006-09-10 Thread grimmwerks

Ok, I've got a class that I've used that all it does is take in a
string of htmlText, create a textfield and apply it. But something is
happening that is killing the text for some reason;

If I send INTO the function this htmlText:

whateverman

A textfield is created and applied, but then it turns into:

WHATEVERMAN

and I can't figure out why.

Here's the code of the function:

function drawTitle(tTxt:String){
title = tTxt.toUpperCase();

if(!mcTxt){mcTxt = myMC.createEmptyMovieClip("boxes", 5)};

var tR:Rectangle = new Rectangle(0,0, 250,50);
if(_global.gApp.elements.length<5){
var tOffY = 350;
}else{
var tOffY = 175;
}

var tOff:Point = new Point((myRect.xMax-tR.width), 
(tOffY-tR.height));
tR.offsetPoint(tOff);
// have to draw textField and make set width, extend bottom
// then move up so bottom hits the correct bottom box,
// then decide to draw 50 or 75
var mTitle:TextField=mcTxt.createTextField("mc_title", 7, 
tR.x+22,
tR.y-14, 214, 0);
mTitle.embedFonts = true;
//mTitle.setNewTextFormat(_global.gPrefs.tfTitle);
mTitle.autoSize="right";
mTitle.html = true;
mTitle.htmlText =title;
___
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com