Sie sind nicht angemeldet.

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

1

Mittwoch, 16. April 2014, 12:46

Background bug flash version

Hi, I have a textfield layer witch appears and disappears on each new pano, I only change the html value when calling the action.
It works perfect for the first pano, but when the second fires the action then the background="false" value is ignored in the falsh version if I set keep="true" to the layer... and it works in html5...

here is my code in the global skin file:
<layer name="text"
url="plugins/textfield.swf"
align="bottomright"
html=""
css="font-family:neotexte; font-size:60px; color:#ffffff;"
autowidth="auto"
autoheight="auto"
vcenter="false"
wordwrap="true"
selectable="false"
embeddedfonts="true"
background="false"
alpha="0"
width="75%"
y="-100"
keep="true"
/>

<action name="playtitre">
set(layer[text].html,%1);
tween(layer[text].y,50,2,easeOutBounce);
tween(layer[text].alpha,1,2);
delayedcall(15,tween(layer[text].y,-100,2);tween(layer[text].alpha,0,1));
</action>

and in each pano xml file :
onstart="playtitre(text to show);"

Am I doing something wrong ?

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

2

Mittwoch, 16. April 2014, 12:57

Ok, it works adding backgroundalpha="0"

3

Donnerstag, 17. April 2014, 15:21

Hi,

that sounds a bit strange...

Can you please show a link to the not working example?

Best regards,
Klaus

  • »jeromebg« ist der Autor dieses Themas

Beiträge: 1 120

Wohnort: Angers - France

Beruf: 360 experiences creator

  • Nachricht senden

4

Donnerstag, 17. April 2014, 16:49

Hi Klaus, and thanx for looking.
I agree it's a bit strange, if background is set to false then you wouldn't have to set backgroundalpha ?
This is an example with only background="false", works on the first pano, not the the second.
It works if I set backgroundalpha to 0, and it works as is in html5...

http://www.360images.fr/bug_textfield_krpano/

5

Freitag, 18. April 2014, 13:26

Hi,

thanks! A great example!

I found the problem - it is a bug in the new textfield plugin, this will be fixed in the next release.

A workaround would be removing the keep=true in your skin.xml for the text elements. As the skin.xml is included and loaded again and again in the pano*.xml files, their current values will be set back to the xml value again on each load (and here is also the bug, there is a missing 'type-conversion' inside the textfield plugin and so the value of the background="false" setting will be parsed wrongly as string instead as boolean and this leads to the wrong background functionality).

Best regards,
Klaus