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

Help with if statement

Status
Not open for further replies.

mikewza

Technical User
Nov 3, 2006
5
GB
I recently recieved some good advice from oldnewbie but can not get this to work. I am wanting to move a symbol with a button rollover on the condition that its _x value does not exceed 350. i have tried

on (release) {
if (this._parent.my_symbol._x <= 350)
_level0.box1._x += 20;
}
else {
stop
}

Where have i gone wrong with this.
 
I have mailed a .fla to you. It is obviously a very basic file but it should show what I am trying to do there. Please let me know if you do not recieve it and i will mail it to another address.
Thanks,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top