Page 1 of 1

How I can disable double click zoom?

Posted: Fri Oct 15, 2010 9:06 am
by Manolito
How I can disable double click zoom?
Is it posible?

thanks!

Re: How I can disable double click zoom?

Posted: Thu Jan 15, 2015 6:28 am
by MaxK
Hello,

I have the same problem, I want to disable the zoom when double click.

My Print2Flash swf files have been created with the custom template given in this topic: viewtopic.php?f=10&t=4784

My attempts have been:

1. disable the double click on the MovieClip that holds the Print2Flash object:

Code: Select all

public class ContentLoader {
   var loaderText:Print2FlashDoc3;
   var mcText:MovieClip;

   public function loadTextSWF (fileName:String,  parent:DisplayObjectContainer):void {
      loaderText = new Print2FlashDoc3(fileName,30,140,395,480,parent);
      loaderText.addEventListener(Print2FlashDoc3.ONLOADEVENT, OnLoaded);
   }

   private function OnLoaded(e:Event) {
     mcText=loaderText.getDoc();
     mcText.doubleClickEnabled = false;    //---> THIS HAS NO EFFECT
     mcText.addEventListener("onLinkClicked", onLinkClicked);
   }
2. Capturing and disable any doubleclick event in my application before it reaches any object:

Code: Select all

stage.doubleClickEnabled = true;
stage.addEventListener(MouseEvent.DOUBLE_CLICK, clickDoubleclick, true);

function clickDoubleclick (e:MouseEvent) {
     e.stopImmediatePropagation();
}
No result so far... Any idea?

Thanks in advance.
Max

Re: How I can disable double click zoom?

Posted: Thu Jan 15, 2015 8:49 am
by staff
Do you want a solution that just disables this double click or a solution based on this custom template (viewtopic.php?f=10&t=4784) that disables both hyperlinks and the double click?

Re: How I can disable double click zoom?

Posted: Thu Jan 15, 2015 9:11 am
by MaxK
Having a new custom template that solves both problems at once would be the easiest :)

Re: How I can disable double click zoom?

Posted: Fri Jan 16, 2015 8:30 am
by staff
Please use a custom document template attached to this post. The documents created with this template don't open hyperlinks in browser and don't zoom when double clicked. To apply this template, you need to:
1. Unpack the attached template file to disk
2. Launch Print2Flash Application by choosing “All Programs/Print2Flash/Print2Flash Printing Application” from the Windows start menu
3. Choose Options/Default Document Options from the application menu
4. Switch to Output tab
5. Choose Custom Template option and pick the template file from disk

Re: How I can disable double click zoom?

Posted: Fri Jan 16, 2015 9:35 am
by MaxK
I reprocessed all my files (very quick with the batch application). Everything works as intended.
Again, thank you very much!