Previous | Next | (P-PDF) Developers
Topic: Help with PDF based Animation?
Conf: (P-PDF) Developers, Msg: 32754
From: Jub
Date: 1/14/2002 01:53 AM
GLOBAL - if a variable's scope is global then it is available across multiple documents in a session, and it can be available across multiple sessions, if the global object is persistent.
Yellow boxes - you already have most of the code that you need to do this.
You will need to establish 2 new document level flags, one to control whether the on/off action is running or not and one to monitor whether the on/off is on, or off!
Your script would turn the on/off action on or off as appropriate using the same interval code that you have.
The on/off itself is going to be controlled using the display property of the yellow fields. e.g.
var YellowFld = this.getField("YellowFldName");
YellowFld.display = display.visible;
// if you want it to PRINT as well as be visible
// OR
YellowFld.display = display.noPrint;
// to be visble, but NOT print
//and to 'hide' the field
YellowFld.display = display.hidden;
Hope that helps,
Jub