Archive for May, 2008
1038 _ is already defined.
You cannot declare a variable or function with the same identifier name more than once within the same scope. In ActionScript 3.0, different code blocks (such as those used in two for loops in the same function definition) are considered to be in the same scope. This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.
1034 Type Coercion failed: cannot convert _ to _.
Problem:
Something is receiving the wrong data type and it cannot be converted. For example, a function is expecting a string and we pass it an Array.
This also occurred in when I was passing an Array to a function that expected another data type.
The error detail is "cannot convert []@e1f73f9 mx.core.IUIComponent."
NOTICE - The value I am passing to the "target" property is an Array because the value is enclosed in brackets "[myvalue]". This would work if the property was "targets". The property "target" expects an object.
-
// INCORRECT
-
<mx:Resize target="{[eventDescription]}" duration="400" />
-
-
// CORRECT - Notice I removed the Array brackets
-
<mx:Resize target="{eventDescription}" duration="400" />
In this next example, an XMLList cannot be converted into an Array, which is what this component needs.
The error details is "cannot convert XMLList@37ace21 to Class."
[pre]
public function tabBarHandler(event:ItemClickEvent):void {
var menuitems:XML = event.item.menuitems as XML;
// this converts an xml list into a array collection but the tab bar cannot accept an xmllist data type
// you *CAN* use this method if your data provider can accept an ArrayCollection
//var menuDP:ArrayCollection = new ArrayCollection(new XMLListCollection(event.item.menuitems.submenu as XMLList).toArray());
// in our case since we *CANNOT* we manually convert it to an array and then add it to the tabbar
for each (var menuitem:XML in menuitems.submenu) {
// create a new object and assign the properties to it from the xml node
var newItem:Object = new Object();
newItem.label = menuitem.@label;
newItem.link = menuitem.@link;
// optionally create a reference to the original xmlnode
newItem.menuitem = menuitem;
// add item to the array collection
menuDP.addItem(newItem);
trace(menuitem.@label);
}
// add new menuDP array collection to our tab bar
subMenuBar.dataProvider = menuDP;
}
[/pre]
1037 Cannot assign to a method _ on _.
This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.
No comments1035 Illegal super expression found in method _.
This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.
No comments1033 Cpool entry _ is wrong type.
This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.
1 comment1032 Cpool index _ is out of range _.
This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.
3 comments1031 Scope depth is unbalanced. _ != _.
This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.
No comments1030 Stack depth is unbalanced. _ != _.
This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.
No comments1029 Disp_id _ is undefined on _.
This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.
No comments1028 Disp_id _ exceeds max_disp_id=_ of _.
This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.
No comments1027 Method_info _ exceeds method_count=_.
This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.
No comments1026 Slot _ exceeds slotCount=_ of _.
This error indicates that the ActionScript in the SWF is invalid. If you believe that the file has not been corrupted, please report the problem to Adobe.
No comments