A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: onClipEvent getURL with hitTest?

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    2

    onClipEvent getURL with hitTest?

    Hi All,

    Here's the issue,
    I have a gallery of empty MC's in which I load jpg's.
    The MC's are called sequentially: holder01, holder02, holder03...etc.

    Now I want each MC to call a javascript to show a Popup with the larger version of the thumbnail loaded in the MC.

    I know I should use hitTest for this so not all JS's will be called all at once. Here's the code I'm using on the MC:


    onClipEvent (mouseUp) {
    hit_test = holder01.hitTest(_root._xmouse, _root._ymouse, true);
    if (hit_test) {
    getURL("javascriptics('large/01.html')");
    }
    }


    But this don't seem to cut it...anyone?

  2. #2
    Senior Member of Toon Army lucky-black-cat's Avatar
    Join Date
    Aug 2002
    Location
    Benarraba Andalucia Spain
    Posts
    303
    Hi

    Try this see if it works?

    Code:
    onClipEvent(mouseMove) {
       if (hitTest(_root._xmouse, _root._ymouse, false)) {
          getURL("javascriptics('large/01.html')");
       }
    }
    http://www.property-in-the-sun.com
    Cheap Holidays in Andalucia Spain for Flash Programmers from 2005!

  3. #3
    Junior Member
    Join Date
    Dec 2000
    Posts
    2
    Nope,

    It only opens up the first .html.
    And it does that on clicking everywhere, so it just doesn't seem to respond to the hittest.

    A source on something similar or link is also greately appreciated.

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