Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't set Flash variable with setVariable!

Status
Not open for further replies.

THKPT

Programmer
Jun 29, 2003
3
PT
Hi,

I'm having problem setting a variable in a flash throught Director with Lingo.
Here's the code I'm using

sprite(flashSprite).puppet = true
sprite(flashSprite).ink = 36
sprite(flashSprite).loc = point(400,300)
sprite(flashSprite).member = member("helpFlash")
-- var_param is global on flash (defined on first frame) & state is global on Director (is a string)
sprite(flashSprite).setVariable("var_param", state)

I get this error when running:

Script Error: Handler Not Found In Object
sprite(flashSprite).setVariable("var_param", state)
#setVariable

if I remove the sprite(flashSprite).setVariable("var_param", state) line the flash works just fine
Instead of using state variable I've tried to use a string but still the error occurs

I'll apreciate some help.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top