FAQ
Products Showcase Download Extras Support
 
Home :: Support :: Community :: CourseLab Issues

How to change object properties at runtime?

How to change object properties at runtime? 
Author:  Angelo    
Date: 26.06.2008 14:27:50
Hi all,
is it possible to change object properties at runtime?

For example: I would change the balloon text using a onclick event of my form button.

I see that it is possible in javascript using g_arVars["var_name"] (for global variable) and
g_arSlideVars["var_name"] (for slide variable), but I don't know the correct syntax. I tried to write: g_arSlideVars["var_name"].text = "my text"; but it doesn't work.

Could someone help me please?

Angelo  
...
Re: (1) How to change object properties at runtime? 
Author:  Slav Shchinov   [Courselab Team]
Date: 25.07.2008 21:54:14
Hi, Angelo,

If you mean object properties that are accessible through $OBJ_ID.propertyname then the things are bad - these properties are read-only.
Also variables are not linked with text objects - the only objects that have variables associated are Form objects.
The only objects where you can change/add or replace text are 2 TextBoxes: Simple and Relief. Use the corresponding object methods (please look at the help on these objects) to do that.  
...

Reply

You can also post this message as registered user. [Log in]
Author:
E-mail:
Subject:
Options:  Notify me if there is a new reply
Message emoticon:
Message body:
Insert smilie into text:
 
Jump to thread: