Re: [flexcoders] JQuery questions

2009-09-17 Thread claudiu ursica
I have no doubt that he can port the app, still up for debate how quickly and 
easy. However make him run it in IE6.

Case closed :)
C





From: adamsch1 adams...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Thursday, September 17, 2009 3:26:58 AM
Subject: [flexcoders] JQuery questions

   
We were showing our product [written entirely in Flex BTW] to a web developer 
who commented that he could [with about as much trouble] duplicate our 
application via JQuery.

I am not a web developer, so I am not qualified to agree or disagree with his 
comment.  I'm not even sure its a valid statement?  Our application is entirely 
written in Flex [on top of blazeds], and is very involved, we have written many 
custom components for performance or custom behavior in many situations.

My guess is a pure JS route, even with JQuery or another framework would still 
lead you to some porting challenges with the various browsers?

I apologize for the troll like posting in advanced ;)

Shane


   


  

[flexcoders] Is there a way to control TextArea scrollbar thickness?

2009-09-17 Thread guytom
From what I found so far the only way is to replace the up/down arrows?



[flexcoders] Loading Image files

2009-09-17 Thread SvenM
I have a series of images in a viewstack.  The stack changes its index using a 
timer and I have applied a fade effect between changes.  The problem I am 
experiencing is that there is an interruption in the first fade effect as the 
image is being downloaded to the user's pc since they are not embedded images.  
Is there a way to preload an image before I try to display it so there is no 
gap in the fade effect?



[flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-09-17 Thread litlboyblue
--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote:

Yes, that is what Alex is saying. Handler B will not begin before
handler A finishes. Event handlers don't get paused. Furthermore, when
you (or the Player) calls dispatchEvent(), all the event handlers
listening for that event execute before dispatchEvent() returns.


I really want to believe this assertion, and I hate to belabor the
point, but I'm troubled by the observed behavior in the Debug Player
under IE8.  In this case, a run-time error was thrown by the handler of
a network event and the standard dialog was displayed.  This condition
exposed a problem in our network message parser, which caused subsequent
network events to also display run-time errors.  I was unsettled to find
that a new dialog was displayed, and a new Windows OS-level thread
created with each run-time error, even though I hadn't dismissed the
initial error dialog.  It appeared that the network event handler code
executed and threw a run-time exception with each message received from
the network, regardless.
This would seem to be an exception to the behavior stated above; does a
run-time error dialog cause the execution context to pause and allow
other event handlers to be executed?
If so, is this only possible in the Debug Player, or do we have to worry
about protecting against possible re-entrance in handlers that access
global data?



[flexcoders] Re: How do I get the browser's height and width?

2009-09-17 Thread paulfischer60
--- In flexcoders@yahoogroups.com, luvfotography ygro...@... wrote:

 How do I get the browser's height and width, 
 not the swf's height and width, but the browser's height and width,
 can I get it without using javascript (external interface)?
 thanks,


You can do this with JQuery. I use this to resize the flex app based on the 
user's screen resolution and browser size.

see: 
http://docs.jquery.com/CSS/height
http://docs.jquery.com/CSS/width



[flexcoders] Re: Lagging Panel title

2009-09-17 Thread valdhor
Possibly...

  override public function invalidateDisplayList():void
{
 super.invalidateDisplayList();
 _title = propertyObject.title + ' Properties';
  }


--- In flexcoders@yahoogroups.com, droponrcll amyblankens...@...
wrote:

 Hi, all;

 I have a component that extends Panel.  The panel title is bound to a
private bindable variable that I set in commitProperties.  The title
variable updates, but the titleTextField.text doesn't update, so the
title always lags behind.

 I haven't done Flex on a regular basis in a few months, so if someone
can see what I'm doing wrong here, I'd appreciate it:

 ?xml version=1.0 encoding=utf-8?
 mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical
xmlns:view=com.magnoliamultimedia.view.* title={_title}
  mx:states
   mx:State name=realObject
mx:AddChild
 view:RealCourseObjectProperties width=100% height=100%
id=realObjectProperties /
/mx:AddChild
   /mx:State
  /mx:states
  mx:Script
   ![CDATA[
import com.magnoliamultimedia.vo.ContainerItem;
import com.magnoliamultimedia.vo.PresentationContainer;
import com.magnoliamultimedia.vo.RealCourseObject;
private var _propertyObject:*;
private var _propertyObjectChanged:Boolean;
[Bindable]
private var _title:String='Properties';

/**
 * Object whose properties we want to show.
 * Can be RealCourseObject, PresentationContainer, or
ContainerObject
 */
public function get propertyObject():* {
 return _propertyObject;
}
public function set propertyObject(obj:*):void {
 if (!(obj is RealCourseObject) 
  !(obj is PresentationContainer) 
  !(obj is ContainerItem))
 {
  throw new Error('propertyObject must be RealCourseObject,
PresentationContainer, or ContainerItem.');
  return;
 }
 if (obj != _propertyObject) {
  _propertyObject = obj;
  _propertyObjectChanged = true;
  invalidateProperties();
  invalidateDisplayList();
 }
}

override protected function commitProperties():void {
 super.commitProperties();
 if (_propertyObjectChanged) {
  //change state to reflect what kind of object was selected
  if (propertyObject is RealCourseObject) {
   currentState = 'realObject';
   realObjectProperties.realObject = propertyObject as
RealCourseObject;
  }
  _title = propertyObject.title + ' Properties';
  invalidateDisplayList();
  _propertyObjectChanged=false;
 }
}
   ]]
  /mx:Script
 /mx:Panel

 Thanks!

 Amy





[flexcoders] Re: Different behaviour between deployment and IDE execution

2009-09-17 Thread valdhor
an event.statuscode of 0 means that there were no errors. You are checking if 
the statuscode is NOT equal to 404. Is that what you really wanted to do?



--- In flexcoders@yahoogroups.com, tendancer2000 tendan...@... wrote:

 Just finished my first ever Flex app (yay!) and deployed it to my tomcat 
 server and it is behaving differently there compared to when I run it within 
 the IDE.
 
 During the execution the Flex app makes an HTTPService call which returns a 
 404 if no data is found. My fault handler:
 
 if (event.statusCode != 404)
Alert.show(A problem occurred fetching the moderation history data:  + 
 event.statusCode);
 
 When run from within the IDE I get no alert, but when run from my tomcat 
 server I get the alert and the status Code appears as 0, not even a 404. 
 
 Can anyone suggest why this might be? Or any tips for debugging on the 
 server? This is also my first attempt at a REST-ful application so maybe 
 returning a 404 to signify 'no data found' isn't the best thing to do?
 
 Cheers
 
 Paul





[flexcoders] Re: truncateToFit() and concatenated Strings

2009-09-17 Thread Matthew
Thanks for your responses. I did try that link (and that class) but it appears 
to replace the entire string with '...' instead of just the ending characters. 
And the conditional it uses to test if truncation is needed is testing for 
height values??? That I don't understand:

protected function get truncationRequired() : Boolean {
return (textField.height textField.maxHeight + 
UITextField.TEXT_HEIGHT_PADDING);
}



[flexcoders] Re: truncateToFit() and concatenated Strings

2009-09-17 Thread valdhor
One of these should help you out...

http://thanksmister.com/index.php/archive/flex-truncating-html-text/#more-613

http://www.frontenddeveloper.net/wiki/index.php?title=Truncate_HTMLText


--- In flexcoders@yahoogroups.com, Matthew fume...@... wrote:

 Hi - 
 
 I have a Label with truncateToFit set to true and a maxWidth. However, the 
 htmlText I assign is concatenated a la:
 
 ipText = 'b' +endPointData.ipLabel+ '/b: ' + endPointData.ipValue;
 
 I've researched online and found that truncateToFit() has problems dealing 
 with concatenated Strings; my text does not get truncated. 
 
 Has anyone found a solution? 
 
 Thank you for any tips.





[flexcoders] Creating Resize Handles

2009-09-17 Thread flexaustin
Anyone ever create or see a tut/example on how to create resize/skew handles on 
Sprites or UIComponents? 

Say you click a Sprite on screen, the sprite would should show a bounding box, 
similar to Flash, Photoshop, Visio or Firefox, which allow you to make the 
clicked Sprite wider, thinner, skew, or rotate the Sprite.

TIA, J



[flexcoders] Re: Creating Resize Handles

2009-09-17 Thread ag_rcuren
This can be quite difficult depending on how robust you want it to be. I have 
built 2 different Transform tools to suit some specific needs I had but here 
is a link that should work for most people.

http://www.sephiroth.it/weblog/archives/2009/06/multiple_objects_using_senocular_tran.php

It is basically Senocular's transform manager, which is great, ported over to 
flex with some added extras.

If you want to go down the route of building your own I can provide you some 
example code I have, but I would also suggest looking at source code from the 
link above.

Good luck

--- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote:

 Anyone ever create or see a tut/example on how to create resize/skew handles 
 on Sprites or UIComponents? 
 
 Say you click a Sprite on screen, the sprite would should show a bounding 
 box, similar to Flash, Photoshop, Visio or Firefox, which allow you to make 
 the clicked Sprite wider, thinner, skew, or rotate the Sprite.
 
 TIA, J





[flexcoders] Blazeds messaging from java to java

2009-09-17 Thread netdeep
I know BlazeDS allows flex to communicate with server technology, but what if I 
want to communicate from a java class.  How do I send my channel (which I've 
already set up and defined in the messaging-config file) a message and also 
hear back from the same channel?

 I can create messages like this:

 String clientID = UUIDUtils.createUUID();
 AsyncMessage message = new AsyncMessage(); 
 message.setDestination(airBridge);
 message.setClientId(clientID);
 message.setMessageId(UUIDUtils.createUUID());
 message.setTimestamp(System.currentTimeMillis());
 // this header info is not currently being used
 TreeMap String, StringhMap = new TreeMapString, String();
 hMap.put(secureID, general);
 hMap.put(reportID, repID);
 message.setHeaders(hMap);

// but I can't create this because I am not a ServiceAdaptor- I don't have the 
// getDestination() method.
MessageService   service = 
(MessageService)getDestination().getService();
// And even if I could get the service, how do I send it to a specific channel?
// And if I send a message how do I hear back from the channel?

The message needs to get sent from a servlet to the ServiceAdapter (messaging 
channel) which will in turn propagate that out to other apps, get a result and 
send confirmation that the process completed successfully back to the servlet. 
How can this be done?




Re: [flexcoders] Creating Resize Handles

2009-09-17 Thread Fotis Chatzinikos
Google ObjectHandles ;-)

On Thu, Sep 17, 2009 at 5:06 PM, flexaustin flexaus...@yahoo.com wrote:



 Anyone ever create or see a tut/example on how to create resize/skew
 handles on Sprites or UIComponents?

 Say you click a Sprite on screen, the sprite would should show a bounding
 box, similar to Flash, Photoshop, Visio or Firefox, which allow you to make
 the clicked Sprite wider, thinner, skew, or rotate the Sprite.

 TIA, J

  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


Re: [flexcoders] JQuery questions

2009-09-17 Thread Howard Fore
He may be able to reproduce the front-end but JQuery is going to do nada on
the backend. AFAIK there's no solution for any sort of remote objects with
JQuery, the data transfer would all be through HTTP web services,
encapsulating the data in XML or JSON or something like that. The problem
that JQuery solves really well is providing a cross-browser way to find and
manipulate the DOM but it's not going to solve the other CSS related
cross-browser issues.

--
Howard Fore, howard.f...@hofo.com
The worthwhile problems are the ones you can really solve or help solve,
the ones you can really contribute something to. ... No problem is too small
or too trivial if we can really do something about it. - Richard P. Feynman


On Wed, Sep 16, 2009 at 8:26 PM, adamsch1 adams...@yahoo.com wrote:

 We were showing our product [written entirely in Flex BTW] to a web
 developer who commented that he could [with about as much trouble] duplicate
 our application via JQuery.

 I am not a web developer, so I am not qualified to agree or disagree with
 his comment.  I'm not even sure its a valid statement?  Our application is
 entirely written in Flex [on top of blazeds], and is very involved, we have
 written many custom components for performance or custom behavior in many
 situations.

 My guess is a pure JS route, even with JQuery or another framework would
 still lead you to some porting challenges with the various browsers?



[flexcoders] Stupid question: Adding dollars

2009-09-17 Thread Wally Kolcz
I must be having a moron-moment. I have dollar amounts in the database (45.32, 
34.23, 50.25) and I want to look them and assign them to a Number variable. But 
it keeps coming up as NaN or empty. What am I missing here?

[Bindable] public var medTotal:Number = 0;

public function calculateTotal(e:ArrayCollection):void {
for(var i:int = 0; i  e.length; i++){
medTotal += e.getItemAt(i).cost;
}
}



[flexcoders] Re: truncateToFit() and concatenated Strings

2009-09-17 Thread Matthew
thank you very much, valdhor. those links got it done. 





[flexcoders] Re: Lagging Panel title

2009-09-17 Thread droponrcll
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 Possibly...
 
   override public function invalidateDisplayList():void
 {
  super.invalidateDisplayList();
  _title = propertyObject.title + ' Properties';
   }
 

I think what's going on is that they put the logic for changing the display of 
the title text in commitProperties instead of updateDisplayList.  Since my code 
was where it belonged in the commitProperties override--after their code, it 
didn't work.  I just moved the logic into the setter, but I think I could have 
put it above their logic in commitProperties as well...



Re: [flexcoders] Stupid question: Adding dollars

2009-09-17 Thread Howard Fore
In the debugger, does it show the values in the ArrayCollection members
before you try to use the function? In other words can you trace the value
assignment back to when the ArrayCollection is populated?

--
Howard Fore, howard.f...@hofo.com
The worthwhile problems are the ones you can really solve or help solve,
the ones you can really contribute something to. ... No problem is too small
or too trivial if we can really do something about it. - Richard P. Feynman


On Thu, Sep 17, 2009 at 11:08 AM, Wally Kolcz wko...@isavepets.com wrote:



 I must be having a moron-moment. I have dollar amounts in the database
 (45.32, 34.23, 50.25) and I want to look them and assign them to a Number
 variable. But it keeps coming up as NaN or empty. What am I missing here?

 [Bindable] public var medTotal:Number = 0;

 public function calculateTotal(e:ArrayCollection):void {
 for(var i:int = 0; i  e.length; i++){
 medTotal += e.getItemAt(i).cost;
 }
 }


 


re: [flexcoders] Stupid question: Adding dollars

2009-09-17 Thread Wally Kolcz
Figured it out. Forgot to wrap the cost in a Number()


From: Wally Kolcz wko...@isavepets.com
Sent: Thursday, September 17, 2009 8:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Stupid question: Adding dollars 

I must be having a moron-moment. I have dollar amounts in the database (45.32, 
34.23, 50.25) and I want to look them and assign them to a Number variable. But 
it keeps coming up as NaN or empty. What am I missing here?

[Bindable] public var medTotal:Number = 0;

public function calculateTotal(e:ArrayCollection):void {
for(var i:int = 0; i  e.length; i++){
medTotal += e.getItemAt(i).cost;
}
}




[flexcoders] Declaring New Variable from XML Source

2009-09-17 Thread AJC2357
Hello, 

I have a large XML file that I use with Flex to graphically display specific 
data.  For example, it is easy to create a graph that shows GDP by country. 
(which creates a graph for all countries in XML file)

But how can narrow or filter these searches? 

I want to have the graph show only the countries that are in region x for 
instance. Can anyone show me how to create a new variable that is derived from 
a subset of the XML file?  

I am new to actionscript but the logic would seem to be:  create new variable 
from XML source based on a given criteria (i.e., region == Asia)

Any help?



RE: [flexcoders] Declaring New Variable from XML Source

2009-09-17 Thread Tracy Spratt
Use an e4x expression.  They all return XMLList, so watch for that if you
need to assign a result to an XML var.  If you are sure there is only one
node in the result, do var xmlResult:XML = xmllistResult[0];

 

See the documentation for e4x syntax and usage, post back here if you have a
specific question or problem.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of AJC2357
Sent: Thursday, September 17, 2009 11:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Declaring New Variable from XML Source

 

  

Hello, 

I have a large XML file that I use with Flex to graphically display specific
data. For example, it is easy to create a graph that shows GDP by country.
(which creates a graph for all countries in XML file)

But how can narrow or filter these searches? 

I want to have the graph show only the countries that are in region x for
instance. Can anyone show me how to create a new variable that is derived
from a subset of the XML file? 

I am new to actionscript but the logic would seem to be: create new variable
from XML source based on a given criteria (i.e., region == Asia)

Any help?





[flexcoders] Re: DateField.selectedDate being set to null on focusOut??

2009-09-17 Thread toofah_gm
Thanks for this post.  This saved me.  Looks like a nasty bug with the 
DateField control.  Has this been logged for Adobe to fix?


--- In flexcoders@yahoogroups.com, Josh McDonald dzn...@... wrote:

 Figured this out for anybody who has the same problem in the future - if you
 use a labelFunction, make damn sure you supply a custom parseFunction, or
 set parseFunction to null!
 
 A pretty ugly silent failure tho methinks.
 
 -J
 
 On Mon, Apr 14, 2008 at 2:33 PM, Josh McDonald j...@... wrote:
 
  No, it's being set to null, and I can't see how. As in when I click on
  another field in the form, I'm getting a CalendarLayoutChangeEvent from the
  DateField, with newDate as null, and at that time
  innerDateField.selectedDate is null. Interestingly enough, it doesn't call
  the labelFunction either, so it looks like there's still a value there, but
  if you bring up the popup again, it's not selected.
 
  -J
 
 
  On Mon, Apr 14, 2008 at 2:21 PM, aceoohay pa...@... wrote:
 
 Are you sure it is being set to null? I have seen a problem where if
   the dateField is editable, and the width of the box is a bit too
   small, it will display the date, but when editing/exiting it causes
   it to display an empty box.
  
   I found that expanding the width ever so slightly made the problem go
   away.
  
   Paul
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
   McDonald dznuts@ wrote:
   
Hi,
   
I've been getting mystery nulls, and it seems that for some reason
   when my
embedded DateField component loses focus, its selectedDate is reset
   to null.
Anybody have *any* idea why? I've got breakpoints on set
   selectedDate
inside mx:DateField and it's not being called...
   
Sometimes I feel like such an incompetent prick :)
   
-J
   
--
Therefore, send not to know For whom the bell tolls, It tolls for
   thee.
   
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: josh@
   
  

  
 
 
 
  --
  Therefore, send not to know For whom the bell tolls, It tolls for thee.
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: j...@...
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls, It tolls for thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: j...@...





[flexcoders] Re: Creating Resize Handles

2009-09-17 Thread ag_rcuren
ObjectHandles is ok but they do not handle rotation very well. Have a look at 
this

http://www.sephiroth.it/weblog/archives/2007/07/transformtool_modification.php

--- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... 
wrote:

 Google ObjectHandles ;-)
 
 On Thu, Sep 17, 2009 at 5:06 PM, flexaustin flexaus...@... wrote:
 
 
 
  Anyone ever create or see a tut/example on how to create resize/skew
  handles on Sprites or UIComponents?
 
  Say you click a Sprite on screen, the sprite would should show a bounding
  box, similar to Flash, Photoshop, Visio or Firefox, which allow you to make
  the clicked Sprite wider, thinner, skew, or rotate the Sprite.
 
  TIA, J
 
   
 
 
 
 
 -- 
 Fotis Chatzinikos, Ph.D.
 Founder,
 Phinnovation
 fotis.chatzini...@...,





[flexcoders] Re: Different behaviour between deployment and IDE execution

