[flexcoders] BarChart Styling Problem

2009-07-23 Thread Anton Raath
Hi all,

I have a bar chart styling problem which has me struggling.

I have a chart generated by a custom component (extending BarChart), and set
to 100% high and wide. This works perfectly. I also set the gutterLeft style
to 250 pixels wide, which also works perfectly.

percentHeight = 100;
percentWidth = 100;
setStyle(paddingLeft, 10);
setStyle(gutterLeft, 250);

However, my labels on the vertical axis refuse to use the full 250 pixels,
no matter what I do, so I lose about 50 pixels. Padding is set to 0
everywhere.

This is what the chart looks like, the grey areas show the full space
available to the labels:

http://lightfantastic.be/clients/screencap/barchart_screenshot.png

I use a TextArea as renderer for the labels:

var vAxisRenderer:AxisRenderer = new AxisRenderer();
vAxisRenderer.labelRenderer = new ClassFactory(LabelRenderer);

I've tried changing the width of the TextArea (using both MXML and
ActionScript) to 100%, to 250 pixels, to 240 pixels, even to 300 pixels, and
the size of the grey label area in my chart doesn't change by a single
pixel.

Is there something I'm missing here? Is gutterLeft sub-divided into smaller
areas that I can style?

Thanks!

Anton.


[flexcoders] Future Value AS Function [1 Attachment]

2009-07-23 Thread ashish vyas
Hi Guys,

  I have created a function to calculate the Future Value,  It is financial 
function that can be found in excel and other finance related applications.  It 
is small piece of AS code.  I thought it will useful to my other pals as well 
and wanted to share it with you.


    Please let me know if any one of you want any sort of Financial function, 
