Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
-
Increasing partition size
Hi, I have a Windows Server 2003 server. I was wondering, if I add hard drive space to the server, can I increase the size of the C: drive... -
Increasing ppi with out increasing the size of.....
the image. how do i increase the ppi with out affecting the size of the image. for ex. if i have an image set at 5 in x 7 in and the ppi is at 175,... -
Why are my .eps files increasing in size?
Eps files that were originally made in Freehand and are around 41k in size or increasing to 600k just by saving them from Illustrator CS to another... -
File size increasing with versions?
I just exported a FH10 file that was 228k to FH9 and it turned into 72k. Anyone know what gives? That is a sizable difference. Would it be even... -
Increasing font size gets blocky
Hi, Newbie! I have created some text with no fill. I have exported this text as a png file to Swish for flash animation. It sits on top of... -
ntsiii #2
Re: Increasing Text Size in HTML
Can you explain what you want in more detail? I do not know what "zoom in a browser" means.
Tracy
ntsiii Guest
-
slaingod #3
Re: Increasing Text Size in HTML
I think he means using the WebKit component, how do you do a text sizing zoom. I don't know the answer off the top of my head.
slaingod Guest
-
ntsiii #4
Re: Increasing Text Size in HTML
Ah, thanks. I missed that this was AIR. I can't help there.
Tracy
ntsiii Guest
-
ab1301 #5
Re: Increasing Text Size in HTML
Yeah, I am talking about an Air application. I am displaying html files in an
mx:HTML component. The text displayed in the Air application seems small. I
would like to make it bigger, without altering the html files.
ab1301 Guest
-
ab1301 #6
Re: Increasing Text Size in HTML
Attached is my solution to this problem. I call the function on the html's
locationChange event. Its really hacky, and it doesn't work perfectly, but I
can't waste any more time trying to figure this out. There has to be a better
way to do this: #1, I shouldn't have to go into the style sheets in the actual
html document to enlarge the text rendered in the AIR app. #2, even if I do,
there has to be a better way of doing it than regexp.
In the Flex 3 Help, there is a page titled "Manipulating an HTML stylesheet
from ActionScript," but that only addresses changing already existing CSS rules
using their index numbers. This assumes that the document you are viewing has
CSS rules to begin with, and that you already know the index number for the
rules you want to change. There is a cryptic statement at the end of the help,
which says "Keep in mind that code can add styles to the page after the
HTMLLoader object dispatches the complete event." It would be nice to see some
examples or explanation of how to do this.
public function htmlEnlarge(target:HTML):void {
var searchstr:RegExp = new RegExp("<html>", "i,s")
target.htmlText = target.htmlText.replace(searchstr, "<html><style>body
{font-family:Georgia;font-size:125%}</style>");
}
ab1301 Guest



Reply With Quote

