all groups > flash actionscript > february 2006 >
You're in the

flash actionscript

group:

Setting Variables in Flash mx4


Setting Variables in Flash mx4 bytesizedimage
2/16/2006 10:19:03 PM
flash actionscript:
:confused;
I am using the following syntax to set a variable to a blank value:

Set Variable: "name" = ""

The action is linked to a button

The target is an input textbox on the stage within the same frame, with the
variable name: name
The instance does not have an instance name

Problem:
Flash keeps telling me I have a syntax error when I test the movie and the
button does not clear the input box of any text which has been entered

Please help
Bill
Re: Setting Variables in Flash mx4 abeall
2/17/2006 2:43:28 PM
then you must have put that script on a MovieClip/Button instead of on a
timeline. Like the error says, anything on a Button must be placed in an on
handler - things like on(release) - and anything on a MovieClip must be in an
on handler or an onClipEvent handler - things like onClipEvent(load)


AddThis Social Bookmark Button