actionscript 3 - Why does this non-descriptive error happen when I try to build this mxml file? -
I get the following error when trying to create a simple MXML file:
build With Paused Errors (FCS)
Here is MXML:
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; S: Application xmlns: fx = "http://ns.adobe.com/mxml/2009" xmlns: s = "library: //ns.adobe.com/flex/spark" xmlns: mx = "library: // Ns.adobe.com/flex/mx"> & Lt; S: label id = "titleLabel" x = "50" y = "50" fontfamily = "aerial" font high = "bold" text = "my first flex 4 app" /> & Lt; Fx: script & gt; & Lt ;! [CDATA [public function example () {speakTextInput.text = "This is an example of a terrific code!"; }] & Gt; & Lt; / Fx: script & gt; & Lt; S: HGroup x = "50" y = "70" width = "80%" & gt; & Lt; S: Button id = "speakButton" label = "Say something!" / & Gt; & Lt; S: TextInput id = "speakTextInput" width = "100%" text = "" /> & Lt; / S: HGroup & gt; & Lt; / S: Applications & gt;
Your compiler may return the function without declaration of type for return value does not likes. Try changing to:
Public function example (): Zero
Comments
Post a Comment