you can access library objects of the swf with embed:
[Embed(source='SWFFileName.swf', symbol='symbolName')]
(see
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf60546-7ff2.html#WS2db454920e96a9e51e63e3d11c0bf69084-7fa3)
On 21/03/2015 16:00, Chris Martin wrote:
How would this work if I compile all my resources into a swf file? How
> >can
> > >I then get an image source at the run-time?
> > >
> > >Thanks
> > >
> > >On Wed, Mar 18, 2015 at 3:42 PM, Alex Harui<[email protected]> wrote:
> > >
> > > >Did you try:
> > > >
> > > >if (data)
> > > >{
> > > > var c:Class = data.status == 0 ? _icon1 : _icon2;
> > > > image.source = new c();
> > > >}
--
Lee Burrows
ActionScripter