Re: [flexcoders] Re: Adding a "close button" to a tab? (Flex 1.5)

2006-05-08 Thread P Trisnadi


I found the solution I needed from the archive dated June 8, 2005 (wow!) This is great, because now I can "close" my tabs in my TabNavigator.There are 2 other problems, though:1. if I create a new child, the previously "closed" tab re-appears as a tab-less child. So visually, I have tab0, then a gap for tab1, then tab2. Is there a way to keep the closed tab hidden and width=0? Do I have to track which tabs are close and set the visibility=false and width=0 all over again?2. Is there a way to re-order the tabs? Say, I close tab1. Open tab2. Then reopen tab1. How can I put tab1 appears after tab2, instead of placing it between tab0 and tab2? I tried destroyChild, but I can't seem to resurrect the child... :| Yikes...Any guide is greatly appreciated.- ptrisnadi> I think
 you're going to run into a few more complications.> > When you 'close' the tab, as I learned from Ali, you'll really have to do the following:> > Set the tab's visibility to false.> Set the tab's width to 0.> > However, when you resize the stage, you're going to run into another issue. Flex is going to recalculate the tabbar and then rebuild the tabs. So invisible tabs will suddenly have a new width. You'll need to add a resize handler that determines which tabs are 'closed' or by this point, for your user, since the tabs will have a visibility of false,  set their size to 0 again.> > Then, you'll see the tabbar freaks out and spaces the tabs in a staggered format. To get around this, your resize handler needs to get a width to set the size of the tabbar. I'd use the width of the parent tabnavigator and do the following:>
 ---> view.appView['tabBar'].setSize(view.appView.width,'22');> > And to remove the tabs, you'll need something like:> > public function setNavigation() : Void {> > var tab0 = view.appView["tabBar"].getChildAt(0);> var tab1 = view.appView["tabBar"].getChildAt(1);>  > tab0.visible = false;> tab0.width = 0;> tab1.visible = false;> tab1.width = 0;> >
 view.appView['tabBar'].setSize(view.appView.width,'22');> }> > On click, you can get the> > selectedIndex> > of the tab that was clicked,  and pass it over to the setNavigator function as a parameter and set the visiblity to false and size to 0.> > Dave> > > On 6/8/05, Eric Raymond <[EMAIL PROTECTED]> wrote:> > Each tab correponds to a view (in a viewstack).> > > --- In flexcoders@yahoogroups.com, dave buhler <[EMAIL PROTECTED]> wrote:> > Hi Eric,> >> > Are the tabs specific to an underlying view or are the tabs meant to be> > closeButtons, similar to what you might find for a TitleWindow?>
 >> > Dave> >> > On 6/7/05, Eric Raymond <[EMAIL PROTECTED]> wrote:> > >> > > Is there a way to add a close button to a tab in a tabbar?> > >> > > That is, we'd like to put a graphic image of an "x" in some tabs in> > > our application that are "closeable".> > >> > > I think there are two issues here:> > >> > > 1) Adding an extra icon to the tab> > >> > > As a hack, we could get away with "prepending" the close image the> > >
 existing tab icon.> > >> > >> > > 2) Detecting a click in the close icon> > >> > > As far as I know, the tabbar grabs all mouse/click events.> > >> > >> > > Any ideas?





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








Re: [flexcoders] Text align in tab

2005-12-21 Thread P Trisnadi


I'm not sure if this will work, but you can try width="{label.width}" -- may not work, but worth the try...- ptrisnadi- Original Message From: Nithya R <[EMAIL PROTECTED]>To: flexcoders Sent: Mon Dec 19 22:24:28 2005Subject: [flexcoders] Text align in tab Hi     i tried the tab text align : left as told by mehdi.. but still there is right space in the tab..     refer to the attached jpeg file..     thanks, nithyaSend instant messages to your online friends http://uk.messenger.yahoo.com  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








Re: [flexcoders] Re: Datagrid CellRenderer doesn't fill entire cell

2005-12-14 Thread P Trisnadi


