請問TextField的問題

0 views
Skip to first unread message

Hoskie

unread,
Jan 28, 2010, 11:41:39 PM1/28/10
to 台灣 Adobe 使用者俱樂部
大家好:

請問這個fla為什麼發佈後文字是空白的? 是否有什麼地方有問題?

連結 http://union.wtuc.edu.tw/~japanese_u/temp/button.fla
謝謝

zhang yisong

unread,
Jan 29, 2010, 12:13:58 AM1/29/10
to au...@googlegroups.com
会不会是没有嵌入字体?
或者文字是经过旋转的?

2010/1/29 Hoskie <skin...@gmail.com>

--
您收到此郵件,是因為您訂閱了 Google 網上論壇的「台灣 Adobe 使用者俱樂部 」群組。
如要在此群組張貼留言,請寄電子郵件至 au...@googlegroups.com
如要取消訂閱此群組,請寄電子郵件至 augtw-un...@googlegroups.com
如需更多選項,請造訪此群
組:http://groups.google.com.tw/group/augtw?hl=zh-TW?hl=zh-TW

Ticore Shih

unread,
Jan 29, 2010, 12:34:38 AM1/29/10
to au...@googlegroups.com
word_txt.width = str.length * bassWidth;

這行有問題~~ 拿掉就正常了


2010/1/29 zhang yisong <ason0...@gmail.com>



--
Ticore's Blog
http://ticore.blogspot.com/

Hoskie

unread,
Jan 29, 2010, 12:54:09 AM1/29/10
to 台灣 Adobe 使用者俱樂部
謝謝Ticore:

我也剛發現這個問題,趕快上來回覆。因為QButton裡面的function讀到bassWidth是0,所以乘出來的寬度也是0所以
word_txt.width的寬度變成0也就看不到字了。

可是奇怪的是,明明bassWidth是指定成14,但是function就是讀成0。再研究看看。 謝謝您的回覆。

On Jan 29, 1:34 pm, Ticore Shih <shih.weil...@gmail.com> wrote:
> word_txt.width = str.length * bassWidth;
>
> 這行有問題~~ 拿掉就正常了
>

> 2010/1/29 zhang yisong <ason0356...@gmail.com>
>
>
>
> > 会不会是没有嵌入字体?
> > 或者文字是经过旋转的?
>
> > 2010/1/29 Hoskie <skinor...@gmail.com>
>
> > 大家好:
>
> >> 請問這個fla為什麼發佈後文字是空白的? 是否有什麼地方有問題?
>
> >> 連結http://union.wtuc.edu.tw/~japanese_u/temp/button.fla<http://union.wtuc.edu.tw/%7Ejapanese_u/temp/button.fla>

Ticore Shih

unread,
Jan 29, 2010, 12:58:41 AM1/29/10
to au...@googlegroups.com
初始化順序的問題
要寫成組件的話,就不應該把 member 寫在 timeline 上
應該另外建立 AS3 Class ~

2010/1/29 Hoskie <skin...@gmail.com>

Hoskie

unread,
Jan 29, 2010, 1:32:38 AM1/29/10
to 台灣 Adobe 使用者俱樂部
我發現結果是QButton還沒初始化完成前 word_txt.width = str.length * this.bassWidth; 就先執
行所以是0。
如果等個一下再執行 word_txt.width = str.length * this.bassWidth; 或是強迫這句前給
bassWidth值就可以了。

On Jan 29, 1:34 pm, Ticore Shih <shih.weil...@gmail.com> wrote:

> word_txt.width = str.length * bassWidth;
>
> 這行有問題~~ 拿掉就正常了
>

> 2010/1/29 zhang yisong <ason0356...@gmail.com>
>
>
>
> > 会不会是没有嵌入字体?
> > 或者文字是经过旋转的?
>
> > 2010/1/29 Hoskie <skinor...@gmail.com>
>
> > 大家好:
>
> >> 請問這個fla為什麼發佈後文字是空白的? 是否有什麼地方有問題?
>
> >> 連結http://union.wtuc.edu.tw/~japanese_u/temp/button.fla<http://union.wtuc.edu.tw/%7Ejapanese_u/temp/button.fla>

Reply all
Reply to author
Forward
0 new messages