2009-09-17 Thread prodanzr
You are right, I should not be using a 404 to signify that there was no result 
to return. So I changed my server code to return a 204 (No Content) instead and 
now my fault handler gets called in the IDE with status code 0.

If 0 means no errors then I am curious as to why the fault handler gets called 
rather than the result handler, but I wonder if anything other than a 200 
results in the fault handler being triggered? 

Cheers

Paul
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 an event.statuscode of 0 means that there were no errors. You are checking if 
 the statuscode is NOT equal to 404. Is that what you really wanted to do?
 
 
 
 --- In flexcoders@yahoogroups.com, tendancer2000 tendancer@ wrote:
 
  Just finished my first ever Flex app (yay!) and deployed it to my tomcat 
  server and it is behaving differently there compared to when I run it 
  within the IDE.
  
  During the execution the Flex app makes an HTTPService call which returns a 
  404 if no data is found. My fault handler:
  
  if (event.statusCode != 404)
 Alert.show(A problem occurred fetching the moderation history data:  + 
  event.statusCode);
  
  When run from within the IDE I get no alert, but when run from my tomcat 
  server I get the alert and the status Code appears as 0, not even a 404. 
  
  Can anyone suggest why this might be? Or any tips for debugging on the 
  server? This is also my first attempt at a REST-ful application so maybe 
  returning a 404 to signify 'no data found' isn't the best thing to do?
  
  Cheers
  
  Paul
 





[flexcoders] Combobox in DataGrid

2009-09-17 Thread kumarmenon

I have a DataGrid in mxml which has one of the Columns as an Combobox Component 
with Dynamic list of lookup values..I currently 
load the component on creationComplete..However if i do that the lookup list is 
static. I want a dynamic lookup list which shows up correctly in the 
DataGrid..How is it possible to ahieve this

-Arun



RE: [flexcoders] Combobox in DataGrid

2009-09-17 Thread Battershall, Jeff
You'll have to subclass your ComboBox for starters.  The available ComboBox 
items depend on an item in the DG's dataProvider, I would assume?  If so, 
having one master list of available items, and then filtering the ComboBox's 
dataProvider based on a particular item's attributes might be a good approach.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of kumarmenon
Sent: Thursday, September 17, 2009 2:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Combobox in DataGrid


I have a DataGrid in mxml which has one of the Columns as an Combobox Component 
with Dynamic list of lookup values..I currently 
load the component on creationComplete..However if i do that the lookup list is 
static. I want a dynamic lookup list which shows up correctly in the 
DataGrid..How is it possible to ahieve this

-Arun





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links





RE: [flexcoders] Combobox in DataGrid

2009-09-17 Thread Tracy Spratt
Here is an example:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1
http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=7
67 Object=FileobjectID=767

 

