Re: [flexcoders] Subclassing TileList breaks my code!?

2007-11-19 Thread Aaron Miller
Change it to .

Best Regards,
...aaron

On 11/17/07, quiet.mountain <[EMAIL PROTECTED]> wrote:
>
>   Hi all,
>
> This TileList was working fine:
>
>  dataProvider="{allYarnsAC}">
> 
> 
> 
>  source="{data.image}"/>
> 
> 
> 
> 
>
> I then needed to override some TileList behaviours. So I started to
> subclass TileList...
>
> package com.treelinerugs
> {
> import mx.controls.TileList;
>
> public class TestTileList extends TileList
> {
> public function TestTileList()
> {
> super();
> }
>
> }
> }
>
> and then created an instance as before...
>
>  dataProvider="{allYarnsAC}">
> 
> 
> 
>  source="{data.image}"/>
> 
> 
> 
> 
>
> But now I get a compile-time error "Could not resolve
>  to a component implementation."
>
> I can fix this by creating a separate component and creating the
> instance like this instead:
>
>  dataProvider="{allYarnsAC}"
> itemRenderer="com.treelinerugs.TLItemRenderer">
>
> Why can't I define the itemRenderer in-line if I subclass TileList?
>
> Thanks, Rich
>
>  
>



-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com


RE: [flexcoders] Subclassing TileList breaks my code!?

2007-11-17 Thread Alex Harui
The properties of a component are in the namespace of the component, so
you would use mailto:[EMAIL PROTECTED] On
Behalf Of quiet.mountain
Sent: Saturday, November 17, 2007 1:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Subclassing TileList breaks my code!?

 

Hi all,

This TileList was working fine:











I then needed to override some TileList behaviours. So I started to 
subclass TileList...

package com.treelinerugs
{
import mx.controls.TileList;

public class TestTileList extends TileList
{
public function TestTileList()
{
super();
}

}
}

and then created an instance as before...











But now I get a compile-time error "Could not resolve 
 to a component implementation."

I can fix this by creating a separate component and creating the 
instance like this instead:



Why can't I define the itemRenderer in-line if I subclass TileList?

Thanks, Rich

 



[flexcoders] Subclassing TileList breaks my code!?

2007-11-17 Thread quiet.mountain
Hi all,

This TileList was working fine:











I then needed to override some TileList behaviours. So I started to 
subclass TileList...

package com.treelinerugs
{
import mx.controls.TileList;

public class TestTileList extends TileList
{
public function TestTileList()
{
super();
}

}
}

and then created an instance as before...











But now I get a compile-time error "Could not resolve 
 to a component implementation."

I can fix this by creating a separate component and creating the 
instance like this instead:



Why can't I define the itemRenderer in-line if I subclass TileList?

Thanks, Rich