Re: [flexcoders] What's your favorite automated testing tools?

2010-05-05 Thread Akshar Kaul
try QTP(quick test pro).

Akshar Kaul


On Wed, May 5, 2010 at 02:09, ssekiguchi ssekigu...@comcast.net wrote:



 I've got a project where I need to build automated UI tests for the app
 we're building. Any suggestions on which tool is the best?

  



Re: [flexcoders] What's your favorite automated testing tools?

2010-05-05 Thread Andriy Panas
Try RIATest, relatively inexpensive tool, support Flex 4 SDK, has a good
product support via forums
http://www.riatest.com/
http://www.riatest.com/
--
Best regards,
Andriy Panas



On 4 May 2010 23:39, ssekiguchi ssekigu...@comcast.net wrote:



 I've got a project where I need to build automated UI tests for the app
 we're building. Any suggestions on which tool is the best?

  



[flexcoders] Re: Dynamic skin on spark.component.textinput

2010-05-05 Thread bhaq1972
try

newObject.setStyle(skinClass, 
getDefinitionByName(spark.skins.spark.TextInputSkin));

instead of
newObject[skinClass] = spark.skins.spark.TextInputSkin;



--- In flexcoders@yahoogroups.com, Netaman rtigr...@... wrote:

 I stripped away most of the code and just have all the pertinent parts.
 
 The UIComponent is used because I don't know what class I will be adding to 
 the application, I have hard coded the string for clarity.
 What I am trying to do is dynamically create a textinput spark component, 
 but running into a problem with the skin class, when I create the UIComponent 
 the skin is null and I get an exception when I add it to the HGroup.
 
 So thought that if I added the skinclass before I added the element to the 
 HGroup it would work.
 
 Does anyone have any example code to set the skinclass of a textinput 
 dynamically?
 
 private function createTextInput():void {
   var objClass:Class = getDefinitionByName( spark.components.TextInput 
 ) as Class;  
   var newObject:UIComponent = UIComponent( new objClass() );  
   
   var xObject:HGroup = new spark.components.HGroup();
   var newLabel:Label = new spark.components.Label();
   newLabel[ text ] = First Name:;
   newObject[skinClass] = spark.skins.spark.TextInputSkin;
   newObject.percentWidth = 20;
   xObject.addElement(newLabel);
   xObject.addElement(newObject);
   this.addElement( xObject );
 }





[flexcoders] Re: Security vulnerabilities of making RPC from HTTP-client to HTTPS-background

2010-05-05 Thread Jukka


Hi Oleg,

checked it with WireShark. It seems Flex indeed sends and gets everything 
unencrypted even with the SSL on the Tomcat.

So I guess it is the same as using no SSL altogether.

Cheers,
Jukka

--- In flexcoders@yahoogroups.com, Oleg Sivokon olegsivo...@... wrote:

 Sorry, this is not a good answer, because I don't know it and cannot check
 at the moment. But it is easy to check if you have some traffic analyzer
 tool. AMF is relatively easy to read, for instance, strings are not
 compressed or modified in any other way. So, say and you send a test AMF
 message containing hello world, and in the data sent you see hello world
 again, it will mean it is not encrypted. :)





Re: [flexcoders] Mediators, Presentation Models and Flex 4 Components

2010-05-05 Thread Haykel BEN JEMIA
Thanks Gabirel.

I'm also thinking about the case when we use some flex framework like
Parsley. For performance reasons it is generally advised to only manage
lightweight classes by the framework and for views mediators are used. So
any suggestion on how to create mediators that fit good in the new Flex 4
component/skin architecture?

Thanks,

Haykel Ben Jemia

Allmas
Web  RIA Development
http://www.allmas-tn.com




2010/5/4 gabriel montagné gabr...@rojored.com



 Hi,


 On 04/05/2010, Haykel BEN JEMIA hayke...@gmail.com haykelbj%40gmail.com
 wrote:

  with the new Flex 4 components architecture which actually separates
 logic
  from design with the Skin paradigm, what is the best way to implement
  Mediators/Presentation Models that best uses the capabilities of this
  architecture (partAdded, partRemoved, getCurrentSkinState etc.).

 The new Flex 4 skin architecture allows a clean enough separation of layout
 and behavior concerns to be able to do without other options which aim at
 the
 same kind abstraction but cannot achieve the same degree of integration
 with
 the framework.


  For now I'm simply using the AS class of a component as a mediator and
 the
  skin as a view.

 I would say this is perfectly complete, I wouldn't go looking for any more
 levels of indirection.

 Cheers,
 Gabriel

 --
 gabriel montagné láscaris comneno
 http://rojored.com
 +44 (0) 7500 709 209
  



[flexcoders] application preload and amf calls

2010-05-05 Thread ouaqa
Hello fellow flex coders.

In the current application that I'm working on, I have to display on the login 
window a list obtained through an AMF call to the server. 

My problem is that I don't know how to freeze the loading of my application 
until the response from the AMF call is obtained. 

Any suggestion would be appreciated.

Thanks in advance,
ouaqa



Re: [flexcoders] Re: Out of curiosity, what would Adobe lose if Flash were open sourced?

2010-05-05 Thread Oleg Sivokon
Yes, I did, and it is enough to view the flash graphics. And, of course it
doesn't really execute any AVM2 bytecode.
What I was trying to say in my previous posts is that *would be* (would be
is accented if you cannot see the HTML formatting) great if Adobe had given
more thinking to supporting this initiative as well as other initiatives
concerning the SWF format usage.
I encourage you (not you in particular, but anyone interested) to go and
read this:
http://ncannasse.fr/blog/open_source_flash?lang=en
http://ncannasse.fr/blog/back_in_2005?lang=en
These aren't really happy articles, they are rather frustrating...
The current state of things is that the tools existing on Linux for
developing for flash are almost nil, or are so bad that you won't want to
use them. Start with that the debug player installation is broken and it was
probably never tested because the shell script which has to install the
player contains syntax errors...
Now to format openness and what it means and what's the fuss is all about.
Well, this is my understanding and what I conclude from all I've read from
Richard Stallman and many others respected OSS admirers. The intention of
OSS is to prevent one company, which had circumstantially acquired a
knowledge or technology from restricting others from using the same
knowledge. That is, once you invent a bicycle and then you discover the
bicycle was already invented, the fact you have also discovered it should be
valid enough to let you use it the way you see fit. This, on the other hand
doesn't mean that you have any right to demand from another inventor to
implement the changes that you want to his own invention. Think of you being
the other inventor, you would immediately comprehend the situation.
I do take part in three OSS projects. I also have submitted requests for
changes / patches - some were implemented, some weren't. This is up to the
projects owner to implement them, and if I believe the project's owner is
wrong not applying my patch, then, sorry, but I have no other choice, but to
start my own project, where I would do it as I want. However you want it or
not, this is true when speaking about SWF format. I can submit a patch or
post an improvement request, and it is in the right of the original
developer (Adobe) to apply or reject my patch.
What is true though regarding OSS community vs Adobe relationships is that
they are far from being perfect... It is often times to difficult to
communicate your ideas to Adobe engineers... (yet it is definitely possible)
It is also true that Adobe seldom mentions or even agrees to admit other
flash-related projects exist. I have so far not seen any official statement
from Adobe PR people regarding HaXe, SWFTools and others of this kind.

Best.

Oleg


[flexcoders] Webcam not working on MAC machine

2010-05-05 Thread venkat eswar
Hi,
I have done a video chat application using Flex3.0 and FMS3.5. It works 
perfectly on Windows machine. In MAC machines Webcam is not working 
perfectly.How to solve this issue.



  

[flexcoders] xmlrpc send some string

2010-05-05 Thread cholid cholid
Hi all
im newbie to use xmlrpc
how to send some string using xmlrpc?
thanks



  

[flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-05 Thread Jeffry Houser
 Very valid point!  Other than giving Adobe a feature request, any changes you 
introduce to the format would be unlikely to be read by the most popular swf 
player.  

 However, if you wanted to introduce a chance to HTML5; how would you do that?  

 Does anyone, other than a few companies on the committee have any say into the 
spec?  

--- In flexcoders@yahoogroups.com, mitek17 mite...@... wrote:

 Hi Jeff,
 
 Seriously, you can not see the difference between published and open?
 No kidding?
 
 If I want to introduce some changes in SWF format, what should I do to 
 achieve this?.
 
 PS Please don't use Why do you need this, anyway(c) as this is a 
 copyrighted answer in Apple community.
 
 
 
 
 --- In flexcoders@yahoogroups.com, Jeffry Houser jeff@ wrote:
 
  
   What restrictions are placed upon the SWF format?  None so far as I know.  
  You can take the spec and do whatever you want with it; including creating 
  alternate IDEs and alternate players.
  
   You might be able to argue that it is not a standard in the same way that 
  HTML or SVG is.  But, that doesn't make it non-open.  
  
  --- In flexcoders@yahoogroups.com, Guy Morton guy@ wrote:
  
   It's PUBLISHED. That's not the same as OPEN. 
   
   Open formats, like SVG, are generally developed by a standards 
   organisation, with input from any interested parties. Open formats, by 
   definition, can be used without restriction by anyone.
   
   Proprietary formats, like Flash, are defined and controlled by private 
   organisations, like Adobe. They may publish their format spec to 
   encourage use of it, but they don't hand over control of it to a 
   standards organisation. 
   
   So Flash is a published, but proprietary, format. HTML and SVG, are open 
   formats.
   
   Guy
   
   
   On 04/05/2010, at 11:31 PM, Jeffry Houser wrote:
   

This is actually wrong. the SWF format is open and documented for all 
to use ( http://www.adobe.com/devnet/swf/ ). Are you aware of any 
restrictions placed upon use of the specification that do not make it 
open? 

Adobe's Flash Player, on the other hand, is very proprietary. 

--- In flexcoders@yahoogroups.com, Guy Morton guy@ wrote:

 On 04/05/2010, at 9:39 AM, Oleg Sivokon wrote:
  SWF is not a proprietary format,
 
 Yes. It. Is.

   
  
 





[flexcoders] mvc pattern for flex

2010-05-05 Thread Fernando Wermus
Hi all,
I was looking at Aconcagua. but there is a line of new code since a year
and a half.
Puremvc seems to be a kind of big compared to Cainrgorm.

Which options have you choosen as the best for MVC in Flex?

I know Caingorm and I dont like.

thanks in advance

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-05 Thread Johannes Nel
 i would like to chime in on this point.


 What restrictions are placed upon the SWF format? None so far as I know.
 You can take the spec and do whatever you want with it; including creating
 alternate IDEs and alternate players.

 You might be able to argue that it is not a standard in the same way that
 HTML or SVG is. But, that doesn't make it non-open.
 --


I somehow doubt the people on red5, woza and such would spend so much time
not reading the specs if it was really that open. (you are not allowed to
reverse engineer the rmtp(t/s) etc protocols. Projects Like phpAMF were (and
legally i think still might be in legal black holes were nothing has been
confirmed or denied about their position).
Also, think of all those hidden API's which Breeze and Adobe Connect use or
the ability to connect directly via TCP  to other clients without buying an
extremely expensive server.
HTML 5 is much more open than all of this, yes people have API's which are
browser specific, but really what is the point of that (that is as good as
deploying with gears (in the past, now this api is built into chrome).

Also to note, we have been developing and extending a product written in
flex with full QA cycles for more than a year now and we have had several
browser specific bugs. (although compared to html much much less), but more
tricky to fix.

I love Flash and have love developing for the platform, this is the 10th
year since I started with swf's and I clearly see good things coming out of
HTML 5 and the openness of the standard.
I think the tools we use to develop in Flash and Flex are way behind similar
toolsets for other languages and testing, OMG, automated testing is a F-ing
pain in the @5s compared to html.

Just remember how sad we all were when Tamarin/ ECMAScript 4 was canned.





j:pn
\\no comment


Re: [flexcoders] mvc pattern for flex

2010-05-05 Thread Steve Mathews
In my opinion http://www.robotlegs.org/ is the way to go.


On Wed, May 5, 2010 at 7:46 AM, Fernando Wermus
fernando.wer...@gmail.comwrote:



 Hi all,
 I was looking at Aconcagua. but there is a line of new code since a
 year and a half.
 Puremvc seems to be a kind of big compared to Cainrgorm.

 Which options have you choosen as the best for MVC in Flex?

 I know Caingorm and I dont like.

 thanks in advance

 --
 Fernando Wermus.

 www.linkedin.com/in/fernandowermus


 


Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-05 Thread Oleg Sivokon
Sorry, cannot miss this one :)

 I think the tools we use to develop in Flash and Flex are way behind
similar toolsets for other languages
Please be specific, are you comparing Flash to Inkscape? Are you for real? I
mean, if it's not Inkscape, then it should be Blend (but we are then back
again to the proprietary world), because what other tools did you have in
mind when speaking of vector graphics on the web?
I don't agree with you saying that AS editors are bad as a whole. This is
clearly a very subjective judgement. I would rate FlashDevelop for instance
as third best editor I've ever seen with Visual Studio and MonoDevelop being
the better ones (I cannot decide on the order :) And all sorts of Eclipse /
NetBeans / MPS somewhere much further down the list.
Let us take every thing in proportion, there is bad and there is not
perfect and these two are clearly different things.


[flexcoders] reboot App command for AIR?

2010-05-05 Thread luvfotography
Hi, I'm building an Air app in flex, 
is there any reboot/restart/reload?  command that I can
call to restart my AIR app from actionscript( ie. inside the application 
itself),
thanks,




[flexcoders] flex toggle button question

2010-05-05 Thread adrian roston
Hi All,

I have a toggle button (play / pause), that needs to be 'clicked' externally
from flash (e.g. a javascript call thru external interface to pause the
video).   I am able to make the button switch state by saying

playPauseButton.selected=true

This succeeds in toggling the skin for the button, but doesn't seem to
toggle the internal state of the button.   So the next time the button is
clicked with the mouse, the click action doesn't fire, and you have to click
the button twice to have it work.

Has anyone seen this before?

Thanks,

Adrian


[flexcoders] Compiling an AIR app using adl

2010-05-05 Thread Anthony
I'm running into an issue while attempting to compile my AIR app. I run the 
following:

./adl -runtime ../runtimes/air/mac/ 
~/Documents/FlexProject/work/BKMark/src/BKMark-app.xml 

And receive the following error:

invalid application descriptor: descriptor version does not match runtime 
version


My descriptors seem to matching. Not sure what the deal is.







Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-05 Thread Jochem van Dieten
On Wed, May 5, 2010 at 6:57 AM, mitek17 wrote:
 Mea culpa. Everytime Flash plugin crashes and Firefox says Ooops, do you 
 want me to send the info about this crash to Apple? I click on Yes, please.

The question was what is factual wrong in Jobs message. To which I
responded that the claim that Flash can crash an operating system is
incorrect because it runs in the wrong ring so it can't even do so.
For an introduction to the subject see
http://en.wikipedia.org/wiki/Ring_%28computer_security%29
Your claim of Flash crashing an application has no relevance for that,
and does nothing to prove Jobs right.

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/


Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-05 Thread Johannes Nel
With way behind I am referring to the whole eco-system :
 profiler (contains rant),
crappy automated testing tools (qtp?) and docs about the api's for people
trying to write their own (flex mokey)
More comprehensive documentation on extending  Flex builder API - helping
people extend their tool instead of making it more difficult.



On Wed, May 5, 2010 at 6:42 PM, Oleg Sivokon olegsivo...@gmail.com wrote:



 Sorry, cannot miss this one :)

  I think the tools we use to develop in Flash and Flex are way behind
 similar toolsets for other languages
 Please be specific, are you comparing Flash to Inkscape? Are you for real?
 I mean, if it's not Inkscape, then it should be Blend (but we are then back
 again to the proprietary world), because what other tools did you have in
 mind when speaking of vector graphics on the web?
 I don't agree with you saying that AS editors are bad as a whole. This is
 clearly a very subjective judgement. I would rate FlashDevelop for instance
 as third best editor I've ever seen with Visual Studio and MonoDevelop being
 the better ones (I cannot decide on the order :) And all sorts of Eclipse /
 NetBeans / MPS somewhere much further down the list.
 Let us take every thing in proportion, there is bad and there is not
 perfect and these two are clearly different things.
  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-05 Thread Jochem van Dieten
On Wed, May 5, 2010 at 3:59 PM, Jeffry Houser wrote:
  Very valid point!  Other than giving Adobe a feature request, any changes 
 you introduce to the format would be unlikely to be read by the most popular 
 swf player.

  However, if you wanted to introduce a chance to HTML5; how would you do that?

You join the relevant mailinglist and provide your input. The rest is
up to the quality of your proposition.

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/


RE: [flexcoders] mvc pattern for flex

2010-05-05 Thread Christopher McArthur
using Swiz here which works well for dependency injection, I would
recommend it.

 

However, Ive been hearing a ton of great things about RobotLegs
recently.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Fernando Wermus
Sent: Wednesday, May 05, 2010 7:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mvc pattern for flex

 

  

Hi all,

I was looking at Aconcagua. but there is a line of new code since a
year and a half.

Puremvc seems to be a kind of big compared to Cainrgorm.

 

Which options have you choosen as the best for MVC in Flex?

 

I know Caingorm and I dont like.

 

thanks in advance


-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus

 



[flexcoders] using TextArea as ItemRenderer for DataGridColumn

2010-05-05 Thread mitchgrrt
I'm trying to use a TextArea as an ItemRenderer for a DataGridColumn.  I
want the rows to be high enough to hold the text, however many lines
there are.  It's not working.  Can somebody offer some advice?  Thanks.


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 mx:Script
 ![CDATA[
 [Bindable] private var _selectedData:Object = {
 formFactor: xbrybrz
 };
 ]]
 /mx:Script

 mx:DataGrid dataProvider={_selectedData} rowCount=1