This component is somewhat complex because I wanted to make a fairly generic
renderer, one that could use either static data for the list or data
contained in the item.  I also wanted to allow for  specifying the combo
boxes value field.

 

Doing a one-off for a specific data provider would be much simpler.

 

There are other examples out there as well.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Battershall, Jeff
Sent: Thursday, September 17, 2009 3:07 PM
To: 'flexcoders@yahoogroups.com'
Subject: RE: [flexcoders] Combobox in DataGrid

 

  

You'll have to subclass your ComboBox for starters. The available ComboBox
items depend on an item in the DG's dataProvider, I would assume? If so,
having one master list of available items, and then filtering the ComboBox's
dataProvider based on a particular item's attributes might be a good
approach.

Jeff

-Original Message-
From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On Behalf Of kumarmenon
Sent: Thursday, September 17, 2009 2:44 PM
To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
Subject: [flexcoders] Combobox in DataGrid

I have a DataGrid in mxml which has one of the Columns as an Combobox
Component with Dynamic list of lookup values..I currently 
load the component on creationComplete..However if i do that the lookup list
is static. I want a dynamic lookup list which shows up correctly in the
DataGrid..How is it possible to ahieve this

-Arun



--
Flexcoders Mailing List
FAQ: http://groups.
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: https://share.
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e6
2079f6847
acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links





RE: [flexcoders] Blazeds messaging from java to java

2009-09-17 Thread James Ward
I think it would be easier to use JMS instead.  And then just connect BlazeDS 
to the JMS topic.

-James


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of netdeep
Sent: Thursday, September 17, 2009 8:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Blazeds messaging from java to java



I know BlazeDS allows flex to communicate with server technology, but what if I 
want to communicate from a java class. How do I send my channel (which I've 
already set up and defined in the messaging-config file) a message and also 
hear back from the same channel?

I can create messages like this:

String clientID = UUIDUtils.createUUID();
AsyncMessage message = new AsyncMessage();
message.setDestination(airBridge);
message.setClientId(clientID);
message.setMessageId(UUIDUtils.createUUID());
message.setTimestamp(System.currentTimeMillis());
// this header info is not currently being used
TreeMap String, StringhMap = new TreeMapString, String();
hMap.put(secureID, general);
hMap.put(reportID, repID);
message.setHeaders(hMap);

// but I can't create this because I am not a ServiceAdaptor- I don't have the
// getDestination() method.
MessageService service = (MessageService)getDestination().getService();
// And even if I could get the service, how do I send it to a specific channel?
// And if I send a message how do I hear back from the channel?

The message needs to get sent from a servlet to the ServiceAdapter (messaging 
channel) which will in turn propagate that out to other apps, get a result and 
send confirmation that the process completed successfully back to the servlet. 
How can this be done?

inline: image001.jpginline: image002.jpg

[flexcoders] Re: Creating Resize Handles

2009-09-17 Thread flexaustin
This one is much better! I don't have to throw my objects in it like the other 
one.

THanks.  

--- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren...@... wrote:

 ObjectHandles is ok but they do not handle rotation very well. Have a look at 
 this
 
 http://www.sephiroth.it/weblog/archives/2007/07/transformtool_modification.php
 
 --- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzinikos@ 
 wrote:
 
  Google ObjectHandles ;-)
  
  On Thu, Sep 17, 2009 at 5:06 PM, flexaustin flexaustin@ wrote:
  
  
  
   Anyone ever create or see a tut/example on how to create resize/skew
   handles on Sprites or UIComponents?
  
   Say you click a Sprite on screen, the sprite would should show a bounding
   box, similar to Flash, Photoshop, Visio or Firefox, which allow you to 
   make
   the clicked Sprite wider, thinner, skew, or rotate the Sprite.
  
   TIA, J
  

  
  
  
  
  -- 
  Fotis Chatzinikos, Ph.D.
  Founder,
  Phinnovation
  Fotis.Chatzinikos@,
 





Re: [flexcoders] ItemRenderer killing datatips in List?

2009-09-17 Thread Wesley Acheson
Is there something to implement because we usually get Object[object] as a
data tip.

Regards,

Wes

On Thu, Sep 17, 2009 at 5:53 AM, Alex Harui aha...@adobe.com wrote:



  The renderer is responsible for showing datatips.  You can see how it is
 done in the default renderer and decide how you want to implement it in your
 custom renderer.



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *bgamblin
 *Sent:* Wednesday, September 16, 2009 11:56 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] ItemRenderer killing datatips in List?





 I've got an object that descends from List, and uses an itemRenderer.
 Recently, I tried adding datatips to it, but nothing shows up. When I set it
 to use a datatipFunction, the function never gets called.

 If, however, I remove the itemRenderer, datatips show up properly. Has
 anybody seen this sort of thing before?

 (Note: the ItemRenderer creates two objects, but neither one short-circuits
 mouse events or have datatip info of their own)



 



Re: [flexcoders] Why never create an item renderer?

2009-09-17 Thread Wesley Acheson
Why not answer the tex_learning_flex thread instead of this one.  I'm sure
to learn something and I haven't had time at work to paste one of my
examples much to my chagrin.


Regards

Wes

