Re: [Flashcoders] Custom combobox

2005-12-23 Thread Mike Boutin

Thanks Jesse, thats a big help!




JesterXL wrote:


Dude, use a cellrenderer instead.
http://dev.jessewarden.com/flash/comboboxcellrenderer/

More examples in the Flash 8 help docs.  The selectedItem doesn't show it 
the icon, though, so I'll leave that as a challenge to you to figure out.


- Original Message - 
From: "Mike Boutin" <[EMAIL PROTECTED]>

To: "Flashcoders mailing list" 
Sent: Friday, December 23, 2005 3:23 PM
Subject: Re: [Flashcoders] Custom combobox


Hi Chris, thanks for the help by the way, i managed to get it working
like so:

myCombobox.addItem("Hello world");
myCombobox.dropdown.setPropertiesAt(0,{backgroundColor:0xCC,
icon:"image"});

The problem being that the "icon" image has to be in the library and
have a linkage id.  Do you think there is any way to take this same
approach but use a dynamically loaded jpg for the icon?


Mike Boutin



Chris Hill wrote:

 


Hi Mike,

You should be able to create a movieclip class that implements the
CellRenderer api, and then use that within the combobox's list:

var dropdown:List = myCombo.dropdown;
dropdown.cellRenderer = "myCustomCellRenderer";

Having said that, I've never done this, but I don't see why it
wouldn't work.

C



Mike Boutin wrote:

   


Can anyone tell me how to go about creating a comobox that can hold a
10x10 pixel color palette image and a label beside it per row?  Has
anyone seen anything like this?

Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



   



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Custom combobox

2005-12-23 Thread JesterXL
Dude, use a cellrenderer instead.
http://dev.jessewarden.com/flash/comboboxcellrenderer/

More examples in the Flash 8 help docs.  The selectedItem doesn't show it 
the icon, though, so I'll leave that as a challenge to you to figure out.

- Original Message - 
From: "Mike Boutin" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, December 23, 2005 3:23 PM
Subject: Re: [Flashcoders] Custom combobox


Hi Chris, thanks for the help by the way, i managed to get it working
like so:

myCombobox.addItem("Hello world");
myCombobox.dropdown.setPropertiesAt(0,{backgroundColor:0xCC,
icon:"image"});

The problem being that the "icon" image has to be in the library and
have a linkage id.  Do you think there is any way to take this same
approach but use a dynamically loaded jpg for the icon?


Mike Boutin



Chris Hill wrote:

> Hi Mike,
>
> You should be able to create a movieclip class that implements the
> CellRenderer api, and then use that within the combobox's list:
>
> var dropdown:List = myCombo.dropdown;
> dropdown.cellRenderer = "myCustomCellRenderer";
>
> Having said that, I've never done this, but I don't see why it
> wouldn't work.
>
> C
>
>
>
> Mike Boutin wrote:
>
>> Can anyone tell me how to go about creating a comobox that can hold a
>> 10x10 pixel color palette image and a label beside it per row?  Has
>> anyone seen anything like this?
>>
>> Thanks!
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Custom combobox

2005-12-23 Thread Mike Boutin
Hi Chris, thanks for the help by the way, i managed to get it working 
like so:


myCombobox.addItem("Hello world");
myCombobox.dropdown.setPropertiesAt(0,{backgroundColor:0xCC, 
icon:"image"});


The problem being that the "icon" image has to be in the library and 
have a linkage id.  Do you think there is any way to take this same 
approach but use a dynamically loaded jpg for the icon?



Mike Boutin



Chris Hill wrote:


Hi Mike,

You should be able to create a movieclip class that implements the 
CellRenderer api, and then use that within the combobox's list:


var dropdown:List = myCombo.dropdown;
dropdown.cellRenderer = "myCustomCellRenderer";

Having said that, I've never done this, but I don't see why it 
wouldn't work.


C



Mike Boutin wrote:

Can anyone tell me how to go about creating a comobox that can hold a 
10x10 pixel color palette image and a label beside it per row?  Has 
anyone seen anything like this?


Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders






___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Custom combobox

2005-12-23 Thread Mike Boutin

Perfect ill give it a try and post some code when i get it ;) Cheers!


Mike Boutin

Chris Hill wrote:


Hi Mike,

You should be able to create a movieclip class that implements the 
CellRenderer api, and then use that within the combobox's list:


var dropdown:List = myCombo.dropdown;
dropdown.cellRenderer = "myCustomCellRenderer";

Having said that, I've never done this, but I don't see why it 
wouldn't work.


C



Mike Boutin wrote:

Can anyone tell me how to go about creating a comobox that can hold a 
10x10 pixel color palette image and a label beside it per row?  Has 
anyone seen anything like this?


Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders






___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Custom combobox

2005-12-23 Thread Chris Hill

Hi Mike,

You should be able to create a movieclip class that implements the 
CellRenderer api, and then use that within the combobox's list:


var dropdown:List = myCombo.dropdown;
dropdown.cellRenderer = "myCustomCellRenderer";

Having said that, I've never done this, but I don't see why it wouldn't 
work.


C



Mike Boutin wrote:

Can anyone tell me how to go about creating a comobox that can hold a 
10x10 pixel color palette image and a label beside it per row?  Has 
anyone seen anything like this?


Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--
_
<   __ __     >
<  |  |  \/ ___\  Chris Hill  >
<  |  |  / /_/  > [EMAIL PROTECTED]>
<  |/\___  /  http://ubergeek.tv  >
<   /_/   The Smell of Geek!  >
<->

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Custom combobox

2005-12-23 Thread Mike Boutin
Can anyone tell me how to go about creating a comobox that can hold a 
10x10 pixel color palette image and a label beside it per row?  Has 
anyone seen anything like this?


Thanks!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders