Does someone know why I am getting this error and how to resolve it?
Design mode: Cannot create javascript because TextArea "map1" is not a
valid parent for that kind of
item. HTMLComponent HTMLWithGoogleMaps.mxml
Here is my mxml for the test application with the "javascript" property:
<ns1:HTML elementType="division" id="map1" left="0" right="10"
bottom="10" top="0" borderStyle="solid" borderThickness="4"
includesBefore="['http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAf1SuwLn4YbCOUSQ7hPKNwBQT4nbo22VCFxUQ51_kxEXNPVNhvBS_aGQPnWK8u0IpeBP9Tc1o1ebU_A']">
<ns1:htmlText>
<![CDATA[<img style="float:right;" src="bender.gif">]]>
</ns1:htmlText>
<ns1:javascript>
<![CDATA[test]]>
</ns1:javascript>
</ns1:HTML>
// in my component class:
private var _javascript:String = null;
public function set javascript(value:String):void {
// This property can't be set to null, only to an empty string
if (!value) {
value = "";
}
_javascript = value;
if (!htmlCreated) return;
}
dorkie wants cdata meta tag dork from dorktown