On Fri, Sep 4, 2009 at 8:23 PM, Alex Harui aha...@adobe.com wrote:



  There might be some posts on my blog that might help



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Christopher McArthur
 *Sent:* Friday, September 04, 2009 9:35 AM

 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Why never create an item renderer?





 Can anyone recommend any good reading material on this? Im having some
 memory issues with my itemrenderers lately ;)





 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Alex Harui
 *Sent:* Thursday, September 03, 2009 11:53 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Why never create an item renderer?





 It is good enough if you shipped it and got paid J



 If you want to post the code for a renderer, we can offer opinions on the
 pros and cons of your implementation.  It might be good education for many.
 I don’t have time to judge dozens of renderers so we can just start with one
 of yours and discuss it.  There is usually a trade-off of ease of
 programming vs performance and memory optimization.  The smaller and faster
 you want it to be, the more work you have to do.  If you’re only gonna have
 7 renderers on screen, it doesn’t matter as much as if you are creating
 DataGrid renderers for a 20x20 grid.



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Wesley Acheson
 *Sent:* Thursday, September 03, 2009 3:29 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Why never create an item renderer?





 I've created a few. I've recreated a few working ones because I want to
 understand the framework better. I guess my problem is how do I know if the
 item renderers i've created are Correct.  I've far too often seen
 programming as a religion. I've just as often seen people just make things
 work.

 I can't stand by either of these sometimes you need things to just work,
 however if you don't worry about practices you've got unmaintainable code.

 So how do I know if what I've written is good enough.

 Regards,

 Wesley Acheson

 On Thu, Sep 3, 2009 at 9:38 PM, Tracy Spratt tr...@nts3rd.com wrote:



 It is not *always* given as advice.  I give that when I see that a
 developer does *not* have his head around the issues.  It is usually quite
 obvious when that is the case.



 I think it is better advice than RTFM.  An example will get a newbie
 further faster.



 When that advice does not apply to you, you will know it.



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Wesley Acheson
 *Sent:* Thursday, September 03, 2009 2:36 PM
 *To:* flexcoders
 *Subject:* [flexcoders] Why never create an item renderer?





 I've seen this adivse a lot reciently on the list. Don't create an item
 renderer modify an existing example.  I don't really understand why. I mean
 their not that difficult to get your head arround so long as you reset all
 internal variables that need to be reset.

 Why is this always given as advise?

 Regards,

 Wesley Acheson







 



RE: [flexcoders] ItemRenderer killing datatips in List?

2009-09-17 Thread Alex Harui
Recommended practice is to call itemToDataTip on the List to get the text of 
the datatip.  If dataTipField or dataTipFunction is not set correctly you may 
still get [object Object]

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Wesley Acheson
Sent: Thursday, September 17, 2009 2:16 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ItemRenderer killing datatips in List?



Is there something to implement because we usually get Object[object] as a data 
tip.

Regards,

Wes
On Thu, Sep 17, 2009 at 5:53 AM, Alex Harui 
aha...@adobe.commailto:aha...@adobe.com wrote:


The renderer is responsible for showing datatips.  You can see how it is done 
in the default renderer and decide how you want to implement it in your custom 
renderer.



Alex Harui

Flex SDK Developer

Adobe Systems Inc.http://www.adobe.com/

Blog: http://blogs.adobe.com/aharui



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of bgamblin
Sent: Wednesday, September 16, 2009 11:56 AM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: [flexcoders] ItemRenderer killing datatips in List?





I've got an object that descends from List, and uses an itemRenderer. Recently, 
I tried adding datatips to it, but nothing shows up. When I set it to use a 
datatipFunction, the function never gets called.

If, however, I remove the itemRenderer, datatips show up properly. Has anybody 
seen this sort of thing before?

(Note: the ItemRenderer creates two objects, but neither one short-circuits 
mouse events or have datatip info of their own)





RE: [flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-09-17 Thread Alex Harui
IMHO, Once you get the runtime error dialog, all further behavior is undefined. 
 Your code has finished executing and the player is no longer executing its 
standard workflow.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of litlboyblue
Sent: Wednesday, September 16, 2009 10:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Race conditions when event handlers triggered from 
different targets



--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote:

Yes, that is what Alex is saying. Handler B will not begin before handler A 
finishes. Event handlers don't get paused. Furthermore, when you (or the 
Player) calls dispatchEvent(), all the event handlers listening for that event 
execute before dispatchEvent() returns.


I really want to believe this assertion, and I hate to belabor the point, but 
I'm troubled by the observed behavior in the Debug Player under IE8. In this 
case, a run-time error was thrown by the handler of a network event and the 
standard dialog was displayed. This condition exposed a problem in our network 
message parser, which caused subsequent network events to also display run-time 
errors. I was unsettled to find that a new dialog was displayed, and a new 
Window! s OS-level thread created with each run-time error, even though I 
hadn't dismissed the initial error dialog. It appeared that the network event 
handler code executed and threw a run-time exception with each message received 
from the network, regardless.


This would seem to be an exception to the behavior stated above; does a 
run-time error dialog cause the execution context to pause and allow other 
event handlers to be executed?


If so, is this only possible in the Debug Player, or do we have to worry about 
protecting against possible re-entrance in handlers that access global data?





Re: [flexcoders] Re: Java/Flex questions answered by James Ward

2009-09-17 Thread Mark Lapasa
Uggh no wonderthey deleted my question altogether!

