+1
Не ошибка

Object variables and images. How can I do?

paololuk 11 лет назад обновлен 11 лет назад 1
Object variables and images. How can I do?
I have this code:



<panel name="panel1_3" width="50" height="50" xpos="36" ypos="90" onpage="3" onclick="testo" clicktarget="IMGVIEWER" _image="graphics/testi/annunciazione.png"> </panel>
<panel name="panel1_4" width="50" height="50" xpos="36" ypos="90" onpage="4" onclick="testo" clicktarget="IMGVIEWER" _image="graphics/testi/nascita.png"> </panel>
<panel name="panel1_5" width="50" height="50" xpos="36" ypos="90" onpage="5" onclick="testo" clicktarget="IMGVIEWER" _image="graphics/testi/magi.png"> </panel>

<platform device="ipad">
<panel name="ImgViewer" alias="IMGVIEWER" width="1024" height="768" align="center" valign="center" alpha="0">
<panel name="canvas" width="1024" height="768" align="center" valign="center" background="#cc9966" alpha=".7"></panel>
<image name="testo" source="_image" alias="TESTO" width="1000" height="750" controls="yes" align="center" valign="center"></image>
<image name="close" source="close.png" align="right" valign="top" onclick="testoStop" width="50" height="50"></image>
</panel>
</platform>

<action name="testo">
<alpha value="1" time=".25"/>
<alpha value="0" time=".25" target="VBUTTON"/>
<platform device="ipad">
<reveal type="curldown" time="1" delay="0" />
</platform>
<load source="_image" target="VID" />
</action>

<action name="testoStop">
<videocontrol type="stop" file="_file" target="VID" />
<platform device="ipad">
<reveal type="curlup" time="1" target="IMGVIEWER" />
</platform>
<alpha value="0" time="0" target="IMGVIEWER" />
<alpha value="1" time=".25" target="VBUTTON"/>
</action>



Practically there are some pages and on every pages there is a link that load an image on a canvas like in the "Add Media Content Tutorial" with the "reveal effect" and a "close button"

Why doesn't work?

Thanks :)
+1
Solved. Some problems on the target. :) I assigned the right target on the action "testo".



<load source="_file" target="TESTOIMG" />

Сервис поддержки клиентов работает на платформе UserEcho