Flash Double-click an externally loaded SWF

Posted by Trist on Stack Overflow See other posts from Stack Overflow or by Trist
Published on 2010-03-18T21:05:29Z Indexed on 2010/03/18 21:11 UTC
Read the original article Hit count: 433

OK. I've got a class (which extends MovieClip) that loads in an external SWF (made in pdf2swf). That is added to another class which has declared doubleClickEnabled = true and I'm listening for DOUBLE_CLICK events.

Problem is when the SWF is loaded my code picks up no DOUBLE_CLICK events, only CLICK events. I've tried it without adding the SWF to the stage and it does pick up DOUBLE_CLICK events.

Anybody come across this before?

class ParentClass{
    ...
    public function ParentClass(){
        ...
        mcToLoadSWF = new MovieClip();
        addChild(mcToLoadSWF);
        doubleClickEnabled = true;
        addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickHandler);
        ...
    }
}

I've also tried adding the event listener to the mcToLoadSWF as well. No dice.

Cheers Tristian

© Stack Overflow or respective owner

Related posts about doubleclickenabled

Related posts about double-click