James Ward wrote:

 Yeah. Turns out that the folks at Stack Overflow didn’t like the idea 
 of the “riacowboy” tag. So you can still ask the question with 
 sensible tags and then post a comment on my “Ask the RIA Cowboy” blog 
 so that I know where to find it.

 Thanks.

 -James

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
 *On Behalf Of *ilikeflex
 *Sent:* Monday, September 14, 2009 10:29 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Java/Flex questions answered by James Ward

 Could not find the tag 'raiCowboy'

 http://meta.stackoverflow.com/questions/17314/search-for-a-tag-returns-no-results/17327
  
 http://meta.stackoverflow.com/questions/17314/search-for-a-tag-returns-no-results/17327

 It says tag 'raiCowboy' has been deleted.

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com, James Ward jaw...@... wrote:
 
  This would be a great question to ask on StackOverflow.com :)
 
  -James
 
 
  From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com] On Behalf Of ilikeflex
  Sent: Friday, September 11, 2009 11:03 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: Java/Flex questions answered by James Ward
 
 
 
  what i am expecting that as soon as i run my flex application i should
  see
 
  System.out.println(getIndexList Executing);
  System.out.println(getIndexProfileList Executing);
  System.out.println(getIndexTradingDatesList Executing);
  System.out.println(getIndexValues Executing);
 
  but i see
 
  System.out.println(getIndexList Executing);
  System.out.println(getIndexList End Executing);
 
  System.out.println(getIndexProfileList Executing);
  System.out.println(getIndexProfileList End Executing);
 
  System.out.println(getIndexTradingDatesList Executing);
  System.out.println(getIndexTradingDatesList End Executing);
 
  System.out.println(getIndexValues Executing);
  System.out.println(getIndexValues End Executing);
 
  I should see all the method executing simultaneously.
 
  Any help...
 
  --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 ilikeflex ilikeflex@ wrote:
  
  
   I am doing something like this:
  
   if( indexListRemoteObject == null)
   {
   indexListRemoteObject = new RemoteObject(indexMasterDAO);
   indexListRemoteObject.addEventListener( ResultEvent.RESULT,
   indexListHandler );
   indexListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler
   );
   indexListRemoteObject.getIndexList();
   }
  
   if( indexProfileListRemoteObject == null )
   {
   indexProfileListRemoteObject = new RemoteObject(indexMasterDAO);
   indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT,
   indexProfileListHandler );
   indexProfileListRemoteObject.addEventListener( FaultEvent.FAULT,
   faultHandler );
   indexProfileListRemoteObject.getIndexProfileList();
   }
  
  
   if( indexTradingDatesListRemoteObject == null )
   {
   indexTradingDatesListRemoteObject = new
  RemoteObject(indexMasterDAO);
   indexTradingDatesListRemoteObject.addEventListener(
  ResultEvent.RESULT,
   indexTradingDatesListHandler );
   indexTradingDatesListRemoteObject.addEventListener( FaultEvent.FAULT,
   faultHandler );
   indexTradingDatesListRemoteObject.getIndexTradingDatesList();
   }
  
   if( indexValuesListRemoteObject == null )
   {
   indexValuesListRemoteObject = new RemoteObject(indexMasterDAO);
   indexValuesListRemoteObject.addEventListener( ResultEvent.RESULT,
   indexValuesListHandler );
   indexValuesListRemoteObject.addEventListener( FaultEvent.FAULT,
   faultHandler );
   indexValuesListRemoteObject.getIndexValues();
   }
  
   but if i put the System.out.println in different Java Methods.. i see
   the same sequence of order in which they are called. I am 100% sure
  that
   my first method(getIndexList) takes lot of time. So while getIndexList
   is executing then i should also see that atleast one of the other
   methods are being executed simulataneously. But this is not happening
  as
   expected. None of the other methods is able to recieve the request
  while
   getIndexList is processing.
  
   All my java methods are static. I don't think this should cause any
   issue.
  
   thanks
   ilikeflex
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
   --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 fotis.chatzinikos
   fotis.chatzinikos@ wrote:
   
make a remote call implementation in java that fills a hashmap or
   related object with all the info you want:
   
init()
{
people = getPeople() ;
towns = getTowns() ;
etc...
}
   
if you want them 1-by-1 call them in sequence:
   
getPeople() on responce getTowns and so on...
   
--- In 

[flexcoders] Beginner Questions

2009-09-17 Thread mugathur
Hello.  I am very new to both Flash and Flex.  I've been programming video 
games in C/C++ for a while now and thought I'd try something faster to develop. 
 So, I have a few questions, specifically geared towards games development.

Do games developers usually use Flex or just raw Flash? 

Is just using the Flex open source compiler viable or is purchasing the Flex 
Builder pretty instrumental to effective use of the language?

Is there a heavy preference between vector art or bitmap art in flash 
development?  Is the code significantly different between the two?

I'm sure I'll have more questions, but I'll kick it off with these.  Thanks in 
advance.

-moo



[flexcoders] Fancy an ActionScripting job at Dare?

2009-09-17 Thread jameskentdeakin
The place where I work is hiring Flex and Flash developers at the moment. We 
are based in London in the UK. 

You could get to do some really cutting edge work for some great clients – like 
Sony, Sony Ericsson, BMW and Vodafone. And there's loads of variety - 
everything from Microsites and Air apps to live events. Here's some of the fun 
stuff we have done in the past.

http://www.daredigital.com/work/work.html

I know I'm biased, but Dare really is a great place to work. The people are 
nice. The work is always full of interesting challenges and there's free beer 
on Fridays, breakfast in the morning and a bunch of other benefits. If you 
think you're up to it, drop me an email with your CV 
james.dea...@daredigital.com and make sure you copy in Lucy Cadman, Dare's 
Recruitment Co-ordinator lucy.cad...@daredigital.com.



[flexcoders] Label Control Text Value Coming From a Function Call

2009-09-17 Thread Angelo Anolin
Hi FlexCoders,

I have a label control where the text value that should be displayed is coming 
from a defined function.
   
   For example:
   
   mx:Label id=LabelDay1 text= horizontalCenter=true /
   
   private function setDayName(monthNo:Number, dayNo:Number, 
yearNo:Number):String
   {
 // Make some calculations on the day based on the date parameter passed.
 //..
 .
 
 //Assuming the day value is returned after parsing the date value parameters.
 return 'Monday'
   }
   
   Is it possible to assign that the LabelDay1 object would display in the text 
