[flexcoders] SelectedIndex bug after removing an element !!

2007-03-15 Thread bobrene07
hello,


I have a problem with the selecting index after i removed an element.

when i do the following: 

var x:int = grid.selectedIndex;

if (x != -1) {
  grid.dataProvider.removeItemAt(x);
 grid.selectedIndex = x;
}

if x equal 4 it select the fift line.

does anyone knows how to fix it ??

thx

Bob 



[flexcoders] Re: Mike nimmer Debug component !!

2007-03-08 Thread bobrene07
Is it possible to debug when your flash is not the first the page of
your website ?

I mean your flash is inside a portal and you want to debug after a
portal login 

do you do that ??

thx for your help

bob



--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Wednesday 07 Mar 2007, bobrene07 wrote:
  i use Xpanel ( http://flexblog.faratasystems.com/?p=5 ) it is quit
  good too
 
 I just use the debugger.
 
 -- 
 Tom Chiverton
 Helping to appropriately pursue interdependent channels
 On: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Mike nimmer Debug component !!

2007-03-07 Thread bobrene07
hello,

did anyone tried to work with Mike nimmer debug component
(http://www.mikenimer.com/index.cfm/2006/7/5/FlexDebugPanel) ??

I always add an error (can't work with null obeject) when i do
Debug.show(myObject).

hope one can help.

thx

bob





[flexcoders] Set Button Icon at Runtime !!

2007-03-07 Thread bobrene07
Hello,

i don't want to embed my image in my SWF, I want to set my button Icon
image at Runtime.

Do you know how i could possibly do that ??

Thx for ur help

Bob



[flexcoders] Re: Set Button Icon at Runtime !!

2007-03-07 Thread bobrene07
It's not possible to creat a class object at runtime with an image in it ?

anyone ??

thx 4 ur help

bor

--- In flexcoders@yahoogroups.com, Michael Schmalle
[EMAIL PROTECTED] wrote:

 Hi,
 
 You could use setStyle() at runtime and load a module that holds
your assets
 library.
 
 Peace, Mike
 
 On 3/7/07, bobrene07 [EMAIL PROTECTED] wrote:
 
Hello,
 
  i don't want to embed my image in my SWF, I want to set my button Icon
  image at Runtime.
 
  Do you know how i could possibly do that ??
 
  Thx for ur help
 
  Bob
 
   
 
 
 
 
 -- 
 Teoti Graphix
 http://www.teotigraphix.com
 
 Blog - Flex2Components
 http://www.flex2components.com
 
 You can find more by solving the problem then by 'asking the question'.





[flexcoders] Re: Mike nimmer Debug component !!

2007-03-07 Thread bobrene07
Yep it looked great, maybe it's only working with coldfusion

i use Xpanel ( http://flexblog.faratasystems.com/?p=5 ) it is quit
good too


bob

--- In flexcoders@yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote:

 
   I was never able to get it to work myself.  On paper it looks 
 great, though.
 
 At 05:42 AM 3/7/2007, you wrote:
 
 hello,
 
 did anyone tried to work with Mike nimmer debug component

(http://www.mikenimer.com/index.cfm/2006/7/5/FlexDebugPanelhttp://www.mikenimer.com/index.cfm/2006/7/5/FlexDebugPanel)

 ??
 
 I always add an error (can't work with null obeject) when i do
 Debug.show(myObject).
 
 hope one can help.
 
 thx
 
 bob
 
 
 
 --
 Jeffry Houser, Software Developer, Writer, Songwriter, Recording
Engineer
 AIM: Reboog711  | Phone: 1-203-379-0773
 --
 My Company: http://www.dot-com-it.com
 My Podcast: http://www.theflexshow.com
 My Blog: http://www.jeffryhouser.com
 Connecticut Macromedia User Group: http://www.ctmug.com





[flexcoders] Re: Set Button Icon at Runtime !!

2007-03-07 Thread bobrene07
Thx but i tried that, i did not get the wanted result.

if i extend the button element and try to add an image with a loader,
it do not display properly (the position is not right, and the image
seems shady, like if it has not been on the top of the button ) and it
disapear when the buttton is pushed.

Did anyone ever created a custom icon component, and load the image at
runtime ??

thx

bob



--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Wednesday 07 Mar 2007, bobrene07 wrote:
  It's not possible to creat a class object at runtime with an image
in it ?
 
 If you want, you could create a new Button from AS, use a Loader to
load an 
 image, assign the style and then addChild(), maybe.
 
 -- 
 Tom Chiverton
 Helping to proactively facilitate second-generation functionalities
 On: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Re: Oh the headerrenderer of death

2007-02-22 Thread bobrene07
Hello,

I had the same bug, when my datagrid had variableRowHeight=true, my
headerrender wouldn't work. if you have try without it.


good day

bob




--- In flexcoders@yahoogroups.com, digital_eyezed [EMAIL PROTECTED]
wrote:

 Hi,
 
 Having a bit of a nightmare with a headerrenderer, it simply doesn't
 work for me, ahh I hear you say.
 
 This is what I have:
 
 mx:DataGridColumn headerRenderer=renderers.EmptyRenderer
 backgroundColor=#C0C0C0 width=75 textAlign=center
 headerText=black/
 
 The Renderer is this:
 
 ?xml version=1.0 encoding=utf-8?
 mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*
 marginTop=0 marginBottom=0 hScrollPolicy=off verticalGap=0
 horizontalGap=0 backgroundColor=#dd vScrollPolicy=off
 verticalAlign=top borderStyle=none
 mx:Script
 ![CDATA[
 var headerText:String;
 public function setValue(str:String, item:Object) {
   if (item == undefined){
  visible = false;
  return;
   }
   visible = true;
   headerText = str;
 }
 ]]
 /mx:Script
 mx:Text text={headerText} width=100% height=100%/
 /mx:HBox
 
 All I want to show is the headerText with a backgroundColor in the
header.
 
 Can anyone help please?
 
 All I get at the moment is a blank header, with nothing in it and the
 same as the default header colors.
 
 Cheers,
 
 Iain





[flexcoders] help AS3 change datagrid column values

2007-02-15 Thread bobrene07
hello,

I'm trying to change all the values
of a column in a datagrid Element in AS3.

I hope somebody will able to help me.

thx

Bob