For our game we've been developing a radial menu in Flash CS4, using AS3 and CLIK widgets. In the December release all radial buttons worked as expected... but something changed in the February release. Radial buttons began to get skewed.
Here is how the SWF looks in the Scaleform Launcher (and in UDK) while having the ActionScript 3 Settings Source path pointing to C:\UDK\UDK-2011-12\Development\Flash\AS3\CLIK:
Here is how the SWF looks in the Scaleform Launcher (and in UDK) while having the ActionScript 3 Settings Source path pointing to C:\UDK\UDK-2012-02\Development\Flash\AS3\CLIK:
What is easily seen is that the circular line, which is uninterrupted with December CLIK code, gets broken and staggered while using the February CLIK code. What is less obvious (unless you download both images and flip back and forth with a picture viewer) is that the reason for this is that the dynamically spawned movie clips with CLIK widgets are getting skewed somehow. What's also noteworthy is that they appear get skewed more with irregular degrees of rotation... e.g. a CLIK button rotated at 0 degrees or 90 degrees, almost appears to not have any skew, but CLIK buttons at 23.5 or 47.25 degrees are far more skewed.
In both screen grabs the only difference is AS3 CLIK code. To help you better repro here is what's going on in the script:
There is a Quad with 4 CLIK buttons on the stage. In the library there is a Movie Clip called "fanA" which holds the CLIK button and the CLIK label, positioned upwards from the clip's origin a set distance. There is also a "fanB" which holds a different CLIK button and CLIK label a higher distance from the origin.
When the Quad button "Toolkit" is clicked, a MovieClip called "Flyout" is created and added as a child to the Quad. 4 instances of "fanA" are created and added as children of the "Flyout", and are each rotated a set number of degrees to create the illusion of a circular base. They also get their own icons and textField strings. A similar action happens when the "Security" CLIK button is clicked, except now "fanB"s are added to a new "Flyout" and rotated.
The code itself is pretty robust to allow for a high number of dynamically spawned menus from different sets of arrays... so hand animating the clips and widgets is not a viable solution, especially given that it worked fine 2 months ago. The problem has to lie somewhere in the February AS3 CLIK code. Incidentally, the SWF exported with the December CLIK code imports and works fine in the February build of UDK. My only concern is that there may be changes from the December CLIK code that will be incompatible with the February UDK Scaleform code, or that this could be a symptom of a larger problem.





Reply With Quote


Bookmarks