variableRowHeight=true verticalScrollPolicy=off
verticalAlign=middle
 mx:columns
 mx:DataGridColumn headerText=Form Factor wordWrap=true

 mx:itemRenderer
 mx:Component
 mx:TextArea htmlText={data.formFactor}
verticalScrollPolicy=off wordWrap=true /
 /mx:Component
 /mx:itemRenderer
 /mx:DataGridColumn
 /mx:columns
 /mx:DataGrid

/mx:Application





Re: [flexcoders] using TextArea as ItemRenderer for DataGridColumn

2010-05-05 Thread Alex Harui
Why didn’t default renderer do what you want?


On 5/5/10 12:58 PM, mitchgrrt mitch_g...@hotmail.com wrote:






I'm trying to use a TextArea as an ItemRenderer for a DataGridColumn.  I
want the rows to be high enough to hold the text, however many lines
there are.  It's not working.  Can somebody offer some advice?  Thanks.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 mx:Script
 ![CDATA[
 [Bindable] private var _selectedData:Object = {
 formFactor: xbrybrz
 };
 ]]
 /mx:Script

mx:DataGrid dataProvider={_selectedData} rowCount=1
variableRowHeight=true verticalScrollPolicy=off
verticalAlign=middle
 mx:columns
 mx:DataGridColumn headerText=Form Factor wordWrap=true

 mx:itemRenderer
 mx:Component
 mx:TextArea htmlText={data.formFactor}
verticalScrollPolicy=off wordWrap=true /
 /mx:Component
 /mx:itemRenderer
 /mx:DataGridColumn
 /mx:columns
 /mx:DataGrid

/mx:Application






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-05 Thread Oleg Sivokon

 With way behind I am referring to the whole eco-system :
  profiler (contains rant),
 crappy automated testing tools (qtp?) and docs about the api's for people
 trying to write their own (flex mokey)
 More comprehensive documentation on extending  Flex builder API - helping
 people extend their tool instead of making it more difficult.


OK... maybe writing plugins for Flex Builder is difficult - I don't know.
The world doesn't spin around Flash Builder. I've written two plugins for
FlashDevelop so far, and it is easy! So, maybe you are not looking in the
right direction? Why do you want to do something difficult, while there is
another way of doing the exact same thing with less efforts?


[flexcoders] Re: using TextArea as ItemRenderer for DataGridColumn

2010-05-05 Thread mitchgrrt
I wish I could post a picture on this forum.  In the example source code the 
data has 3 lines in it:

x
y
z

and only two lines show up in the grid.  If you use the arrow keys you can 
scroll down and see the third line but I wanted all three to show up.  I want 
the TextArea renderer to show all the lines in its data without scrolling.

Thanks.

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Why didn't default renderer do what you want?
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-05-05 Thread mitchgrrt
Flash is an API.  People can write programs that don't work using it.  Same 
thing with HTML/JavaScript:  I can write an application that doesn't work and 
then someone can point Safari at my application.  Does that mean Jobs should 
ban HTML/JavaScript?

- Mitch Gart 


--- In flexcoders@yahoogroups.com, mitek17 mite...@... wrote:

 Mea culpa. Everytime Flash plugin crashes and Firefox says Ooops, do you 
 want me to send the info about this crash to Apple? I click on Yes, please.
 
 Do you want me to stop doing this, to improve the Flash image?
 
 PS I have to admit, I am doing it several times a day, so maybe that's why 
 Jobs thinks it is so bad
 
 
 Cheers,
 Dmitri.




Re: [flexcoders] Mediators, Presentation Models and Flex 4 Components

2010-05-05 Thread gabriel montagné
Hi,

On 05/05/2010, Haykel BEN JEMIA hayke...@gmail.com wrote:
 I'm also thinking about the case when we use some flex framework like
 Parsley. For performance reasons it is generally advised to only manage
 lightweight classes by the framework and for views mediators are used. So
 any suggestion on how to create mediators that fit good in the new Flex 4
 component/skin architecture?

I'd say that first there's the Flex framework level---it's component and
application lifecycles---with which you should be very familiar with if you're
concerned about your application's performance.   If used properly it will
hide from you most of the problems associated with flash performance like
frame render cycles and the order in which things are measured and laid out.

And then the micro-architecture level, also called framework, but which is a
different level---the level at which Parsley would be described---which
guides you about how components and other classes are grouped into larger
applications.

It is at this level a one can appreciate a light weight, non intrusive
frameworks which reduce the need to write boiler plate code and will let you
aggregate features to your application in a way that you can always make sense
of what's going on... but performance at this level is perhaps more of a
programmer's performance: how can these guidelines and helper classes keep
the accumulating code readable for programmer whose job, more than anything
else, is to read lots and lots of ageing code.

I've been using Swiz lately ---which is somewhat related to Parsley--- and the
guys that build it insist on not having to extend their classes but only mark
here and there with metadata to let the framework fill in the gaps for you.
This is not, I think, to make the app go faster but to keep you from becoming
confused with myriads of strange unfamiliar voodoo classes which multiply in
between the parts you do properly understand: your components and your data.
But this is not at the skin-host level but higher up.

So regarding your question, if in your host component you understand the lower
level interactions of your skin parts (clicked this, typed that) and can
translate them into higher level gestures (attempt a login, make a search)
which you can just dispatch in the simplest way possible and let your Swiz or
Parsley, etcetera, classes magically forward that gesture your controllers,
mediators, I guess you should be fine.

hth,
gabriel


-- 
gabriel montagné láscaris comneno
http://rojored.com
+44 (0) 7500 709 209


Re: [flexcoders] Re: using TextArea as ItemRenderer for DataGridColumn

2010-05-05 Thread Alex Harui
I think the best path to take is to subclass DataGridItemRenderer and fix its 
ability to use and measure html correctly.  To use TextArea you will also have 
to write custom measure code, but DGIR will be easier to work with I think, and 
much lighterweight


On 5/5/10 1:37 PM, mitchgrrt mitch_g...@hotmail.com wrote:






I wish I could post a picture on this forum.  In the example source code the 
data has 3 lines in it:

x
y
z

and only two lines show up in the grid.  If you use the arrow keys you can 
scroll down and see the third line but I wanted all three to show up.  I want 
the TextArea renderer to show all the lines in its data without scrolling.

Thanks.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex 
Harui aha...@... wrote:

 Why didn't default renderer do what you want?

 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Matrix Transform does not update Container's properties

2010-05-05 Thread mitek17
Hi Alex et al,


Could you please have a look at the following problem:
https://bugs.adobe.com/jira/browse/SDK-26388

If you transform container in Flex, it won't update it's own properties, which 
means they become invalid after the first transform.

It works fine for SWFLoader. 

Thanks!

Cheers,
Dmitri.



[flexcoders] Re: using TextArea as ItemRenderer for DataGridColumn

2010-05-05 Thread mitek17

Default IR is good until you have a text longer than a datagrid.height, it 
won't show the scrollbars. It is easy to replicate - just supply 1000 lines of 
text per row and you won't see the bottom. And the worst part of it - user will 
never know that there is some hidden below the bottom line. 

If you use TextArea as IR, it will show the scrollbars, but the whole datagrid 
is getting nuts while rendering. It means that it will render the rows way 
after the datagrid on first create. If you update datagrid, it will place IRs 
correctly.  
I tried to fix it by overriding, but the standard IR is using mx_internal in 
many places.

If you'll have a chance to look at it as well it would be great. Thanks!

Cheers,
Dmitri.



--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Why didn't default renderer do what you want?
 
 





 On 5/5/10 12:58 PM, mitchgrrt mitch_g...@... wrote:
 
 
 
 
 
 
 I'm trying to use a TextArea as an ItemRenderer for a DataGridColumn.  I
 want the rows to be high enough to hold the text, however many lines
 there are.  It's not working.  Can somebody offer some advice?  Thanks.
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
  mx:Script
  ![CDATA[
  [Bindable] private var _selectedData:Object = {
  formFactor: xbrybrz
  };
  ]]
  /mx:Script
 
 mx:DataGrid dataProvider={_selectedData} rowCount=1
 variableRowHeight=true verticalScrollPolicy=off
 verticalAlign=middle
  mx:columns
  mx:DataGridColumn headerText=Form Factor wordWrap=true
 
  mx:itemRenderer
  mx:Component
  mx:TextArea htmlText={data.formFactor}
 verticalScrollPolicy=off wordWrap=true /
  /mx:Component
  /mx:itemRenderer
  /mx:DataGridColumn
  /mx:columns
  /mx:DataGrid
 
 /mx:Application
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





[flexcoders] dataGrid ItemRenderer Error

2010-05-05 Thread jmfillman
I'm getting the following error:
Access of underfined property data 

Code (in a skin):
mx:DataGrid left=10 top=75 right=10 bottom=10 id=searchGrid 
dataProvider={hostComponent.search} 
doubleClickEnabled=true doubleClick={hostComponent.modify()} 
   mx:columns
  mx:DataGridColumn headerText=Label dataField=Label/
  mx:DataGridColumn headerText=Date dataField=Date/
  mx:DataGridColumn headerText=Start dataField=col3/
  mx:DataGridColumn headerText=Duration dataField=Duration
mx:itemRenderer
 fx:Component
s:HGroup left=0 right=0 verticalCenter=0
s:Label text={data.Duration} /
/s:HGroup
 /fx:Component
