Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-15-2008, 12:54 PM   #1
stylecr
Registered User
 
Join Date: Jan 2008
Posts: 6
Default Pageflip Flash Component

Hi,
I am using the Pageflip flash component (the $25 one) to create a flipbook which has various hyperlink buttons on most of its pages. The problem I have is that if for example, I have a link button on page 3, its hit area can be accessed from page 1! The link works but what should I do to make the link button accessible ONLY from its page?

There must be something that I am doing wrong or not doing, as I'm sure this is elementary in a flipbook.....Please help. Thanks
stylecr is offline   Reply With Quote
Old 04-04-2008, 05:04 AM   #2
schrunk
Registered User
 
Join Date: Apr 2008
Posts: 1
Default

I have this exact same problem. Please any help would be great.

www.nickschrunk.com/uni/international_final

Take page "8" for example Where a link on the previous page on that side of the spread (page 6 in this example) the hyperlink is showing up from that page even thou it is no longer being displayed. If you mouse over that particular area of page 8 the hyperlink from the previous left side of the spread is still active.

I dont understand why this would be the case. I am using the provided actionscript for my buttons.

on (release) {
getURL("http://www.google.com", "_blank");
}
on (rollOver) {
book.flipOnClickProp = false;
}
on (rollOut) {
book.flipOnClickProp = true;
}



Thank you for your help. This will save my project if I can get your feedback!
schrunk is offline   Reply With Quote
Old 04-14-2008, 10:21 AM   #3
adamcasey
Registered User
 
Join Date: Sep 2007
Posts: 27
Default Answer

Their support guys are really quite helpful if you get stuck in future.
I had this problem and here is the fix that they responded with.


Our component shows one underlying page for transparency support.
You can enable/disable your buttons on SWF pages using ActionScript and page events.
Place the following ActionScript code into the first frame of your
page with buttons:

function onInit(){
if( !visible )
hideMyContent();
}

function onOpen(){
showMyContent();
}


function onClose(){
hideMyContent();
}


function hideMyContent(){
button1.enabled = false;
button2.enabled = false;
button3.enabled = false;
// and so on..
}

function showMyContent(){
button1.enabled = true;
button2.enabled = true;
button3.enabled = true;
// and so on..
}

button1, button2, button3.. are the real instance names
of your buttons (you set the instance name in button properties panel)


It's also possible to turn transparency support off. In this case you
won't need any additional coding. For turning it off you must open
component symbol in movie's library (symbol with the small book icon),
select the first frame of its "actions" layer and open component
source code (press F9). It can take several seconds (Flash
ActionScript editor works very slow with large parts of code).

Now find the "showUnderlyingPages" function using the Ctrl+F function:


FFlippingBookCache.prototype.showUnderlyingPages = function(direction, _pageNumber){
var book = this._baseObject;
var l = book.leftPageNumber;

...
...


And place the return action right after function definition:

FFlippingBookCache.prototype.showUnderlyingPages = function(direction, _pageNumber){
return;
var book = this._baseObject;
var l = book.leftPageNumber;
adamcasey is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Component for making .ocx file from Flash MX 2004 upratik Components 8 05-17-2005 06:02 AM
Easy Slide Show flash component ank Components 0 05-12-2005 01:22 PM
Flash Encrypt 1.2 Released. SIntrix General Chat 14 04-21-2005 09:02 PM
[Q] Do we need those forums??? CyanBlue General Chat 59 07-27-2004 11:13 AM
Php, Javascript, and Flash 5 browser detect and more! Redline01 Server-Side Scripting 2 08-11-2001 01:09 AM


All times are GMT. The time now is 07:25 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.