Also, horizontalGap and verticalGap.- ptrisnadi- Original Message From: Darin Kohles <[EMAIL PROTECTED]>To: flexcoders@yahoogroups.comSent: Wed Dec 14 16:32:25 2005Subject: [flexcoders] Re: Datagrid CellRenderer doesn't fill entire cellYou might try playing with some style properties like:  setStyle("borderThinkness",0) setStyle("focusThinkness",0) setStyle("marginLeft",0) setStyle("marginRight",0)  Maybe one of these will do the trick.  Good Luck  --- In flexcoders@yahoogroups.com, "stepanhil" <[EMAIL PROTECTED]> wrote: > > Hi, >  > I'm customizing background color of cells based on the value in cell. > I got that working, the problem is that I get 1px spacing between the > cell and vertical grid (not always on all sides though). It seems to > have something to do with styles, but I can't find a way to get rid of it. >  > In comparison, setting a cell background on column has the desired > effect (no spacing between bg color and border) >  > I've tried to base the renderer on Box, Canvas and modifying margins > and vertical gaps but without success. >  > Thanks, Stepan >  





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








[flexcoders] Image with transparency in DataGrid

2005-12-14 Thread P Trisnadi


Is there ANY way to use image with transparency (using cellrenderer) in a datagrid? I tried using GIF and PNG with transparency, but no luck... The reason I want the transparency is due to the highlight, which will show the rectangle behind the image which I wish not to show...TIA,- ptrisnadi





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








Re: [flexcoders] Seeing double in DataGrid

2005-11-04 Thread P Trisnadi


Here is a simple app I did:

--





        

    

    

    

   


   


           
        

    

    

    





Here is the imageCellRenderer1 (imageCellRenderer2 is identical, except for the image pulled)

--





    

    var obj1:Object;

    function setValue(str:String,item:Object) {

    if (item.working=="0") {

    obj1=item;

    obj1.icon="contentA0.jpg";

    visible=true

    } else {

    obj1=item;

    obj1.icon="contentA1.jpg";

    visible=true

    }

    }

    

    



--



When ran, DataGrid "allComp" displays 3 columns. The second and third
column look right. However the first column always displays what's in
the second column. I swapped the cellRenderer code, and first column
NEVER displays its content properly...



Any idea??? :|



TIA!

- ptrisnadi

- Original Message From: Matt Chotin <[EMAIL PROTECTED]>To: flexcoders@yahoogroups.comSent: Wed Nov  2 20:54:18 2005Subject: RE: [flexcoders] Seeing double in DataGrid   I guess we’ll need the full example, I don’t see anything jumping out at me.     From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of P Trisnadi Sent: Wednesday, November 02, 2005 9:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Seeing double in DataGrid I
have a couple of columns in a DataGrid that are populated by using 2
different ImageCellRenderers. ImageCellRenderer1 displays either image
A or B, and ImageCellRenderer2 displays either image C or D. However,
when ran the first column always displays what is displayed in the
second column. I tried switching the 2 columns, so that the latter
column appears first, but the left column always adopt whatever is
displayed in the right column.  Any idea what causes this?  The code for ImageCellRenderer is pretty straight forward:             var obj1:Object;         function setValue(str:String,item:Object) {             if (item.prm1=="0") {                 obj1=item;                 obj1.icon="obj1.jpg";                 visible=true             } else {                 obj1=item;                 obj1.icon="obj2.jpg";                 visible=true             }         }         TIA, - ptrisnadi   





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





  




  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








[flexcoders] Seeing double in DataGrid

2005-11-02 Thread P Trisnadi



I have a couple of columns in a DataGrid that are populated by
using 2 different ImageCellRenderers. ImageCellRenderer1 displays
either image A or B, and ImageCellRenderer2 displays either image C or
D. However, when ran the first column always displays what is displayed
in the second column. I tried switching the 2 columns, so that the
latter column appears first, but the left column always adopt whatever
is displayed in the right column.

Any idea what causes this?

The code for ImageCellRenderer is pretty straight forward:



    
        var obj1:Object;
        function setValue(str:String,item:Object) {
            if (item.prm1=="0") {
                obj1=item;
                obj1.icon="obj1.jpg";
                visible=true
            } else {
                obj1=item;
                obj1.icon="obj2.jpg";
                visible=true
            }
        }
    
    


TIA,
- ptrisnadi







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








Re: [flexcoders] Problems with alligning

2005-09-26 Thread P Trisnadi


Did you try to set the margins to 0 and horizontal/vertical gaps to 0 as well? If you put different background colors on your VBox and label, sometimes it helps visualizing how components are aligned with others.- ptrisnadi- Original Message From: [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Mon Sep 26 10:46:42 2005Subject: [flexcoders] Problems with alligning Sorry for mentioning this again but I am still having problems alligning the code I want to the left. I will however post some code so that maybe I can clear up what it is that I am trying to do. I want the label that says "Allign this text to the left" to appear on the left side of the page and I was thinking that maybe the textAllign attribute could do that but I guess not. Can someone give me tips on how i might want to go about alligning it?   http://www.macromedia.com/2003/mxml"  marginTop="8"    verticalGap="0">                                   





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








RE: [flexcoders] RowRenderer for DataGrid: is this possible?

2005-09-11 Thread P Trisnadi
Thanks, Matt. I will stop trying for now, as I am a
novice. :)

In case anybody interested, I am doing it the crude
way, that is: I created 2 DataGrids. The one on the
bottom is with headers and scrollbar, and the rows are
spaced out, and the rows are set to align on top. The
DataGrid on top is headerless and set the scrollbar is
set to false. The size is set so that it is exactly on
top of the of bottom DataGrid. Rows are spaced out as
much as the bottom one, except the vertical align is
set to the bottom. Then I set the alpha to 0. After
all that I set so that any changes to the bottom
DataGrid affects the top DataGrid. Not very smooth,
but this hack is probably easier than learning how to
make custom component.,,

- Paulus

--- Matt Chotin <[EMAIL PROTECTED]> wrote:

> Writing a custom row renderer is pretty hard in Flex
> 1.5, it's something
> we're hoping to improve in the next version.
> 
>  
> 
> Matt
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> Behalf Of P Trisnadi
> Sent: Wednesday, September 07, 2005 5:30 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] RowRenderer for DataGrid: is
> this possible?
> 
>  
> 
> Is it possible to have multiple lines in a DataGrid
> row, possibly using
> RowRenderer? I have no problem creating various
> CellRenderers and
> HeaderRenderers, but RowRenderer seems to be a
> different beast.
> Unfortunately, livedocs.macromedia.com is not very
> helpful in finding
> documentation on this...
> 
> Basically I have a DataGrid now, and I want to
> extend each row to
> contain additional row of free text:
> 
> Header1  |  Header2  |  Header3
> -
>   Cell1A|  Cell 2A|  Cell3A
>   RowA is for Cell1A, 2A, and 3A
>-
>   Cell1B|  Cell 2B|  Cell3B
>   RowB is for Cell1B, 2B, and 3B
>-
> 
> Any idea if this is possible?
> 
> TIA,
> ptrisnadi
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ:
>
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
>
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> 
> 
> 
> 
> 
> SPONSORED LINKS 
> 
> Web site design development
>
<http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+
>
site+design+development&w2=Software+design+and+development&w3=Macromedia
>
+flex&w4=Software+development+best+practice&c=4&s=131&.sig=FkTWphZzV9mFu
> lU7V3u7pQ>  
> 
> Software design and development
>
<http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=
>
Web+site+design+development&w2=Software+design+and+development&w3=Macrom
>
edia+flex&w4=Software+development+best+practice&c=4&s=131&.sig=w0jnvy4gy
> xC04c4dhRnw6A>  
> 
> Macromedia flex
>
<http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+
>
development&w2=Software+design+and+development&w3=Macromedia+flex&w4=Sof
>
tware+development+best+practice&c=4&s=131&.sig=XXu7YeegB3Vi-5Qngf6oNQ>
>  
> 
> Software development best practice
>
<http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&;
>
w1=Web+site+design+development&w2=Software+design+and+development&w3=Mac
>
romedia+flex&w4=Software+development+best+practice&c=4&s=131&.sig=ZT_U6e
> _iPgXSriY_dI9nIg>  
> 
>  
> 
>  
> 
>  
> 
> 
> 
> YAHOO! GROUPS LINKS 
> 
>  
> 
> *  Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the
> web.
> 
> *  To unsubscribe from this group, send an email to:
>[EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]>
> 
> 
> *  Your use of Yahoo! Groups is subject to the
> Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
>  
> 
> 
> 
> 




__ 
Yahoo! for Good 
Watch the Hurricane Katrina Shelter From The Storm concert 
http://advision.webevents.yahoo.com/shelter 



 Yahoo! Groups Sponsor ~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] RowRenderer for DataGrid: is this possible?

2005-09-07 Thread P Trisnadi
Is it possible to have multiple lines in a DataGrid row, possibly using 
RowRenderer? I have no problem creating various CellRenderers and 
HeaderRenderers, but RowRenderer seems to be a different beast. Unfortunately, 
livedocs.macromedia.com is not very helpful in finding documentation on this...
 
 Basically I have a DataGrid now, and I want to extend each row to contain 
additional row of free text:
 
 Header1  |  Header2  |  Header3
 -
  Cell1A    |  Cell 2A    |  Cell3A
  RowA is for Cell1A, 2A, and 3A
   -
  Cell1B    |  Cell 2B    |  Cell3B
  RowB is for Cell1B, 2B, and 3B
   -
 
 Any idea if this is possible?
 
 TIA,
 ptrisnadi
 
 



 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Accordion panel to stay open, when another panel is selected.

2005-08-27 Thread P Trisnadi
OK, this is not how an accordion should behave, but: 

Is it possible to have one of the accordion panel to
stay open, when another panel is selected? (And closes
only when the panel header is clicked?) Or, is it even
possible to have more than one panel open in 1
accordion widget?

Thanks in advanced,
- ptrisnadi


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 Yahoo! Groups Sponsor ~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Why changing global variable also changes the model data?

2005-08-23 Thread P Trisnadi
I have a global variable that is populated by a model's data:
     _global.arrayFruit = new Array();
     ...
     
     ...
     _global.arrayFruit = fruitModel.fruit;
 
 Why does fruitModel.fruit also change when I do:
     _global.arrayFruit.removeItemAt(itemNum);
 
 I'm not changing fruitModel and want to keep it the same, so that I can 
re-populate global.arrayFruit after fruitModel. Any idea?
 
 Thanks in advanced,
 - ptrisnadi
 





 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12hakg4g3/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124854248/A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Get Bzzzy! (real tools to help you find a job) Welcome to the Sweet Life 
-�brought to you by One Economy.
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Formatting tree's nodes and sub-nodes

2005-08-22 Thread P Trisnadi
Is there a way to format tree's branches and leaves
differently? E.g.: all the branches to be bold and
blue, while all the leaves are black and in regular
font-weight.

I tried setStyle, but no luck... I also searched Flex
documentation, as well as the Mail Archive, but have
not been able to find a solution for this. Or is this
NOT possible?

Thanks in advanced,
- ptrisnadi





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 


 Yahoo! Groups Sponsor ~--> 
http://us.ard.yahoo.com/SIG=12hpnmi4j/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124705567/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!.
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Added image/s in TileList is/are not shown

2005-07-09 Thread P Trisnadi


Wow, that works so smoothly! :D Thanks, Matt.

- ptrisnadi

- Original Message From: Matt Chotin <[EMAIL PROTECTED]>To: flexcoders@yahoogroups.comSent: Thu Jul  7 22:08:00 2005Subject: RE: [flexcoders] Added image/s in TileList is/are not shown














You’re using the List addItemAt method
instead of the DataProvider addItemsAt method.  I think you want to use _root.modelImage2.photo.addItemsAt(0,
tilelistAllImage.selectedItems);

as the body of your addLibrary method, no
need for the for loop.

 

Matt









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of P Trisnadi
Sent: Thursday, July 07, 2005 2:10
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Added
image/s in TileList is/are not shown



 

Not sure why second message was also truncated. Let's
try this again...
--
Thanks for your interest and notice, Scott. To
recap:
I have a TileList that shows images and their
names,
read from an XML file and rendered by a
CellRenderer.
When the [Add Photo] button is clicked, a
createPopUp
is called. This PopUp also has a TileList that
reads
another XML file with the same structure (but
different data.) Images can be selected, and when
the
[Add] button is clicked selected images should be
added to the main TileList's model. However,
something
is added to the TileList, but it only shows blank
tiles/undefined...

Here is the code again...

-- XML file, both look similar --

  
   image01.jpg
  
image02.jpg
  
image03.jpg
  

-- TileList that I want to add images in
--



...
    
 
dataProvider="{modelImage2.photo}"
cellRenderer="thumbnail2"
change="{showSelected(tilelistImage.selectedItem)}"
multipleSelection="true"/>
    

-- TileList that I want to bring images
from
--




    
    
dataProvider="{modelImage.photo}"
cellRenderer="thumbnail2"
change="{anySelected(tilelistAllImage.selectedItem)}"
multipleSelection="true"/>
    
click="addLibrary()"/>

-- CellRenderer --


xmlns:mx="http://www.macromedia.com/2003/mxml"
width="72" height="86"
horizontalAlign="center"
verticalAlign="middle"
horizontalGap="0"
verticalGap="0"
borderStyle="none" hScrollPolicy="off"
vScrollPolicy="off">
    
    var
photoObj:Object;
   
function setValue(str:String,item:Object) {
   
if (item==undefined) {
   
visible=false;
   
return;
   
} else {
   
photoObj=item;
   
visible=true;
   
}
    }
    
    
height="64"
verticalAlign="middle"
horizontalAlign="center"/>
    
textAlign="center"
fontSize="10"/>



Any idea why it adds blank, undefined tile here?

TIA,
- ptrisnadi









--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  








Re: [flexcoders] Added image/s in TileList is/are not shown

2005-07-07 Thread P Trisnadi
Not sure why second message was also truncated. Let's
try this again...
--
Thanks for your interest and notice, Scott. To recap:
I have a TileList that shows images and their names,
read from an XML file and rendered by a CellRenderer.
When the [Add Photo] button is clicked, a createPopUp
is called. This PopUp also has a TileList that reads
another XML file with the same structure (but
different data.) Images can be selected, and when the
[Add] button is clicked selected images should be
added to the main TileList's model. However, something
is added to the TileList, but it only shows blank
tiles/undefined...

Here is the code again...

-- XML file, both look similar --

  
   image01.jpg
   image02.jpg
   image03.jpg
  

-- TileList that I want to add images in
--



...

 


-- TileList that I want to bring images from
--








-- CellRenderer --

http://www.macromedia.com/2003/mxml";
width="72" height="86" horizontalAlign="center"
verticalAlign="middle" horizontalGap="0"
verticalGap="0" borderStyle="none" hScrollPolicy="off"
vScrollPolicy="off">

var photoObj:Object;
function setValue(str:String,item:Object) {
if (item==undefined) {
visible=false;
return;
} else {
photoObj=item;
visible=true;
}
}






Any idea why it adds blank, undefined tile here?

TIA,
- ptrisnadi




Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Added image/s in TileList is/are not shown

2005-07-07 Thread P Trisnadi
Thanks for your interest and notice, Scott. To recap:
I have a TileList that shows images and their names,
read from an XML file and rendered by a CellRenderer.
When the [Add Photo] button is clicked, a createPopUp
is called. This PopUp also has a TileList that reads
another XML file with the same structure (but
different data.) Images can be selected, and when the
[Add] button is clicked selected images should be
added to the main TileList's model. However, something
is added to the TileList, but it only shows blank
tiles/undefined...

Here is the code again...

-- XML file, both look similar --

  
   image01.jpg
   image02.jpg
   image03.jpg
  

-- TileList that I want to add images in
--


Re: [flexcoders] Re: question about image cellrenderer in flex samples explorer

2005-06-25 Thread P Trisnadi


Prolly also set the column to center-aligned... (So, both column and content/imagecellrenderer.)

- Paulus
- Original Message From: Manish Jethani <[EMAIL PROTECTED]>To: flexcoders@yahoogroups.comSent: Fri Jun 24 05:46:55 2005Subject: Re: [flexcoders] Re: question about image cellrenderer in flex samples explorer



On 6/23/05, bhaq1972 <[EMAIL PROTECTED]> wrote:

> One follow up question. I'm trying to reposition the image to the
> centre of the datagrid column using the following code in my
> imagecellrenderer
> 
> function size(Void) : Void
> {
>   //image is id of my mx:Image
>   image.setSize(20, layoutHeight);
>   image._x = (layoutWidth-20)/2;
>   image._y = (layoutHeight-16)/2;
> }
> 
> this isn't working.

What do you mean it isn't working?  What's happening?

Try using image.width and image.height instead of 20 and 16 in the
last two lines.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com










--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



  
  





  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.