Friday, July 20, 2007

Multiple Inheritance in Flex

find it on jesse's blog


MyComponent.mxml

<?xml version="1.0" encoding="utf-8"?>

<
mx:VBox
xmlns:mx="http://www.macromedia.com/2003/mxml"
width
="400" height="400">
<
mx:Form>

<
mx:FormItem label="Username:">

<
mx:TextInput id="username_ti" />

</
mx:FormItem>

<
mx:FormItem label="Password:">

<
mx:TextInput id="password_ti" />

</
mx:FormItem>

</
mx:Form>

</
mx:VBox>


Interfaces are actually easy:

<MyComponent implements=’ISomeInterface’ />


Where the ISomeInterface is your interface class name.

No comments: