Flash Action Script Error Repository

A library of solutions to Actionscript, Flash, Flex and AIR

Archive for February, 2009

Data binding expressions not supported with attributes processed at compile time.

Data binding expressions not supported with attributes processed at compile time.

This error occurred when I tried to bind the source property of a Style.

XML:
  1. <mx:Style source="{style}" />

No comments

The prefix “mx” for element “mx:VBox” is not bound.

The prefix "mx" for element "mx:VBox" is not bound.

Explanation:
The prefix "mx" is not bound to any namespace definition. In my case the namespace definition was missing in my MXML component.

Incorrect

XML:
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:VBox>
  3.    
  4. </mx:VBox>

Correct

XML:
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
  3.    
  4. </mx:VBox>

No comments