Flash question

Soldato
Joined
11 Jul 2004
Posts
16,147
Location
Neptune
May be related to actionscript also.

Basically, i'm creating one of those Flash page flipping sites (looks like a book, with pages to turn etc). Problem i'm having is with the pages have links on them (actionscript, linking to external sites or files)...however, when flipping through the pages i've found that links on pages behind or in front of the pages you're looking at are active on the page.

eg . i'm looking at page 3, the links work fine, but if i slowly move the cursor down the page it changes to indicate there is an active link there. I click and the link opens. The link is from the page behind though and not the page i'm looking at.

Why is it picking up the links from next page?..almost like the pages are transparent.

Any ideas?

I hope i've explained it properly.
 
you can disable and enable the links.

Say when you're on page 2, you have actionscript which sets the links/items on page 2 to be enabled whilst everything else is disabled.

Forgotten the command for it but I used it in a 3D navigation world, the links were clickable but when you clicked on one they became disabled until the movie had stopped.

edit:

my_btn.enabled = false;

Are the links buttons or just links?
 
setting ._visible = false; will remove that problem but can be an issue to apply to a project depending on how it's made.

ie.
Code:
mcNextPageBtn.onMouseDown = function () {
   //all page content instances ._visible = true;
}
mcPrevPageBtn.onMouseUp = function () {
   //set vars to the two pages on display and run a loop to hide all others.
// triggered after the page has laid flat idealy
}


something like that..
 
If it's in AS2.0, see Trust for my email address, as I don't have the means to work with AS3.0 :( And if it's written in AS2.0 built in CS3, save the fla using save as and select 'flash 8 document'. Lastly if your not sure, save in flash 8 format and send it anyhow :D

My bro's over this afternoon/evening, so it won't be 'till late tonight/tomorrow before I can have a browse and it depends on the code complexity from there on.. I can't promise success but i'll have a go.
 
Just posting to let you know, i've nearly got it sorted :cool: there's a tiny issue to be resolved, i know how-ish and fingers crossed that'll be it.

so some time tomorrow i should be emailing you the fix and a guide :)
 
email's sent :)

btw, the example files are in flash 8 format. when you resave the fla's it may say about changing the format, such shouldn't be a problem though.

edit: infact two emails, i forgot to attach the example, opps :D





2nd edit: i don't know why i added page numbers to the button names! if you wish..

open each page#Buttons.as and search & replace page#_ with nothing. so it looks more like..
Code:
btn1.onRollOver = function() {
	turnFlipOff();
};
then on the stage, with each button remove page#_ from it's instance name, it'll just reduced the ammount of editing needed on later pages. it's not vital though, just a slight time saver.
 
Last edited:
I Hope you see this T&T, i've tried to email you through both BY addys and they are getting returned :eek: :(

Perhap's you can host the files in question and post the url here.. If you wish to password the archive; in the last email you sent me, 3rd paragraph, use the missing word.. "You will find a ‘ .doc’ document"

i can return it the same method..
 
Back
Top Bottom