I`ll try my best to create it for you.


Thank  Best regards,
Ashish Vyas.



  Looking for local information? Find it on Yahoo! Local 
http://in.local.yahoo.com/

[flexcoders] Custom Authentication with Tomcat

2009-07-23 Thread deepa
Hi,

I am getting the following error - 

(Message #0 targetURI=/2/onStatus, responseURI=)
(Typed Object #0 'flex.messaging.messages.ErrorMessage')
  rootCause = null
  destination = null
  headers = (Object #1)
DSId = 9A07F115-2B0E-D849-87AA-50101899F2ED
DSMessagingVersion = 1.0
  correlationId = 616B111D-73AB-D950-7D6D-A721989E6245
  faultString = Please set up a TomcatValve as described in the 
documentation.
  messageId = 9A095A99-FF0D-304A-93C9-38ED172EDB7E
  faultCode = Server.Processing
  timeToLive = 0.0
  extendedData = null
  faultDetail = null
  clientId = 9A095A97-8E0A-11BD-FCA9-30ADE30BE8E1
  timestamp = 1.248344521583E12
  body = null

I have the following entry in the context.xml -

Context path=/SitePathFlexDev 
docBase=${catalina.home}/webapps/SitePathFlexDev debug=0
 Valve className=flex.messaging.security.TomcatValve4150/
/Context

I am not sure what other value it it asking for.
Any inputs would be highly appreciated.


Thanks,
Deepa





[flexcoders] how to auto refresh datagrid using httpservice

2009-07-23 Thread Shoukat Ali
this is my mxml file :: 
  
---
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
creationComplete=realData.send() 
mx:HTTPService id=realData 
url=http://localhost:8080/real/test.jsp/
mx:DataGrid x=63 y=53 id=sfssfs 
dataProvider={realData.lastResult.response.data.row}  
/mx:DataGrid  
/mx:Application



i am using jsp as dataprovider, now i want to refresh the page per 5 seconds, 
so that the jsp is called per 5 sec. and pull the updated data from database. 
database is being updated regularly by other application.




Re: [flexcoders] FlexBuilder / eclipse Question

2009-07-23 Thread Alexander Tarelkin
Ctrl+F8 jumps between perspectives, and by default will return to the
previous one.

On Fri, Jul 17, 2009 at 7:21 PM, Libby libbychan...@yahoo.com wrote:



 Hi FlexBuilders!

 I was wondering if there is an option or way to automatically return to the
 development perspective when you shut down the debugger? So if you do
 terminate (Ctrl-F2) on the app in the debugger, you would immediately swap
 back over to development perspective the same way you earlier swapped to
 debugger perspective when you hit the debug button?

 Thanks for this and all your past help on this forum.

 Libby

  



Re: [flexcoders] Flex 4 query

2009-07-23 Thread Tom Chiverton
On Thursday 23 Jul 2009, Purnima S wrote:
 i have flex4 sdk. iam not understanding how to work in it.

I assume you've read Adobe's getting started docs, and must have hit a problem 
at one of the steps.
Which guide are you using, and which step has got you stuck ?

-- 
Helping to vitalistically utilize distributed fourth-generation 
bricks-and-clicks sexy e-tailers as part of the IT team of the year, '09 
and '08



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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

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

For more information about Halliwells LLP visit www.halliwells.com.

[flexcoders] Advice from people smarter than me: Data prep for a web service

2009-07-23 Thread Wally Kolcz
I am attempting to bring my Flex apps to the U of Michigan but we are running 
Blue Dragon.NET and not true ColdFusion. I have my CFCs returning queries since 
this would be a replacement UI for an existing application. 

The Web Services that are being returned are in .NET and come back in a format 
I cannot figure out how to use. I tried to transverse the XML but cannot figure 
out a.) how to got the the information inside the node and b.) how to use it in 
a DataGrid. Is there a better way to prep the data in the CFC to return 
something that I can use as an ArrayCollection (how I normally handle 
RemoteObjects on my own web server, not at work) or something else that I can 
use in DataGrids. 

Any help would be greatly appreciated. I would really like to start to build 
Flex and AIR Flash apps here at the U.




[flexcoders] Re: how to auto refresh datagrid using httpservice

2009-07-23 Thread postwick
You would use setInterval()

http://blog.flexexamples.com/2008/02/14/creating-timers-using-the-setinterval-method/

However, I recommend looking into LCDS (LiveCycle Data Services).  It does this 
automatically.

--- In flexcoders@yahoogroups.com, Shoukat Ali a.shou...@... wrote:

 this is my mxml file :: 
   
 ---
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
 creationComplete=realData.send()   
   mx:HTTPService id=realData 
 url=http://localhost:8080/real/test.jsp/
   mx:DataGrid x=63 y=53 id=sfssfs 
 dataProvider={realData.lastResult.response.data.row}  
   /mx:DataGrid  
 /mx:Application
 
 
 
 i am using jsp as dataprovider, now i want to refresh the page per 5 seconds, 
 so that the jsp is called per 5 sec. and pull the updated data from database. 
 database is being updated regularly by other application.





[flexcoders] Re: how to auto refresh datagrid using httpservice

2009-07-23 Thread postwick
I should have finished reading that blog post before I sent this.  I guess 
there is a more modern way to do this:

http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_4.html

--- In flexcoders@yahoogroups.com, postwick p...@... wrote:

 You would use setInterval()
 
 http://blog.flexexamples.com/2008/02/14/creating-timers-using-the-setinterval-method/
 
 However, I recommend looking into LCDS (LiveCycle Data Services).  It does 
 this automatically.
 
 --- In flexcoders@yahoogroups.com, Shoukat Ali a.shoukat@ wrote:
 
  this is my mxml file :: 

  ---
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
  creationComplete=realData.send() 
  mx:HTTPService id=realData 
  url=http://localhost:8080/real/test.jsp/
  mx:DataGrid x=63 y=53 id=sfssfs 
  dataProvider={realData.lastResult.response.data.row}  
  /mx:DataGrid  
  /mx:Application
  
  
  
  i am using jsp as dataprovider, now i want to refresh the page per 5 
  seconds, so that the jsp is called per 5 sec. and pull the updated data 
  from database. database is being updated regularly by other application.
 





[flexcoders] SOLVED - AMF, IE, and a non-trusted certificate

2009-07-23 Thread Anthony DeBonis
We solved the issue:
 
Added add-no-cache-headers to our channel definition - this problem was solved 
back in 2006 in this case: 
http://blogs.adobe.com/lin/archives/flex/security/index.html
 
We had requested our server admin to add this property to the 
service-config.xml a month ago but it never happened so we were chasing a ghost.
 Once we set up our own LCDS server we could isolate the problem fast.
properties
add-no-cache-headersfalse/add-no-cache-headers
 /properties


--- In flexcoders@yahoogroups.com, Anthony DeBonis anth...@... wrote:

 Still not working in IE - 
 If it was crossdomain it should not work with Firefox but it does work with 
 Firefox and Chrome - only IE is an issue. We are requesting back to the exact 
 server that is serving up the Flex app so it should not trigger a crossdomain 
 issue.  If we compile with Flex 4 SKD it works in IE... I tried monkey 
 patching rpc.swc from 4.o  to 4.2 and that did not seam to help.
 
 Any support would be appreciated.
 
 Anthony
 
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote:
 
  On Tuesday 21 Jul 2009, Anthony DeBonis wrote:
   More information on this IE issue - we don't think its a cert issue at all
   because if we compile with the Flex 4 SDK it works fine in IE.  Any ideas?
  
  Sounds like a cross domain policy type issue then. 
  
  -- 
  Helping to autoschediastically network eyeballs as part of the IT team of 
  the 
  year, '09 and '08
  
  
  
  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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A 
  list of members is available for inspection at the registered office 
  together with a list of those non members who are referred to as partners.  
  We use the word ?partner? to refer to a member of the LLP, or an employee 
  or consultant with equivalent standing and qualifications. Regulated by the 
  Solicitors Regulation Authority.
  
  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 2500.
  
  For more information about Halliwells LLP visit www.halliwells.com.
 





[flexcoders] Horizontal List - the Images don't appear - help?!

2009-07-23 Thread jamiebadman
Hi!

I'm trying to display images in a Horizontal List. I receive the url's of the 
images via a webservice at run time - so can't embed the images. I've tried 
something like this:

chartList.addItem({label:myLabel, icon:myImageURL});

Where chartList is the dataprovider of the H-List... but this doesn't work - I 
see the labels but no images.

The url's are definitely correct - I can paste one into a browser and view the 
image.

Any ideas?

Thanks,

Jamie.



[flexcoders] Re: Horizontal List - the Images don't appear - help?!

2009-07-23 Thread postwick
You should populate an ArrayCollection or XMLListCollection, and then set that 
collection as the data provider for the horizontal list.

--- In flexcoders@yahoogroups.com, jamiebadman jamie.bad...@... wrote:

 Hi!
 
 I'm trying to display images in a Horizontal List. I receive the url's of the 
 images via a webservice at run time - so can't embed the images. I've tried 
 something like this:
 
 chartList.addItem({label:myLabel, icon:myImageURL});
 
 Where chartList is the dataprovider of the H-List... but this doesn't work - 
 I see the labels but no images.
 
 The url's are definitely correct - I can paste one into a browser and view 
 the image.
 
 Any ideas?
 
 Thanks,
 
 Jamie.





[flexcoders] Re: AxisRenderer Error #1009: Cannot access a property or method of a null object reference

2009-07-23 Thread EddieBerman
That makes sense. I'll give it a try.

Thanks much.


--- In flexcoders@yahoogroups.com, Chad Callahan chad.calla...@... wrote:

 My application grew too large to pull a snippet out of as well.  I began
 to put a sample application together but while doing so found where my
 error stemmed from.  I got the error when the numeric data points on the
 chart were of values greater than 6 digits.  What fixed it for me was
 setting the canDropLabels property of AxisRenderer to false.  It appears
 that the values were too large so the AxisRenderer was dropping those
 labels, and when it tried to calculate the vertical gutters to make room
 for the labels, the labels that were dropped were then null, causing a
 null object reference error.  I hope this helps you as well.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of EddieBerman
 Sent: Wednesday, July 22, 2009 11:47 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: AxisRenderer Error #1009: Cannot access a
 property or method of a null object reference
 
  
 
   
 
 I have no solution for you, but have come across this problem as well.
 If you have a simple app that demonstrates this error, you should create
 a new bug on the Adobe Bug Base and attach the code. My app is too huge
 at this point, and I haven't yet distilled it down to a submittable
 size.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Chad Callahan Chad.Callahan@ wrote:
 
  I am using a ColumnChart with a ColumnSet of type stacked. If I
  switch this ColumnSet.type property to 100% then it works just as
  expected, but when I use the stacked type, I get the following:
  
  
  
  
  
  
  
  TypeError: Error #1009: Cannot access a property or method of a null
  object reference.
  
  at
 
 mx.charts::AxisRenderer/calcVerticalGutters()[C:\work\flex\dmv_automatio
  n\projects\datavisualisation\src\mx\charts\AxisRenderer.as:2055]
  
  at
 
 mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\work\flex\dmv_automa
  tion\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1845]
  
  at
 
 mx.charts::AxisRenderer/adjustGutters()[C:\work\flex\dmv_automation\proj
  ects\datavisualisation\src\mx\charts\AxisRenderer.as:1534]
  
  at mx.charts::AxisRenderer/set
 
 gutters()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\
  charts\AxisRenderer.as:836]
  
  at
 
 mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\work\flex\d
 
 mv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Cart
  esianChart.as:2110]
  
  at
 
 mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\work\flex\
 
 dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Car
  tesianChart.as:1366]
  
  at mx.core::UIComponent/validateDisplayList()
  
  at mx.managers::LayoutManager/validateClient()
  
  at mx.core::UIComponent/validateNow()
  
  at com.deere.jdlink.view.dashboard.pod::UltimatePod/set
  data()[C:\Documents and Settings\chad.callahan\My
 
 Documents\clients\deere\jdlink\repository\trunk\development\flex\src\com
  \deere\jdlink\view\dashboard\pod\UltimatePod.mxml:109]
  
  at spark.components::DataGroup/updateRenderer()
  
  at
 
 spark.components::DataGroup/http://www.adobe.com/2006/flex/mx/internal::
 http://www.adobe.com/2006/flex/mx/internal:: 
  itemAdded()
  
  at spark.components::DataGroup/initializeDataProvider()
  
  at spark.components::DataGroup/commitProperties()
  
  at mx.core::UIComponent/validateProperties()
  
  at mx.managers::LayoutManager/validateProperties()
  
  at mx.managers::LayoutManager/doPhasedInstantiation()
  
  at
  mx.managers::LayoutManager/doPhasedInstantiationCallback()
  
  
  
  
  
  Which is thrown from AxisRenderer line 2055
  
  
  
  private function calcVerticalGutters(width:Number,
  
  leftGutter:Number,
  
  rightGutter:Number,
  
  firstLabel:ARLabelData,
  
  lastLabel:ARLabelData,
  
  adjustable:Object):Object
  
  {
  
  var labelAlignOffset:Number = this.labelAlignOffset;
  
  var axisLength:Number = width - leftGutter - rightGutter;
  
  
  
  var LS:Number = firstLabel.height * labelAlignOffset;
  
  var RS:Number = firstLabel.height * (1 - labelAlignOffset);
  
  var P1:Number = firstLabel.position;
  
  var P2:Number = 1 - lastLabel.position;
  ---(line 255)
  
  
  
  
  
  
  
  The error is being thrown because lastLabel is null. Can anyone think
  of how lastLabel could possibly be null? 
  
  
  
  Thanks,
  
  Chad
 





[flexcoders] Get URL from URLLoader Complete event

2009-07-23 Thread ag_rcuren
Is there a easy / good way of getting the url from the URLLoader complete 
event? I can not seem to find an easy way of doing this but I could just be 
missing it.



Re: [flexcoders] FileReference.load()

2009-07-23 Thread Richard Rodseth
Nice! But it's not working for me yet. The in expression doesn't succeed.
I'll keep digging through the reflection docs, but if you have any
refinements, please pass them along.

On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.com wrote:



  Try this:



 if (load in fileReference)

 fileReference[load]();



 That should compile against the Player 9 version of playerglobal.swc, but,
 in Player 10, detect that the method exists and call it by name.



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Richard Rodseth
 *Sent:* Wednesday, July 22, 2009 6:12 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] FileReference.load()





 I was hoping to provide an optional feature that requires reading a local
 file if Player 10 is available, without requiring 10 for the whole
 application.

 But it appears that I can't compile code that uses FileReference.load()
 without setting the target player in FlexBuilder.

 Anyone dealt with this situation?

   



[flexcoders] QTP automation problem of custom component

2009-07-23 Thread jones_a_h
My project uses a custom Calendar component. The component implements 
UIComponent directly and contains children.
I followed the instructions and wrote a delegate implementation for the 
component and a matching TEAFlex...xml class definition file.
Am using a simple wrapper index.html file.

The project was updated with the -include_libraries to pull in the automation 
swc's and a -includes to pull in my delegate implementation.

In QTP using Object Spy it sees the FlexCalendar along with the events and 
properties I exposed in the class definition file.

PROBLEM: QTP can not see any of the child items even though the 
numAutomationChildren and getAutomationChildAt are implemented. The value of 
numAutomationChildren on the FlexCalendar instance as reported by Object Spy is 
correct...but they just show up as BrowserPageWinObject.

Any ideas what I'm doing wrong?

The crazy thing is, I downloaded the RandomWalk sample/example and it behaves 
for me in exactly the same way...numAutomationChildren indicates the correct 
number of children but they are not identified correctly by Object Spy.

So perhaps I am building it wrong - even though QTP does see the custom 
component fine.

Is there some special significance to the randomWalkClasses src folder or could 
these files have been included at the same level as the RandomWalk.as class 
itself?

Tried with Flex Builder 3 with SDK3.2 and testing under IE7+QTP9.5 and 
IE8+QTP10 - same behavior.

Note: Same swf works fine with RIATest albeit with runtime approach directly on 
the swf, i.e. all child components are identifiable.



RE: [flexcoders] images inside text htmltext as in IM application

2009-07-23 Thread Alex Harui
In my experience, it doesn't always work right.  If you're not shipping soon, 
get Flex 4 beta and try using the TLF functionality

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 guy.tomer
Sent: Wednesday, July 22, 2009 10:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] images inside text htmltext as in IM application



Hi,

We're trying to build something which behaves like an IM application in that 
icons/emoticons can be embedded inside text.

Using the htmlText property we only manage to get the images aligned to the 
sides of the text but not as integral part of it.

We did read Adobe documentation but can't figure out whether this is a known 
limitation of the component, does anyone know?

Thanks
Guy



Re: [flexcoders] Horizontal List - the Images don't appear - help?!

2009-07-23 Thread Beau Scott
Like most other icon attributes in flex, they're class references, not
string urls (see
http://livedocs.adobe.com/flex/3/langref/mx/controls/HorizontalList.html#includeExamplesSummary
)

You have two options:
1: Embed the images and reference their respective variables through binding
(like in the above example)
2: Create your own renderer for use within the HorizontalList, making use of
an mx:Image that has it's source set to the icon property of the objects in
the given dataProvider. and an mx:Label that's bound to the label property.

Some semi-working code: (you'll probabaly want to make it extend UIComponent
and handle measuring, positioning, etc. Look @ TileListItemRenderer for
guidance).

package
{
import mx.containers.VBox;
import mx.controls.Image;
import mx.controls.Label;
import mx.controls.listClasses.BaseListData;
import mx.controls.listClasses.IDropInListItemRenderer;
import mx.controls.listClasses.IListItemRenderer;
import mx.controls.listClasses.ListData;
import mx.core.IDataRenderer;
import mx.core.IFactory;
import mx.events.FlexEvent;

public class URLHListRenderer extends VBox implements IFactory,
IDropInListItemRenderer, IDataRenderer, IListItemRenderer
{
private var uiImage:Image;
private var uiLabel:Label;

public function URLHListRenderer()
{
super();
}

override protected function createChildren():void
{
super.createChildren();
uiImage = new Image();
addChild(uiImage);

uiLabel = new Label();
uiLabel.styleName = this;
addChild(uiLabel);
}

override protected function commitProperties():void
{
super.commitProperties();
uiImage.source = data  (data.icon || data.source) ? (data.icon
|| data.source) : null;
uiLabel.text = data ? data.label : null;
}


public function newInstance():*
{
var instance:URLHListRenderer = new URLHListRenderer();
instance.styleName = this;
instance.width = width;
instance.height = height;
return instance;
}

private var _listData:ListData;
[Bindable(dataChange)]
public function get listData():BaseListData
{
return null;
}
/**
 * @private
 */
public function set listData(value:BaseListData):void
{
_listData = value as ListData;
dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
invalidateProperties();
}

override public function set data(value:Object):void
{
super.data = value;
invalidateProperties();
}
}
}

mx:HorizontalList width=100% height=100%
mx:itemRenderer
local:URLHListRenderer width=200 height=200/
/mx:itemRenderer
mx:dataProvider
mx:Array
mx:Object label=Yahoo icon=
http://l.yimg.com/a/i/ww/beta/y3.gif/
/mx:Array
/mx:dataProvider
/mx:HorizontalList




Hope this helps,

Beau Scott






On Thu, Jul 23, 2009 at 8:55 AM, jamiebadman jamie.bad...@db.com wrote:



 Hi!

 I'm trying to display images in a Horizontal List. I receive the url's of
 the images via a webservice at run time - so can't embed the images. I've
 tried something like this:

 chartList.addItem({label:myLabel, icon:myImageURL});

 Where chartList is the dataprovider of the H-List... but this doesn't work
 - I see the labels but no images.

 The url's are definitely correct - I can paste one into a browser and view
 the image.

 Any ideas?

 Thanks,

 Jamie.

  




-- 
Beau D. Scott
Software Engineer


Re: [flexcoders] FileReference.load()

2009-07-23 Thread Richard Rodseth
Unfortunately,

if (load in fileReference)

does not succeed unless I specify Player 10 in the build settings.

On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth rrods...@gmail.com wrote:

 Nice! But it's not working for me yet. The in expression doesn't succeed.
 I'll keep digging through the reflection docs, but if you have any
 refinements, please pass them along.


 On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.com wrote:



  Try this:



 if (load in fileReference)

 fileReference[load]();



 That should compile against the Player 9 version of playerglobal.swc, but,
 in Player 10, detect that the method exists and call it by name.



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Richard Rodseth
 *Sent:* Wednesday, July 22, 2009 6:12 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] FileReference.load()





 I was hoping to provide an optional feature that requires reading a local
 file if Player 10 is available, without requiring 10 for the whole
 application.

 But it appears that I can't compile code that uses FileReference.load()
 without setting the target player in FlexBuilder.

 Anyone dealt with this situation?

   





[flexcoders] Flex Architecture Question

2009-07-23 Thread guess what

I am struggling to get the Best Architecture. Can anyone suggest me some 
direction .
Its a very simple Web App , which needs some data grid and filters on the page 
. 


Front End Flex 
This has to be used : EJB 3.0 , JPA 
Back End - Oracle . 

Having just worked with Struts and Beehive technologies I am used to having a 
Controller 
and My Flex Front End  would talk to a controller . 
Now that if I dont have a Front End Controller(Struts Action) , if do  have 
user input page how can i pass
values to the  EJB 3.0 from flex . 


Some other Questions 

1. I am not sure how to do basic Session Handling of the App directly on the 
Flex Page . 
2. Load App Related Properties  :
 Here even , if I have an initialize Servlet and Load all app  properties 
into my  Stateful Session Bean inside my  Servlet . 
   How to access the bean directly  from inside Flex and change the 
properties of Stateful Session bean 
3.  User Input Page values : How to pass them back and Forth 


  


Re: [flexcoders] FileReference.load()

2009-07-23 Thread Beau Scott
Err... extra paren in there.

if(fileReference.hasOwnProperty(load))
   fileReference[load]();


Beau


On Thu, Jul 23, 2009 at 12:23 PM, Beau Scott beau.sc...@gmail.com wrote:

 if(fileReference.hasOwnProperty('load'))
fileReference([load']();

 Beau




 On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth rrods...@gmail.comwrote:



 Unfortunately,

 if (load in fileReference)

 does not succeed unless I specify Player 10 in the build settings.

 On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth rrods...@gmail.comwrote:

 Nice! But it's not working for me yet. The in expression doesn't
 succeed. I'll keep digging through the reflection docs, but if you have any
 refinements, please pass them along.


 On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.com wrote:



  Try this:



 if (load in fileReference)

 fileReference[load]();



 That should compile against the Player 9 version of playerglobal.swc,
 but, in Player 10, detect that the method exists and call it by name.



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 *On Behalf Of *Richard Rodseth
 *Sent:* Wednesday, July 22, 2009 6:12 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] FileReference.load()





 I was hoping to provide an optional feature that requires reading a
 local file if Player 10 is available, without requiring 10 for the whole
 application.

 But it appears that I can't compile code that uses FileReference.load()
 without setting the target player in FlexBuilder.

 Anyone dealt with this situation?



  




 --
 Beau D. Scott
 Software Engineer




-- 
Beau D. Scott
Software Engineer


Re: [flexcoders] FileReference.load()

2009-07-23 Thread Beau Scott
if(fileReference.hasOwnProperty('load'))
   fileReference([load']();

Beau



On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth rrods...@gmail.comwrote:



 Unfortunately,

 if (load in fileReference)

 does not succeed unless I specify Player 10 in the build settings.

 On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth rrods...@gmail.comwrote:

 Nice! But it's not working for me yet. The in expression doesn't
 succeed. I'll keep digging through the reflection docs, but if you have any
 refinements, please pass them along.


 On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.com wrote:



  Try this:



 if (load in fileReference)

 fileReference[load]();



 That should compile against the Player 9 version of playerglobal.swc,
 but, in Player 10, detect that the method exists and call it by name.



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Richard Rodseth
 *Sent:* Wednesday, July 22, 2009 6:12 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] FileReference.load()





 I was hoping to provide an optional feature that requires reading a local
 file if Player 10 is available, without requiring 10 for the whole
 application.

 But it appears that I can't compile code that uses FileReference.load()
 without setting the target player in FlexBuilder.

 Anyone dealt with this situation?



  




-- 
Beau D. Scott
Software Engineer


Re: [flexcoders] FileReference.load()

2009-07-23 Thread Richard Rodseth
Nope, I've tried that too. Has that worked for you, or are you guessing?

On Thu, Jul 23, 2009 at 11:23 AM, Beau Scott beau.sc...@gmail.com wrote:



 if(fileReference.hasOwnProperty('load'))
fileReference([load']();

 Beau




 On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth rrods...@gmail.comwrote:



 Unfortunately,

 if (load in fileReference)

 does not succeed unless I specify Player 10 in the build settings.

 On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth rrods...@gmail.comwrote:

 Nice! But it's not working for me yet. The in expression doesn't
 succeed. I'll keep digging through the reflection docs, but if you have any
 refinements, please pass them along.


 On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.com wrote:



  Try this:



 if (load in fileReference)

 fileReference[load]();



 That should compile against the Player 9 version of playerglobal.swc,
 but, in Player 10, detect that the method exists and call it by name.



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 *On Behalf Of *Richard Rodseth
 *Sent:* Wednesday, July 22, 2009 6:12 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] FileReference.load()





 I was hoping to provide an optional feature that requires reading a
 local file if Player 10 is available, without requiring 10 for the whole
 application.

 But it appears that I can't compile code that uses FileReference.load()
 without setting the target player in FlexBuilder.

 Anyone dealt with this situation?






 --
 Beau D. Scott
 Software Engineer
  



Re: [flexcoders] FileReference.load()

2009-07-23 Thread Beau Scott
Works fine for me.I just tried it in both 9.0.124 and 10 players:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
xmlns:local=*
mx:Script
![CDATA[
import mx.controls.Label;
import mx.controls.Alert;
override protected function childrenCreated():void
{
if(this.hasOwnProperty(foo))
{
this[foo]();
}
}

public function foo():void
{
var lbl:Label = new Label();
lbl.text = It worked;
addChild(lbl);
}
]]
/mx:Script
/mx:Application

Beau



On Thu, Jul 23, 2009 at 12:33 PM, Richard Rodseth rrods...@gmail.comwrote:



 Nope, I've tried that too. Has that worked for you, or are you guessing?

 On Thu, Jul 23, 2009 at 11:23 AM, Beau Scott beau.sc...@gmail.com wrote:



 if(fileReference.hasOwnProperty('load'))
fileReference([load']();

 Beau




 On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth rrods...@gmail.comwrote:



 Unfortunately,

 if (load in fileReference)

 does not succeed unless I specify Player 10 in the build settings.

 On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth rrods...@gmail.comwrote:

 Nice! But it's not working for me yet. The in expression doesn't
 succeed. I'll keep digging through the reflection docs, but if you have any
 refinements, please pass them along.


 On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.comwrote:



  Try this:



 if (load in fileReference)

 fileReference[load]();



 That should compile against the Player 9 version of playerglobal.swc,
 but, in Player 10, detect that the method exists and call it by name.



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 *On Behalf Of *Richard Rodseth
 *Sent:* Wednesday, July 22, 2009 6:12 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] FileReference.load()





 I was hoping to provide an optional feature that requires reading a
 local file if Player 10 is available, without requiring 10 for the whole
 application.

 But it appears that I can't compile code that uses FileReference.load()
 without setting the target player in FlexBuilder.

 Anyone dealt with this situation?






 --
 Beau D. Scott
 Software Engineer


  




-- 
Beau D. Scott
Software Engineer


Re: [flexcoders] FileReference.load()

2009-07-23 Thread Richard Rodseth
But it's the flash.netFileReference class that's in play:

private var fileReference:FileReference = new FileReference();

private function onAddFile(event:Event):void {
var filter:FileFilter = new FileFilter(Text, *.xml);
fileReference.browse([filter]);
fileReference.addEventListener(Event.SELECT, onFileSelect);
fileReference.addEventListener(Event.COMPLETE, onFileComplete);
}

private function onFileSelect(event:Event):void
  {
  if (load in this.fileReference) {
  fileReference[load]();
  }
  }

  private function onFileComplete(event:Event):void
  {
  var property:String = data;
  myText.text =
fileReference[data].readUTFBytes(fileReference[data].length);
  }


On Thu, Jul 23, 2009 at 11:51 AM, Beau Scott beau.sc...@gmail.com wrote:



 Works fine for me.I just tried it in both 9.0.124 and 10 players:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute xmlns:local=*
 mx:Script
 ![CDATA[
 import mx.controls.Label;
 import mx.controls.Alert;
 override protected function childrenCreated():void
 {
 if(this.hasOwnProperty(foo))
 {
 this[foo]();
 }
 }

 public function foo():void
 {
 var lbl:Label = new Label();
 lbl.text = It worked;
 addChild(lbl);
 }
 ]]
 /mx:Script
 /mx:Application

 Beau




 On Thu, Jul 23, 2009 at 12:33 PM, Richard Rodseth rrods...@gmail.comwrote:



 Nope, I've tried that too. Has that worked for you, or are you guessing?

 On Thu, Jul 23, 2009 at 11:23 AM, Beau Scott beau.sc...@gmail.comwrote:



 if(fileReference.hasOwnProperty('load'))
fileReference([load']();

 Beau




 On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth rrods...@gmail.comwrote:



 Unfortunately,

 if (load in fileReference)

 does not succeed unless I specify Player 10 in the build settings.

 On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth rrods...@gmail.comwrote:

 Nice! But it's not working for me yet. The in expression doesn't
 succeed. I'll keep digging through the reflection docs, but if you have 
 any
 refinements, please pass them along.


 On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.comwrote:



  Try this:



 if (load in fileReference)

 fileReference[load]();



 That should compile against the Player 9 version of playerglobal.swc,
 but, in Player 10, detect that the method exists and call it by name.



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 *On Behalf Of *Richard Rodseth
 *Sent:* Wednesday, July 22, 2009 6:12 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] FileReference.load()





 I was hoping to provide an optional feature that requires reading a
 local file if Player 10 is available, without requiring 10 for the whole
 application.

 But it appears that I can't compile code that uses
 FileReference.load() without setting the target player in FlexBuilder.

 Anyone dealt with this situation?






 --
 Beau D. Scott
 Software Engineer





 --
 Beau D. Scott
 Software Engineer
  



Re: [flexcoders] FileReference.load()

2009-07-23 Thread Beau Scott
Ah, I see what you're saying now. The answer is you're not going to be able
to do it unless you use 10, because the compiler looks at the compatible
player version and includes version-specific swcs at compile time (Flex
Builder 3 Plug-in\sdks\3.2.0\frameworks\libs\player\9\playerglobal.swc vs
Flex Builder 3
Plug-in\sdks\3.2.0\frameworks\libs\player\10\playerglobal.swc). Therefore
load will never be available no matter what player is playing it if you're
specifiying 9 as the lowest compatible version. These libs don't exist in
the player itself, it's supplied by the swf.

Beau





On Thu, Jul 23, 2009 at 12:57 PM, Richard Rodseth rrods...@gmail.comwrote:



 But it's the flash.netFileReference class that's in play:

 private var fileReference:FileReference = new FileReference();

 private function onAddFile(event:Event):void {
 var filter:FileFilter = new FileFilter(Text, *.xml);
 fileReference.browse([filter]);
 fileReference.addEventListener(Event.SELECT, onFileSelect);
 fileReference.addEventListener(Event.COMPLETE, onFileComplete);
 }

 private function onFileSelect(event:Event):void
   {
   if (load in this.fileReference) {
   fileReference[load]();
   }
   }

   private function onFileComplete(event:Event):void
   {
   var property:String = data;
   myText.text =
 fileReference[data].readUTFBytes(fileReference[data].length);

   }


 On Thu, Jul 23, 2009 at 11:51 AM, Beau Scott beau.sc...@gmail.com wrote:



 Works fine for me.I just tried it in both 9.0.124 and 10 players:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute xmlns:local=*
 mx:Script
 ![CDATA[
 import mx.controls.Label;
 import mx.controls.Alert;
 override protected function childrenCreated():void
 {
 if(this.hasOwnProperty(foo))
 {
 this[foo]();
 }
 }

 public function foo():void
 {
 var lbl:Label = new Label();
 lbl.text = It worked;
 addChild(lbl);
 }
 ]]
 /mx:Script
 /mx:Application

 Beau




 On Thu, Jul 23, 2009 at 12:33 PM, Richard Rodseth rrods...@gmail.comwrote:



 Nope, I've tried that too. Has that worked for you, or are you guessing?

 On Thu, Jul 23, 2009 at 11:23 AM, Beau Scott beau.sc...@gmail.comwrote:



 if(fileReference.hasOwnProperty('load'))
fileReference([load']();

 Beau




 On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth 
 rrods...@gmail.comwrote:



 Unfortunately,

 if (load in fileReference)

 does not succeed unless I specify Player 10 in the build settings.

 On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth 
 rrods...@gmail.comwrote:

 Nice! But it's not working for me yet. The in expression doesn't
 succeed. I'll keep digging through the reflection docs, but if you have 
 any
 refinements, please pass them along.


 On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.comwrote:



  Try this:



 if (load in fileReference)

 fileReference[load]();



 That should compile against the Player 9 version of playerglobal.swc,
 but, in Player 10, detect that the method exists and call it by name.



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:
 flexcod...@yahoogroups.com] *On Behalf Of *Richard Rodseth
 *Sent:* Wednesday, July 22, 2009 6:12 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] FileReference.load()





 I was hoping to provide an optional feature that requires reading a
 local file if Player 10 is available, without requiring 10 for the whole
 application.

 But it appears that I can't compile code that uses
 FileReference.load() without setting the target player in FlexBuilder.

 Anyone dealt with this situation?






 --
 Beau D. Scott
 Software Engineer





 --
 Beau D. Scott
 Software Engineer


  




-- 
Beau D. Scott
Software Engineer


[flexcoders] Re: Testing Flex client and CF backend with QTP...

2009-07-23 Thread jones_a_h

The problem is that the QTP Flex Plugin does not support a swf embedded using 
the wmode=transparent / opaque attribute.

So the difference wasn't between the index.html / index.cfm...it was that the 
index.cfm used a wmode=transparent and the index.html tags did not.

Adobe bug database: http://bugs.adobe.com/jira/browse/FLEXENT-682 (refers to 
http://bugs.adobe.com/jira/browse/FLEXENT-289)


--- In flexcoders@yahoogroups.com, jones_a_h alun.huw.jo...@... wrote:

 Trying to cleanup a niggling bug that's gone unresolved for a while.
 
 We are using Flex in the client and ColdFusion server on the backend.
 QTP to test the clients (HTML/Javascript and Flex).
 
 This has been fine apart from getting QTP to recognize Flex apps hosted in an 
 index.cfm file...can't get it to work. If we take the same page but instead 
 put it in a file called index.html then QTP works fine.
 
 This seems to me like a QTP configuration issue regarding the file extension? 
 since any cf processing would be 'invisible' to the client - including QTP 
 itself?
 
 We use swfobject to place and size the embedded Flex component.
 
 Anyone have any thoughts on this?





[flexcoders] Swing Layout Manager Equivalent in Flex 3

2009-07-23 Thread Mike Oliver

I have built many GUIs with Swing and two of the Swing Layout Manager Options
I found most useful were Flow and Border.

I have a design goal where I am creating a component that has a Data Grid
under a set of control icons.  If the browser window shrinks to the point
the control icons can no longer be shown without scrolling I would like them
to flow down to the next row and the panel or canvas they are on be doubled
in height to accommodate the wrap around row of icons.

I tried FlowBox but that only works if i have it double high all the time
and that defeats the purpose.

I suppose I could run some code in the resize event handler and if the size
drops below the width of the icons, I could then double the hieght and if it
grows back to wide enough I could halve the hieght.  But I am lazy and was
hopping there was a Swing Layout Manager equivalent.


-- 
View this message in context: 
http://www.nabble.com/Swing-Layout-Manager-Equivalent-in-Flex-3-tp24634003p24634003.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] QTP automation problem of custom component

2009-07-23 Thread Andriy Panas
Hi Jones,

Make sure, you are using the following setup as described here in comments:
http://bugs.adobe.com/jira/browse/FLEXENT-770

In order to get IE 7 QTP 9.5 combination working you need to do the following
1.Download FlexBuilder 3.0.2 9the trial version is on the adobe website)
2.Uninstall the old QTP-FlexPlugin that you had.
3.Go to C:\Program Files\Adobe\Flex Builder 3.0.2\Installers default
path and install the new QTP_plugin_installer.
4.Restart your machine and it should work.

if you would like automation testing to work at IE7 browser.

--
Best regards,
Andriy Panas




2009/7/23 jones_a_h alun.huw.jo...@gmail.com:


 My project uses a custom Calendar component. The component implements
 UIComponent directly and contains children.
 I followed the instructions and wrote a delegate implementation for the
 component and a matching TEAFlex...xml class definition file.
 Am using a simple wrapper index.html file.

 The project was updated with the -include_libraries to pull in the
 automation swc's and a -includes to pull in my delegate implementation.

 In QTP using Object Spy it sees the FlexCalendar along with the events and
 properties I exposed in the class definition file.

 PROBLEM: QTP can not see any of the child items even though the
 numAutomationChildren and getAutomationChildAt are implemented. The value of
 numAutomationChildren on the FlexCalendar instance as reported by Object Spy
 is correct...but they just show up as BrowserPageWinObject.

 Any ideas what I'm doing wrong?

 The crazy thing is, I downloaded the RandomWalk sample/example and it
 behaves for me in exactly the same way...numAutomationChildren indicates the
 correct number of children but they are not identified correctly by Object
 Spy.

 So perhaps I am building it wrong - even though QTP does see the custom
 component fine.

 Is there some special significance to the randomWalkClasses src folder or
 could these files have been included at the same level as the RandomWalk.as
 class itself?

 Tried with Flex Builder 3 with SDK3.2 and testing under IE7+QTP9.5 and
 IE8+QTP10 - same behavior.

 Note: Same swf works fine with RIATest albeit with runtime approach directly
 on the swf, i.e. all child components are identifiable.

 


Re: [flexcoders] QTP automation problem of custom component

2009-07-23 Thread Andriy Panas
And QTP10 is not yet supported by Flex SDK automation.swc library

http://bugs.adobe.com/jira/browse/FLEXENT-962

--
Best regards,
Andriy Panas




2009/7/24 Andriy Panas a.pa...@gmail.com:
 Hi Jones,

 Make sure, you are using the following setup as described here in comments:
 http://bugs.adobe.com/jira/browse/FLEXENT-770

 In order to get IE 7 QTP 9.5 combination working you need to do the following
 1.Download FlexBuilder 3.0.2 9the trial version is on the adobe website)
 2.Uninstall the old QTP-FlexPlugin that you had.
 3.Go to C:\Program Files\Adobe\Flex Builder 3.0.2\Installers default
 path and install the new QTP_plugin_installer.
 4.Restart your machine and it should work.

 if you would like automation testing to work at IE7 browser.

 --
 Best regards,
 Andriy Panas




 2009/7/23 jones_a_h alun.huw.jo...@gmail.com:


 My project uses a custom Calendar component. The component implements
 UIComponent directly and contains children.
 I followed the instructions and wrote a delegate implementation for the
 component and a matching TEAFlex...xml class definition file.
 Am using a simple wrapper index.html file.

 The project was updated with the -include_libraries to pull in the
 automation swc's and a -includes to pull in my delegate implementation.

 In QTP using Object Spy it sees the FlexCalendar along with the events and
 properties I exposed in the class definition file.

 PROBLEM: QTP can not see any of the child items even though the
 numAutomationChildren and getAutomationChildAt are implemented. The value of
 numAutomationChildren on the FlexCalendar instance as reported by Object Spy
 is correct...but they just show up as BrowserPageWinObject.

 Any ideas what I'm doing wrong?

 The crazy thing is, I downloaded the RandomWalk sample/example and it
 behaves for me in exactly the same way...numAutomationChildren indicates the
 correct number of children but they are not identified correctly by Object
 Spy.

 So perhaps I am building it wrong - even though QTP does see the custom
 component fine.

 Is there some special significance to the randomWalkClasses src folder or
 could these files have been included at the same level as the RandomWalk.as
 class itself?

 Tried with Flex Builder 3 with SDK3.2 and testing under IE7+QTP9.5 and
 IE8+QTP10 - same behavior.

 Note: Same swf works fine with RIATest albeit with runtime approach directly
 on the swf, i.e. all child components are identifiable.

 



Re: [flexcoders] Re: how to auto refresh datagrid using httpservice

2009-07-23 Thread Vivian Richard
Here is the code that will work for your need:




?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=init()
  mx:Script
![CDATA[
public var t:Timer;
public function init():void
{
t = new Timer(5000);
t.start();
t.addEventListener(TimerEvent.TIMER, realData.send);
}
]]
  /mx:Script
  mx:HTTPService id=realData url=http://localhost:8080/real/test.jsp/
  mx:DataGrid x=63 y=53 id=sfssfs
dataProvider={realData.lastResult.response.data.row}/

/mx:Application















On Thu, Jul 23, 2009 at 7:10 AM, postwickp...@ubeek.com wrote:


 I should have finished reading that blog post before I sent this. I guess
 there is a more modern way to do this:

 http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_4.html

 --- In flexcoders@yahoogroups.com, postwick p...@... wrote:

 You would use setInterval()


 http://blog.flexexamples.com/2008/02/14/creating-timers-using-the-setinterval-method/

 However, I recommend looking into LCDS (LiveCycle Data Services). It does
 this automatically.

 --- In flexcoders@yahoogroups.com, Shoukat Ali a.shoukat@ wrote:
 
  this is my mxml file ::
 
  --
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute creationComplete=realData.send()
  mx:HTTPService id=realData
  url=http://localhost:8080/real/test.jsp/
  mx:DataGrid x=63 y=53 id=sfssfs
  dataProvider={realData.lastResult.response.data.row}
  /mx:DataGrid
  /mx:Application
 
  --
 
  i am using jsp as dataprovider, now i want to refresh the page per 5
  seconds, so that the jsp is called per 5 sec. and pull the updated data 
  from
  database. database is being updated regularly by other application.
 


 


[flexcoders] Question about a flex component

2009-07-23 Thread veena pandit
Hi,

I am new to Flex.  I am looking for help on designing a custom component
that will
hold a lot of items.  When the items exceed the number that are visible in
the ui
of this horizontal component on the webpage an icon appears, which if you
click
will show a list of the other components you can click again and restore the
ui with
that item.  Hope you understand what I am talking about.  If not please post
for clarification.

Thanks in advance,

Veena


[flexcoders] Flex custom component

2009-07-23 Thread veena_kris2003
I am new to Flex and I need a custom horizontal component at the bottom of the 
web page that will hold many items and display these items.  When the number of 
items exceed what can be displayed a right arrow will appear to the far right, 
which if you click will show you a list of items you can choose from to display 
in the page.  Kind of like the arrows you see on the IE explorer bar on the top 
of the page.  Please help.

Thanks,

Veena



[flexcoders] Re: channel.connect.failed error netconnection.call.badversion Exception

2009-07-23 Thread b.kotireddy
Is some one could help me to start a way to explore this issue please.



--- In flexcoders@yahoogroups.com, b.kotireddy koti_reddy...@... wrote:

 Hi,
 
 I could not able to find the way to solve this error message. We are in
 production now ans some of the users are getting
 Channel.Connection.Failed error NetConnection.Call.BadVersion
 
 We are not using any secure line to access this application.
 We used the flex sdk 3.1.0 version.
 
 The channels we declared in config file are
 channels
channel ref=long-polling-amf/
channel ref=polling-amf/
 /channels
 
 Do we need to make any changes to avoid this error message.
 
 I appreciate you response.
 
 Thanks in advance
 Koti





RE: [flexcoders] Question about a flex component

2009-07-23 Thread Gordon Smith
Why not just allow scrolling instead of paging? Scrolling components can scroll 
through thousands of items quickly.

Suppose there are 100 items and you can only see 10 at a time. So first you see 
0-9. When you click the icon you see 10-19. When you click it again you'd see 
20-29. So you'd need another icon (previous page instead of next page) to 
go back to 10-19 and then 0-9.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of veena pandit
Sent: Thursday, July 23, 2009 10:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question about a flex component


Hi,

I am new to Flex.  I am looking for help on designing a custom component that 
will
hold a lot of items.  When the items exceed the number that are visible in the 
ui
of this horizontal component on the webpage an icon appears, which if you click
will show a list of the other components you can click again and restore the ui 
with
that item.  Hope you understand what I am talking about.  If not please post 
for clarification.

Thanks in advance,

Veena




Re: [flexcoders] FileReference.load()

2009-07-23 Thread Richard Rodseth
Thanks for the explanation. More or less what I expected until Gordon made
his suggestion.
I think I have approval to require 10, but I'd still be interested to know
if Gordon concurs with your conclusion.

On Thu, Jul 23, 2009 at 12:19 PM, Beau Scott beau.sc...@gmail.com wrote:



 Ah, I see what you're saying now. The answer is you're not going to be able
 to do it unless you use 10, because the compiler looks at the compatible
 player version and includes version-specific swcs at compile time (Flex
 Builder 3 Plug-in\sdks\3.2.0\frameworks\libs\player\9\playerglobal.swc vs
 Flex Builder 3
 Plug-in\sdks\3.2.0\frameworks\libs\player\10\playerglobal.swc). Therefore
 load will never be available no matter what player is playing it if you're
 specifiying 9 as the lowest compatible version. These libs don't exist in
 the player itself, it's supplied by the swf.

 Beau






 On Thu, Jul 23, 2009 at 12:57 PM, Richard Rodseth rrods...@gmail.comwrote:



 But it's the flash.netFileReference class that's in play:

 private var fileReference:FileReference = new FileReference();

 private function onAddFile(event:Event):void {
 var filter:FileFilter = new FileFilter(Text, *.xml);
 fileReference.browse([filter]);
 fileReference.addEventListener(Event.SELECT, onFileSelect);
 fileReference.addEventListener(Event.COMPLETE,
 onFileComplete);
 }

 private function onFileSelect(event:Event):void
   {
   if (load in this.fileReference) {
   fileReference[load]();
   }
   }

   private function onFileComplete(event:Event):void
   {
   var property:String = data;
   myText.text =
 fileReference[data].readUTFBytes(fileReference[data].length);

   }


 On Thu, Jul 23, 2009 at 11:51 AM, Beau Scott beau.sc...@gmail.comwrote:



 Works fine for me.I just tried it in both 9.0.124 and 10 players:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute xmlns:local=*
 mx:Script
 ![CDATA[
 import mx.controls.Label;
 import mx.controls.Alert;
 override protected function childrenCreated():void
 {
 if(this.hasOwnProperty(foo))
 {
 this[foo]();
 }
 }

 public function foo():void
 {
 var lbl:Label = new Label();
 lbl.text = It worked;
 addChild(lbl);
 }
 ]]
 /mx:Script
 /mx:Application

 Beau




 On Thu, Jul 23, 2009 at 12:33 PM, Richard Rodseth rrods...@gmail.comwrote:



 Nope, I've tried that too. Has that worked for you, or are you guessing?

 On Thu, Jul 23, 2009 at 11:23 AM, Beau Scott beau.sc...@gmail.comwrote:



 if(fileReference.hasOwnProperty('load'))
fileReference([load']();

 Beau




 On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth 
 rrods...@gmail.comwrote:



 Unfortunately,

 if (load in fileReference)

 does not succeed unless I specify Player 10 in the build settings.

 On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth 
 rrods...@gmail.comwrote:

 Nice! But it's not working for me yet. The in expression doesn't
 succeed. I'll keep digging through the reflection docs, but if you have 
 any
 refinements, please pass them along.


 On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith gosm...@adobe.comwrote:



  Try this:



 if (load in fileReference)

 fileReference[load]();



 That should compile against the Player 9 version of
 playerglobal.swc, but, in Player 10, detect that the method exists and 
 call
 it by name.



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:
 flexcod...@yahoogroups.com] *On Behalf Of *Richard Rodseth
 *Sent:* Wednesday, July 22, 2009 6:12 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] FileReference.load()





 I was hoping to provide an optional feature that requires reading a
 local file if Player 10 is available, without requiring 10 for the 
 whole
 application.

 But it appears that I can't compile code that uses
 FileReference.load() without setting the target player in FlexBuilder.

 Anyone dealt with this situation?






 --
 Beau D. Scott
 Software Engineer





 --
 Beau D. Scott
 Software Engineer





 --
 Beau D. Scott
 Software Engineer
  



[flexcoders] Re: channel.connect.failed error netconnection.call.badversion Exception

2009-07-23 Thread postwick
It sounds like a generic error that isn't giving you real detail about what the 
true problem is.

This blog post explains how to solve that issue so you can see real info on the 
error.

http://www.5etdemi.com/blog/archives/2005/06/i-did-it-i-killed-netconnectioncallbadversion

--- In flexcoders@yahoogroups.com, b.kotireddy koti_reddy...@... wrote:

 Is some one could help me to start a way to explore this issue please.
 
 
 
 --- In flexcoders@yahoogroups.com, b.kotireddy koti_reddy972@ wrote:
 
  Hi,
  
  I could not able to find the way to solve this error message. We are in
  production now ans some of the users are getting
  Channel.Connection.Failed error NetConnection.Call.BadVersion
  
  We are not using any secure line to access this application.
  We used the flex sdk 3.1.0 version.
  
  The channels we declared in config file are
  channels
 channel ref=long-polling-amf/
 channel ref=polling-amf/
  /channels
  
  Do we need to make any changes to avoid this error message.
  
  I appreciate you response.
  
  Thanks in advance
  Koti
 





RE: [flexcoders] FileReference.load()

2009-07-23 Thread Gordon Smith
Interesting! If it's true I think it has to do with there being a difference in 
major version number, and that number getting written into the SWF header. It 
may well be that Player 10 APIs are made invisible to a SWF whose header says 
it is for Player 9. I think this may be how the addition of the z property to 
DisplayObject was added without disruption to SWFs that defined their own 
subclasses with a z property.

I'm pretty sure that it doesn't apply for minor version changes. For example if 
you compile with a playerglobal.swc for 10.0, I'm almost certain that you can 
use code like

if (doSomething in obj)
obj[doSomething]();

to look for and call a doSomething() method that has been added for 10.1. But 
that's doesn't help you.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Richard Rodseth
Sent: Thursday, July 23, 2009 3:42 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FileReference.load()



Thanks for the explanation. More or less what I expected until Gordon made his 
suggestion.
I think I have approval to require 10, but I'd still be interested to know if 
Gordon concurs with your conclusion.
On Thu, Jul 23, 2009 at 12:19 PM, Beau Scott 
beau.sc...@gmail.commailto:beau.sc...@gmail.com wrote:


Ah, I see what you're saying now. The answer is you're not going to be able to 
do it unless you use 10, because the compiler looks at the compatible player 
version and includes version-specific swcs at compile time (Flex Builder 3 
Plug-in\sdks\3.2.0\frameworks\libs\player\9\playerglobal.swc vs Flex Builder 3 
Plug-in\sdks\3.2.0\frameworks\libs\player\10\playerglobal.swc). Therefore 
load will never be available no matter what player is playing it if you're 
specifiying 9 as the lowest compatible version. These libs don't exist in the 
player itself, it's supplied by the swf.

Beau





On Thu, Jul 23, 2009 at 12:57 PM, Richard Rodseth 
rrods...@gmail.commailto:rrods...@gmail.com wrote:


But it's the flash.netFileReference class that's in play:

private var fileReference:FileReference = new FileReference();

private function onAddFile(event:Event):void {
var filter:FileFilter = new FileFilter(Text, *.xml);
fileReference.browse([filter]);
fileReference.addEventListener(Event.SELECT, onFileSelect);
fileReference.addEventListener(Event.COMPLETE, onFileComplete);
}

private function onFileSelect(event:Event):void
  {
  if (load in this.fileReference) {
  fileReference[load]();
  }
  }

  private function onFileComplete(event:Event):void
  {
  var property:String = data;
  myText.text = 
fileReference[data].readUTFBytes(fileReference[data].length);

  }

On Thu, Jul 23, 2009 at 11:51 AM, Beau Scott 
beau.sc...@gmail.commailto:beau.sc...@gmail.com wrote:


Works fine for me.I just tried it in both 9.0.124 and 10 players:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
xmlns:local=*
mx:Script
![CDATA[
import mx.controls.Label;
import mx.controls.Alert;
override protected function childrenCreated():void
{
if(this.hasOwnProperty(foo))
{
this[foo]();
}
}

public function foo():void
{
var lbl:Label = new Label();
lbl.text = It worked;
addChild(lbl);
}
]]
/mx:Script
/mx:Application

Beau



On Thu, Jul 23, 2009 at 12:33 PM, Richard Rodseth 
rrods...@gmail.commailto:rrods...@gmail.com wrote:


Nope, I've tried that too. Has that worked for you, or are you guessing?
On Thu, Jul 23, 2009 at 11:23 AM, Beau Scott 
beau.sc...@gmail.commailto:beau.sc...@gmail.com wrote:


if(fileReference.hasOwnProperty('load'))
   fileReference([load']();

Beau



On Thu, Jul 23, 2009 at 12:18 PM, Richard Rodseth 
rrods...@gmail.commailto:rrods...@gmail.com wrote:


Unfortunately,

if (load in fileReference)

does not succeed unless I specify Player 10 in the build settings.
On Thu, Jul 23, 2009 at 9:56 AM, Richard Rodseth 
rrods...@gmail.commailto:rrods...@gmail.com wrote:
Nice! But it's not working for me yet. The in expression doesn't succeed. 
I'll keep digging through the reflection docs, but if you have any refinements, 
please pass them along.

On Wed, Jul 22, 2009 at 6:33 PM, Gordon Smith 
gosm...@adobe.commailto:gosm...@adobe.com wrote:


Try this:



if (load in fileReference)

fileReference[load]();



That should compile against the Player 9 version of playerglobal.swc, but, in 
Player 10, detect that the method exists and call it by name.



Gordon Smith

Adobe Flex SDK Team



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 

[flexcoders] Re: better option than repeater?

2009-07-23 Thread postwick
OK, thanks to the below example, I have made some progress on setting up
my first custom itemRenderer.  Code can be viewed here: 
http://www.ubeek.com/Flex/testrend.mxml

As I mentioned before, my goal is to display a list of Staff.  One of
the fields (moduleAccess) in the Staff record is a list of integers
(i.e.  1,3,17,25).  I have a table that contains a list of modules
(SEQ, MODULENAME).  For each Staff displayed by the List's itemRenderer,
I need to loop through all the modules and output a checkbox...and if
the module's SEQ is in the Staff's moduleAccess list then the box should
be checked.

I tried setting up a remoteObject inside the custom renderer, but no
matter where I put it it gave me a parse error.  I guess it doesn't like
mx:RemoteObject inside a component.  So I put it outside the component,
but then the script function inside the component didn't seem able to
access the RemoteObject's data.  Although it was what I initially tried
to do (with the RO inside the component) I don't really want to do that
as it seems highly inefficient to query the database for every Staff
record.  It seems I should be able to execute the RO just once and then
pass the resulting list of modules to the component so I can loop
through it to output all the checkboxes (and for each record check the
SEQ against the Staff's moduleAccess, which I know how to do).

So the question is - how do call the RO just once and pass the result
into the component (as an ArrayCollection or something) so I can loop
over it repeatedly instead of actually calling it and hitting the
database repeatedly?

Thanks,
Paul


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

 As a quick and dirty...

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical
  xmlns:custom=Components.*
  mx:Script
  ![CDATA[
  import mx.collections.ArrayCollection;

  [Bindable] private var staffArrColl:ArrayCollection;
  ]]
  /mx:Script
  mx:Repeater id=myStaff dataProvider={staffArrColl}
  custom:CheckBoxComponent id=checkBoxs
 person={Person(myStaff.currentItem)} /
  /mx:Repeater
 /mx:Application

 CheckBoxComponent.mxml:
 ?xml version=1.0 encoding=utf-8?
 mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
 creationComplete=onCreationComplete()
  mx:Script
  ![CDATA[
  import ValueObjects.Person;

  public var person:Person;

  private function onCreationComplete():void
  {
  // From person object make a remote object call to
get
 Modules and Queues
  // When remote object calls return, create checkboxes
 appropriately
  }
  ]]
  /mx:Script
 /mx:VBox

 Person.as:
 package ValueObjects
 {
  [RemoteClass(alias=Classes.Testing.Person)]
  [Bindable]
  public class Person
  {
  //instance variables
  private var _name:String;
  private var _id:String;

  //accessor methods
  public function get name():String {return _name;}
  public function get id():String {return _id;}

  //mutator methods
  public function set name(name:String):void {_name = name;}
  public function set id(id:String):void {_id = id;}
  } // end class
 }//end package

 I have not included any remote object calls or result handlers. I'll
 leave that up to you.

 Keep in mind that Flex is object oriented. One of the ideas behind OOP
 is encapsulation. If you can encapsulate all the properties and
methods
 of something and then repeat that, the possibilities are endless.


 HTH



 Steve

 --- In flexcoders@yahoogroups.com, postwick paul@ wrote:
 
  Can you give me a brief example of code that would achieve the part
 where you say create a component?
 
  Keep in mind the number of checkboxes and their labels is not
static.
 There are three tables involved: staff, modules, and queues.  The
 checkboxes are created dynamically from the records returned from the
 modules and queues tables.
 
  --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
  
   I use repeaters quite a lot and like them.
  
   What I do is to create a component (Which sometimes contains other
 components) and the repeat that.
  
   In your situation, I would create a component with all of your
check
 boxes and save button. This component would have all of the
 functionality to display which check boxes are selected as well as the
 save button click handler. It would also have a public property that
 would take a data object. On creation complete of this component, it
 would check the values of the data object and set the check boxes
 appropriately.
  
   Then, I would repeat this component passing in the data objects
 returned from the remote object call...
  
   mx:Repeater id=myStaff dataProvider={staffArrColl}
   custom:CheckBoxComponent id=checkBoxs
 

[flexcoders] Re: better option than repeater?

2009-07-23 Thread postwick
Sorry, link should have been http://www.ubeek.com/Flex/testrend.txt

--- In flexcoders@yahoogroups.com, postwick p...@... wrote:

 OK, thanks to the below example, I have made some progress on setting up
 my first custom itemRenderer.  Code can be viewed here: 
 http://www.ubeek.com/Flex/testrend.mxml
 
 As I mentioned before, my goal is to display a list of Staff.  One of
 the fields (moduleAccess) in the Staff record is a list of integers
 (i.e.  1,3,17,25).  I have a table that contains a list of modules
 (SEQ, MODULENAME).  For each Staff displayed by the List's itemRenderer,
 I need to loop through all the modules and output a checkbox...and if
 the module's SEQ is in the Staff's moduleAccess list then the box should
 be checked.
 
 I tried setting up a remoteObject inside the custom renderer, but no
 matter where I put it it gave me a parse error.  I guess it doesn't like
 mx:RemoteObject inside a component.  So I put it outside the component,
 but then the script function inside the component didn't seem able to
 access the RemoteObject's data.  Although it was what I initially tried
 to do (with the RO inside the component) I don't really want to do that
 as it seems highly inefficient to query the database for every Staff
 record.  It seems I should be able to execute the RO just once and then
 pass the resulting list of modules to the component so I can loop
 through it to output all the checkboxes (and for each record check the
 SEQ against the Staff's moduleAccess, which I know how to do).
 
 So the question is - how do call the RO just once and pass the result
 into the component (as an ArrayCollection or something) so I can loop
 over it repeatedly instead of actually calling it and hitting the
 database repeatedly?
 
 Thanks,
 Paul
 
 
 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  As a quick and dirty...
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=vertical
   xmlns:custom=Components.*
   mx:Script
   ![CDATA[
   import mx.collections.ArrayCollection;
 
   [Bindable] private var staffArrColl:ArrayCollection;
   ]]
   /mx:Script
   mx:Repeater id=myStaff dataProvider={staffArrColl}
   custom:CheckBoxComponent id=checkBoxs
  person={Person(myStaff.currentItem)} /
   /mx:Repeater
  /mx:Application
 
  CheckBoxComponent.mxml:
  ?xml version=1.0 encoding=utf-8?
  mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
  creationComplete=onCreationComplete()
   mx:Script
   ![CDATA[
   import ValueObjects.Person;
 
   public var person:Person;
 
   private function onCreationComplete():void
   {
   // From person object make a remote object call to
 get
  Modules and Queues
   // When remote object calls return, create checkboxes
  appropriately
   }
   ]]
   /mx:Script
  /mx:VBox
 
  Person.as:
  package ValueObjects
  {
   [RemoteClass(alias=Classes.Testing.Person)]
   [Bindable]
   public class Person
   {
   //instance variables
   private var _name:String;
   private var _id:String;
 
   //accessor methods
   public function get name():String {return _name;}
   public function get id():String {return _id;}
 
   //mutator methods
   public function set name(name:String):void {_name = name;}
   public function set id(id:String):void {_id = id;}
   } // end class
  }//end package
 
  I have not included any remote object calls or result handlers. I'll
  leave that up to you.
 
  Keep in mind that Flex is object oriented. One of the ideas behind OOP
  is encapsulation. If you can encapsulate all the properties and
 methods
  of something and then repeat that, the possibilities are endless.
 
 
  HTH
 
 
 
  Steve
 
  --- In flexcoders@yahoogroups.com, postwick paul@ wrote:
  
   Can you give me a brief example of code that would achieve the part
  where you say create a component?
  
   Keep in mind the number of checkboxes and their labels is not
 static.
  There are three tables involved: staff, modules, and queues.  The
  checkboxes are created dynamically from the records returned from the
  modules and queues tables.
  
   --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
   
I use repeaters quite a lot and like them.
   
What I do is to create a component (Which sometimes contains other
  components) and the repeat that.
   
In your situation, I would create a component with all of your
 check
  boxes and save button. This component would have all of the
  functionality to display which check boxes are selected as well as the
  save button click handler. It would also have a public property that
  would take a data object. On creation complete of this component, it
  would check the values of the data object and set the 

[flexcoders] Re: Problem with Flex tree and arraycollection

2009-07-23 Thread timgerr
That was the problem, I had an entry in each object of the arrayobject called 
uid.  I changed this and I was good to go.  

Thanks for the help, I would have killed myself trying to get this one

timgerr

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

 If there are duplicate items (items with the same UID) it may not work 
 correctly
 
 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 timgerr
 Sent: Wednesday, July 22, 2009 2:03 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Problem with Flex tree and arraycollection
 
 
 
 Hello all,
 I have troubles with my trees when I use an array collection. What happens is 
 the highlighting doesn't work, I can highlight some things nodes but not 
 others. Anyone have this happen?
 
 Thanks,
 timgerr





Re: [flexcoders] Flex 4 query

2009-07-23 Thread Purnima S
hi, I have got the flex 4 sdk. But not able understand the document. i used
flex builder 3, but i dint use flex 3 sdk. please help me.

On Thu, Jul 23, 2009 at 6:36 PM, Tom Chiverton tom.chiver...@halliwells.com
 wrote:



 On Thursday 23 Jul 2009, Purnima S wrote:
  i have flex4 sdk. iam not understanding how to work in it.

 I assume you've read Adobe's getting started docs, and must have hit a
 problem
 at one of the steps.
 Which guide are you using, and which step has got you stuck ?

 --
 Helping to vitalistically utilize distributed fourth-generation
 bricks-and-clicks sexy e-tailers as part of the IT team of the year, '09
 and '08

 

 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
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word ?partner? to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

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

 For more information about Halliwells LLP visit www.Halliwells.com.
  



RE: [flexcoders] Flex 4 query

2009-07-23 Thread Gordon Smith
I recommend downloading Flash Builder 4 here:

http://labs.adobe.com/

It's easier to use Flex 4 SDK with Flash Builder 4 than to use Flex 4 SDK with 
Flex Builder 3.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Purnima S
Sent: Thursday, July 23, 2009 8:56 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 4 query



hi, I have got the flex 4 sdk. But not able understand the document. i used 
flex builder 3, but i dint use flex 3 sdk. please help me.
On Thu, Jul 23, 2009 at 6:36 PM, Tom Chiverton 
tom.chiver...@halliwells.commailto:tom.chiver...@halliwells.com wrote:

On Thursday 23 Jul 2009, Purnima S wrote:
 i have flex4 sdk. iam not understanding how to work in it.
I assume you've read Adobe's getting started docs, and must have hit a problem
at one of the steps.
Which guide are you using, and which step has got you stuck ?

--
Helping to vitalistically utilize distributed fourth-generation
bricks-and-clicks sexy e-tailers as part of the IT team of the year, '09
and '08



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 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of 
members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners. We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

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

For more information about Halliwells LLP visit 
www.Halliwells.comhttp://www.Halliwells.com.




RE: [flexcoders] Advice from people smarter than me: Data prep for a web service

2009-07-23 Thread Tracy Spratt
When you trace((result as XML).toXMLString()),what do you see?  XML?  If so,
then build you e4x expression one step at a time, tracing the node for each
step.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Thursday, July 23, 2009 9:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Advice from people smarter than me: Data prep for a
web service

 

  

I am attempting to bring my Flex apps to the U of Michigan but we are
running Blue Dragon.NET and not true ColdFusion. I have my CFCs returning
queries since this would be a replacement UI for an existing application. 

The Web Services that are being returned are in .NET and come back in a
format I cannot figure out how to use. I tried to transverse the XML but
cannot figure out a.) how to got the the information inside the node and b.)
how to use it in a DataGrid. Is there a better way to prep the data in the
CFC to return something that I can use as an ArrayCollection (how I normally
handle RemoteObjects on my own web server, not at work) or something else
that I can use in DataGrids. 

Any help would be greatly appreciated. I would really like to start to build
Flex and AIR Flash apps here at the U.







[flexcoders] Re: String validators and turning off the red

2009-07-23 Thread timgerr
Thank you, that worked well
timgerr

--- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote:

 
 Here's a simple way:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 
 mx:Script
   ![CDATA[
public function turnOff(e:Event):void
{
 sv.enabled = false;
 test.errorString = ;
}
 
 
 
public function turnOn(e:Event):void
{
 sv.enabled = true;
}
   ]]
 /mx:Script
 
 mx:TextInput id=test/
 
 mx:Button top=60 label=Turn Off click=turnOff(event)/
 
 mx:Button top=60 left=100 label=Turn On click=turnOn(event)/
 
 mx:StringValidator id=sv required=true source={test}
 property=text enabled=true/
 
 /mx:Application
 
 -TH