How I can disable double click zoom?

Publishing Print2Flash Documents embedding them in Flash movies
Post Reply
Manolito
Posts:1
Joined:Fri Oct 15, 2010 8:59 am
How I can disable double click zoom?

Post by Manolito » Fri Oct 15, 2010 9:06 am

How I can disable double click zoom?
Is it posible?

thanks!

MaxK
Posts:5
Joined:Wed Mar 12, 2014 1:29 pm

Re: How I can disable double click zoom?

Post by MaxK » Thu Jan 15, 2015 6:28 am

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

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: How I can disable double click zoom?

Post by staff » Thu Jan 15, 2015 8:49 am

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?

MaxK
Posts:5
Joined:Wed Mar 12, 2014 1:29 pm

Re: How I can disable double click zoom?

Post by MaxK » Thu Jan 15, 2015 9:11 am

Having a new custom template that solves both problems at once would be the easiest :)

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: How I can disable double click zoom?

Post by staff » Fri Jan 16, 2015 8:30 am

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
Attachments
print2flash.interface3.pro.zip
(67.92KiB)Downloaded 2361 times

MaxK
Posts:5
Joined:Wed Mar 12, 2014 1:29 pm

Re: How I can disable double click zoom?

Post by MaxK » Fri Jan 16, 2015 9:35 am

I reprocessed all my files (very quick with the batch application). Everything works as intended.
Again, thank you very much!

Post Reply