yuna
04-09-2007, 02:49 PM
Hi all,
I have a view which contains methods and I want to run all method without knowing a name of each method (because I will have lots of views and different name of methods inside of each view later on.)
Only thing I know is the name of view.
Here is example
<view id="firstView">
<method name="unknownIDno">
</method>
<method name="unknownline3">
</method>
<method name="unknownline4">
</method>
<method name="unknownline5">
</method>
<method name="unknowntname">
</method>
... more methods ....
</view>
Here is debug inspection:
var viewID = canvas.searchSubviews("id", "firstView")
Debug.inspect(#firstView)
#firstView {
_instanceAttrs: «Object#210#211| {id: firstView}»
_instanceChildren: «undefined»
addedToParent: true
unknownIDno: «Function#212| firstView_unknownIDno»
unknownline3: «Function#213| firstView_unknownline3»
unknownline4: «Function#214| firstView_unknownline4»
unknownline5: «Function#215| firstView_unknownline5»
unknowntname: «Function#216| firstView_unknowntname»
id: firstView
immediateparent: «LzCanvas#217| This is the canvas»
isinited: true
mask: null
nodeLevel: 1
parent: «LzCanvas#217| This is the canvas»
}
«LzView#209| #firstView»
It seems like I can get methods/functions using LzReplicationManager or something like that...
do you have any idea/thought?
Thank you
I have a view which contains methods and I want to run all method without knowing a name of each method (because I will have lots of views and different name of methods inside of each view later on.)
Only thing I know is the name of view.
Here is example
<view id="firstView">
<method name="unknownIDno">
</method>
<method name="unknownline3">
</method>
<method name="unknownline4">
</method>
<method name="unknownline5">
</method>
<method name="unknowntname">
</method>
... more methods ....
</view>
Here is debug inspection:
var viewID = canvas.searchSubviews("id", "firstView")
Debug.inspect(#firstView)
#firstView {
_instanceAttrs: «Object#210#211| {id: firstView}»
_instanceChildren: «undefined»
addedToParent: true
unknownIDno: «Function#212| firstView_unknownIDno»
unknownline3: «Function#213| firstView_unknownline3»
unknownline4: «Function#214| firstView_unknownline4»
unknownline5: «Function#215| firstView_unknownline5»
unknowntname: «Function#216| firstView_unknowntname»
id: firstView
immediateparent: «LzCanvas#217| This is the canvas»
isinited: true
mask: null
nodeLevel: 1
parent: «LzCanvas#217| This is the canvas»
}
«LzView#209| #firstView»
It seems like I can get methods/functions using LzReplicationManager or something like that...
do you have any idea/thought?
Thank you