Article View: alt.pl.programy.flash-5
Article #34111Problem z getTextExtent
From: biuro
Date: Mon, 16 Apr 2007 13:39
Date: Mon, 16 Apr 2007 13:39
24 lines
1656 bytes
1656 bytes
Witam,
mam problem ze zwymiarowaniem pola tekstowego. Kiedy wszystko robie w
jednym klipie jest ok i taka f. dziala:
var my_fmt:TextFormat = new TextFormat();
with (my_fmt) {
font = "Arial";
bold = true;
}
var tx:String = "test";
var metrics:Object = my_fmt.getTextExtent(tx);
jednak po przerzuceniu tego do osobnego klipu i zaladowaniu go do
glownego poprzez:
_root.WLASCIWOSCI_TEKSTU.loadMovie("tekst_menu.swf","_root.WLASCIWOSCI_TEKSTU","POST");
glupieje i w Debugerze mam same 0 jako wartosci metrics
co moze byc przyczyna ? kod przeciez ten sam a zmienne lokalne
pozdrawiam
Piotr Ufel
Technical Details
Message-ID:
<1176730775.451945.73920@n76g2000hsh.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!n76g2000hsh.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!n76g2000hsh.googlegroups.com!not-for-mail From: biuro@complex-spo.pl Newsgroups: alt.pl.programy.flash-5 Subject: Problem z getTextExtent Date: 16 Apr 2007 06:39:35 -0700 Organization: http://groups.google.com Lines: 25 Message-ID: <1176730775.451945.73920@n76g2000hsh.googlegroups.com> NNTP-Posting-Host: 89.79.82.58 Mime-Version: 1.0 X-Trace: posting.google.com 1176730775 24073 127.0.0.1 (16 Apr 2007 13:39:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 16 Apr 2007 13:39:35 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: n76g2000hsh.googlegroups.com; posting-host=89.79.82.58; posting-account=yr55Ag0AAABhPDGFb6w160YbFtzHKCWc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit