ryanpape
11-18-2003, 09:58 PM
I am playing with the dataimage example, which has:
<resource src="btn_camera.png" name="button_camera" />
<resource src="btn_animation.png" name="button_animation" />
...
and then
<view resource="button_animation" stretches="both" x="2" y="2"/>
if I have moved this into a class something like
<class name="anibu">
<attribute name="resourcename"/>
....
<view resource="***" stretches="both" x="2" y="2"/>
...
I cannot get any combination of parent.resourcename, ${parent.resourcename}, etc to work for *** when the class is used as:
<anibu resourcename="button_animation"/>
What am I doing wrong?
Thanks in advance.
<resource src="btn_camera.png" name="button_camera" />
<resource src="btn_animation.png" name="button_animation" />
...
and then
<view resource="button_animation" stretches="both" x="2" y="2"/>
if I have moved this into a class something like
<class name="anibu">
<attribute name="resourcename"/>
....
<view resource="***" stretches="both" x="2" y="2"/>
...
I cannot get any combination of parent.resourcename, ${parent.resourcename}, etc to work for *** when the class is used as:
<anibu resourcename="button_animation"/>
What am I doing wrong?
Thanks in advance.