Pregunta

I'm trying to recreate some flash shapes that appear on rollover upon a circle symbol. I'm needing to convert flash x and y points to the canvas coordinate grid. I figured out how to convert the circle coord points. However, the info I'm given for the shapes that appear on rollover make no sense to me.

For example, take this rollover point, where the dimensions refer to the registration point (little cross in the upper left):

Rollover point

x = 532.30 y = 30.35 w/h = 19.80

But based off this, the info I get for the rectangle that appears on rollover makes no sense:

rollover rectange

x = -7.30 y = 17.30 w = 29.0 h = 16.5

I figured this meant that the rectangle's upper left point was 7.30 pixels to the left, and 17.30 pixels down from the registration point of the circle. Is that right? What origin are these x and y coordinates based off of?

The width and height are completely confusing to me though. The given width is 29.0, but this can't be right. If I get x and y coordinates just using my cursor, its clear that the rectangle is much wider than this:

width 1 width2

564 - 521 = 43

43 != 29

Please help me understand the mysterious info box I'm being presented with for this rectangle. I just need to get some vanilla coordinates for it so I can draw it on the HTML5 canvas.

¿Fue útil?

Solución

What origin are these x and y coordinates based off of?

These x and y coordinates are based off of the registration point of tab button.

43 != 29

When you work with symbols on a stage, the symbols that you're working with aren't the actual original Library symbol. They're copies that can be manipulated by scaling them, applying color and opacity effects and...

This instance of tab button is scaled, if you open library panel and edit tab symbol you can see the actual size.


UPDATE

enter image description here enter image description here

after I change width and height of tab button to 19.80: enter image description here enter image description here

29*(150/100)=43.5

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top