A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: action when MC Xpos==?? ?

  1. #1
    Senior Member
    Join Date
    Feb 2002
    Location
    UK
    Posts
    436

    action when MC Xpos==?? ?

    Im trying to perform an actions when a movieclips position is equal to a certain coordinate - but i cant seem to work out what the code sould be

    also - would I have to continuesley loop this code to keep checking the position somehow? would this slow down things at all?

    thanks alot for your help on this

  2. #2
    Registered User Bzdero's Avatar
    Join Date
    Feb 2001
    Location
    Split, Croatia
    Posts
    488
    It should go like this:
    if (_root.clip1._x==35)and (_root.clip1._y==75)
    And so on...
    Usualy the problem with this part of code is that the clip is not on actual integer (34.8), so it would be wiser to use something like this:
    if ((_root.clip1._x-35)<1) and ((_root.clip1._y-75)<1)
    And so on...
    No, constant checking on position would not slow down your movie a lot.

  3. #3
    Senior Member
    Join Date
    Feb 2002
    Location
    UK
    Posts
    436
    thanks alot - tis always so simple when you're shown how

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center