So I tried this in IntelliJ. IntelliJ has three compiler options.

http://tinypic.com/r/21erxmt/5

I tried compiling using all three the following code, and was able to
without any warnings or issues. I believe this to be a Flash Builder IDE
issue. If there is anything else we can try let me know and I'll give it a
shot, but otherwise should I close the ticket?

<?xml version="1.0"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; xmlns:s="library://
ns.adobe.com/flex/spark"
xmlns="*">
    <fx:Script><![CDATA[
        import mx.controls.Alert;
        ]]></fx:Script>
    <s:Button click="Alert.show('Hello, world')" label="Say Hello"/>

<StyledRectangle />

</s:Application>

/**
 * Created by IntelliJ IDEA.
 * User: omargonzalez
 * Date: 3/9/12
 * Time: 8:24 PM
 * To change this template use File | Settings | File Templates.
 */
package
{
import mx.core.UIComponent;
import mx.events.FlexEvent;

[Style(name="fillColors",type="Array",format="Color",inherit="no")]
[Style(name="alphas",type="Array",format="Number",inherit="no")]
public class StyledRectangle extends UIComponent
{
public function StyledRectangle()
{
super();

addEventListener(FlexEvent.CREATION_COMPLETE, creationCompleteHandler);
}

private function creationCompleteHandler(event:FlexEvent):void
{
graphics.beginFill(0xff0000);
graphics.drawRect(0, 0, 120, 100);
graphics.endFill();
}
}
}


-- 
Omar Gonzalez
s9tpep...@apache.org

Reply via email to