[flexcoders] error when scroll datagrid vertically?

2007-02-19 Thread arpan srivastava
Hi All,

I am facing a weird problem with datagrid. I have added a custom 
itemrenderer in my datatgrid which draws a bullet graph in one of the columns. 
Now everything is fine except when I scroll it vertically it throws error( 
written below) . I tried to debug the application and found that in 
scrollVertically() method of ListBase class there is for loop at line number 
5344, here the code is like this:

for (i = lockedRowCount; i  rowCount; i++)

  {


numCols = listItems[i].length;

var bVisible:Boolean = false;

   ...

...


Now this code should run till i is less than rowCount, but I observed that if 
rowCount = 15 and listItems.length = 14 then after i executes the code for 14 
it increments and also executes for 15.

I am not getting the cause for this behaviour, is it a bug in flex.


Error:
TypeError: Error #1010: A term is undefined and has no properties.
at 
mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::scrollVertically()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\listClasses\ListBase.as:5346]
at 
mx.controls::DataGrid/mx.controls:DataGrid::scrollVertically()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:1923]
at 
com.flex.MyDataGrid::myDataGrid/com.flex.MyDataGrid:myDataGrid::scrollVertically()[C:\Documents
 and Settings\someone\My Documents\Flex Builder 
2\SampleWidget\com\flex\MyDataGrid\myDataGrid.as:24]
at mx.controls.listClasses::ListBase/set 
verticalScrollPosition()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\listClasses\ListBase.as:1043]
at 
mx.controls::DataGrid/mx.controls:DataGrid::scrollHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:1720]
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323]
at 
mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1096]
at 
mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::lineScroll()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1058]
at 
mx.controls.scrollClasses::ScrollBar/mx.controls.scrollClasses:ScrollBar::downArrow_buttonDownHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1160]
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323]
at 
mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\Button.as:1988]
at 
mx.controls::Button/mx.controls:Button::mouseDownHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\Button.as:2234]




 

Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

RE: [flexcoders] Re: Cannot access a property or method of a null object reference

2007-02-19 Thread Steve Cox
If (dataProvider[i].hasOwnProperty(someValue) 
dataProvider[i].someValue != null)
{
 
}
 
HTH
Steve
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nate Pearson
Sent: 17 February 2007 00:48
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Cannot access a property or method of a null
object reference
 
Does anyone know? This would help me immensely. 

--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com, napearson99 [EMAIL PROTECTED] wrote:

 What if the property.someValue does not exist? How do I check if the
 reference to dataprovider[i].someValue property is null?
 
 my dataprovider is an arraycollection and holds different objects. 
 Some objects have .someValue property and some do not. When i try to
 step through it it doesn't like it when it expects a property but it
 is not there.
 
 ReferenceError: Error #1069: Property Desc not found on
 DragDrop_inlineComponent1 and there is no default value.
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com, Paul DeCoursey paul@ wrote:
 
  if (dataprovider[i].someValue == null){
  ...
  }
  
  --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com, napearson99 napearson99@ wrote:
  
   I often get this error and I usually know why. Does anyone
know how
   to check for a null reference?
   
   i.e.
   
   if (dataprovider[i].someValue is null){
   dothis();
   }
   
   Where dataprovider[i] does not have a someValue property. I bet
this
   is pretty simple and I just don't know the syntax. Thanks in
advance!
  
 

 


[flexcoders] Click, dbl-Click and Drag for the same Object.

2007-02-19 Thread raz_gilad

Hi



I've encountered a situation in which I had to provide both click,
dbl-click and drag for the same graphical element.



I'm kinda of new to flex so I'm not sure the solution here is the best 
- but it works…



In principal the solution handles both mouseDown and mouseDown events on
the object. In a MD event –just add a listener for mouseMove (for
drag). In a MU event thing are more complex:

1)  keep the current event time

2)  Remove the mouseMove event listener (it is not a drag...)

3)  Check vs. last MU event time if this is a Dbl click or click

a.   If it might be a click you will need to wait to setup a timer
that will wait for 1-2 seconds to fire the click.

b.  If it is a dbl click Remove the timer and do the Dbl-click
actions.



Attached is the code with Alert.show for each situation.:





public var KeepLastMouseUp:Number =0;

public var ticker:Timer = new Timer(1000,1);





public function mouseDownHandler(e:MouseEvent):void {



 KPIBox = e.currentTarget as Canvas;

 KPIBox.parent.setChildIndex(KPIBox,KPIsData.length-1);



 KPIBox.addEventListener
(MouseEvent.MOUSE_MOVE,mouseMoveHandler);



}





public function mouseUpHandler(e:MouseEvent):void {



KPIBox = e.currentTarget as Canvas;

KPIBox.parent.setChildIndex(KPIBox,KPIsData.length-1);



var dt:Date = new Date();

var tm:Number = dt.getTime();



KPIBox.removeEventListener(MouseEvent.MOUSE_MOVE,mouseMoveHandler);

if ((tm - 1000 )KeepLastMouseUp) { //regular click.

KeepLastMouseUp = tm;

ticker.addEventListener(TimerEvent.TIMER, runClick);

 ticker.start();

return

}



//dbl click identified

KeepLastMouseUp=0;

ticker.removeEventListener(TimerEvent.TIMER, ClickPressed);

Alert.show(Dbl Click);

}





public function ClickPressed (e:TimerEvent):void {

Alert.show(click);



}



public function mouseMoveHandler(e:MouseEvent):void{

KPIBox.removeEventListener(MouseEvent.MOUSE_MOVE,mouseMoveHandler);

Alert.show(start move);

}







RE: [flexcoders] Error: Only one root tag is allowed.

2007-02-19 Thread Kumar
Well I didn't got what you are actually trying to do with the XML node.

But for the error part you just need to add one root tag in your XML data
provider.

Below is the code.

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

mx:Panel height=100% title=My Links fontSize=18

 mx:Tree x=76 y=102 width=343 id=treLinks fontSize=10

  mx:dataProvider

mx:XML

root

   node label=Folder1

  node label=Leaf1 nodeURL=http://www.qa.com/

   /node

   node label=Folder2

  node label=Leaf2 nodeURL=http://www.yahoo.com; /

   /node

   /root

/mx:XML

 /mx:dataProvider

 /mx:Tree

   /mx:Panel

/mx:Application

 

 

Thanks,

Kumar

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave
Sent: Saturday, February 17, 2007 7:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error: Only one root tag is allowed.

 

Newbie question here.

Got the error: Only one root tag is allowed.

 

The error appears on the mx:XML line. Is an XML tree in dataProvider not
allowed?

Thanks anyone.

Dave

 

 

The application is:

 

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx= http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml; layout=absolute
mx:Panel height=100% title=My Links fontSize=18

 mx:Tree x=76 y=102 width=343 id=treLinks fontSize=10
  mx:dataProvider
mx:XML
   node label=Folder1
  node label=Leaf1 nodeURL= http://www.qa.com
http://www.qa.com/
   /node
   node label=Folder2
  node label=Leaf2 nodeURL= http://www.yahoo.com
http://www.yahoo.com; /
   /node
/mx:XML
 /mx:dataProvider
 /mx:Tree
   /mx:Panel
/mx:Application

 



[flexcoders] Synchronizing binding execution

2007-02-19 Thread Ciarán
Hi People,

I have a slight problem binding the itemRenderer and dataProvider of a
TileList. The problem is, when the bindings execute, they do it
asynchronously. Ideally I want the dataProvider to change first, then
the itemRenderer.

If they update asynchronously, sometimes they cause screen artifacts -
flickers as one update occurs after the other.

These properties on the tileList (dataProvider/itemRenderer) are bound
to the currently selectedItem of a ComboBox. This selectedItem is an
instance of a custom object, specifying a dataProvider and a custom
itemRenderer for that data.

The idea is that when a user selects an item from the ComboBox (that
item denotes a type of media in the application context), then the
TileList will change its dataProvider to the right part of the model,
and switch to using the correct itemRenderer.

So at the moment I'm getting this sequence:

update dataProvider - screen refresh - update itemRenderer - screen refresh

where dataProvider and itemRenderer are interchangable due to the
asynchronicity. Ideally it should be:

update dataProvider - update itemRenderer - screen refresh.

So the screen shouldn't update before these bindings have fully
executed. How is it possible to solidifiy this in flex?

Any clues, pointers, links to docs would be v. much appreciated.

Best Regards,
Ciarán


Re: [flexcoders] ListRowInfo...

2007-02-19 Thread Ciarán

Hi Steve,

mx.controls.listClasses is a package directory. You're probably looking to
specify mx.controls.listClasses.ClassName, where ClassName is the name
of the class you're looking to import.

Wildcard (*) also works.

-Ciarán

On 2/17/07, Steve Kellogg [EMAIL PROTECTED] wrote:


 Hello,



I'm needing to access the information in ListRowInfo elements (in the
'rowInfo' array) for a LIST.  Since the rowInfo is Protected, I'm extending
List into my own class, but when I try to import mx.comtrols.listClasses,
FlexBuilder is telling me that Definition mx.Controls.listClasses could
not be found.



Can anyone point me towards a solution?



Thanks in Advance,



Steve


 



Re: [flexcoders] DISREGARD....FW: ListRowInfo...

2007-02-19 Thread Ciarán
I didn't catch this before I clicked send on the reply. D'Oh.

 Sorry for the noise.

Same.

-Ciarán


 From: Steve Kellogg
  Sent: Saturday, February 17, 2007 11:25 AM
  To: 'flexcoders@yahoogroups.com'
  Subject: ListRowInfo...



 Hello,



 I'm needing to access the information in ListRowInfo elements (in the 
 'rowInfo' array) for a LIST.  Since the rowInfo is Protected, I'm extending 
 List into my own class, but when I try to import mx.comtrols.listClasses, 
 FlexBuilder is telling me that Definition mx.Controls.listClasses could not 
 be found.



 Can anyone point me towards a solution?



 Thanks in Advance,



 Steve

   

   --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com


Re: [flexcoders] error when scroll datagrid vertically?

2007-02-19 Thread Ciarán
Hi,

 I am facing a weird problem with datagrid. I have added a custom
 itemrenderer in my datatgrid which draws a bullet graph in one of
 the columns.

It sounds like a problem with your itemRenderer.

 for (i = lockedRowCount; i  rowCount; i++)
{

  numCols = listItems[i].length;
  var bVisible:Boolean = false;
 ...
  ...

 Now this code should run till i is less than rowCount, but I observed that
 if rowCount = 15 and listItems.length = 14 then after i executes the code 
 for
 14 it increments and also executes for 15.

listItems.length does nothing to determine the length of the loop. The
condition is i  rowCount, so if rowCount = 15, and listItems.length =
14, that makes perfect sense. The loop will run from lockedRowCount to
15 (counting from 0 to  15 yeilds 14 = listItems.length).

lockedRowCount is The index of the first row in the control that scrolls.

listItems is a collection of itemRenderers (one for each row in each
column of your DataGrid)

Can you post a code example (it would help to see the itemRenderer and
the Data Grid declaration.

Best Regards,
Ciarán

 I am not getting the cause for this behaviour, is it a bug in flex.


 Error:
 TypeError: Error #1010: A term is undefined and has no properties.
 at 
 mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::scrollVertically()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\listClasses\ListBase.as:5346]
 at 
 mx.controls::DataGrid/mx.controls:DataGrid::scrollVertically()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:1923]
 at 
 com.flex.MyDataGrid::myDataGrid/com.flex.MyDataGrid:myDataGrid::scrollVertically()[C:\Documents
  and  Settings\someone\My Documents\Flex Builder 
 2\SampleWidget\com\flex\MyDataGrid\myDataGrid.as:24]
 at mx.controls.listClasses::ListBase/set 
 verticalScrollPosition()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\listClasses\ListBase.as:1043]
 at 
 mx.controls::DataGrid/mx.controls:DataGrid::scrollHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:1720]
 at 
 flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at 
 mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323]
 at 
 mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::dispatchScrollEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1096]
 at 
 mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx/internal::lineScroll()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1058]
 at 
 mx.controls.scrollClasses::ScrollBar/mx.controls.scrollClasses:ScrollBar::downArrow_buttonDownHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBar.as:1160]
 at  
 flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at 
 mx.core::UIComponent/dispatchEvent()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323]
 at 
 mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\Button.as:1988]
 at 
 mx.controls::Button/mx.controls:Button::mouseDownHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\Button.as:2234]

   
Want to start your own business? Learn how on Yahoo! Small Business.



Re: [flexcoders] Error loading CSS swf

2007-02-19 Thread Tom Chiverton
On Sunday 18 Feb 2007, richmcgillicuddy wrote:
 When I try to load an swf at runtime, I get the following error
 Unable to load style(SWF is not a loadable module): ... 

You have run the CSS through the compiler haven't you ?

-- 
Tom Chiverton
Helping to greatly reintermediate 24/7 web-readiness



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Tom Chiverton
On Monday 19 Feb 2007, Paul Andrews wrote:
 Why should the part of the app with the date control know that a get data
 event is required?

It doesn't. All it knows it to broadcast a NewDateEvent. What the controller 
does with that is it's own buisness.

-- 
Tom Chiverton
Helping to authoritatively deploy slick infomediaries



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Charting Tooltips do not show ColumnSeries name

2007-02-19 Thread Private Romeo
I have the following simple charting app:

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
styleName=plain

mx:Script

   ![CDATA[

 
[Bindable]

   var
sampleData = [

 
{Month: Jan, CallsAnswered: 100, CallsAccepted: 120},

 
{Month: Feb, CallsAnswered: 90, CallsAccepted: 94},

 
{Month: Mar, CallsAnswered: 120, CallsAccepted: 124},

 
{Month: Apr, CallsAnswered: 80, CallsAccepted: 80},

 
{Month: Mai, CallsAnswered: 80, CallsAccepted: 81},

 
{Month: Jun, CallsAnswered: 90, CallsAccepted: 100},

 
{Month: Jul, CallsAnswered: 150, CallsAccepted: 160},

 
{Month: Aug, CallsAnswered: 170, CallsAccepted: 180},

 
{Month: Sep, CallsAnswered: 50, CallsAccepted: 50},

 
{Month: Oct, CallsAnswered: 120, CallsAccepted: 130},

 
{Month: Nov, CallsAnswered: 110, CallsAccepted: 110},


 
{Month: Dez, CallsAnswered: 100, CallsAccepted: 105}

   ]

   ]]

/mx:Script

mx:ColumnChart id=columnChart1
dataProvider={sampleData} showDataTips=true

   mx:horizontalAxis

 
mx:CategoryAxis dataProvider={sampleData} categoryField=Month /

   /mx:horizontalAxis

   mx:verticalAxis

 
mx:LinearAxis title=Calls/

   /mx:verticalAxis

   mx:series

mx:Array

mx:ColumnSeries yField=CallsAnswered
name=Calls Answered

/mx:ColumnSeries

mx:ColumnSeries yField=CallsAccepted
name=Calls Accepted

/mx:ColumnSeries

/mx:Array

/mx:series   

/mx:ColumnChart

/mx:Application

 

However the names of the ColumnSeries (Calls Answered and Calls
Accepted) are not shown in the data tips. Any hint?

 

 

attachment: winmail.dat

[flexcoders] Re: no rtmp connection on win xp ?

2007-02-19 Thread chrisnoeflex
Jeff,

telnet does not work when container is running.
So does this mean that the endpoint for the rtmp connection is not 
set up correctly ? It does say in the log that

07/02/19 13:19:42 [Flex] [INFO] [Configuration] Endpoint my-rtmp 
created with security: None
at URI: rtmp://10.10.0.119:2038

So the endpoint is created, but does not work ?

C:\ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix  . : vlaamsparlement.be
IP Address. . . . . . . . . . . . : 10.10.0.119
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . : 10.10.0.1

C:\telnet 10.10.0.119 2038
Connecting To 10.10.0.119...Could not open connection to the host, on 
port 2038: Connect failed

C:\



Re: [flexcoders] Generate Flex Forms on the fly

2007-02-19 Thread Tom Chiverton
On Wednesday 14 Feb 2007, Valy Sivec wrote:
 I need to be able build some data entry screen(s) on the fly based on form
 definition stored in the db. Any suggestions?.

You can either have per-client screens pre-built, in a view stack, and just 
set selectedIndex or create the whole thing on the fly with ActionScript.

-- 
Tom Chiverton
Helping to ambassadorially synergize viral information



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


RE: [flexcoders] Re: no rtmp connection on win xp ?

2007-02-19 Thread jason.proulx
Make sure the Windows Fire Wall is turned off too ;)

 

Jay Proulx

[EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Vroom
Sent: February 15, 2007 8:41 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: no rtmp connection on win xp ?

 

I don't think that RMI stuff is coming from any FDS code.  It is
probably a service started up by your app server?   If there's a problem
with the networking configuration on your machine, it might be
indicative of the systemic problem however.

 

The one thing I notice that pertains to the RTMP server is that your URL
is using:

 

   rtmp://10.10.0.119:2038 rtmp://10.10.0.119:2038 

 

can you try:

 

  telnet 10.10.0.119 2038

 

(be sure that your IP address hasn't changed in the meantime...)   

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chrisnoeflex
Sent: Thursday, February 15, 2007 7:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: no rtmp connection on win xp ?

 

Jeff,

Maybe i have something here.
If i set the application log of the oc4j to level FINE, i get 
following on the console :

07/02/15 16:10:37 FINER: RMIServer.logError RMIServer 
acceptNewConnection() exception: java.net.SocketTimeoutException: 
Accept tim
ed out
07/02/15 16:10:38 [Flex] [INFO] [Configuration] Starting Adobe Flex 
Data Services 2 Express
07/02/15 16:10:38 [Flex] [INFO] [Configuration] Adobe Flex Data 
Services Build: 143451
07/02/15 16:10:38 [Flex] [INFO] [Configuration] Endpoint my-amf 
created with security: None
at URI: http://{server.name}:{server.port}/
{context.root}/messagebroker/amf
07/02/15 16:10:38 [Flex] [INFO] [Configuration] Endpoint my-polling-
amf created with security: None
at URI: http://{server.name}:{server.port}/
{context.root}/messagebroker/amfpolling
07/02/15 16:10:38 [Flex] [INFO] [Configuration] Endpoint my-http 
created with security: None
at URI: http://{server.name}:{server.port}/
{context.root}/messagebroker/http
07/02/15 16:10:38 [Flex] [INFO] [Configuration] Endpoint my-secure-
amf created with security: None
at URI: https://{server.name}:9100/
{context.root}/messagebroker/amfsecure
07/02/15 16:10:38 [Flex] [INFO] [Configuration] Endpoint my-rtmp 
created with security: None
at URI: rtmp://10.10.0.119:2038 rtmp://10.10.0.119:2038 
07/02/15 16:10:38 [Flex] [INFO] [Configuration] Endpoint my-secure-
http created with security: None
at URI: https://{server.name}:9100/
{context.root}/messagebroker/httpsecure
07/02/15 16:10:38 log4j:WARN No appenders could be found for logger 
(org.apache.commons.httpclient.params.DefaultHttpParams).
07/02/15 16:10:38 log4j:WARN Please initialize the log4j system 
properly.
07/02/15 16:10:41 15/02 16:10:41 INFO Loading configuration file 
C:\OC4J_10131\j2ee\home\applications\VPFLEX\VPFLEX-web\WEB-INF\fl
ex\flex-webtier-config.xml
07/02/15 16:10:42 15/02 16:10:42 INFO Loading configuration file 
C:\OC4J_10131\j2ee\home\applications\VPFLEX\VPFLEX-web\WEB-INF\fl
ex\flex-config.xml
07/02/15 16:10:42 FINE: TaskManager.addTask Adding task: 
[EMAIL PROTECTED] to the task list
07/02/15 16:10:42 FINEST: TaskManager.start Task Manager started.
07/02/15 16:10:42 Oracle Containers for J2EE 10g (10.1.3.1.0) 
initialized
07/02/15 16:10:57 FINER: RMIServer.logError RMIServer 
acceptNewConnection() exception: java.net.SocketTimeoutException: 
Accept tim
ed out
07/02/15 16:12:28 FINER: RMIServer.logError RMIServer 
acceptNewConnection() exception: java.net.SocketTimeoutException: 
Accept tim
ed out
07/02/15 16:12:48 FINER: RMIServer.logError RMIServer 
acceptNewConnection() exception: java.net.SocketTimeoutException: 
Accept tim
ed out
07/02/15 16:13:08 FINER: RMIServer.logError RMIServer 
acceptNewConnection() exception: java.net.SocketTimeoutException: 
Accept tim
ed out
07/02/15 16:13:28 FINER: RMIServer.logError RMIServer 
acceptNewConnection() exception: java.net.SocketTimeoutException: 
Accept tim
ed out

and it keeps repeating this logError

I'm not familiar with RMI, but is it used to create the socket, used 
as endpoint for the rtmp ?

Chris.

 



[flexcoders] Security sandbox violation and socket question

2007-02-19 Thread elad_nyc
Josh Tynjala created the amazing application to connect to AIM (see 
here:
http://www.zeuslabs.us/archives/6/connecting-to-aim-with-actionscript-3-
sockets/), however when I try to run it on a remote server it pause for 
few minutes and than it gives an error messages:

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security 
sandbox violation: http://domainName.com/FlashAIM.swf cannot load data 
from aimexpress.oscar.aol.com:5190.

it looked like other people had the same problem and the answer of Josh 
was You have to run the SWF from somewhere on your own computer.

Is it not possible to use the socket connection form a remote server?




RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Dimitrios Gianninas

Exactly :) 

Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Chiverton
Sent: Monday, February 19, 2007 6:04 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] cairngorm event that will affect all models, where to 
put the logic.

On Monday 19 Feb 2007, Paul Andrews wrote:
 Why should the part of the app with the date control know that a get data
 event is required?

It doesn't. All it knows it to broadcast a NewDateEvent. What the controller 
does with that is it's own buisness.

--
Tom Chiverton
Helping to authoritatively deploy slick infomediaries



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links




-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] How to clear video image from VideoDisplay?

2007-02-19 Thread Young Kim

Thanks!! Works great!!

On 2/18/07, cisnky [EMAIL PROTECTED] wrote:


  Use the close method.

.close();


On 2/18/07, ad9798 [EMAIL PROTECTED] wrote:

   Video class has method called 'clear()' to clear out the image from
 displaying it, but I can't find similar function to clear out image
 from VideoDisplay? Any ideas?


 



[flexcoders] CheckBox in DataGridColumn Header in Flex1.5

2007-02-19 Thread Yasovardhan Babu
Hi,

I have a datagrid with one column as checkbox. 
My requirement is that on clicking the checkbox in datagrid colmn 
header, it should check/uncheck all the items in the grid and should 
update the checked/uncked value of each item to the datbase.
Can you please help me with a sample code?
It should be done using Flex1.5 and actionscript 2.0.

Thanks in advance,
Yasovardhan.



[flexcoders] Image cell render inside datagrid - image click event not firing in Flex1.5

2007-02-19 Thread Yasovardhan Babu
Hi,

I have a datagrid column with image cell renderer.
I tried to dispatch mouseDown event and catch the event with the 
listowner(datagrid). But I am not able to get the event dispatched.
Can you please help me with some sample code in Flex1.5?

Thanks and Regards,
Yasovardhan.



[flexcoders] Help with webservice array and datagrid

2007-02-19 Thread dano_7
Hello Everyone,
I have a basic stock quote webservice that I am trying to use to
populate a datagrid.  There is a service for retrieving one quote at a
time which I got to work fine but when I try to use the one that
returns an array of different quotes I am having issues.  The output
of the webservice (GetQuotes) is:

GetQuotesResult
Quote
Symbol/Symbol
Name/Name
Last/Last
/Quote
Quote
Symbol/Symbol
Name/Name
Last/Last
/Quote
/GetQuotesResult

My code is below - I have just been trying everything I can think of
but so far now luck.  Any help would be greatly appreciated - I'm sure
it is just something small I am missing.  Thanks for your help!
-Dan

?xml version=1.0?
!-- Simple example to demonstrate the WebService tag. --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=WS.GetQuotes.send()

 mx:Script
 ![CDATA[
  import mx.controls.Alert;
  import mx.rpc.events.ResultEvent;
  import mx.rpc.events.FaultEvent;
  import mx.rpc.soap.LoadEvent;
  import mx.rpc.soap.*;
  import mx.collections.XMLListCollection;
  
default xml namespace = http://www.xignite.com/;;
  
public function onMyResult(event: ResultEvent) :void
{
var myObject:Object = Object(event.result);
}

private function myLabelFunc(item:Object, 
column:DataGridColumn):String 
{
 if (item.Quote.Symbol==undefined)
  {return null;}
 else
  {return item.Quote.Symbol +   + item.Quote.Last;}
}

private function returnLast(item:Object,
column:DataGridColumn):String 
{
   {return item.Last;}
}

private function returnSymbol(item:Object,
column:DataGridColumn):String
{
   {return item.Quote.Symbol;}
}

[Bindable]
private var xlcDP:XMLListCollection;
[Bindable]
private var _xmlResult:XML; //holds the result xml

private function onResult(oEvent:ResultEvent):void {
_xmlResult = XML(oEvent.result);
var xlcDP:XML = _xmlResult.Quote[0];
outputInfo.text = _xmlResult.toXMLString();
//outputInfo.text = WS.GetQuotes.toString();

}

private function initApp():void
{
WS.GetQuotes.send();
}

 ]]
 /mx:Script
 
 mx:Model id=localQuotes{WS.GetQuotesResults}/mx:Model
 mx:Model id=results{_xmlResult}/mx:Model

 mx:WebService id=WS
wsdl=http://www.xignite.com/xQuotes.asmx?WSDL;
useProxy=false
showBusyCursor=true
fault=Alert.show(event.fault.toString(),'Error')
result=onResult(event)

 mx:operation name=GetQuotes resultFormat=e4x
 mx:request
 SymbolIBM PG/Symbol
 /mx:request
 /mx:operation
 /mx:WebService


 mx:Panel title=WebService Example height=75% width=75%
paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10
 mx:Label width=100% color=blue text=Enter a stock
symbol to obtain a quote./
 mx:TextInput id=stockSymbol text=/
 mx:Button label=Get Quote click=WS.GetQuote.send()/
 mx:Label text=Company: {WS.GetQuote.lastResult.Name}
fontWeight=bold/
 mx:Label text=Last Price: {WS.GetQuote.lastResult.Last}
fontWeight=bold/
 mx:Label text=Quote Last Price:
{WS.GetQuote.lastResult.Quote} fontWeight=bold/
 mx:Label text=Symbol: {WS.GetQuote.lastResult.Quote.Symbol}/
 mx:Label text=Last Price:
${WS.GetQuote.lastResult.Quote.Last}/
 !--mx:DataGrid id=dgStock
dataProvider={WS.GetQuote.lastResult}--
 !-- xlcDP --
 mx:DataGrid id=dgStock dataProvider={xlcDP}
mx:columns
mx:Array
!--mx:DataGridColumn 
headerText=Symbol
labelFunction=returnSymbol/--
mx:DataGridColumn headerText=Name dataField=Name/
!--mx:DataGridColumn headerText=Last 
Price
labelFunction=returnLast/--
mx:DataGridColumn 
headerText=Exchange dataField=Exchange/
/mx:Array
 /mx:columns
 /mx:DataGrid
 mx:DataGrid dataProvider={results}
mx:columns
mx:DataGridColumn headerText=Symbol
dataField=Symbol/
mx:DataGridColumn headerText=Name dataField=Name/
mx:DataGridColumn headerText=Last Price 
dataField=Last/
 /mx:columns  
 /mx:DataGrid
 mx:TextArea x=200 width=400 height=250 id=outputInfo /

[flexcoders] Flash 9 swf as RSL

2007-02-19 Thread Matt Freer

Hey Guys,

I am trying to embed a Flash 9 compiled AS3 swf into a Flex 2 app. Once the
flash swf is loaded into the Flex app I want access to all the exported
library items and there associated classes.

I have successfully achieved loading an AS3 swf into a Flex 2 app at runtime
via the loader class. Through using a combination of setting the
context.applicationDomain and applicationDomain.getDefinition(), I am able
to successfully create instances of the swf library objects

However I want to achieve this NOT at runtime but by embedding the swf into
the Flex app.
It seems logical to me that this would be possible using a RSL - but so far
no joy.

Has anyone done this?

Cheers
Matt


[flexcoders] HDividedBox - on-release-outside + updateAfterEvent problems

2007-02-19 Thread polestar11
Hi there

I have an HDividedBox control that divides 2 children that resize with
 dragging. 

There are 2 issues that I am having with this control:
1) the updates to the child container sizes dont occur simultaneously,
resulting in visual errors of size  position (which are fixed when
dragging stops)
2) when I release my mouse outside of the application, the drag
control of the HDividedBox still has focus, leading to incorrect
sizing when the mouse moves back into the app.

I managed to solve the 1st issue by setting a MOUSE_MOVE event on the
divider and calling updateAfterEvent()

I tried to address the 2nd by adding MOUSE_UP and MOUSE_DOWN events to
capture the 'on-release-outside' state, which they do, but the divider
still has focus. 
I went a step further and dispatched a DividerEvent.DIVIDER_RELEASE
event from teh MOUSE_UP state, which is caught by the divider,
however, the state of the divider still doesn't change  it still has
focus ... 

Any advice??
Thanks
Tracy
 



[flexcoders] Re: no rtmp connection on win xp ?

