autorotator

autorotator

Postby eliecer » Mon Jul 02, 2012 4:49 am

the autorotator continue being a pain right there. It's a nice feature but not so well implemented.

Is there any way to make it NOT START at the beginning of the tour, and let the user decide TO ROTATE or NOT?

The solution provided here:
http://flashificator.com/forums/viewtopic.php?f=3&t=3297&p=12282&hilit=autorotator#p12282

makes the autoration don't start until you click on that hotspot, but there is nobody on earth that can stop it after you click on that hotspot.

Can someone provides a workaround for this problem? This issue starts to be a nightmare.
eliecer
 
Posts: 67
Joined: Tue Sep 07, 2010 3:27 am

Re: autorotator

Postby thwohojr » Mon Jul 02, 2012 12:30 pm

Eliecer,

Trausti's final post in that thread will get you - halfway to where you need to be... so start with that. http://flashificator.com/forums/viewtopic.php?f=3&t=3297&p=12282&hilit=autorotator#p12611
You will need to create a second hotspot to use as a "stop autorotate" button. (This one will start out invisible.) Assign the "disableautorotate" function to this button.
Create a function that toggles your 2 hotspot visibilities... so that when you click on the autorotate hotspot it goes invisible and the stopautorotate hotspot appears.

I've tested it and Flashificated it and it seems to work fine.
Woody
User avatar
thwohojr
 
Posts: 321
Joined: Tue Apr 07, 2009 9:57 am
Location: Raleigh, NC

Re: autorotator

Postby eliecer » Mon Jul 02, 2012 3:07 pm

Thanks for the workaround thwohojr!

That makes me click twice to start the autorotator once the stop hotspot was clicked. Or I have to wait around 4 seconds, and then the autorotator will start. To fix that, I went to Plugin/Autorotator, unchecked the Default Settings, and assigned the value 0 to the Pause Field. But there is no pause now if I click inside the panorama.
eliecer
 
Posts: 67
Joined: Tue Sep 07, 2010 3:27 am

Re: autorotator

Postby thwohojr » Mon Jul 02, 2012 5:51 pm

I don't Know what the difference is because I'm one click to start and one click to stop. I'm headed out of town or I'd help dig a little deeper.
Here is the relative XML code from my test... take a look and see if you can find a difference.

Code: Select all
<hotspots>
      <global
         onStart="
            disableLogoMeter();
            set_HideStartAutorotate();
         "
         onNewPano="
            disableAutorotator();
         "
         enable_Autorotator="
            external.autorotator.disabled=0;
            pano.behaviour=2;
         "
         disableAutorotator="
            external.autorotator.disabled=1;
            pano.behaviour=-1;
         "
         disableLogoMeter="
            external.logometer.enabled=0;
         "
         HideStartAutorotate="
         "
         HideStartAutorotate_1="
            startautorotate.visible=0;
            stopautorotate.visible=1;
            global.HideStartAutorotate=global.HideStartAutorotate_2;
         "
         HideStartAutorotate_2="
            startautorotate.visible=1;
            stopautorotate.visible=0;
            global.HideStartAutorotate=global.HideStartAutorotate_1;
         "
         set_HideStartAutorotate="
            HideStartAutorotate=HideStartAutorotate_1;
         "
      >
         <pano
         />
         <spot
            id="deletemeifyouwant"
            url="files/hotspotFiles/images/emptyImage.png"
            depth="1"
         />
         
         <spot
            id="startautorotate"
            url="files/hotspotFiles/images/rotationicon.png"
            alphadetection="0"
            static="1"
            depth="3"
            scaleX="0.25"
            scaleY="0.25"
            alignY="-1"
            salignY="0.5"
            onClick="
               HideStartAutorotate();
               enable_Autorotator();
            "
         />
         <spot
            id="stopautorotate"
            url="files/hotspotFiles/images/stoprotationicon2.png"
            visible="0"
            alphadetection="0"
            static="1"
            depth="4"
            scaleX="0.25"
            scaleY="0.25"
            alignY="-1"
            salignY="0.5"
            onClick="
               HideStartAutorotate_2();
               disableAutorotator();
            "
         />
      </global>
   </hotspots>
   <autorotator>
      pause = 1000
      quality = medium
      tilt = 0
      disabled = 1
   </autorotator>
Woody
User avatar
thwohojr
 
Posts: 321
Joined: Tue Apr 07, 2009 9:57 am
Location: Raleigh, NC

Re: autorotator

Postby thwohojr » Fri Jul 06, 2012 6:50 pm

Eliecer,
Back home again now. Did you ever work out the issue with having to click twice?
I've attached my simple test file so that you can see what is going on in the interface. I have a 1 sec pause on the autorotator.

NoAutorotateTestProject.ffc
(5.04 MiB) Downloaded 20 times
Woody
User avatar
thwohojr
 
Posts: 321
Joined: Tue Apr 07, 2009 9:57 am
Location: Raleigh, NC

Re: autorotator

Postby eliecer » Sun Jul 08, 2012 10:34 pm

I just assigned the function d_toggleAutorotator to the autorotator button (the one from the dashboard), and everything is working fine.
eliecer
 
Posts: 67
Joined: Tue Sep 07, 2010 3:27 am


Return to FFC: How To Do?

Who is online

Users browsing this forum: No registered users and 1 guest

cron