A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [MX04]Movie that works fine when clips apart acts strange when clips are together.

  1. #1
    Senior Member pup100's Avatar
    Join Date
    Oct 2004
    Location
    Close
    Posts
    575

    [MX04]Movie that works fine when clips apart acts strange when clips are together.

    Hi,

    I have a pretty basic movie in which a ball moves along a track.

    The track is made up of 3 sections & all I want the movie to do is trace an ID number (num) that is an individual property of that clip when it goes over it.

    In the first movie attached below “trackOne” the whole thing works great! However in the other movie “trackTwo” I have moved the clips closer together & the whole thing has gone crazy with the following issues.

    1.)The “trace” command fires on every “onEnterClip” event

    2.)A text field that is used to show the ID number only changes when the ball is fully over the clip not as it first touches it, as it does in the first movie

    3.)Although the ball is full off a clip it keeps tracing it’s ID number together with the new clips number?

    Anybody able to help me on this?
    Last edited by pup100; 09-22-2008 at 12:08 AM.
    You will know everything when you know you never will.

  2. #2
    Senior Member Mo1010427's Avatar
    Join Date
    May 2005
    Posts
    343
    pup100,

    I think the issue was because in the first example you had adequate enough room for the circle to pass over the 1st square before it hit the next. When you move them closer together the circle is technically hitting them both, thus copying 1,2,1,2,1,2..... At any rate, this is what I came up with to get the end result you where after. Might be a cleaner more efficient way to go about it, not sure.

    Mo
    Attached Files Attached Files

  3. #3
    Senior Member pup100's Avatar
    Join Date
    Oct 2004
    Location
    Close
    Posts
    575
    Many thanks for that Mo - I'm about to download your file & will get back to you if there are any issues.

    Thanks for going to the the bother of generating an .fla - much appreciated

    Pup100
    You will know everything when you know you never will.

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