/mx:itemRenderer
  /mx:DataGridColumn
   /mx:columns
/mx:DataGrid



Re: [flexcoders] Re: using TextArea as ItemRenderer for DataGridColumn

2010-05-05 Thread Alex Harui
I think I’d try the Spark DataGrid example from my blog.  You might be able to 
scroll through lines taller than the grid.


On 5/5/10 6:51 PM, mitek17 mite...@gmail.com wrote:







Default IR is good until you have a text longer than a datagrid.height, it 
won't show the scrollbars. It is easy to replicate - just supply 1000 lines of 
text per row and you won't see the bottom. And the worst part of it - user will 
never know that there is some hidden below the bottom line.

If you use TextArea as IR, it will show the scrollbars, but the whole datagrid 
is getting nuts while rendering. It means that it will render the rows way 
after the datagrid on first create. If you update datagrid, it will place IRs 
correctly.
I tried to fix it by overriding, but the standard IR is using mx_internal in 
many places.

If you'll have a chance to look at it as well it would be great. Thanks!

Cheers,
Dmitri.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex 
Harui aha...@... wrote:

 Why didn't default renderer do what you want?



 On 5/5/10 12:58 PM, mitchgrrt mitch_g...@... wrote:






 I'm trying to use a TextArea as an ItemRenderer for a DataGridColumn.  I
 want the rows to be high enough to hold the text, however many lines
 there are.  It's not working.  Can somebody offer some advice?  Thanks.

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
  mx:Script
  ![CDATA[
  [Bindable] private var _selectedData:Object = {
  formFactor: xbrybrz
  };
  ]]
  /mx:Script

 mx:DataGrid dataProvider={_selectedData} rowCount=1
 variableRowHeight=true verticalScrollPolicy=off
 verticalAlign=middle
  mx:columns
  mx:DataGridColumn headerText=Form Factor wordWrap=true
 
  mx:itemRenderer
  mx:Component
  mx:TextArea htmlText={data.formFactor}
 verticalScrollPolicy=off wordWrap=true /
  /mx:Component
  /mx:itemRenderer
  /mx:DataGridColumn
  /mx:columns
  /mx:DataGrid

 /mx:Application






 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui







--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] dataGrid ItemRenderer Error

2010-05-05 Thread Alex Harui
Most mx components are capable of being item renderers.  Most spark components 
are not and don’t have a data property.  Use MXDataGridItemRenderer and shove 
all the other things inside it.


On 5/5/10 8:54 PM, jmfillman jmfill...@verizon.net wrote:






I'm getting the following error:
Access of underfined property data

Code (in a skin):
mx:DataGrid left=10 top=75 right=10 bottom=10 id=searchGrid 
dataProvider={hostComponent.search}
doubleClickEnabled=true doubleClick={hostComponent.modify()} 
 mx:columns
 mx:DataGridColumn headerText=Label dataField=Label/
 mx:DataGridColumn headerText=Date dataField=Date/
 mx:DataGridColumn headerText=Start dataField=col3/
 mx:DataGridColumn headerText=Duration dataField=Duration
mx:itemRenderer
 fx:Component
s:HGroup left=0 right=0 verticalCenter=0
s:Label text={data.Duration} /
/s:HGroup
 /fx:Component
/mx:itemRenderer
 /mx:DataGridColumn
 /mx:columns
/mx:DataGrid






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Matrix Transform does not update Container's properties

2010-05-05 Thread Alex Harui
There might be something I’m missing, but Flex 3 does not support most 
transform manipulations other than scale.  It should work correctly in Flex 4, 
especially for Spark components.


On 5/5/10 6:40 PM, mitek17 mite...@gmail.com wrote:






Hi Alex et al,

Could you please have a look at the following problem:
https://bugs.adobe.com/jira/browse/SDK-26388

If you transform container in Flex, it won't update it's own properties, which 
means they become invalid after the first transform.

It works fine for SWFLoader.

Thanks!

Cheers,
Dmitri.






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui