Hi guys and girls,
I needed to create a smart clip which resizes a window without distortion since normal resizing would distort the rounded corners and gardient drop-shadow and also because I wanted to use Robert Penners easing to create an elsatic bounce. So I divided the clip up into sections and made it so that it would resize the inner section and adjust the corner and side pieces accordingly. I extracted this into a method called resizeTo(w,h) which would resize the window to a provided size with the elastic ease. This worked well but I couldnt see any changes until i ran test movie which was frustrating so I decided to turn it into a component and use Live Preview…No comes my problem.
In addittion to the resizeTo, since I want to use many window instances to make up an interface I wanted to make it so I could use the Free Transform tool on the component and it would update its initial size (using a method i call setSize()). I cant get this to work properly, and also Im having trouble getting the Live Preview swf to lineup properly with the component.
Could someone please help me with this?
Much appreciated
Ive attached the component and its Live Preview as well