PDA

View Full Version : Renaming objects breaks links?


jimwillsher
05-28-2002, 05:35 AM
Within AMS I have some objects based on a template - objects such as Note Exit, Text Exit, Note Install, Text Install etc. I have the Note objects configured to be hidden to start, and they are then enabled via mouseover events.

If I rename the objects (e.g. Note Exit becomes Note Close), the Page Open events lose the links and I have to manually recreate them.

Is this just something I'm doing wrong?

Many thanks.

Lorne
05-28-2002, 09:50 AM
Nope. If you change the name of an object, you will need to refer to that new name whenever you want to perform an action on that object...just like you noted.

jimwillsher
05-29-2002, 05:10 AM
That's a shame. AMS obviously keeps a note of all the objects on a page, so it's a shame that it links them by name rather than by an object ID.

Perhaps for version 4?....

Lorne
05-29-2002, 10:14 AM
You know, that might be a friendlier way to do it. I'll submit it to the dev team.

Incidentally, in 4 you could use a design-time constant for the names in your template instead, and then change those constants in your Project Settings.