2007-02-19 Thread chrisnoeflex
Jay,

it makes no difference.
I also deployed it on our linux server, on an full Oracle Application 
Server, but i get the same problem.

Chris.



Re: [flexcoders] Charting Tooltips do not show ColumnSeries name

2007-02-19 Thread xmrcivicboix

If I'm reading this correctly, looks like you need a custom function that
will display the datatip. Look at this:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
styleName=plain

mx:Script
![CDATA[
import mx.charts.HitData;

 
[Bindable]   
private var sampleData:Array = [{Month: Jan, CallsAnswered: 
100,
CallsAccepted: 120},

{Month: Feb, CallsAnswered: 90, CallsAccepted: 94},

{Month: Mar, CallsAnswered: 120, CallsAccepted: 124},

{Month: Apr, CallsAnswered: 80, CallsAccepted: 80},

{Month: Mai, CallsAnswered: 80, CallsAccepted: 81},

{Month: Jun, CallsAnswered: 90, CallsAccepted: 100},

{Month: Jul, CallsAnswered: 150, CallsAccepted: 160},

{Month: Aug, CallsAnswered: 170, CallsAccepted: 180},

{Month: Sep, CallsAnswered: 50, CallsAccepted: 50},

{Month: Oct, CallsAnswered: 120, CallsAccepted: 130},

{Month: Nov, CallsAnswered: 110, CallsAccepted: 110},

{Month: Dez, CallsAnswered: 100, CallsAccepted: 105}];

private function dataTipDetail(e:HitData): String
{
var s:String;
var answered:String = e.item.CallsAnwered;
var accepted:String = e.item.CallsAccepted;

s = Month:  + e.item.Month + \n +
 Calls Answered:  + e.item.CallsAnswered + \n +
 Calls Accepted:  + e.item.CallsAccepted;

return s;
}

]]
/mx:Script

mx:ColumnChart id=columnChart1 dataProvider={sampleData}
showDataTips=true dataTipFunction=dataTipDetail
mx:horizontalAxis
mx:CategoryAxis dataProvider={sampleData} 
categoryField=Month /
/mx:horizontalAxis

mx:verticalAxis
mx:LinearAxis title=Calls/
/mx:verticalAxis

mx:series
mx:Array
mx:ColumnSeries yField=CallsAnswered 
name=Calls Answered/
mx:ColumnSeries yField=CallsAccepted 
name=Calls Accepted/
/mx:Array
/mx:series  
/mx:ColumnChart

/mx:Application




Ralf Rottmann wrote:
 
 I have the following simple charting app:
 
  
 
 ?xml version=1.0 encoding=utf-8?
 
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
 styleName=plain
 
 mx:Script
 
![CDATA[
 
  
 [Bindable]
 
var
 sampleData = [
 
  
 {Month: Jan, CallsAnswered: 100, CallsAccepted: 120},
 
  
 {Month: Feb, CallsAnswered: 90, CallsAccepted: 94},
 
  
 {Month: Mar, CallsAnswered: 120, CallsAccepted: 124},
 
  
 {Month: Apr, CallsAnswered: 80, CallsAccepted: 80},
 
  
 {Month: Mai, CallsAnswered: 80, CallsAccepted: 81},
 
  
 {Month: Jun, CallsAnswered: 90, CallsAccepted: 100},
 
  
 {Month: Jul, CallsAnswered: 150, CallsAccepted: 160},
 
  
 {Month: Aug, CallsAnswered: 170, CallsAccepted: 180},
 
  
 {Month: Sep, CallsAnswered: 50, CallsAccepted: 50},
 
  
 {Month: Oct, CallsAnswered: 120, CallsAccepted: 130},
 
  
 {Month: Nov, CallsAnswered: 110, CallsAccepted: 110},
 
 
  
 {Month: Dez, CallsAnswered: 100, CallsAccepted: 105}
 
]
 
]]
 
 /mx:Script
 
 mx:ColumnChart id=columnChart1
 dataProvider={sampleData} showDataTips=true
 
mx:horizontalAxis
 
  
 mx:CategoryAxis dataProvider={sampleData} categoryField=Month /
 
/mx:horizontalAxis
 
   

[flexcoders] Re: error when scroll datagrid vertically?

2007-02-19 Thread michael_ramirez44
Hey Guys,

I have had a similar problem. Check out message post 60726

Michael Ramirez

--- In flexcoders@yahoogroups.com, Ciarán [EMAIL PROTECTED] wrote:

 Hi,
 
  I am facing a weird problem with datagrid. I have added a custom
  itemrenderer in my datatgrid which draws a bullet graph in one of
  the columns.
 
 It sounds like a problem with your itemRenderer.
 
  for (i = lockedRowCount; i  rowCount; i++)
 {
 
   numCols = listItems[i].length;
   var bVisible:Boolean = false;
  ...
   ...
 
  Now this code should run till i is less than rowCount, but I 
observed that
  if rowCount = 15 and listItems.length = 14 then after i 
executes the code for
  14 it increments and also executes for 15.
 
 listItems.length does nothing to determine the length of the loop. 
The
 condition is i  rowCount, so if rowCount = 15, and 
listItems.length =
 14, that makes perfect sense. The loop will run from lockedRowCount 
to
 15 (counting from 0 to  15 yeilds 14 = listItems.length).
 
 lockedRowCount is The index of the first row in the control that 
scrolls.
 
 listItems is a collection of itemRenderers (one for each row in each
 column of your DataGrid)
 
 Can you post a code example (it would help to see the itemRenderer 
and
 the Data Grid declaration.
 
 Best Regards,
 Ciarán
 
  I am not getting the cause for this behaviour, is it a bug in 
flex.
 
 
  Error:
  TypeError: Error #1010: A term is undefined and has no properties.
  at 
mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::sc
rollVertically()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\listClasses\ListBase.a
s:5346]
  at 
mx.controls::DataGrid/mx.controls:DataGrid::scrollVertically()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:1923]
  at 
com.flex.MyDataGrid::myDataGrid/com.flex.MyDataGrid:myDataGrid::scroll
Vertically()[C:\Documents and  Settings\someone\My Documents\Flex 
Builder 2\SampleWidget\com\flex\MyDataGrid\myDataGrid.as:24]
  at mx.controls.listClasses::ListBase/set 
verticalScrollPosition()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\listClasses\ListBase.a
s:1043]
  at mx.controls::DataGrid/mx.controls:DataGrid::scrollHandler()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\DataGrid.as:1720]
  at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.core::UIComponent/dispatchEvent()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323]
  at 
mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx
/internal::dispatchScrollEvent()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBa
r.as:1096]
  at 
mx.controls.scrollClasses::ScrollBar/http://www.adobe.com/2006/flex/mx
/internal::lineScroll()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBa
r.as:1058]
  at 
mx.controls.scrollClasses::ScrollBar/mx.controls.scrollClasses:ScrollB
ar::downArrow_buttonDownHandler()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\scrollClasses\ScrollBa
r.as:1160]
  at  
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at mx.core::UIComponent/dispatchEvent()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent.as:8323]
  at 
mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::button
Pressed()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\Button.as:1988]
  at mx.controls::Button/mx.controls:Button::mouseDownHandler()
[C:\dev\flex_201_gmc\sdk\frameworks\mx\controls\Button.as:2234]
 

 Want to start your own business? Learn how on Yahoo! Small Business.





[flexcoders] Accessing a Flex Model via JavaScript (FABridge)

2007-02-19 Thread Private Romeo
I've got the following model in my MXML app (bound to a column chart
control):

 

mx:Model id=sampleData

items

  item

MonthJanuary/Month

Sales1000/Sales

People3/People

  /item

  item

MonthFebruary/Month

Sales1200/Sales

People5/People

  /item

   /items

/mx:Model

 

and by using the FABridge I want to change the data within JavaScript:

 

flexApp.getMyLabel().setText(Updated via JavaScript!);

var sampleData = flexApp.getSampleData();

sampleData[1].Sales=50;

 

however the last line seems to not work. How do I make it work?

 

Your help is greatly appreciated.

 

R.

 

attachment: winmail.dat

RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Grant Davies
Ok... 

The controller should listen for the data change event and then dispatch
the get other related data ?  This should be in the controller which
right now just maps an event to a command and does not other
processing...

?

Grant 



...
 b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dimitrios Gianninas
Sent: Monday, February 19, 2007 8:59 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] cairngorm event that will affect all models,
where to put the logic.


Exactly :) 

Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, February 19, 2007 6:04 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] cairngorm event that will affect all models,
where to put the logic.

On Monday 19 Feb 2007, Paul Andrews wrote:
 Why should the part of the app with the date control know that a get
data
 event is required?

It doesn't. All it knows it to broadcast a NewDateEvent. What the
controller does with that is it's own buisness.

--
Tom Chiverton
Helping to authoritatively deploy slick infomediaries



Re: [flexcoders] Re: Space between rows in the Datagrid

2007-02-19 Thread Tom Chiverton
On Friday 16 Feb 2007, lemasur wrote:
 Please, give me a hint.

livedocs ?


-- 
Tom Chiverton
Helping to carefully strategize network e-tailers



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] text area height

2007-02-19 Thread jeff noyes
Anyone know how to make a text area automatically change height based on 
the content that's pushed to the text area?

   



Re: [flexcoders] Call for Beta Participation

2007-02-19 Thread Tom Chiverton
On Friday 16 Feb 2007, Eric D Anderson wrote:
 * RTMP tunneling (RTMPT)

What does this allow ?

-- 
Tom Chiverton
Helping to revolutionarily compete synergistic applications



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Datagrid question

2007-02-19 Thread VVV
Is it possible to suppress some of the data in certain rows in a 
datagrid.
For Example: In a datagrid with 5 columns and 3 rows
If Row1 has  data,  A, B, C, D, E
Row2 has data,  A, B, C, F, G
Row3  has data  X, y, Z, F, K

Is it possible to suppress A,B,C from row 2 since, the data is the 
same from row 1 and 2.

Thanks for your help
VVV



Re: [flexcoders] How have you structured your Cairngorm data model?

2007-02-19 Thread Tom Chiverton
On Thursday 15 Feb 2007, [EMAIL PROTECTED] wrote:
 Lastly, how have you structured your Model?  Do you have a best practice
 that you're working with that you prefer?

We only structure it loosely - our normal project turn around time is under a 
month so anything more is overkill.
We have a set of model.formatters.SOMETHING, model.formatters.SOMETHINGELSE, 
for instance, and where possible use bindable, public, arraycollections or 
single instance of value objects.

-- 
Tom Chiverton
Helping to centrally maximize cross-media CEOs



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Can we determine if a sort has been performed on a datagrid column?

2007-02-19 Thread newtoflexworld
Hi all,

Is there any method in Flex 1.5 where we can find if a sort has been
done on any column in a datagrid i.e. can we handle the sort event of
a datagrid.

Thanks 

Sweta



Re: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Tom Chiverton
On Monday 19 Feb 2007, Grant Davies wrote:
 Ok...

 The controller should listen for the data change event and then dispatch
 the get other related data ?  This should be in the controller which
 right now just maps an event to a command and does not other
 processing...

No, the controller does what it does now- listens for the data change and 
invokes a command.
The command however, can then dispatch 'get other data'.

-- 
Tom Chiverton
Helping to continually orchestrate dot-com services



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


RE: [flexcoders] cairngorm event that will affect all models, where to put the logic.

2007-02-19 Thread Grant Davies
That's how I did it :)  glad I put it in the correct place :)

Grant 



...
 b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, February 19, 2007 11:19 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] cairngorm event that will affect all models,
where to put the logic.

On Monday 19 Feb 2007, Grant Davies wrote:
 Ok...

 The controller should listen for the data change event and then 
 dispatch the get other related data ?  This should be in the 
 controller which right now just maps an event to a command and does 
 not other processing...

No, the controller does what it does now- listens for the data change
and invokes a command.
The command however, can then dispatch 'get other data'.

--
Tom Chiverton
Helping to continually orchestrate dot-com services



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





RE: [flexcoders] Re: Space between rows in the Datagrid

2007-02-19 Thread Dimitrios Gianninas

No expert, but you may have to extend the DataGrid and code it yourself. One 
way to to do it is to set the rowHeight value to 35 and then that will give u 
space... Not sure however if this is the effect you want.

Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Chiverton
Sent: Monday, February 19, 2007 10:57 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Space between rows in the Datagrid

On Friday 16 Feb 2007, lemasur wrote:
 Please, give me a hint.

livedocs ?


--
Tom Chiverton
Helping to carefully strategize network e-tailers



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links




-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Datagrid question

2007-02-19 Thread xmrcivicboix

From the looks of it. Row1 and Row2 are entirely different rows with
different data because of your 4th and 5th column. They have the same data
but it doesn't mean the same. It's like saying Row1 is an Apple and Row2 is
an Orange. Even though they're both sweet, we simply cannot suppress them
to become 1 fruit.



VVV-2 wrote:
 
 Is it possible to suppress some of the data in certain rows in a 
 datagrid.
 For Example: In a datagrid with 5 columns and 3 rows
 If Row1 has  data,  A, B, C, D, E
 Row2 has data,  A, B, C, F, G
 Row3  has data  X, y, Z, F, K
 
 Is it possible to suppress A,B,C from row 2 since, the data is the 
 same from row 1 and 2.
 
 Thanks for your help
 VVV
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Datagrid-question-tf3253619.html#a9045243
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Question regarding Array creation from XML

2007-02-19 Thread Private Romeo
Assume I've got the following String variable:

 

var dummyXml:String =
itemsitemMonthJanuary/MonthSales1200/SalesPeople5/People/i
temitemMonthFebruary/MonthSales1000/SalesPeople3/People/item
/items;

 

What is the easiest way to turn it into an Array/ArrayCollection?

 

 

attachment: winmail.dat

[flexcoders] overriding DataGridAutomationImpl

2007-02-19 Thread Dimitrios Gianninas
Anyone extend the DataGridAutomationImpl class already? Trying to override some 
of its methods in order to see if I can change the way it indentifies rows, but 
I cant see my trace statements, so h...
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L’expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s’il est retransmis sans son autorisation.  Si vous n’êtes 
pas le destinataire visé du présent message ou si vous l’avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l’expéditeur.



[flexcoders] Passing data between JavaScript and Flex apps via FABridge (Question!)

2007-02-19 Thread Private Romeo
I am trying to build a simple sample which shows how (xml) data gets passed
via JavaScript to a Flex application where it is bound to a Flex Charting
control. However, I am stuck at the data passing part.

 

Here is the simple Flex Charting MXML Application:

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute

   fab:FABridge xmlns:fab=bridge.*/

   mx:Script

 ![CDATA[

public function changeData(data:Object):void

{

   myLabel.text=changeData();

   columnChart1.dataProvider = data;

}

 ]]

   /mx:Script

   mx:Model id=sampleData

 items

item

   MonthJanuary/Month

   Sales1000/Sales

   People3/People

