|
|
| Author |
Message |
Demosthenes
Joined: 23 Mar 2010
Posts: 2
|
Posted: Tue Mar 23, 2010 1:29 pm Post subject: Setting variables and properties at browser start |
|
|
Hi,
I am trying to set the state of some variables along with some properties at browser startup. For this I added the following code to the Global Code Space:
tool.Var(3)="unpaused";
tool.SetPropertyById("tbs_button_027849","caption","Pause recording");
tool.SetPropertyById("tbs_button_027849","image","pause.png");
Unfortunately this doesn't seem to work. What am I doing wrong ?
Lars |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 22 Aug 2006
Posts: 1055
|
Posted: Wed Mar 24, 2010 5:38 am Post subject: |
|
|
| There is no Tool object in Global Area, you can try to use ToolbarControl instead. |
|
| Back to top |
|
 |
Demosthenes
Joined: 23 Mar 2010
Posts: 2
|
Posted: Wed Mar 24, 2010 11:53 am Post subject: |
|
|
Thank you for this, but this means that in return I cannot access the toolbarcontrol object from within a banner, or am I wrong ?
So:
var MyTool=null;
function DocumentComplete(tool)
{
MyTool=tool;
if (ToolbarControl.Var(3) !== "paused")
{
//code goes here ...
}
won't work ...
D. |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 22 Aug 2006
Posts: 1055
|
Posted: Thu Mar 25, 2010 5:53 am Post subject: |
|
|
| No, you can also put the code into afer_install.html then, using tool object |
|
| Back to top |
|
 |
|