dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] PopUp Window Question

  1. #1
    Senior Member
    Join Date
    May 2003
    Posts
    160

    [RESOLVED] PopUp Window Question

    hello,

    i have tried every way possible to get a javascript window to popup when a movieclip is clicked including using movieclip.prototype. i can get it to work for a button but not mc. so, i thought i'd get a second opinion on how to do it.

    the movieclip im targeting is in a container movieclip.

    _root.MC.MC_to_target

    any ideas? pleaseeee, thanks!

  2. #2
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    use hittest....I don't have the exact code that you need to tell the hittest to open the popup window on movie clip but the following code will make it so that if statement executes when I hover over the movie clip and click the mouse.


    Code:
    onMouseDown = function() { 
    if(this.hitTest(_root._xmouse,_root._ymouse,0)){
    startDrag (this, true);
    }
    };
    Last edited by calmchess; 12-10-2006 at 06:06 PM.

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