Like it says - is there any way to set the curlypage to click to open, rather than opening on mouseover? I'm going through it right now, but if someone more familiar could point to the relevant place in the code that would be great!

Comments

manfer’s picture

That is only posible if you change flash files, it is flash which handles that mouseover.

Curlypage is a flash effect that needs two files one that shows the flag effect and one that shows the peel effect. When you do a mouseover on the flag, it is changed for the peel and the peel is opened because the mouse is over it.

I would have to review what is needed to be changed, but by now I can only point you to that. It is flash, so it is on AS (action script) files that handles the flash behaviour. And after changing those files properly it would be needed to generate again the swf files with that new behaviour.

On Flag.as there is this code:

MovieClip(getChildByName("button")).peelSmallButton.addEventListener(MouseEvent.MOUSE_OVER, smallButtonAction);

I think changing that event to a mouse click would do the trick:

MovieClip(getChildByName("button")).peelSmallButton.addEventListener(MouseEvent.CLICK, smallButtonAction);

After that flag.fla must be recompiled to get the flag.swf file with the new behaviour.

This is theorically I'm only having a minor look to the code.

You have to take in mind if that is changed you can only use curlpages with that effect. If you want some curlypages with mouse over and others with mouse click it must be implemented as a new option and code it as a flash option and as a new curlypage configuration option in drupal (with all it implies, input, storing, js output), and change js to accept that new option too.

If I have time I would look to implement it as an option in next version.

sickhippie’s picture

Status: Active » Closed (fixed)

Thank you so much! That was the spot right there! It would be a cool option in there, maybe have a choice of which swf to use, the click or mouseover. But now this thread is here for people who are looking to do it in the interim.

Thanks again! Marking closed.

manfer’s picture

Assigned: Unassigned » manfer
Category: support » feature
Status: Closed (fixed) » Fixed

Added as new feature on 6.x-3.0-RC4. New checkbox setting "Open Onclick" under motion settings of each curlypage. Checking that new setting curlypage opens on click instead of the default mouseover.

Now if you need more than one curlypage on your site you can decide which of them must be opened with a mouse over and which of them must be opened on click.

Thanks.

sickhippie’s picture

Awesome! Thanks so much!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.