[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] How to edit Text
From: |
Matthias Kramm |
Subject: |
Re: [Swftools-common] How to edit Text |
Date: |
Sat, 26 May 2007 09:51:35 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Fri, May 25, 2007 at 12:09:05PM -0500, Randall Hand wrote:
> Is there any way, via ActionScript, to change the text in a ".text" object
> with Action Script?
.text can only contain "hardcoded" text.
You can use .edittext, though:
-----------------------------------------------------------------------
# edittext.sc
.flash version=7
.font myfont "Arial.ttf"
.edittext edittext1 text="bla bla" color=blue maxlength=200
font=myfont size=24pt width=320 height=200 variable="mytext"
.put edittext1
.action:
_root.mytext = "Hello World";
.end
.end
-----------------------------------------------------------------------
Greetings
Matthias