It seems were posting at the same time

When I sent my answer there was only the first post.
Yes - the initial percent values are the problem here.
In this case do:
|
Quellcode
|
1
|
copy(width,pixelwidth); copy(height,pixelheight); tween(...);
|
To get the absolute pixel sizes first before doing the tween.
Edit:
Normal the code above should already enough, but in this case that code will be called before the element was draw at least once, the updatepos() action should be additionally called to make sure that the pixelwidth and pixelheight values are calculated correctly:
|
Quellcode
|
1
|
updatepos(); copy(width,pixelwidth); copy(height,pixelheight); tween(...);
|
Best regards,
Klaus