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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Instance names usage in actionscript 1

Status
Not open for further replies.

solex

Programmer
Feb 28, 2003
91
GB
Hello,

I coulnt find a post that matched my question, so here it goes.

I have checked the instance names in this flash document to check that they match the action script. I use this action script:

//This script takes the user to Scene 2 when goScene_btn is released
hT_1-1_btn.onRelease = function (){

clicker_1_mc._x = 200;
clicker_1_mc._y = 150;

};

And get this error on publishing:

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Syntax error.
hT_1-1_btn.onRelease = function (){

Total ActionScript Errors: 1 Reported Errors: 1

Does any one know why?

thank you in advance
solex


 
Probably your "dash" that Flash sees as a minus sigh!

hT_1-1_btn.onRelease = function (){...

Don't use special characters...

hT_1_1_btn.onRelease = function (){...


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top