/item

item

   MonthFebruary/Month

   Sales1200/Sales

   People5/People

/item

 /items

   /mx:Model

   mx:VBox

 mx:Label id=myLabel text=Pending... /

 mx:ColumnChart x=10 y=61 id=columnChart1
dataProvider={sampleData.item}

mx:series

   mx:ColumnSeries displayName=Series 1
yField=Sales id=myColumns/

/mx:series

 /mx:ColumnChart

 mx:Legend dataProvider={columnChart1}/

   /mx:VBox

/mx:Application

 

Basically it draws a column chart and initially binds it to data delivered
by the mx:Model with id sampleData.

The JavaScript function called on a click of an HTML Button looks something
like this:

 

function updateData() {

var flexApp = FABridge.flash.root();

   var newData =
itemsitemMonthJanuary/MonthSales1200/SalesPeople5/People/i
temitemMonthFebruary/MonthSales1000/SalesPeople3/People/item
/items;

   flexApp.changeData(newData);

}

 

Obviously I am trying to pass XML data to the Flex application where the
data binding is changed and the chart should update. The change of the data
provider does work. Once the HTML Button gets clicked, the chart clears, so
it does NOT show the new data.

 

I assume there is something wrong with the data types I am passing around.
Can anybody provide me with the final aha experience?!

 

Thanks.

R.

 

attachment: winmail.dat

[flexcoders] Re: text area height

2007-02-19 Thread beecee1977
You'd be better starting a new thread, but it's pretty straight 
forward...

Either on myText change event:

myText.height = myText.TextArea.textHeight + BORDERS_HEIGHT

or bind the height..

Haven't tested this, but it should work.
Hope that helps.


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

 Anyone know how to make a text area automatically change height 
based on 
 the content that's pushed to the text area?
 
 





RE: [flexcoders] Charting Tooltips do not show ColumnSeries name

2007-02-19 Thread Ely Greenfield
 
 
 
 
 
use displayName, not name. confusing, I know, but a fact of life.
 
(name is a property defined and used by the core player displayList).
 
Ely.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Private Romeo
Sent: Monday, February 19, 2007 3:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Charting Tooltips do not show ColumnSeries name



I have the following simple charting app:

 

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute styleName=plain

mx:Script

   ![CDATA[

 
[Bindable]

 
var sampleData = [

 
{Month: Jan, CallsAnswered: 100, CallsAccepted: 120},

 
{Month: Feb, CallsAnswered: 90, CallsAccepted: 94},

 
{Month: Mar, CallsAnswered: 120, CallsAccepted: 124},

 
{Month: Apr, CallsAnswered: 80, CallsAccepted: 80},

 
{Month: Mai, CallsAnswered: 80, CallsAccepted: 81},

 
{Month: Jun, CallsAnswered: 90, CallsAccepted: 100},

 
{Month: Jul, CallsAnswered: 150, CallsAccepted: 160},

 
{Month: Aug, CallsAnswered: 170, CallsAccepted: 180},

 
{Month: Sep, CallsAnswered: 50, CallsAccepted: 50},

 
{Month: Oct, CallsAnswered: 120, CallsAccepted: 130},

 
{Month: Nov, CallsAnswered: 110, CallsAccepted: 110},


 
{Month: Dez, CallsAnswered: 100, CallsAccepted: 105}

   ]

   ]]

/mx:Script

mx:ColumnChart id=columnChart1
dataProvider={sampleData} showDataTips=true

   mx:horizontalAxis

 
mx:CategoryAxis dataProvider={sampleData} categoryField=Month /

   /mx:horizontalAxis

   mx:verticalAxis

 
mx:LinearAxis title=Calls/

   /mx:verticalAxis

   mx:series

mx:Array

mx:ColumnSeries
yField=CallsAnswered name=Calls Answered

/mx:ColumnSeries

mx:ColumnSeries
yField=CallsAccepted name=Calls Accepted

/mx:ColumnSeries

/mx:Array

/mx:series


/mx:ColumnChart

/mx:Application

 

However the names of the ColumnSeries (Calls Answered and Calls
Accepted) are not shown in the data tips. Any hint?

 

 



[flexcoders] Re: text area height

2007-02-19 Thread beecee1977
By the way, for a TextArea control you won't need the .TextArea bit :-
) That was for a RichTextEditor.

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

 You'd be better starting a new thread, but it's pretty straight 
 forward...
 
 Either on myText change event:
 
 myText.height = myText.TextArea.textHeight + BORDERS_HEIGHT
 
 or bind the height..
 
 Haven't tested this, but it should work.
 Hope that helps.
 
 
 --- In flexcoders@yahoogroups.com, jeff noyes jeffnoyes1@ wrote:
 
  Anyone know how to make a text area automatically change height 
 based on 
  the content that's pushed to the text area?
  
  
 





RE: [flexcoders] Accessing a Flex Model via JavaScript (FABridge)

2007-02-19 Thread Ely Greenfield
 
 
 
The FABridge relies on the ability to introspect actionscript types and
create proxies in javascript for classes, methods. and properties on the
fly. Since Model is dynamic it can't be introspected by the current
bridge behavior, so you can't manipulate it directly through the Bridge.
 
You have three options:
 
1) the bridge has low level APIs for setting and getting properties, and
calling methods, on an arbitrary object reference.  You can see if using
these to access members of the model fixes your problem.
 
2) if you know in advance what type of manipulations you want to do to
your model, you can write methods in your application to do them, and
call those (with parameters) from your javascript.
 
3) use a strongly typed class based model rather than the generic model
tag.
 
Ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Private Romeo
Sent: Monday, February 19, 2007 7:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Accessing a Flex Model via JavaScript (FABridge)



I've got the following model in my MXML app (bound to a column chart
control):

 

mx:Model id=sampleData

items

  item

MonthJanuary/Month

Sales1000/Sales

People3/People

  /item

  item

MonthFebruary/Month

Sales1200/Sales

People5/People

  /item

   /items

/mx:Model

 

and by using the FABridge I want to change the data within JavaScript:

 

flexApp.getMyLabel().setText(Updated via JavaScript!);

var sampleData = flexApp.getSampleData();

sampleData[1].Sales=50;

 

however the last line seems to not work. How do I make it work?

 

Your help is greatly appreciated.

 

R.

 



[flexcoders] zip/unzip xml webservice result

2007-02-19 Thread amigo_fd
Hello,

Any suggestions/ideas on how to zip a (xml-)string result of a
webservice with ASP.NET2 C# and most importantly how to unzip in Flex ?

I know Flex Dataservice has a built in system for this, but it's just
too expensive ...

For zipping in the webservice, I was thinking of using SharpZipLib
(http://community.sharpdevelop.net/forums/12/ShowForum.aspx). I
already used this for an other webservice where I had to zip many
jpeg-images into one file. So with some trial-and-error I think I must
succeed in zipping my xml-string to be a much smaller result. Or are
there any other ideas out there ?

But the main problem is: how will I be able to unzip my
webservice-result in Flex ? Now I work with my xml-string result in
this way:

var x:XML = new XML(myWebservice.myWebserviceFunction.lastResult);
myDatagrid.dataProvider = new XMLListCollection(x.children());

So I guess I would have to do something like:

var x:XML = new XML(UNZIP(myWebservice.myWebserviceFunction.lastResult));
myDatagrid.dataProvider = new XMLListCollection(x.children());

Any ideas on how we can do this ?

Many thanks in advance ! 
Frank




[flexcoders] Re: zip/unzip xml webservice result

2007-02-19 Thread Paul DeCoursey
Have you tried enabling gzip compression on the server?  The browser
should handle the compression automatically in that case.



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

 Hello,
 
 Any suggestions/ideas on how to zip a (xml-)string result of a
 webservice with ASP.NET2 C# and most importantly how to unzip in Flex ?
 
 I know Flex Dataservice has a built in system for this, but it's just
 too expensive ...
 
 For zipping in the webservice, I was thinking of using SharpZipLib
 (http://community.sharpdevelop.net/forums/12/ShowForum.aspx). I
 already used this for an other webservice where I had to zip many
 jpeg-images into one file. So with some trial-and-error I think I must
 succeed in zipping my xml-string to be a much smaller result. Or are
 there any other ideas out there ?
 
 But the main problem is: how will I be able to unzip my
 webservice-result in Flex ? Now I work with my xml-string result in
 this way:
 
 var x:XML = new XML(myWebservice.myWebserviceFunction.lastResult);
 myDatagrid.dataProvider = new XMLListCollection(x.children());
 
 So I guess I would have to do something like:
 
 var x:XML = new
XML(UNZIP(myWebservice.myWebserviceFunction.lastResult));
 myDatagrid.dataProvider = new XMLListCollection(x.children());
 
 Any ideas on how we can do this ?
 
 Many thanks in advance ! 
 Frank





[flexcoders] Automated Email Reports with Flex

2007-02-19 Thread tyriker
We've built a Flex app to read XML data from an HTTPService, and
display the data as a report (a table or some sort of chart) to the
user. From within the app, the user can email the report to someone,
(we use the method of converting the Flex components to an image, and
then building an HTML file with the images embedded, and sending the
user an HTML email).

The problem we've come up against is how to automate and email such
reports (like on a nightly basis). With automation, there won't be a
'client-side' or browser to load the Flex app into to generate the
tables/graphs.

Is there a solution for this, or essentially, a way to run a
Flash/Flex app without involving a user/browser? Any command-line Flex
interpreters, or anything in PHP or another server-side language that
can 'trigger' a Flex app? Thanks.



RE: [flexcoders] Accessing a Flex Model via JavaScript (FABridge)

2007-02-19 Thread Private Romeo
Ely,

 

Thanks for clarification. Maybe we are contemplating the wrong approach here
and you can be of some more general help.

 

We want to manipulate data bound to a Flex Charting Column Control from
outside the Flash movie. Therefore we consider calling a method in the Flash
movie via the FABridge and pass along the changed data. This is, where we
run into problems as we do not seem to get the right data types.

 

Could a multi-dimensional JavaScript Array do? What would be your advice to
reach our above described objective?

 

Best regards

Ralf

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Montag, 19. Februar 2007 18:02
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Accessing a Flex Model via JavaScript (FABridge)

 

 

 

 

The FABridge relies on the ability to introspect actionscript types and
create proxies in javascript for classes, methods. and properties on the
fly. Since Model is dynamic it can't be introspected by the current bridge
behavior, so you can't manipulate it directly through the Bridge.

 

You have three options:

 

1) the bridge has low level APIs for setting and getting properties, and
calling methods, on an arbitrary object reference.  You can see if using
these to access members of the model fixes your problem.

 

2) if you know in advance what type of manipulations you want to do to your
model, you can write methods in your application to do them, and call those
(with parameters) from your javascript.

 

3) use a strongly typed class based model rather than the generic model tag.

 

Ely.

 

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Private Romeo
Sent: Monday, February 19, 2007 7:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Accessing a Flex Model via JavaScript (FABridge)

I've got the following model in my MXML app (bound to a column chart
control):

 

mx:Model id=sampleData

items

  item

MonthJanuary/Month

Sales1000/Sales

People3/People

  /item

  item

MonthFebruary/Month

Sales1200/Sales

People5/People

  /item

   /items

/mx:Model

 

and by using the FABridge I want to change the data within JavaScript:

 

flexApp.getMyLabel().setText(Updated via JavaScript!);

var sampleData = flexApp.getSampleData();

sampleData[1].Sales=50;

 

however the last line seems to not work. How do I make it work?

 

Your help is greatly appreciated.

 

R.

 

 



Re: [flexcoders] Question regarding Array creation from XML

2007-02-19 Thread Muzak
Depending on what you're trying to achieve, you may not need an 
Array/ArrayCollection and can use the XML/XMLList as is.
Lets say you want to populate a DataGrid with your xml string, then the 
following will work just fine:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
creationComplete=initApp();

 mx:Script
  ![CDATA[
   import mx.collections.ArrayCollection;
   private var dummy:String = items +
 item +
 MonthJanuary/MonthSales1200/SalesPeople5/People +
 /item +
 item +
 MonthFebruary/MonthSales1000/SalesPeople3/People/item +
 /items;
   //---
   //
   //---
   private function initApp():void {
trace(Application ::: initApp);
// convert string to xml
var _xml:XML = new XML(dummy);
trace(_xml.toXMLString());
trace(---);
// get xml children (elements)
var elements:XMLList = _xml.elements();
trace(- elements length: +elements.length());
// access/use elements as array
trace(- month: +elements[0].Month);
trace(- sales: +elements[0].Sales);
trace(- people: +elements[0].People);
// set XMLList as dataprovider for datagrid
_dg.dataProvider = elements;
   }
  ]]
 /mx:Script

 mx:DataGrid id=_dg
  mx:columns
   mx:DataGridColumn dataField=Month /
   mx:DataGridColumn dataField=Sales /
   mx:DataGridColumn dataField=People /
  /mx:columns
 /mx:DataGrid

/mx:Application

regards,
Muzak

