View Single Post
  #11  
Unread 08-04-2010, 09:05 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

So here's what's likely going on behind the scenes...

You've got template objects with dummy data in them.

Templates get cloned with the same object name. This basically produces an array of objects with the same name, only we don't have access to the array or the internal object IDs. Say you have templatePageName="Foo".

Foo gets cloned at runtime, so you end up with

templatePageName="Foo"
templateCloneName="Foo"

Since the original template exists above the clone in the object tree, referencing "Foo" from outside always accesses the template and not the clone.

Scripts placed on the template should also get cloned, and should be able to access sub-objects or parent objects normally. The problem is referencing the clone from outside.

You might be able to use the OnTextChanged event for a repeated text object contained inside the scrollpage to change its parent's PackSize when the window is loaded. If PlainTemplate is inside the scrollpage, try that.
Reply With Quote