the value returned by the function setDayName.  Please take note that I have a 
lot of instances of the label control which is inside a datagrid column 
control's header renderer so placing them in a function outside would be 
tedious.
   
   Would this be possible:
   
   mx:Label id=LabelDay1 text={setDayName(1,1,2009)} 
horizontalCenter=true /
   
   Appreciate your response. Thanks.

Regards,

Angelo


  

[flexcoders] Positioning using the graphics class?

2009-09-17 Thread Tracy Spratt
I am using the Graphics class to draw borders on a Canvas.  I think I do not
understand how the positioning works.  

 

For example, I set lineStyle to width of 3 and some color, then I use
drawRect and specify x=0, y=0, width  = canvas.width and height =
canvas.height.

 

I am expecting a 3 pixel border within the canvas.

 

But that is not what I see.  Instead, all of the drawn lines are partially
clipped by the canvas.

 

With drawRect, what is the relation between the x,y, width, height, and the
line width?

 

I am trying to figure this out by trial and error, but have not been able to
infer the rules.

 

Tracy Spratt,

Lariat Services, development services available

 



[flexcoders] Set default font size on RichTextEditor

2009-09-17 Thread gotgoose09
I want to set the default text size on an RTE to something other than 10.  How 
can I do this?

Thanks,
Ben Goosman



[flexcoders] AdvancedDataGrid itemOpen() to resize Container

2009-09-17 Thread Matthew
Hi,

I have a Windowshade as a root component; the child is an AdvancedDataGrid. I 
want the Windowshade to scale as a user expands/collapses a row in the 
DataGrid. So I trap the itemOpen and itemClose events and I try to adjust the 
height of the Windowshade like this:

this.owner.measuredHeight = grid.height;
this.owner.measuredWidth = grid.width;

But it does nothing. I thought using measuredHeight and measuredWidth was the 
way to go when resizing at run-time.

Has anyone come across this before? Any tips are, again, very much appreciated.



[flexcoders] Re: Sending textinput id

2009-09-17 Thread xyrer
--- In flexcoders@yahoogroups.com, Kenneth Sutherland 
kenneth.sutherl...@... wrote:

 Sorry should have said you should use the 'event.target.id' (in
 virtually all cases you can get away with using currentTarget, but if
 you want to be guaranteed to be getting the info from whatever
 dispatched the event, use target).  It all depends on where you are
 doing the listening.

It's been a long time since I wrote this question and have learned a lot, and 
still don't know what a Value Object is, but I will go with your solution, at 
least it makes sense in my mind. thanks



Re: [flexcoders] Positioning using the graphics class?

2009-09-17 Thread Keith H
Lines drawn with the drawing API spread their thickness from the center.
(unless I there's a way to set their orientation that I dont know of)

You have to obviously compensate for the that...
drawRect(1.5,1.5,canvas.width-1.5,canvas.height-1.5);

-- Keith H --
www.keith-hair.net





Tracy Spratt wrote:
  

 I am using the Graphics class to draw borders on a Canvas.  I think I 
 do not understand how the positioning works. 

  

 For example, I set lineStyle to width of 3 and some color, then I use 
 drawRect and specify x=0, y=0, width  = canvas.width and height = 
 canvas.height.

  

 I am expecting a 3 pixel border within the canvas.

  

 But that is not what I see.  Instead, all of the drawn lines are 
 partially clipped by the canvas.

  

 With drawRect, what is the relation between the x,y, width, height, 
 and the line width?

  

 I am trying to figure this out by trial and error, but have not been 
 able to infer the rules.

  

 Tracy Spratt,

 Lariat Services, development services available

  

 




RE: [flexcoders] Is there a way to control TextArea scrollbar thickness?

2009-09-17 Thread Alex Harui
Yeah.  But try it in Flex 4 beta.  Should be more fun there.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of guytom
Sent: Thursday, September 17, 2009 2:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there a way to control TextArea scrollbar thickness?



From what I found so far the only way is to replace the up/down arrows?



RE: [flexcoders] Label Control Text Value Coming From a Function Call

2009-09-17 Thread Alex Harui
Did you try it?  I would expect that to work.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Angelo Anolin
Sent: Thursday, September 17, 2009 8:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Label Control Text Value Coming From a Function Call


Hi FlexCoders,

I have a label control where the text value that should be displayed is coming 
from a defined function.

   For example:

   mx:Label id=LabelDay1 text= horizontalCenter=true /

   private function setDayName(monthNo:Number, dayNo:Number, 
yearNo:Number):String
   {
 // Make some calculations on the day based on the date parameter passed.
 //..
 .

 //Assuming the day value is returned after parsing the date value parameters.
 return 'Monday'
   }

   Is it possible to assign that the LabelDay1 object would display in the text 
the value returned by the function setDayName.  Please take note that I have a 
lot of instances of the label control which is inside a datagrid column 
control's header renderer so placing them in a function outside would be 
tedious.

   Would this be possible:

   mx:Label id=LabelDay1 text={setDayName(1,1,2009)} 
horizontalCenter=true /

   Appreciate your response. Thanks.

Regards,

Angelo




[flexcoders] Re: Is there a way to control TextArea scrollbar thickness?

2009-09-17 Thread guytom
The problem is with the word beta... 

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

 Yeah.  But try it in Flex 4 beta.  Should be more fun there.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 



RE: [flexcoders] Re: Is there a way to control TextArea scrollbar thickness?

2009-09-17 Thread Alex Harui
Just want you to know it will be easier in Flex 4.  And if you aren't shipping 
until early next year, it might be time to try it out.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of guytom
Sent: Thursday, September 17, 2009 10:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is there a way to control TextArea scrollbar 
thickness?



The problem is with the word beta...

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

 Yeah. But try it in Flex 4 beta. Should be more fun there.

 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui