Welcome, Guest
  • Author Topic: Catching the click  (Read 3573 times)

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Catching the click
    « on: 01/11/07, 09:51 »
    Hi everybody,
    I am using the Loader-Component to load Pictueres or swf-files.
    Works quite well.
    Some pictures act as buttons, so I add a line
    Code: [Select]
    loaderComponent.onRelease=exec;
    This works pretty well too - BUT

    Sometimes, I dont find a reason, a picture has a onRelease event, even if I did not assign it to it.
    Then possible SWF-Files with components dont function, because the onRelease catches the mouse before it can get into the form fields.
    Any idea?
    I tried with .enabled=false - not the effect I wanted ;)
    happy flashing
    8)
    Ronald

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Catching the click
    « Reply #1 on: 03/02/07, 02:28 »
    Sounds strange ... I'm really not more confident with the Loader component, I usually use the traditional preloader routine, and a holder with an inner container, not only never fails, but I have more control and less "garbage" in the middle.

    Jorge

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: Catching the click
    « Reply #2 on: 03/02/07, 17:02 »
    If you intermix components and createEmptyMovieClip generated movies, you'll get into trouble with depths.

    getNextDepth does not work korrectly, if you have V2 components in the clip.

    So you have to use the new DepthManager class - otherwise you have lost movieclips, which cannot be removed, but still fetch events.

    This can be a pain - that might be your problem.
    happy flashing
    8)
    Ronald