Running Windows Vista with IIS7 and using the IIS as the web server for Adobe Flash Builder 4 Beta. It worked before but now it doesn't. The full error is:
Error: Property width is not a property or a style on object loggedIn: TypeError: Error #1006: value is not a function..
at spark.effects.supportClasses::AnimateInstance/setupStyleMapEntry()[E:\dev\beta1\framework s\projects\flex4\src\spark\effects\supportClasses\AnimateInstance.as:957]
at spark.effects.supportClasses::AnimateInstance/getCurrentValue()[E:\dev\beta1\frameworks\p rojects\flex4\src\spark\effects\supportClasses\AnimateInstance.as:990]
at spark.effects.supportClasses::AnimateInstance/finalizeValues()[E:\dev\beta1\frameworks\pr ojects\flex4\src\spark\effects\supportClasses\AnimateInstance.as:570]
It happens when I want it to do a transition from one state to another. The setup is a panel horizantalCenter at 0 and verticalCenter at 0 with the width starting at 400 and the height at 300. There's a button there that will trigger the changing of the currentState so that it can do a transition or the changing of the panel to a width of 800 and height of 600. It triggers if I have the transition but doesn't if I don't put the code:
<s:Transition fromState="*" toState="*">
<s:Resize duration="1000" target="loggedIn" />
I traced the error from when I changed the state using setCurrentState("loggedIn", true) in the SCRIPT code. What I don't get is how come it doesn't understand the WIDTH Property when making a transition or is this something that's just happening to me?
You must specify a target instance to resize in your Resize tag..e.g. Use braces around the id of the element you wish to resize like so: target="" ..(assuming loggedIn is the actual panel you are reference, otherwise change it to a valid id).
Thanks that solved the issue. Although loggedIn was the state and not the object I was hoping the transition would be apply to. Your reply just jot my memory of what I needed to do.