PDA

View Full Version : page turning effect problems



vazash
March 7th, 2004, 12:33 AM
Hi,

I was looking for a code that does a turning page effect and have found one, but am experiencing a problem. The code is giving me a problem when i add more pages to the existing file. I am really hoping that someone can help me out with this as it is really urgent.

vazash.

I have attached the original file. I need to add a total of 16 pages. Can someone pls see the file and explain to me how this is done. The pages are all generated with the help of action script. I get an error something to do with the 'with statement'. If someone can solve this problem could you please explain where I have to make the changes and what the resulting code would do. Thanks a mil.

Adam
March 7th, 2004, 05:22 PM
In the Bound Pages MC, you need to change the maxPages variable to what it is you need:

var maxPages = 10;

insert your pages, then give them linkage names of print+page number, ie. page9, page10

*edit: but you must have an even number of pages.

Adam

vazash
March 8th, 2004, 12:59 AM
Hey Adam,

Thanks for the reply. I need to use 16 pages and have put 16 in the maxpages=16 variable. And have set the pages as movieclips as the file i sent you has done and given them names of print9, 10 and so on like the example file. But it still does not work. You mentioned giving them link labels like page 9, page 10, and so on but where do i give them these labels - in the instance names??? thats where I have put print 9, print 10 and so on.

vazash

Adam
March 8th, 2004, 03:38 PM
If you right click on your item in the library, click linkage, then check the "export for actionscript" box, give it your name i.e: page9....in the top box.

Adam

vazash
March 9th, 2004, 03:04 AM
Hey Adam,

nearly pulled myh air out trying to figure out what to do. Thanks a lot. But can u tell me something...when would i use commands like that such as export for actionscripting or any other options from that dialog box

Adam
March 9th, 2004, 04:36 PM
The only thing, but I'm pretty new to actionscript, that I've even used the linkage for was attachMovie, i.e. on a button:


on (release){
_root.MCInstanceName.attachMovie("linkageName", "newName", depth)
}

if my syntax is off, I hope someone corrects it so I don't lead you astray...

Adam