- Original Message - 
From: Private Romeo [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 19, 2007 5:46 PM
Subject: [flexcoders] Question regarding Array creation from XML


 Assume I've got the following String variable:



 var dummyXml:String =
 itemsitemMonthJanuary/MonthSales1200/SalesPeople5/People/i
 temitemMonthFebruary/MonthSales1000/SalesPeople3/People/item
/items;



 What is the easiest way to turn it into an Array/ArrayCollection?





 




Re: [flexcoders] Re: zip/unzip xml webservice result

2007-02-19 Thread Troy Gilbert

Using server-base gzip compression is probably the best route, but I don't
know if Flex's user agent that pulls the data (WebService, I guess) if it
supports gzip'd streams.

If it doesn't, you can do it manually with the ByteArray class. It has a
compress and uncompress pair of methods that implement gzip compression.

Troy.


On 2/19/07, Paul DeCoursey [EMAIL PROTECTED] wrote:


  Have you tried enabling gzip compression on the server? The browser
should handle the compression automatically in that case.

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
amigo_fd [EMAIL PROTECTED] wrote:

 Hello,

 Any suggestions/ideas on how to zip a (xml-)string result of a
 webservice with ASP.NET2 C# and most importantly how to unzip in Flex ?

 I know Flex Dataservice has a built in system for this, but it's just
 too expensive ...

 For zipping in the webservice, I was thinking of using SharpZipLib
 (http://community.sharpdevelop.net/forums/12/ShowForum.aspx). I
 already used this for an other webservice where I had to zip many
 jpeg-images into one file. So with some trial-and-error I think I must
 succeed in zipping my xml-string to be a much smaller result. Or are
 there any other ideas out there ?

 But the main problem is: how will I be able to unzip my
 webservice-result in Flex ? Now I work with my xml-string result in
 this way:

 var x:XML = new XML(myWebservice.myWebserviceFunction.lastResult);
 myDatagrid.dataProvider = new XMLListCollection(x.children());

 So I guess I would have to do something like:

 var x:XML = new
XML(UNZIP(myWebservice.myWebserviceFunction.lastResult));
 myDatagrid.dataProvider = new XMLListCollection(x.children());

 Any ideas on how we can do this ?

 Many thanks in advance !
 Frank


 



[flexcoders] How do you document your Flex code?

2007-02-19 Thread app.developer
How do you document your Flex code?  In CF some use FuseDocs or other 
solutions.  What's yours?

 

Precia




RE: [flexcoders] Call for Beta Participation

2007-02-19 Thread Matt Chotin
It allows RTMP connections to work through firewalls without having to
resort to HTTP polling.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Monday, February 19, 2007 7:59 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Call for Beta Participation

On Friday 16 Feb 2007, Eric D Anderson wrote:
 * RTMP tunneling (RTMPT)

What does this allow ?

-- 
Tom Chiverton
Helping to revolutionarily compete synergistic applications



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links





Re: [flexcoders] How do you document your Flex code?

2007-02-19 Thread Muzak
Flex 2.01 comes with ASDoc

http://livedocs.adobe.com/flex/201/html/asdoc_127_1.html
http://labs.adobe.com/wiki/index.php/ASDoc:Using_ASDoc

regards,
Muzak

- Original Message - 
From: app.developer [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 19, 2007 7:13 PM
Subject: [flexcoders] How do you document your Flex code?


How do you document your Flex code?  In CF some use FuseDocs or other
solutions.  What's yours?



Precia






RE: [flexcoders] Flash 9 swf as RSL

2007-02-19 Thread Roger Gonzalez
What you're doing is a little odd, but you can build your own version of
the MovieClipLoaderAsset class (which is what is used to do embedding of
visual SWFs).
 
Basically, embed the RSL SWF using
 
[Embed(source='as3rsl.swf', mimeType='application/octet-stream')]
public class MyBinaryBlob extends ByteArray {}
 
and then use Loader.loadBytes to dynamically load the SWF out of the
binary blob.  From there, use getDefinition as you describe.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Matt Freer
Sent: Sunday, February 18, 2007 3:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash 9 swf as RSL



Hey Guys,

I am trying to embed a Flash 9 compiled AS3 swf into a Flex 2
app. Once the flash swf is loaded into the Flex app I want access to all
the exported library items and there associated classes.

I have successfully achieved loading an AS3 swf into a Flex 2
app at runtime via the loader class. Through using a combination of
setting the context.applicationDomain and
applicationDomain.getDefinition(), I am able to successfully create
instances of the swf library objects

However I want to achieve this NOT at runtime but by embedding
the swf into the Flex app. 
It seems logical to me that this would be possible using a RSL -
but so far no joy.

Has anyone done this?

Cheers
Matt


 



Re: [flexcoders] How to get the current build options FB uses?

2007-02-19 Thread Derek Vadneau

Wow, I'm a moron.

I mentioned I was executing the following from the command line:
mxmlc -dump-config test-config.xml test.mxml

I was actually running it from the commandline, i.e. from the command prompt
(then a batch file).

When I simply add the following to the Additional compiler arguments
textbox in the Flex Compiler options all of the paths, except for the
mxml-manifest.xml file, are inserted and the libraries are included as they
should be:
-dump-config test-config.xml (along with the default items).

While I blame myself for this, I think the docs could be a lot clearer about
what can be done from the commandline and what can be done from within FB.
You mentioned there being a SDK and FB team, as opposed to one team. Perhaps
that's why the docs don't really go into the FB options for this in a lot of
detail ... unless I missed that as well.

...

Actually there's an issue here if you have Build Automatically enabled. If
you use the -dump-config in the Flex Compiler options FB will rebuild in a
loop forever. When the -dump-config option is there FB dumps out the XML
file. Then, seeing as the config XML file has been updated, it rebuilds the
workspace. Having done that, the config file is updated, etc., etc. So, just
a word of caution when using this option: disable Build Automatically,
then add the -dump-config option.



On 2/16/07, Gordon Smith [EMAIL PROTECTED] wrote:


The only problem right now, besides the above issues, is that SWCs
added to the Library paths don't show up in the config XML. Are they
supposed to?

Yes.

Right now this is what I see in the include-libraries node:

When I add a SWC to FlexBuilder's Library Path pane, it appears in the
library-path node of the dumped config file. I don't think FlexBuilder
uses the include-libraries option, which I believe is for forcing a SWC to
be included even if it isn't used by the application.

- Gordon


 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Derek Vadneau
*Sent:* Friday, February 16, 2007 2:30 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] How to get the current build options FB uses?

 What is in the library-path of the dumped config file? Is there a
path-element involving 'libs'?

library-path
path-elementlibs/path-element
path-elementlocale/{locale}/path-element
/library-path

I'm told that any relative paths in the dumped XML config file are
relative to the frameworks directory (the location of the normal
flex-config.xml file).

Ok, I can work with that. Obviously it would be ideal to not have to do
this, but adding the paths should be easy enough for a simple script/app.
... I just added ${flexlib}/ in places where a path looked like it was
needed and that worked.

You should be able to create an XML config file with all the options you
need. You should not have to specify any of them on the command line except
perhaps -load-config.

That's great! The only problem right now, besides the above issues, is
that SWCs added to the Library paths don't show up in the config XML. Are
they supposed to?

Right now this is what I see in the include-libraries node:


!-- compiler.include-libraries: a list of libraries (SWCs) to completely
include in the SWF--
!-- compiler.include-libraries usage:
include-libraries
librarystring/library
librarystring/library
/include-libraries
--

The SWC that I've included is a Library project that Flex Builder
recognizes from my projects.

Here is the commandline I'm using to try to compile:
mxmlc D:/Flex/test/test.mxml

The -load-config isn't required - because it's in the same directory as
the MXML file? - and if included in this case, gets loaded twice.

However, the compilation fails with an error because my SWC isn't included
in the config XML.

So close ...


On 2/15/07, Gordon Smith [EMAIL PROTECTED] wrote:

 Error: unable to open 'libs'


 What is in the library-path of the dumped config file? Is there a
 path-element involving 'libs'?

  can you tell me what the config XML is used for?

 To dump out all the options used for a compilation, in the same format
 as the flex-config.file. However, I'm afraid that the compiler team and
 the FlexBuilder team are separate, that this option is not widely used, and
 that we haven't done a good job of making it easy to create one in
 FlexBuilder and then use it for command-line compilation.

  And will it enable me to do what I originally set out to do, which is:
 I want to setup my project in Flex Builder and then build the very same
 project from the commandline without having to manually add all of the
 options that Flex Builder is adding.

 Yes, it should enable this but you may need to adjust some file system
 paths. I'm told that any relative paths in the dumped XML config file are
 relative to the frameworks directory (the location of the normal
 flex-config.xml file).
  My company owns multiple copies of Flex Builder, so I'm not trying to
 get 

[flexcoders] Re: text area height

2007-02-19 Thread Cato Paus
Hi I did have the same issue :)

I solved it by using the mx:Text/

worked for me.

Cato 

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

 By the way, for a TextArea control you won't need the .TextArea 
bit :-
 ) That was for a RichTextEditor.
 
 --- In flexcoders@yahoogroups.com, beecee1977 billcahill@ 
 wrote:
 
  You'd be better starting a new thread, but it's pretty straight 
  forward...
  
  Either on myText change event:
  
  myText.height = myText.TextArea.textHeight + BORDERS_HEIGHT
  
  or bind the height..
  
  Haven't tested this, but it should work.
  Hope that helps.
  
  
  --- In flexcoders@yahoogroups.com, jeff noyes jeffnoyes1@ wrote:
  
   Anyone know how to make a text area automatically change height 
  based on 
   the content that's pushed to the text area?
   
   
  
 





RE: [flexcoders] Automated Email Reports with Flex

2007-02-19 Thread Karl Johnson
This definitely sounds like something that should be done on the server side 
and not done using a client side application. How are you sending the emails 
now from the flex app? Calling a php app that creates the mail and sends it via 
SMTP? If so, then why not just put the automated job logic in that layer?
 
If you absolutely have to do it in flex, I suppose you could doing something 
like have a windows task (not sure what OS you are using) exceute every night 
which kicks off the swf or the flex app and flash player embedded into an exe. 
Or you could just leave the flash player running with your flex app and use a 
timer in AS. Neither are very great solutions though, given that the flash 
player is a client side player :-)
 
Karl
 
Cynergy



From: flexcoders@yahoogroups.com on behalf of tyriker
Sent: Mon 2/19/2007 11:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Automated Email Reports with Flex



We've built a Flex app to read XML data from an HTTPService, and
display the data as a report (a table or some sort of chart) to the
user. From within the app, the user can email the report to someone,
(we use the method of converting the Flex components to an image, and
then building an HTML file with the images embedded, and sending the
user an HTML email).

The problem we've come up against is how to automate and email such
reports (like on a nightly basis). With automation, there won't be a
'client-side' or browser to load the Flex app into to generate the
tables/graphs.

Is there a solution for this, or essentially, a way to run a
Flash/Flex app without involving a user/browser? Any command-line Flex
interpreters, or anything in PHP or another server-side language that
can 'trigger' a Flex app? Thanks.



 


[flexcoders] How to fill datagrid with SOAP output?

2007-02-19 Thread suyash jape
Hi everyone.
  
  I have implemented a Flex web service client to access Python webservice( 
resultFormat is e4x):

  mx:Text text={wsXenmonService.getMetrics.lastResult} width=80% 
height=200/
  
  .This is the incoming SOAP response to Flex in the lastresult object
  
  getMetricsResponse SOAP-ENC:root=1  
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;  
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;  
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;  
xmlns:xsd=http://www.w3.org/1999/XMLSchema;
Result SOAP-ENC:arrayType=xsd:ur-type[96] xsi:type=SOAP-ENC:Array
  item xsi:type=xsd:int0/item
  item xsi:type=xsd:double999/item
  item xsi:type=xsd:double99.94/item
/Result
  /getMetricsResponse
  
  I tried every way i could think of to print these values in a datagrid but 
couldnt do it.
  Could you tell me what is the SYNTAX to display these values (0,999,99.94)in 
a DataGrid?
  Do i have to write a filter function?How..
  
  Thank you.
  
  
  
 
-
Sucker-punch spam with award-winning protection.
 Try the free Yahoo! Mail Beta.

[flexcoders] State changes w/ unloaded viewstack content

2007-02-19 Thread alanmorehead79
I am having trouble with trying to change the state of a panel that is
inside of one of my viewstack pages. 

I have a details page that changes when the user logs in. If the user
does not visit that details page before logging in, then I get errors.
I know it is because the components that I am trying to change the
state on has not been rendered or created yet. I need to have this
component exist so that I can make my state changes.

Is there a way to preload a content page for a viewstack or another
way around this? 



[flexcoders] Choosing between viewstack and State any best practices?

2007-02-19 Thread Manuel Saint-Victor

When deciding between using the viewstack and using states if I plan to load
in some modules is there a better way to go or some things to consider when
making the decision?

Mani


[flexcoders] Re: Automated Email Reports with Flex

2007-02-19 Thread Paul DeCoursey
Here's an idea

Here are some assumptions:
1) a user sets this up to happen, so the setting is in a db or some
other persistent storage.
2) you are relying on some part of Flex to generate the image you are
trying to send

Ok, so you have a cron job or windows task that requests a url on the
local machine.  the url is a simplified version of the flex app that
only does a query for the specific reports that need to be run and it
creates all the reports and emails them out.  I say local machine
because you won't want this on a public server since it cannot have
any reasonable security on it.  You could however get more complex and
use a HttpClient within your job or task that does support
authentication then it could be a public server.  In any case you will
probably need a browser to run the process because I don't think there
are any interpreters that can run without the Flash Player and the
Flash Player will at the very least need to be running on a windowed
system, ie X windows, Windows or Mac OSX, it cannot run on a headless
system.

Not sure if that makes sense.  What exactly does the report look like?
 Can't you generate it on the server using php, java, ruby or Fortran
or something?


Paul


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

 This definitely sounds like something that should be done on the
server side and not done using a client side application. How are you
sending the emails now from the flex app? Calling a php app that
creates the mail and sends it via SMTP? If so, then why not just put
the automated job logic in that layer?
  
 If you absolutely have to do it in flex, I suppose you could doing
something like have a windows task (not sure what OS you are using)
exceute every night which kicks off the swf or the flex app and flash
player embedded into an exe. Or you could just leave the flash player
running with your flex app and use a timer in AS. Neither are very
great solutions though, given that the flash player is a client side
player :-)
  
 Karl
  
 Cynergy
 
 
 
 From: flexcoders@yahoogroups.com on behalf of tyriker
 Sent: Mon 2/19/2007 11:27 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Automated Email Reports with Flex
 
 
 
 We've built a Flex app to read XML data from an HTTPService, and
 display the data as a report (a table or some sort of chart) to the
 user. From within the app, the user can email the report to someone,
 (we use the method of converting the Flex components to an image, and
 then building an HTML file with the images embedded, and sending the
 user an HTML email).
 
 The problem we've come up against is how to automate and email such
 reports (like on a nightly basis). With automation, there won't be a
 'client-side' or browser to load the Flex app into to generate the
 tables/graphs.
 
 Is there a solution for this, or essentially, a way to run a
 Flash/Flex app without involving a user/browser? Any command-line Flex
 interpreters, or anything in PHP or another server-side language that
 can 'trigger' a Flex app? Thanks.





Re: [flexcoders] How to fill datagrid with SOAP output?

2007-02-19 Thread Paul J DeCoursey
{wsXenmonService.getMetrics.lastResult.result}  that is the reference to 
the array in the response body.

suyash jape wrote:

 Hi everyone.

 I have implemented a Flex web service client to access Python 
 webservice( resultFormat is e4x):
  
 mx:Text text={wsXenmonService.getMetrics.lastResult} width=80% 
 height=200/

 .This is the incoming SOAP response to Flex in the lastresult object

 getMetricsResponse SOAP-ENC:root=1 
 xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; 
 xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance; 
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; 
 xmlns:xsd=http://www.w3.org/1999/XMLSchema;
   Result SOAP-ENC:arrayType=xsd:ur-type[96] xsi:type=SOAP-ENC:Array
 item xsi:type=xsd:int0/item
 item xsi:type=xsd:double999/item
 item xsi:type=xsd:double99.94/item
   /Result
 /getMetricsResponse

 I tried every way i could think of to print these values in a datagrid 
 but couldnt do it.
 Could you tell me what is the SYNTAX to display these values 
 (0,999,99.94)in a DataGrid?
 Do i have to write a filter function?How..

 Thank you.





[flexcoders] Re: Datagrid question

2007-02-19 Thread VVV
They are indeed two rows returned in a dataset. I just want to be 
able to present such that if column1, column2 and column3 
information is same in two rows, I donot want to display the same 
information in the second row.

