Hi Bjorn,
 
Yes, I'm able to trace the text box. Everything seems to be alright, but it is just not visible. I removed all masks, and other objects overlapping the textbox, but it's just gone. Any ideas?
 
cheers,
Joost


Van: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Namens Bjorn Schultheiss
Verzonden: maandag 7 augustus 2006 3:43
Aan: flexcoders@yahoogroups.com
Onderwerp: RE: [flexcoders] Custom item renderer and view states

Are you able to trace from the ItemRenderer class the status of the text box?
 
Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies
 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of joostnuijten
Sent: Monday, 7 August 2006 9:01 AM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Custom item renderer and view states

Hi there,

I'm having this custom itemrender (which is an AS-class, not a MXML).
When a user clicks on an item the view state should switch to
'selected'. The selectedstate adds an Text tag. But for some reason
the text box does not show up. When I add an effect to the selected
state, the effect shows up after clicking. So the state change works,
but why is the text box not visible?

The code:
<albums:AlbumBrowser
id="albumBrowser"
width="600"
dataProvider="{Model.instance.album.aPhotoAlbumsOnPage}" >

<albums:itemRenderer>
<mx:Component id="albumRenderer">
<albums:AlbumRenderer
buttonMode="true"> (which is an AS-class that extends UIComponent and
implements IDataRenderer)

<albums:states>
<mx:State name="selectedState">
<mx:AddChild>
<mx:Text text="This a test"/>
</mx:AddChild>
</mx:State>
</albums:states>

</albums:AlbumRenderer>
</mx:Component>
</albums:itemRenderer>

</albums:AlbumBrowser>

Anyone? Thanks.


Joost

__._,_.___

--
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




__,_._,___

Reply via email to