get 3D javascript working for different pages


i'm using of 3d sample javascript file found on:

http://partners.adobe.com/public/developer/webseminars/index.html

3d
working acrobat 3d javascript - part 1 (swf: 26 minutes)

* sample files (zip: 4.7 mb / 19 files)

i use costomizeddemo.js. works fine when import in other pdf's until want use on other pages.
it works on page 1 not on page 2 or others.
there must reference in code according page or annotation, can't find it.
any idea?

modify reference 3d model in javascript code uses current page rather first pages always. example:

c3d=this.getannots3d(this.pagenum)[0].context3d;


instead of

c3d=this.getannots3d(0)[0].context3d;

(assuming have 1 3d model per page, in statement above (0) page number -- zero-based, 0 first page -- , [0] model index, zero-based, 0 first model on page).



shlomo perets

microtype: framemaker/acrobat training & consulting * framemaker-to-acrobat timesavers
fm-to-pdf assistants: navigation, form, presentation, multimedia & 3d



More discussions in Rich Media & 3D


adobe

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code