So, Display will be like this for the above mentioned scenario;

Col1   Col2  Col3  Col4  Col5
A   B C  DE
 FG
X   y Z  FK

I hope this helps about the question and I hope the display shows up 
properly.
VVV

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

 
 From the looks of it. Row1 and Row2 are entirely different rows 
with
 different data because of your 4th and 5th column. They have the 
same data
 but it doesn't mean the same. It's like saying Row1 is an Apple 
and Row2 is
 an Orange. Even though they're both sweet, we simply 
cannot suppress them
 to become 1 fruit.
 
 
 
 VVV-2 wrote:
  
  Is it possible to suppress some of the data in certain rows in a 
  datagrid.
  For Example: In a datagrid with 5 columns and 3 rows
  If Row1 has  data,  A, B, C, D, E
  Row2 has data,  A, B, C, F, G
  Row3  has data  X, y, Z, F, K
  
  Is it possible to suppress A,B,C from row 2 since, the data is 
the 
  same from row 1 and 2.
  
  Thanks for your help
  VVV
  
  
  
 
 -- 
 View this message in context: http://www.nabble.com/Datagrid-
question-tf3253619.html#a9045243
 Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Re: Choosing between viewstack and State any best practices?

2007-02-19 Thread Manuel Saint-Victor

You know what- I apologize for the post.  I'm doing another word combo in
google and having better yield.

M


On 2/19/07, Manuel Saint-Victor [EMAIL PROTECTED] wrote:


When deciding between using the viewstack and using states if I plan to
load in some modules is there a better way to go or some things to consider
when making the decision?

Mani




[flexcoders] Re: problem in parsing xml return by HTTPservice, could it be namespace issue

2007-02-19 Thread paulwelling
Hello,

Has anyone found out why the parsing of a XML document fails when
using a node's name (but succeeds when using an index [n]) when there
is a namespace definition in the node..?

var xml:XML = 
foo
   bargood/bar
   bar xmlns=http://model.gts.com;bad/bar
/foo

trace(xml..bar); //good
good

Returns both nodes if the namespace declaration is removed:
bargood/bar
barbad/bar


Can anyone tell me why?  Suggestions..?

Thanks,
Paul



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

 I figured this out. Here is what worked for me.
 
 var res:XML = event.result as XML;
 var ns:Namespace = res.namespace();
 var imgName:String  = res..ns::marketValue;
 
 :: operator is the key.
 
 This works well for the defualt namespace. I still havent figured how
 to access an element whose namespace different then the default
 nameSpace and is not known.
 
 -Shailesh
 
 --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
 
  Uisn the index will work but it would be much better to figure out the
  namespace problem.  I am currently working on an example to learn
about
  namespaces myself.
  
   
  
  Ben Clinkinbeard has posted on this issue often and he has some
examples
  and discussion on his Blog.  I plan to head over there and start
  studying when I have a bit of spare time.
  
   
  
  Tracy
  
   
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of Ben Marchbanks
  Sent: Wednesday, January 03, 2007 8:54 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] problem in parsing xml return by
HTTPservice,
  could it be namespace issue
  
   
  
  You try what I used to solve the same kind of problem
  
  event.result.record[0].myFieldName
  
  where my XML looks something like this
  
  records
  record
  myFeldNamemyValue/myFieldName
  /record
  /records
  
  Thanks to Tracy Spratt for revealing access to the 
  XML more directly via event.result !
  
  Shailesh Mangal wrote:
   Hi all,
   
   Here is the xml I get back from my HTTPService call
   
   res:message source=web action=coveragemap id=123
   xmlns:res=http://response.coveragemap http://response.coveragemap
  
   com:statusCode xmlns:com=common0/com:statusCode
   com:statusDesc xmlns:com=commonSuccess/com:statusDesc
   res:marketValueSanFrancisco_CA/res:marketValue
   /res:message
   
   but when I try to use .. operator for marketValue node, I get null
   object back. Any suggestions. I tried use namespace also, didnt
  help.
   
   HTTPService Call
   mx:HTTPService id=xmlPoster2 url={loc + 'coveragemap'}
   method=POST resultFormat=e4x contentType=application/xml
   result=showMap(event)/
   
   public function showMap(event:ResultEvent):void{
   trace(event.result);
   var res:XML = event.result..marketValue as XML;
   var imgName:String = res.toString();
   imgSrc = assets/img/ + imgName; 
   coverageMapBox.setVisible(Boolean(true));
   }
   
  
 





[flexcoders] Exporting into CSV ?

2007-02-19 Thread Mrinmoyee Sanyal

How to export a Flex Chart and a Flex grid into CSV format?

Thank you
-MS


Re: [flexcoders] State changes w/ unloaded viewstack content

2007-02-19 Thread Ralf Bokelberg

Take a look at the creatioPolicy property of your viewStack
Cheers
Ralf.

On 2/19/07, alanmorehead79 [EMAIL PROTECTED] wrote:


  I am having trouble with trying to change the state of a panel that is
inside of one of my viewstack pages.

I have a details page that changes when the user logs in. If the user
does not visit that details page before logging in, then I get errors.
I know it is because the components that I am trying to change the
state on has not been rendered or created yet. I need to have this
component exist so that I can make my state changes.

Is there a way to preload a content page for a viewstack or another
way around this?

 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


Re: [flexcoders] State changes w/ unloaded viewstack content

2007-02-19 Thread Ralf Bokelberg

creationPolicy, sorry for the typo

On 2/19/07, Ralf Bokelberg [EMAIL PROTECTED] wrote:


Take a look at the creatioPolicy property of your viewStack
Cheers
Ralf.

On 2/19/07, alanmorehead79 [EMAIL PROTECTED]  wrote:

   I am having trouble with trying to change the state of a panel that is
 inside of one of my viewstack pages.

 I have a details page that changes when the user logs in. If the user
 does not visit that details page before logging in, then I get errors.
 I know it is because the components that I am trying to change the
 state on has not been rendered or created yet. I need to have this
 component exist so that I can make my state changes.

 Is there a way to preload a content page for a viewstack or another
 way around this?

  





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


[flexcoders] How can google index a Flex / SWF site ?

2007-02-19 Thread helihobby
Hello all,

How can google and other search engines index a fully Flexed page ?

It seems like Adobe must have a solution for SEO ( Search Engine 
Optimzation ) solutions for Flex as this can be a problem for this 
technology if no such Flex to HTML real time translation exists !!!


Regards,
Sean - HeliHobby.com




[flexcoders] Cold Fusion/Cairngorm VO advice

2007-02-19 Thread ajudah987
I am new to Cairngorm and Flex. Looking over the store example and 
several others and they all seem to use Value Objects to pass and 
define the data on the client. I have a lot of data and structures to 
return to flex in my application. 

1.Should i avoid returning data to Cairngorm via cfc queries and return 
all my data on the server via defined VO's? Does this make sense for 
simple data exchanges?

2.In Cairngorm what is the best way to pass a complex structure into 
the app? For example I have products which belong to product owners 
which are mapped to entitlements. Should i define these all as VO's 
embedded inside each other?

Thanks in advance for any advice,

AJ



[flexcoders] SingleForm seperated by TabNavigator

2007-02-19 Thread Jeremy Crane
I have a form that is broken down into specific chunks using a
TabNavigator.  The problem I am having is selecting an item from a
datagrid populates the form field, but if I Update without first
selecting each Tab I get an error when my Validators are being
processed.   What can I do to correct this error?



[flexcoders] How to programmatically change fill color (Flex Charting)

2007-02-19 Thread Private Romeo
I have a SolidColor fill for a ColumnSeries object:

 

mx:ColumnSeries displayName=Staff yField=People id=peopleCol

mx:fill

mx:SolidColor id=peopleColColor
color={_peopleColColor} /

/mx:fill

/mx:ColumnSeries

 

In an ActionScript function I'd like to change the color of this fill,
however neither data binding seems to work, nor directly accessing the
property:

 

function changeColor()

{

  peopleColColor.color = 0x00; // DOES NOT WORK

 _peopleColColor = 0x00; // DOES NOT WORK (and is bindable)

}

 

Any hint?

 

 



[flexcoders] This would make me very happy, a datagrid on STERIODS!

2007-02-19 Thread boy_trike
Am I the only poor slob out here who does NOT want to sub-class a datagrid to 
be able to 
control for each cell the:

•   Background color
•   Font Color
•   Font Size
•   Font Weight

Is it possible that Adobe (or someone who I would be happy to pay $$$ to)  will 
come out 
with a datagrid with an option similar to the labelFunction that has these 4 
fields passed to it 
so I can easily and  programmatically set any of these parameters?  Maybe its 
because I am 
coming from Delphi which has a few different grids that offer these features 
that I not 
satisfied with the current offerings.  Please let me know if there are other 
BUSINESS 
developers who feel the same way.  (if not, I will assume that I am more unique 
than my wife 
lets on!)  However, I warn you, I do not handle disappointment very well!

Bruce 






[flexcoders] Re: State changes w/ unloaded viewstack content

2007-02-19 Thread alanmorehead79
That's exactly what I was looking for.

Thank you

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

 creationPolicy, sorry for the typo
 
 On 2/19/07, Ralf Bokelberg [EMAIL PROTECTED] wrote:
 
  Take a look at the creatioPolicy property of your viewStack
  Cheers
  Ralf.
 
  On 2/19/07, alanmorehead79 [EMAIL PROTECTED]  wrote:
  
 I am having trouble with trying to change the state of a panel
that is
   inside of one of my viewstack pages.
  
   I have a details page that changes when the user logs in. If the
user
   does not visit that details page before logging in, then I get
errors.
   I know it is because the components that I am trying to change the
   state on has not been rendered or created yet. I need to have this
   component exist so that I can make my state changes.
  
   Is there a way to preload a content page for a viewstack or another
   way around this?
  

  
 
 
 
  --
  Ralf Bokelberg [EMAIL PROTECTED]
  Flex  Flash Consultant based in Cologne/Germany
  Phone +49 (0) 221 530 15 35
 
 
 
 
 -- 
 Ralf Bokelberg [EMAIL PROTECTED]
 Flex  Flash Consultant based in Cologne/Germany
 Phone +49 (0) 221 530 15 35





[flexcoders] Re: Automated Email Reports with Flex

2007-02-19 Thread tyriker
Thanks for the responses guys.

To further clarify the situation: The running of the reports all
happens server-side with PHP scripts. The result is an XML file
consisting of the data to display to the user. The method in which the
data is displayed to the user is via a Flex app (it basically reads
the XML and displays a table or chart).

When a user is actively viewing a report, the Flex app calls the PHP
scripts on the server and receives XML back, and draws the table/chart
for the user. From there, they can email the report out, and the Flex
app takes a 'snapshot/JPEG' of the table/chart and sends it back to
the server where a PHP script creates an HTML email with the JPEG
embedded in it. So in short, the Flex app only creates the
user-friendly display for the report. The rest is handled on the server.

Our problem comes when an automated report is wanted (like a nightly
emailed report). CRON will fire off the PHP scripts to run the report
and generate the XML result. But then we have no way to turn the XML
into the user-friendly display that is generated in Flex.

My thought was, if we could run the Flex app or execute the
ActionScript without needing a browser/Flash player, then it could be
added to the CRON job that automates and emails the report.

But what Paul said is what we've been afraid of:

In any case you will probably need a browser to run the process
because I don't think there are any interpreters that can run without
the Flash Player and the Flash Player will at the very least need to
be running on a windowed system, ie X windows, Windows or Mac OSX, it
cannot run on a headless system.

We won't have X-Windows installed, and we don't want CRON to fire up a
browser just to get some JPEGs.

Another 'idea' was to email the swf file with the XML data, and have
the user launch the swf and load the XML in to see the report. But
that seemed 'clunky.' And a last resort was to have a PHP script that
converts the XML data into readable HTML. But then web-based reports
(in Flex) and the emailed reports (in HTML) will look differently.

Are there any other/better options that can be thought of? Ideally,
executing ActionScript server side (to create JPEGs) would be great,
but we haven't found this possible yet.



Re: [flexcoders] Security sandbox violation and socket question

2007-02-19 Thread Ralf Bokelberg

It is possible, if aimexpress.oscar.aol.com http://aol.com:5190/ provides
a crossdomain.xml
Cheers
Ralf.

On 2/19/07, elad_nyc [EMAIL PROTECTED] wrote:


  Josh Tynjala created the amazing application to connect to AIM (see
here:
http://www.zeuslabs.us/archives/6/connecting-to-aim-with-actionscript-3-
sockets/), however when I try to run it on a remote server it pause for
few minutes and than it gives an error messages:

Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security
sandbox violation: http://domainName.com/FlashAIM.swf cannot load data
from aimexpress.oscar.aol.com:5190.

it looked like other people had the same problem and the answer of Josh
was You have to run the SWF from somewhere on your own computer.

Is it not possible to use the socket connection form a remote server?

 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


RE: [flexcoders] This would make me very happy, a datagrid on STERIODS!

2007-02-19 Thread Matt Chotin
We are looking at this kind of enhancement for the next Flex release :-)
But if folks want to create a subclass to share in the meantime that
might be a good little project.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of boy_trike
Sent: Monday, February 19, 2007 1:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] This would make me very happy, a datagrid on
STERIODS!

 

Am I the only poor slob out here who does NOT want to sub-class a
datagrid to be able to 
control for each cell the:

* Background color
* Font Color
* Font Size
* Font Weight

Is it possible that Adobe (or someone who I would be happy to pay $$$
to) will come out 
with a datagrid with an option similar to the labelFunction that has
these 4 fields passed to it 
so I can easily and programmatically set any of these parameters? Maybe
its because I am 
coming from Delphi which has a few different grids that offer these
features that I not 
satisfied with the current offerings. Please let me know if there are
other BUSINESS 
developers who feel the same way. (if not, I will assume that I am more
unique than my wife 
lets on!) However, I warn you, I do not handle disappointment very well!

Bruce 

 



[flexcoders] Calling LabelFunction on PrintDataGrid

2007-02-19 Thread bsdensmore
I am using the FlexPrintJob() class to print a datagrid. I'm using a
custom component to create the Print view and inside I have a
PrintDataGrid component. The dataProvider of this PrintDataGrid is
filled with the dataProvider from my main application.

I have a labelfunction that the main application uses to format some
of the columns in the datagrid. I want to call that same function in
the PrintDataGrid but I can't seem to access it. 

How would I go about calling this function in the PrintDataGrids
labelfunction property? I thought I could do
labelFunction=parentApplication.MyFunction but that doesn't seem to work.

Thanks,
Ben



Re: [flexcoders] This would make me very happy, a datagrid on STERIODS!

2007-02-19 Thread Ralf Bokelberg

How would you set these properties?

Cheers
Ralf.

On 2/19/07, boy_trike [EMAIL PROTECTED] wrote:


  Am I the only poor slob out here who does NOT want to sub-class a
datagrid to be able to
control for each cell the:

• Background color
• Font Color
• Font Size
• Font Weight

Is it possible that Adobe (or someone who I would be happy to pay $$$ to)
will come out
with a datagrid with an option similar to the labelFunction that has these
4 fields passed to it
so I can easily and programmatically set any of these parameters? Maybe
its because I am
coming from Delphi which has a few different grids that offer these
features that I not
satisfied with the current offerings. Please let me know if there are
other BUSINESS
developers who feel the same way. (if not, I will assume that I am more
unique than my wife
lets on!) However, I warn you, I do not handle disappointment very well!

Bruce

 





--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


Re: [flexcoders] How can google index a Flex / SWF site ?

2007-02-19 Thread Brendan Meutzner

A bit of light reading for you...

http://tech.groups.yahoo.com/group/flexcoders/message/58926


Brendan


On 2/19/07, helihobby [EMAIL PROTECTED] wrote:


  Hello all,

How can google and other search engines index a fully Flexed page ?

It seems like Adobe must have a solution for SEO ( Search Engine
Optimzation ) solutions for Flex as this can be a problem for this
technology if no such Flex to HTML real time translation exists !!!

Regards,
Sean - HeliHobby.com

 





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


RE: [flexcoders] How can google index a Flex / SWF site ?

2007-02-19 Thread Jonathan Deven \(JD\) Alexander
Received.  Shall review and reply tonight.

 

Jon

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan 
Meutzner
Sent: Monday, February 19, 2007 2:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How can google index a Flex / SWF site ?

 

A bit of light reading for you...

http://tech.groups.yahoo.com/group/flexcoders/message/58926


Brendan



On 2/19/07, helihobby [EMAIL PROTECTED] wrote:

Hello all,

How can google and other search engines index a fully Flexed page ?

It seems like Adobe must have a solution for SEO ( Search Engine 
Optimzation ) solutions for Flex as this can be a problem for this 
technology if no such Flex to HTML real time translation exists !!!

Regards,
Sean - HeliHobby.com




-- 
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca 

 

attachment: image001.jpg
attachment: image002.jpg


Re: [flexcoders] This would make me very happy, a datagrid on STERIODS!

2007-02-19 Thread Michael Schmalle

I have been experimenting with styleNames in itemRenderers.

Which like he said would be;

styleNameField would access the correct formating in the model. It does
work.

There are a couple of options, still in the labs. ;-)

Peace, Mike

On 2/19/07, Ralf Bokelberg [EMAIL PROTECTED] wrote:


  How would you set these properties?

Cheers
Ralf.

On 2/19/07, boy_trike [EMAIL PROTECTED] wrote:

   Am I the only poor slob out here who does NOT want to sub-class a
 datagrid to be able to
 control for each cell the:

 • Background color
 • Font Color
 • Font Size
 • Font Weight

 Is it possible that Adobe (or someone who I would be happy to pay $$$
 to) will come out
 with a datagrid with an option similar to the labelFunction that has
 these 4 fields passed to it
 so I can easily and programmatically set any of these parameters? Maybe
 its because I am
 coming from Delphi which has a few different grids that offer these
 features that I not
 satisfied with the current offerings. Please let me know if there are
 other BUSINESS
 developers who feel the same way. (if not, I will assume that I am more
 unique than my wife
 lets on!) However, I warn you, I do not handle disappointment very well!

 Bruce




--
Ralf Bokelberg [EMAIL PROTECTED]
Flex  Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35
 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


Re: [flexcoders] How to programmatically change fill color (Flex Charting)

2007-02-19 Thread Brendan Meutzner

Hey,

peopleCol.setStyle(fill, new SolidColor(_peopleColColor, 1));


Brendan


On 2/19/07, Private Romeo [EMAIL PROTECTED] wrote:


   I have a SolidColor fill for a ColumnSeries object:



mx:ColumnSeries displayName=Staff yField=People id=peopleCol

mx:fill

mx:SolidColor id=peopleColColor
color={_peopleColColor} /

/mx:fill

/mx:ColumnSeries



In an ActionScript function I'd like to change the color of this fill,
however neither data binding seems to work, nor directly accessing the
property:



function changeColor()

{

  peopleColColor.color = 0x00; // DOES NOT WORK

 _peopleColColor = 0x00; // DOES NOT WORK (and is bindable)

}



Any hint?





 





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


RE: [flexcoders] How to programmatically change fill color (Flex Charting)

2007-02-19 Thread Private Romeo
Thanks Brendan,

 

Just found out that

 

peopleCol.setStyle(fill, _peopleColColor);

 

 

works, too, even if _peopleColColor is a simple String… Flex is… flexible!

 

Rgds

-Ralf

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan 
Meutzner
Sent: Dienstag, 20. Februar 2007 00:03
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to programmatically change fill color (Flex 
Charting)

 

Hey,

peopleCol.setStyle(fill, new SolidColor(_peopleColColor, 1));


Brendan



On 2/19/07, Private Romeo [EMAIL PROTECTED] wrote:

I have a SolidColor fill for a ColumnSeries object:

 

mx:ColumnSeries displayName=Staff yField=People id=peopleCol

mx:fill

mx:SolidColor id=peopleColColor 
color={_peopleColColor} /

/mx:fill

/mx:ColumnSeries

 

In an ActionScript function I'd like to change the color of this fill, however 
neither data binding seems to work, nor directly accessing the property:

 

function changeColor()

{

  peopleColColor.color = 0x00; // DOES NOT WORK

 _peopleColColor = 0x00; // DOES NOT WORK (and is bindable)

}

 

Any hint?

 

 




-- 
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca 

 



Re: [flexcoders] How to programmatically change fill color (Flex Charting)

2007-02-19 Thread Brendan Meutzner

Ralf,

That's handy to know...  just wouldn't be able to set the alpha value with
the string implementation.


Brendan



On 2/19/07, Private Romeo [EMAIL PROTECTED] wrote:


   Thanks Brendan,



Just found out that



peopleCol.setStyle(fill, _peopleColColor);





works, too, even if _peopleColColor is a simple String… Flex is… flexible!



Rgds

-Ralf





*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Brendan Meutzner
*Sent:* Dienstag, 20. Februar 2007 00:03
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] How to programmatically change fill color
(Flex Charting)



Hey,

peopleCol.setStyle(fill, new SolidColor(_peopleColColor, 1));


Brendan

 On 2/19/07, *Private Romeo *[EMAIL PROTECTED] wrote:

I have a SolidColor fill for a ColumnSeries object:



mx:ColumnSeries displayName=Staff yField=People id=peopleCol

mx:fill

mx:SolidColor id=peopleColColor
color={_peopleColColor} /

/mx:fill

/mx:ColumnSeries



In an ActionScript function I'd like to change the color of this fill,
however neither data binding seems to work, nor directly accessing the
property:



function changeColor()

{

  peopleColColor.color = 0x00; // DOES NOT WORK

 _peopleColColor = 0x00; // DOES NOT WORK (and is bindable)

}



Any hint?








--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca

  





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


RE: [flexcoders] How to programmatically change fill color (Flex Charting)

2007-02-19 Thread Private Romeo
True. I wonder why FB does not show the overloaded methods… Using a trial and 
error approach is not really satisfying… Visual Studio offers all overloaded 
methods… any idea why Builder does not?

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan 
Meutzner
Sent: Dienstag, 20. Februar 2007 00:21
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to programmatically change fill color (Flex 
Charting)

 

Ralf,

That's handy to know...  just wouldn't be able to set the alpha value with the 
string implementation.


Brendan




On 2/19/07, Private Romeo [EMAIL PROTECTED] wrote:

Thanks Brendan,

 

Just found out that

 

peopleCol.setStyle(fill, _peopleColColor);

 

 

works, too, even if _peopleColColor is a simple String… Flex is… flexible!

 

Rgds

-Ralf

 

 

From: [EMAIL PROTECTED] ups.com http://ups.com  [mailto:[EMAIL PROTECTED] On 
Behalf Of Brendan Meutzner
Sent: Dienstag, 20. Februar 2007 00:03
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to programmatically change fill color (Flex 
Charting)

 

Hey,

peopleCol.setStyle(fill, new SolidColor(_peopleColColor, 1));


Brendan

On 2/19/07, Private Romeo [EMAIL PROTECTED] wrote:

I have a SolidColor fill for a ColumnSeries object:

 

mx:ColumnSeries displayName=Staff yField=People id=peopleCol

mx:fill 

mx:SolidColor id=peopleColColor 
color={_peopleColColor} /

/mx:fill

/mx:ColumnSeries 

 

In an ActionScript function I'd like to change the color of this fill, however 
neither data binding seems to work, nor directly accessing the property:

 

function changeColor() 

{

  peopleColColor.color = 0x00; // DOES NOT WORK

 _peopleColColor = 0x00; // DOES NOT WORK (and is bindable)

}

 

Any hint?

 

 




-- 
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca 




-- 
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca 

 



RE: [flexcoders] Datagrid question

2007-02-19 Thread Dimitrios Gianninas
You will have to code an ActionScript funtion/class to do this filtering for 
you and then pass the data to the grid for display.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of VVV
Sent: Monday, February 19, 2007 10:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid question



Is it possible to suppress some of the data in certain rows in a 
datagrid.
For Example: In a datagrid with 5 columns and 3 rows
If Row1 has data, A, B, C, D, E
Row2 has data, A, B, C, F, G
Row3 has data X, y, Z, F, K

Is it possible to suppress A,B,C from row 2 since, the data is the 
same from row 1 and 2.

Thanks for your help
VVV



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



RE: [flexcoders] How to get the current build options FB uses?

2007-02-19 Thread Gordon Smith
 Actually there's an issue here if you have Build Automatically
enabled. If you use the -dump-config in the Flex Compiler options FB
will rebuild in a loop forever. 
 
I think that you can work around this bug by dumping the config file to
a directory outside the FlexBuilder project directory.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Derek Vadneau
Sent: Monday, February 19, 2007 10:34 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to get the current build options FB uses?



Wow, I'm a moron.

I mentioned I was executing the following from the command line:
mxmlc -dump-config test-config.xml test.mxml

I was actually running it from the commandline, i.e. from the command
prompt (then a batch file). 

When I simply add the following to the Additional compiler arguments
textbox in the Flex Compiler options all of the paths, except for the
mxml-manifest.xml file, are inserted and the libraries are included as
they should be: 
-dump-config test-config.xml (along with the default items).

While I blame myself for this, I think the docs could be a lot clearer
about what can be done from the commandline and what can be done from
within FB. You mentioned there being a SDK and FB team, as opposed to
one team. Perhaps that's why the docs don't really go into the FB
options for this in a lot of detail ... unless I missed that as well. 

...

Actually there's an issue here if you have Build Automatically
enabled. If you use the -dump-config in the Flex Compiler options FB
will rebuild in a loop forever. When the -dump-config option is there FB
dumps out the XML file. Then, seeing as the config XML file has been
updated, it rebuilds the workspace. Having done that, the config file is
updated, etc., etc. So, just a word of caution when using this option:
disable Build Automatically, then add the -dump-config option. 




On 2/16/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote: 


 The only problem right now, besides the above issues, is that
SWCs added to the Library paths don't show up in the config XML. Are
they supposed to?
 



Yes.

 
Right now this is what I see in the include-libraries node: 
 
When I add a SWC to FlexBuilder's Library Path pane, it appears
in the library-path node of the dumped config file. I don't think
FlexBuilder uses the include-libraries option, which I believe is for
forcing a SWC to be included even if it isn't used by the application.
 
- Gordon




From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com http://yahoogroups.com ] On Behalf
Of Derek Vadneau
Sent: Friday, February 16, 2007 2:30 PM 

To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to get the current build options
FB uses?




What is in the library-path of the dumped config file? Is
there a path-element involving 'libs'?

library-path
path-elementlibs/path-element
path-elementlocale/{locale}/path-element
/library-path 

I'm told that any relative paths in the dumped XML config file
are relative to the frameworks directory (the location of the normal
flex-config.xml file).

Ok, I can work with that. Obviously it would be ideal to not
have to do this, but adding the paths should be easy enough for a simple
script/app. ... I just added ${flexlib}/ in places where a path looked
like it was needed and that worked. 

You should be able to create an XML config file with all the
options you need. You should not have to specify any of them on the
command line except perhaps -load-config.

That's great! The only problem right now, besides the above
issues, is that SWCs added to the Library paths don't show up in the
config XML. Are they supposed to?

Right now this is what I see in the include-libraries node: 


!-- compiler.include-libraries: a list of libraries (SWCs) to
completely include in the SWF--
!-- compiler.include-libraries usage:
include-libraries
librarystring/library 
librarystring/library
/include-libraries
--

The SWC that I've included is a Library project that Flex
Builder recognizes from my projects.

Here is the commandline I'm using to try to compile: 
mxmlc D:/Flex/test/test.mxml

The -load-config isn't required - because it's in the same
directory as the MXML file? - and if included in this case, gets loaded
twice.

However, the compilation fails with an error because my SWC
isn't included in the config XML. 

So close ...




On 2/15/07, Gordon Smith [EMAIL 

RE: [flexcoders] This would make me very happy, a datagrid on STERIODS!

2007-02-19 Thread Gordon Smith
Bruce, is the problem that you haven't been able to figure out how to do
this, that you don't think you should have to figure it out, that you're
not clear on how to subclass, or something else? In general, the Flex
framework team has been surprised at the resistance many developers have
to subclassing and we'd like to understand it better. After all, we
can't provide every feature that developers need without bloating our
components, and we've assumed that subclassing will be a commonly used
technique.
 
By the way, when you say for each cell do you mean that each cell
needs to render differently based on the data it displays? Or every row
might be different, but each column in a row is the same? Or that each
column is different, but every row in a column is the same?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Chotin
Sent: Monday, February 19, 2007 1:46 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] This would make me very happy, a datagrid on
STERIODS!



We are looking at this kind of enhancement for the next Flex release :-)
But if folks want to create a subclass to share in the meantime that
might be a good little project.

Matt



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of boy_trike
Sent: Monday, February 19, 2007 1:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] This would make me very happy, a datagrid on
STERIODS!

Am I the only poor slob out here who does NOT want to sub-class a
datagrid to be able to 
control for each cell the:

* Background color
* Font Color
* Font Size
* Font Weight

Is it possible that Adobe (or someone who I would be happy to pay $$$
to) will come out 
with a datagrid with an option similar to the labelFunction that has
these 4 fields passed to it 
so I can easily and programmatically set any of these parameters? Maybe
its because I am 
coming from Delphi which has a few different grids that offer these
features that I not 
satisfied with the current offerings. Please let me know if there are
other BUSINESS 
developers who feel the same way. (if not, I will assume that I am more
unique than my wife 
lets on!) However, I warn you, I do not handle disappointment very well!

Bruce 

 


[flexcoders] Re: Automated Email Reports with Flex

2007-02-19 Thread Paul DeCoursey
I haven't really looked into this, but have you considered generating
the reports as PDFs and then using Flash Paper to view them in Flex? 
There are a lot of good resources out there for generating PDFs, it's
a very simple doc format.  The part I'm not sure about it FlashPaper
with Flex.  Also what if the email was just a link to the report in
the FlexApp?

Paul

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

 Thanks for the responses guys.
 
 To further clarify the situation: The running of the reports all
 happens server-side with PHP scripts. The result is an XML file
 consisting of the data to display to the user. The method in which the
 data is displayed to the user is via a Flex app (it basically reads
 the XML and displays a table or chart).
 
 When a user is actively viewing a report, the Flex app calls the PHP
 scripts on the server and receives XML back, and draws the table/chart
 for the user. From there, they can email the report out, and the Flex
 app takes a 'snapshot/JPEG' of the table/chart and sends it back to
 the server where a PHP script creates an HTML email with the JPEG
 embedded in it. So in short, the Flex app only creates the
 user-friendly display for the report. The rest is handled on the
server.
 
 Our problem comes when an automated report is wanted (like a nightly
 emailed report). CRON will fire off the PHP scripts to run the report
 and generate the XML result. But then we have no way to turn the XML
 into the user-friendly display that is generated in Flex.
 
 My thought was, if we could run the Flex app or execute the
 ActionScript without needing a browser/Flash player, then it could be
 added to the CRON job that automates and emails the report.
 
 But what Paul said is what we've been afraid of:
 
 In any case you will probably need a browser to run the process
 because I don't think there are any interpreters that can run without
 the Flash Player and the Flash Player will at the very least need to
 be running on a windowed system, ie X windows, Windows or Mac OSX, it
 cannot run on a headless system.
 
 We won't have X-Windows installed, and we don't want CRON to fire up a
 browser just to get some JPEGs.
 
 Another 'idea' was to email the swf file with the XML data, and have
 the user launch the swf and load the XML in to see the report. But
 that seemed 'clunky.' And a last resort was to have a PHP script that
 converts the XML data into readable HTML. But then web-based reports
 (in Flex) and the emailed reports (in HTML) will look differently.
 
 Are there any other/better options that can be thought of? Ideally,
 executing ActionScript server side (to create JPEGs) would be great,
 but we haven't found this possible yet.





[flexcoders] Re: Help with webservice array and datagrid

2007-02-19 Thread dano_7
I forgot to mention that the error I am getting is just that the
datagrid is showing up blank - I am not sure what is the root of the
problem though.  I would really appreciate any help with this.  Thanks.


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

 Hello Everyone,
 I have a basic stock quote webservice that I am trying to use to
 populate a datagrid.  There is a service for retrieving one quote at a
 time which I got to work fine but when I try to use the one that
 returns an array of different quotes I am having issues.  The output
 of the webservice (GetQuotes) is:
 
 GetQuotesResult
 Quote
 Symbol/Symbol
 Name/Name
 Last/Last
 /Quote
 Quote
 Symbol/Symbol
 Name/Name
 Last/Last
 /Quote
 /GetQuotesResult
 
 My code is below - I have just been trying everything I can think of
 but so far now luck.  Any help would be greatly appreciated - I'm sure
 it is just something small I am missing.  Thanks for your help!
 -Dan
 
 ?xml version=1.0?
 !-- Simple example to demonstrate the WebService tag. --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 creationComplete=WS.GetQuotes.send()
 
  mx:Script
  ![CDATA[
   import mx.controls.Alert;
   import mx.rpc.events.ResultEvent;
   import mx.rpc.events.FaultEvent;
   import mx.rpc.soap.LoadEvent;
   import mx.rpc.soap.*;
   import mx.collections.XMLListCollection;
   
   default xml namespace = http://www.xignite.com/;;
   
   public function onMyResult(event: ResultEvent) :void
   {
   var myObject:Object = Object(event.result);
   }
   
   private function myLabelFunc(item:Object,
column:DataGridColumn):String 
 {
  if (item.Quote.Symbol==undefined)
   {return null;}
  else
   {return item.Quote.Symbol +   + item.Quote.Last;}
 }
 
 private function returnLast(item:Object,
 column:DataGridColumn):String 
 {
{return item.Last;}
 }
 
 private function returnSymbol(item:Object,
 column:DataGridColumn):String
 {
{return item.Quote.Symbol;}
 }
 
 [Bindable]
 private var xlcDP:XMLListCollection;
 [Bindable]
   private var _xmlResult:XML; //holds the result xml
 
 private function onResult(oEvent:ResultEvent):void {
   _xmlResult = XML(oEvent.result);
   var xlcDP:XML = _xmlResult.Quote[0];
   outputInfo.text = _xmlResult.toXMLString();
   //outputInfo.text = WS.GetQuotes.toString();
   
 }
 
   private function initApp():void
   {
   WS.GetQuotes.send();
   }
 
  ]]
  /mx:Script
  
  mx:Model id=localQuotes{WS.GetQuotesResults}/mx:Model
  mx:Model id=results{_xmlResult}/mx:Model
 
  mx:WebService id=WS
 wsdl=http://www.xignite.com/xQuotes.asmx?WSDL;
   useProxy=false
   showBusyCursor=true
   fault=Alert.show(event.fault.toString(),'Error')
   result=onResult(event)
   
  mx:operation name=GetQuotes resultFormat=e4x
  mx:request
  SymbolIBM PG/Symbol
  /mx:request
  /mx:operation
  /mx:WebService
 
 
  mx:Panel title=WebService Example height=75% width=75%
 paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10
  mx:Label width=100% color=blue text=Enter a stock
 symbol to obtain a quote./
  mx:TextInput id=stockSymbol text=/
  mx:Button label=Get Quote click=WS.GetQuote.send()/
  mx:Label text=Company: {WS.GetQuote.lastResult.Name}
 fontWeight=bold/
  mx:Label text=Last Price: {WS.GetQuote.lastResult.Last}
 fontWeight=bold/
  mx:Label text=Quote Last Price:
 {WS.GetQuote.lastResult.Quote} fontWeight=bold/
  mx:Label text=Symbol:
{WS.GetQuote.lastResult.Quote.Symbol}/
  mx:Label text=Last Price:
 ${WS.GetQuote.lastResult.Quote.Last}/
  !--mx:DataGrid id=dgStock
 dataProvider={WS.GetQuote.lastResult}--
  !-- xlcDP --
  mx:DataGrid id=dgStock dataProvider={xlcDP}
   mx:columns
   mx:Array
   !--mx:DataGridColumn 
 headerText=Symbol
 labelFunction=returnSymbol/--
   mx:DataGridColumn headerText=Name dataField=Name/
   !--mx:DataGridColumn headerText=Last 
 Price
 labelFunction=returnLast/--
   mx:DataGridColumn 
 headerText=Exchange dataField=Exchange/
   /mx:Array
  /mx:columns
  /mx:DataGrid
  mx:DataGrid dataProvider={results}
   mx:columns

[flexcoders] local configuration file options

2007-02-19 Thread Jaime Bermudez

So once again I trusted the livedocs, which told me:
You can set the same options in multiple places and the Flex compilers use
the value from the source that has the highest precedence.

Apparently this doesn't work for the command-line application compiler b/c I
have a local configuration file with the following setting:
verbose-stacktracestrue/verbose-stacktraces

The flex-config.xml has verbose-stacktraces set to false.  When I try to
compile, I get an error:

'Error: configuration variable 'compiler.verbose-stacktraces' must only be
set once.

What gives?

- Jaime


Re: [flexcoders] Re: error when scroll datagrid vertically?

2007-02-19 Thread arpan srivastava
Hi Michael,

Can you tell me how to check for post 60726?

- Original Message 
From: michael_ramirez44 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, February 19, 2007 9:00:57 PM
Subject: [flexcoders] Re: error when scroll datagrid vertically?









  



Hey Guys,



I have had a similar problem. Check out message post 60726



Michael Ramirez



--- In [EMAIL PROTECTED] ups.com, Ciarán [EMAIL PROTECTED] .. wrote:



 Hi,

 

  I am facing a weird problem with datagrid. I have added a custom

  itemrenderer in my datatgrid which draws a bullet graph in one of

  the columns.

 

 It sounds like a problem with your itemRenderer.

 

  for (i = lockedRowCount; i  rowCount; i++)

 {

 

   numCols = listItems[i] .length;

   var bVisible:Boolean = false;

  ...

   ...

 

  Now this code should run till i is less than rowCount, but I 

observed that

  if rowCount = 15 and listItems.length = 14 then after i 

executes the code for

  14 it increments and also executes for 15.

 

 listItems.length does nothing to determine the length of the loop. 

The

 condition is i  rowCount, so if rowCount = 15, and 

listItems.length =

 14, that makes perfect sense. The loop will run from lockedRowCount 

to

 15 (counting from 0 to  15 yeilds 14 = listItems.length) .

 

 lockedRowCount is The index of the first row in the control that 

scrolls.

 

 listItems is a collection of itemRenderers (one for each row in each

 column of your DataGrid)

 

 Can you post a code example (it would help to see the itemRenderer 

and

 the Data Grid declaration.

 

 Best Regards,

 Ciarán

 

  I am not getting the cause for this behaviour, is it a bug in 

flex.

 

 

  Error:

  TypeError: Error #1010: A term is undefined and has no properties.

  at 

mx.controls. listClasses: :ListBase/ mx.controls. listClasses: ListBase: :sc

rollVertically( )

[C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ listClasses\ ListBase. a

s:5346]

  at 

mx.controls: :DataGrid/ mx.controls: DataGrid: :scrollVerticall y()

[C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ DataGrid. as:1923]

  at 

com.flex.MyDataGrid ::myDataGrid/ com.flex. MyDataGrid: myDataGrid: :scroll

Vertically() [C:\Documents and  Settings\someone\ My Documents\Flex 

Builder 2\SampleWidget\ com\flex\ MyDataGrid\ myDataGrid. as:24]

  at mx.controls. listClasses: :ListBase/ set 

verticalScrollPosit ion()

[C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ listClasses\ ListBase. a

s:1043]

  at mx.controls: :DataGrid/ mx.controls: DataGrid: :scrollHandler( )

[C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ DataGrid. as:1720]

  at 

flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEv

entFunction( )

  at flash.events: :EventDispatcher /dispatchEvent( )

  at mx.core::UIComponen t/dispatchEvent( )

[C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:8323]

  at 

mx.controls. scrollClasses: :ScrollBar/http://www.adobe. com/2006/ flex/mx

/internal::dispatch ScrollEvent( )

[C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ scrollClasses\ ScrollBa

r.as:1096]

  at 

mx.controls. scrollClasses: :ScrollBar/http://www.adobe. com/2006/ flex/mx

/internal::lineScro ll()

[C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ scrollClasses\ ScrollBa

r.as:1058]

  at 

mx.controls. scrollClasses: :ScrollBar/ mx.controls. scrollClasses: ScrollB

ar::downArrow_ buttonDownHandle r()

[C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ scrollClasses\ ScrollBa

r.as:1160]

  at  

flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEv

entFunction( )

  at flash.events: :EventDispatcher /dispatchEvent( )

  at mx.core::UIComponen t/dispatchEvent( )

[C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:8323]

  at 

mx.controls: :Button/http://www.adobe. com/2006/ flex/mx/internal ::button

Pressed()

[C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ Button.as: 1988]

  at mx.controls: :Button/mx. controls: Button::mouseDow nHandler( )

[C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\controls\ Button.as: 2234]

 

 _ _ __

 Want to start your own business? Learn how on Yahoo! Small Business.








  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;
}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;
}
#ygrp-vitnav{
padding-top:10px;
font-family:Verdana;
font-size:77%;
margin:0;
}
#ygrp-vitnav a{
padding:0 1px;
}
#ygrp-actbar{
clear:both;
margin:25px 0;
white-space:nowrap;

[flexcoders] Re: Generate Flex Forms on the fly

2007-02-19 Thread Anthony DeBonis
I just coded something like this - a adhoc custom form builder.
I store the form definition in XML like xforms and at runtime I use
the xml to create a Flex from on the fly.  

Create a empty mx:form tag with a ID

For each element in your xml create a form item ( control) and do a
addChild() to the form… in a loop.

I created a object w/ create methods for each type of control + added
grid to layout the form for the special need I had…

Hope this helps,

Anthony

Example:
for each (var fld:XML in lvl.fld)
{
//New row in grid for each control
var gridRow:GridRow =new GridRow();
var gridItem:GridItem=new GridItem();
var itemSpacer:Spacer = new Spacer();
itemSpacer.width=curLevelNum * INDENT_LEVEL;
gridItem.addChild(itemSpacer);

//create each form control  
createField(fld,gridItem);  

gridRow.addChild(gridItem);
mainGrid.addChild(gridRow); 
}




[flexcoders] Quick Question

2007-02-19 Thread Kumar
Hi All,

 

 

Just a quick one guys just had a little confusion in two statements below

 

First:

  mx:Button x=23 y=242 label=Button click=myFunction() /

 

Second:

  mx:Button x=23 y=242 label=Button click={myFunction()} /

 

Both Buttons give the same result.

Just a bit confused.

 

 

 

 



Re: [flexcoders] Re: zip/unzip xml webservice result

2007-02-19 Thread Claus Wahlers
Troy Gilbert wrote:

 Using server-base gzip compression is probably the best route, but I 
 don't know if Flex's user agent that pulls the data (WebService, I 
 guess) if it supports gzip'd streams.

The Flash Player should handle compression over HTTP transparently.

 If it doesn't, you can do it manually with the ByteArray class. It has a 
 compress and uncompress pair of methods that implement gzip compression.

The Flash Player implements DEFLATE compression (which is used by gzip, 
pkzip and zlib), but can't natively uncompress gzip because it expects 
an ADLER32 checksum (over the uncompressed data). The gzip format uses a 
CRC32 checksum though (as does pkzip).

So if you want to uncompress gzip or pkzip compressed files you need to 
find a way to inject ADLER32 checksums. Both FZip [1] and FAR [2] 
provide simple tools that do that for you, and AS3 classes to uncompress 
files from pkzipped archives.

[1] http://codeazur.com.br/lab/fzip/
[2] http://www.vanrijkom.org/archives/2007/02/far_flasharchiv.html

-- 
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/

--
READ CAREFULLY. By reading this email you agree, on behalf of your 
employer, to release me from all obligations and waivers arising from 
any and all NON-NEGOTIATED agreements, licenses, terms-of-service, 
shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, 
non-compete and acceptable use policies (BOGUS AGREEMENTS) that I have 
entered into with your employer, its partners, licensors, agents and 
assigns, in perpetuity, without prejudice to my ongoing rights and 
privileges. You further represent that you have the authority to release 
me from any BOGUS AGREEMENTS on behalf of your employer.