[flexcoders] Alternative to ILOG Elixir indicators and Degrafa

2009-09-04 Thread civilu007
Hello,

For my project I need a component that can display some alphanumeric text, 
basically some sort of fancier label.

The requirements are that it displays alphanumeric text, an optional sign for 
numbers, that the number of displayed characters is not limited and the 
component auto-resizes for all text to fit in. I should also be able to modify 
the foreground and the background, the font etc.
And of course it should look good (a simple label would not suffice).

The options I have right now is either using ILOG Elixir which has some 
"indicator" components in version 2.0 or making my own component with Degrafa.

Do you know of any other options?

Thanks,
Alex



flexcoders@yahoogroups.com

2009-05-12 Thread civilu007
Hello,

I'm trying to test a Flex application with Selenium using the set-up
described at
http://blackpepper.co.uk/black-pepper-blog/Flex-acceptance-testing-and-c\
ontinuous-integration.html . For those not inclined to read through that
post, I'm using flash-selenium and Selenium Flex API to enable the
automated testing of the Flex application with JUnit.

The problem I'm facing is dragging and dropping an element of a list to
another component in the application. I do that with doFlexDragTo, which
seems to be the correct way to do it, but I cannot get Selenium to
recognize the element of the list I want to drag.

My list has a custom item renderer, which is nothing more than the
classic Box holding an Image and a Label. What I do to make the element
recognizable is to set a property of the renderer (let's say name or
automationName) to the text of the label and then, in the JUnit test,
use name= as the identifier for my object. So, the call in
JUnit would be something along the lines of

flashApp.call("doFlexDragTo", "name=", );

And nothing. Calling  getFlexVisible for the same identifier returns
false, which seems to say that the id is correct, but the object is
somehow hidden.

So, does anyone have any pointers on how can "drag that element of the
list and drop it on this component over here" can be expressed?
Specifically the "drag that element of the list" part.

Any idea is much appreciated.

Thank you!



[flexcoders] Drawing on skinned component

2009-02-20 Thread civilu007
Hello,

I'm trying to draw something on a component skinned using a Flash
skin, but nothing is drawn (or better said, I don't see anything
because the drawing is done beneath the skin).

My code looks something like

public class TestButton extends Button
{
  public function TestButton()
  {
super();
  }

  override protected function updateDisplayList(w:Number, h:Number):void
  {
super.updateDisplayList(w, h);

var g:Graphics = graphics;

g.moveTo(0, unscaledHeight / 2);
g.lineStyle(1, 0x00);
g.lineTo(unscaledWidth, unscaledHeight / 2);
  }
}

I have tried using a Sprite as the topmost child and drawing on it,
but apparently there's always something above my Sprite and I still
can't see what I draw.

I've googled and searched the group archives for a similar problem,
but either I'm not using the right search terms or nobody had such a
problem before because I can't seem to find anything of help.

So, does anybody have some pointers as to what might one do to draw on
such a component?

Thank you!