-
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?
-
Senior Member of Toon Army
Hi
Try this see if it works?
Code:
onClipEvent(mouseMove) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
getURL("javascriptics('large/01.html')");
}
}
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|