Skip to content

Instantly share code, notes, and snippets.

@bclinkinbeard
Created March 18, 2010 01:05
Show Gist options
  • Save bclinkinbeard/335932 to your computer and use it in GitHub Desktop.
Save bclinkinbeard/335932 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<s:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
import models.Model;
import models.OtherModel;
import mx.collections.ArrayCollection;
[Bindable]
[InjectNS]
injection_namespace var model:Model;
[InjectNS]
injection_namespace function setOtherModel( om:OtherModel ):void
{
list.dataProvider = new ArrayCollection( om.listData );
}
]]>
</fx:Script>
<s:Label text="{ injection_namespace::model.modelString }" color="#BB0000" />
<s:List id="list" height="90" color="#009900" />
</s:VGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment