[flexcoders] Cairngorm .99 VO Question

2005-09-15 Thread dave buhler
Hello Everyone,

I had a question regarding best practices when passing over my valueobjects.

In Short, I've been alternating between two ways of referencing the
VOs properties:

1) assigning the VO as a new object in my command, and passing over
this new object  or new object's props to my Delegate as a parameter
2) just importing the VO directly into the delegate and referencing
the VO's properties when I pass it over to my CFC.

What is considered best practice when working with the commands and
delegates with regard to specifying props of my ValueObjects? Where
should it be done?

Dave


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
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/

* 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] Charting Components w/in Repeater

2005-08-29 Thread dave buhler
Hi Ely,

I made some progress talking to the chart. It now shows a range up to
number 2, so now I know I can work with it:



But it still doesn't populate.

Here are my code changes:

ViewHelper:
//-

public function setChart ( event : Object ) : Void 
{
arrChart = [];
arrChart.push( 
[
{y:5,delivery:2},
{y:5,payment:5},
{y:5,quality:5} 
])
view.idChart[event.target.instanceIndex].dataProvider = 
arrChart;
}

MXML

!--  CHART  
--
mx:BarChart id=idChart 
width=100% 
height=100%
marginTop=10
type=stacked

creationComplete=ratingsViewHelper.setChart( event )

mx:verticalAxis

mx:CategoryAxis categoryField=y /
/mx:verticalAxis

mx:series

mx:Array

mx:BarSeries xField=delivery name=delivery/

mx:BarSeries xField=payment name=payment/

mx:BarSeries xField=quality name=quality/

/mx:Array
/mx:series
/mx:BarChart

On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote:
 
 
 
 Your (a) thought looks like a likely candidate.  CategoryAxis objects
 don't inherit their dataprovider from the chart...you need to assign
 them explicitly.
 
 Ely.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of dave buhler
 Sent: Saturday, August 27, 2005 2:34 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Charting Components w/in Repeater
 Importance: High
 
 I am unable to get the Charting Component to Work within a Repeater.
 
 Here is what I am doing:
 
 
 --
 
 1) The information being returned from Coldfusion is returned as a
 struct Result (object #2)
 .AUTHORCOUNT: 13
 .RATEDCOUNT: 1
 .GETRATINGSFEEDBACK (object #3)
 ...[0] (object #4)
 ...DELIVERY: 5
 ...PAYMENT: 2
 ...QUALITY: 4
 ...R_ID: 14337
 ...[1] (object #6)
 ...DELIVERY: 3
 ...PAYMENT: 0
 ...QUALITY: 4
 ...R_ID: 2732
 
 
 --
 
 2) I take this struct/object and convert it to an array of named
 objects:
 
 arrChart = [];
 for ( var i in event.result.GETRATINGSFEEDBACK ){
 arrChart.push(
 {delivery:event.result.GETRATINGSFEEDBACK[i].DELIVERY
 ,
 payment:event.result.GETRATINGSFEEDBACK[i].PAYMENT
 ,
 quality:event.result.GETRATINGSFEEDBACK[i].QUALITY} ); }
 
 
 --
 
 3) Then, I populate the repeater's forms within the repeater:
 
 view.rptRatings.dataProvider = event.result.GETRATINGSFEEDBACK;
 
 
 --
 
 4) When the repeater fires each (creationComplete event), I pass the
 repeater's index to a function that attempts to set the current chart
 being created with the object (delivery, payment, quality) in the X
 position of the array initalized earlier.
 
 public function setChart ( index : Number ) : Void {
 var i = index
 view.rptRatings[i].idChart.dataProvider = arrChart[i];
 // is is showing the right index.
 // arrChart[i].delivery is showing the right value }
 
 
 --
 
 5) Then, I rub Buddah's belly and attempt to create the chart, but
 nothing happens.
 ?xml version=1.0 encoding=utf-8

Re: [flexcoders] Charting Components w/in Repeater

2005-08-29 Thread dave buhler
Hi Ely,

The final bar chart should be a comparison of a customer's Ratings.

Customers are rated 1-5. 1 being poor. 5 being the best.

So the chart should be something like:

x: RATING FOR CATEGORY (delivery, quality, payment)
y: RATING BY VALUE (1-5)

Since I am using a repeater, I am clueless about how to access the
dataProvider of the CatagoryAxis as well as the dataProivder of the
chart. I can see how I would communiate with the chart, but not the
axis.


On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote:
 
 
 OK, here's what I see from your code.  Your vertical Axis is a
 CategoryAxis, with a categoryField but no dataProvider.   That means it
 has no source for its categories, and thus won't show any categories.
 Which means your BarSeries won't show any bars, because there's no
 categories to map the bars too.
 
 Can you describe in a little more details what you want the final chart
 to look like?
 
 Ely.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of dave buhler
 Sent: Monday, August 29, 2005 11:15 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Charting Components w/in Repeater
 Importance: High
 
 Hi Ely,
 
 I made some progress talking to the chart. It now shows a range up to
 number 2, so now I know I can work with it:
 
 
 
 But it still doesn't populate.
 
 Here are my code changes:
 
 ViewHelper:
 //--
 ---
 
 public function setChart ( event : Object ) : Void
 {
 arrChart = [];
 arrChart.push(
 [
 {y:5,delivery:2},
 {y:5,payment:5},
 {y:5,quality:5}
 ])
 view.idChart[event.target.instanceIndex].dataProvider =
 arrChart;
 }
 
 MXML
 
 !--  CHART
  --
 mx:BarChart id=idChart
 width=100%
 height=100%
 marginTop=10
 type=stacked
 
 creationComplete=ratingsViewHelper.setChart( event )
 
 
 mx:verticalAxis
 
 mx:CategoryAxis categoryField=y /
 
 /mx:verticalAxis
 
 mx:series
 
 mx:Array
 
 mx:BarSeries xField=delivery name=delivery/
 
 mx:BarSeries xField=payment name=payment/
 
 mx:BarSeries xField=quality name=quality/
 
 /mx:Array
 /mx:series
 /mx:BarChart
 
 On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote:
 
 
 
  Your (a) thought looks like a likely candidate.  CategoryAxis objects
  don't inherit their dataprovider from the chart...you need to assign
  them explicitly.
 
  Ely.
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of dave buhler
  Sent: Saturday, August 27, 2005 2:34 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Charting Components w/in Repeater
  Importance: High
 
  I am unable to get the Charting Component to Work within a Repeater.
 
  Here is what I am doing:
 
  --
  --
  --
 
  1) The information being returned from Coldfusion is returned as a
  struct Result (object #2)
  .AUTHORCOUNT: 13
  .RATEDCOUNT: 1
  .GETRATINGSFEEDBACK (object #3)
  ...[0] (object #4)
  ...DELIVERY: 5
  ...PAYMENT: 2
  ...QUALITY: 4
  ...R_ID: 14337
  ...[1] (object #6)
  ...DELIVERY: 3
  ...PAYMENT: 0
  ...QUALITY: 4
  ...R_ID: 2732
 
  --
  --
  --
 
  2) I take this struct/object and convert it to an array of named
  objects:
 
  arrChart = [];
  for ( var i in event.result.GETRATINGSFEEDBACK ){
  arrChart.push(
  {delivery:event.result.GETRATINGSFEEDBACK[i].DELIVERY
  ,
  payment:event.result.GETRATINGSFEEDBACK[i].PAYMENT
  ,
  quality:event.result.GETRATINGSFEEDBACK[i].QUALITY} ); }
 
  --
  --
  --
 
  3) Then, I populate the repeater's forms within the repeater:
 
  view.rptRatings.dataProvider = event.result.GETRATINGSFEEDBACK;
 
  --
  --
  --
 
  4) When the repeater fires each (creationComplete event), I pass the
  repeater's index to a function that attempts to set the current chart

Re: [flexcoders] Charting Components w/in Repeater

2005-08-29 Thread dave buhler
Should I reference the DataProvider of the:

CategoryAxis

or

verticalAxis/HorizontalAxis


On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote:
 
 
 
 Hmmm...based on that description...
 
 1) if your horizontal axis is the category, and your vertical axis is
 the value, It sounds like you want vertical bars, not horizontal ones. I
 imagine you want a ColumnChart, not a BarChart.
 
 2) To access an axis (hehe), you would do something like:
 
 view.idChart[event.target.instanceIndex].horizontalAxis.dataProvider =
 ;
 
 
 Ely.
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of dave buhler
 Sent: Monday, August 29, 2005 12:09 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Charting Components w/in Repeater
 Importance: High
 
 Hi Ely,
 
 The final bar chart should be a comparison of a customer's Ratings.
 
 Customers are rated 1-5. 1 being poor. 5 being the best.
 
 So the chart should be something like:
 
 x: RATING FOR CATEGORY (delivery, quality, payment)
 y: RATING BY VALUE (1-5)
 
 Since I am using a repeater, I am clueless about how to access the
 dataProvider of the CatagoryAxis as well as the dataProivder of the
 chart. I can see how I would communiate with the chart, but not the
 axis.
 
 
 On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote:
 
 
  OK, here's what I see from your code.  Your vertical Axis is a
  CategoryAxis, with a categoryField but no dataProvider.   That means
 it
  has no source for its categories, and thus won't show any categories.
  Which means your BarSeries won't show any bars, because there's no
  categories to map the bars too.
 
  Can you describe in a little more details what you want the final
  chart to look like?
 
  Ely.
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of dave buhler
  Sent: Monday, August 29, 2005 11:15 AM
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] Charting Components w/in Repeater
  Importance: High
 
  Hi Ely,
 
  I made some progress talking to the chart. It now shows a range up to
  number 2, so now I know I can work with it:
 
 
 
  But it still doesn't populate.
 
  Here are my code changes:
 
  ViewHelper:
  //
  --
  ---
 
  public function setChart ( event : Object ) : Void
  {
  arrChart = [];
  arrChart.push(
  [
  {y:5,delivery:2},
  {y:5,payment:5},
  {y:5,quality:5}
  ])
  view.idChart[event.target.instanceIndex].dataProvider
  = arrChart;
  }
 
  MXML
 
  !--  CHART
   --
  mx:BarChart id=idChart
  width=100%
  height=100%
  marginTop=10
  type=stacked
 
  creationComplete=ratingsViewHelper.setChart( event )
 
 
  mx:verticalAxis
 
  mx:CategoryAxis categoryField=y /
 
  /mx:verticalAxis
 
  mx:series
 
  mx:Array
 
  mx:BarSeries xField=delivery name=delivery/
 
  mx:BarSeries xField=payment name=payment/
 
  mx:BarSeries xField=quality name=quality/
 
  /mx:Array
  /mx:series
  /mx:BarChart
 
  On 8/29/05, Ely Greenfield [EMAIL PROTECTED] wrote:
  
  
  
   Your (a) thought looks like a likely candidate.  CategoryAxis
   objects don't inherit their dataprovider from the chart...you need
   to assign them explicitly.
  
   Ely.
  
  
   -Original Message-
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
   On Behalf Of dave buhler
   Sent: Saturday, August 27, 2005 2:34 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Charting Components w/in Repeater
   Importance: High
  
   I am unable to get the Charting Component to Work within a Repeater.
  
   Here is what I am doing:
  
   
   --
   --
   --
  
   1) The information being returned from Coldfusion is returned as a
   struct Result (object #2)
   .AUTHORCOUNT: 13
   .RATEDCOUNT: 1
   .GETRATINGSFEEDBACK (object #3)
   ...[0] (object #4)
   ...DELIVERY: 5
   ...PAYMENT: 2
   ...QUALITY: 4
   ...R_ID: 14337
   ...[1] (object #6)
   ...DELIVERY: 3
   ...PAYMENT: 0
   ...QUALITY: 4
   ...R_ID: 2732

Re: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component Type

2005-08-15 Thread dave buhler
No love.

I ran this to try and reference all the links within the application
scope, but it returned just those properties of the application scope.
I am looking to reference the Links within all views/containers.:

--

public function showProfileByRole () : Void {
for(var p in mx.core.Application.application)
{
_root.taDisplayData.text += p + '\n';
if(this[p] instanceof Link)
{
this[p]._visible = false;
}
}
}

--




On 8/14/05, JesterXL [EMAIL PROTECTED] wrote:
 for(var p in this)
 {
 if(this[p] instanceof Link)
 {
 this[p].visible = false;
 }
 }
 
 - Original Message -
 From: dave buhler [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Sunday, August 14, 2005 11:14 PM
 Subject: [flexcoders] Sweeping the Stage in Search of a MovieClip/Component
 Type
 
 
 Hello,
 
 In Flash, I've swept the stage in search of certain object types (like
 TextFields), so I could disable the objects by either removing them or
 changing their visibility.
 
 In Flex, is there a way to sweep all objects in search of specific
 component types, including those that are part of another view?
 
 I have Links where the visibility needs to be toggled off and on.
 
 I thought about making the Link a sub-class, too and adding the
 instance name to an array when the Link is created. Ideas, thoughts
 and suggestions are welcome.
 
 Dave
 
 
 
 --
 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
 
 
 
 
 
 
 
 
 --
 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
 
 
 
 
 
 



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hs5hjbr/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124121653/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

--
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/

* 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] Sweeping the Stage in Search of a MovieClip/Component Type

2005-08-15 Thread dave buhler
I thought it would work to sweep through the Stage and all containers.

I could sweep through the registered view, but I have nested views
where the links are visible.

It's not the views that need to be disabled, it's the link within the view.


On 8/15/05, JesterXL [EMAIL PROTECTED] wrote:
 All Views', all containers?  Um, no, in that case, you'll need a global
 registry, much like how ViewHelper's are registered by ID, etc.
 
 However, I question why you need such sweeping changes?  Why not toggle the
 enabled/disabledness of each view when it needs to be?
 
 - Original Message -
 From: dave buhler [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Monday, August 15, 2005 10:00 AM
 Subject: Re: [flexcoders] Sweeping the Stage in Search of a
 MovieClip/Component Type
 
 
 No love.
 
 I ran this to try and reference all the links within the application
 scope, but it returned just those properties of the application scope.
 I am looking to reference the Links within all views/containers.:
 
 --
 
 public function showProfileByRole () : Void {
 for(var p in mx.core.Application.application)
 {
 _root.taDisplayData.text += p + '\n';
 if(this[p] instanceof Link)
 {
 this[p]._visible = false;
 }
 }
 }
 
 --
 
 
 
 
 On 8/14/05, JesterXL [EMAIL PROTECTED] wrote:
  for(var p in this)
  {
  if(this[p] instanceof Link)
  {
  this[p].visible = false;
  }
  }
 
  - Original Message -
  From: dave buhler [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Sunday, August 14, 2005 11:14 PM
  Subject: [flexcoders] Sweeping the Stage in Search of a
  MovieClip/Component
  Type
 
 
  Hello,
 
  In Flash, I've swept the stage in search of certain object types (like
  TextFields), so I could disable the objects by either removing them or
  changing their visibility.
 
  In Flex, is there a way to sweep all objects in search of specific
  component types, including those that are part of another view?
 
  I have Links where the visibility needs to be toggled off and on.
 
  I thought about making the Link a sub-class, too and adding the
  instance name to an array when the Link is created. Ideas, thoughts
  and suggestions are welcome.
 
  Dave
 
 
 
  --
  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
 
 
 
 
 
 
 
 
  --
  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
 
 
 
 
 
 
 
 
 
 
 --
 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
 
 
 
 
 
 
 
 
 --
 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
 
 
 
 
 
 



 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hklkc05/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124136851/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/a./font
~- 

--
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/

* 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] Sweeping the Stage in Search of a MovieClip/Component Type

2005-08-14 Thread dave buhler
Hello,

In Flash, I've swept the stage in search of certain object types (like
TextFields), so I could disable the objects by either removing them or
changing their visibility.

In Flex, is there a way to sweep all objects in search of specific
component types, including those that are part of another view?

I have Links where the visibility needs to be toggled off and on.

I thought about making the Link a sub-class, too and adding the
instance name to an array when the Link is created. Ideas, thoughts
and suggestions are welcome.

Dave


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hpkergj/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124082920/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
Fair play? Video games influencing politics. Click and talk back!/a./font
~- 

--
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/

* 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] NetConnection Debugger Fails w/ Named Remote Objects

2005-06-13 Thread dave buhler



As I posted previously, my NetConnection Debugger fails.

After talking with another FlexCoder this weekend who had the same
problem, it turns out that the NetConnection Debugger only shows
service calls (I can't even get to results) for the first Named Remote
Object it finds. It continues to make service calls and will
return results to the player, but the netconnection debugger fails to
show anything when a method call exists in a CFC that is not part of
the first named object.

Is there a resolution to this?

Running:

  Flex 1.5
  Jrun4
  CF7

Dave








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] CFC Web Services and Boolean types in Flex

2005-06-12 Thread dave buhler



I use bit datatypes in CF/MS SQL and return 1s and 0s.

Then, I just do a look-up in AS before passing over the value as a numeric bit.

If you have a checkbox, for example, then you only need to set the
checkbox.selected = 1 or 0 without concern for the case or datatype.
On 6/10/05, Sean McKibben [EMAIL PROTECTED] wrote:
So we're trying to get a complex object with boolean properties in
coldFusion to serialize into a complex object with boolean properties
in Flex, but we keep getting wrongly typed results. Depending on the
method we choose, we get a string value of true or false or a (case
insensitive) string value of yes or no. Has anyone been able to get
complex objects in CF webservices to properly type booleans?Here is an example of what we're getting:item  key xsi:type=xsd:stringlock/key
  value xsi:type=xsd:stringfalse/value/itembut we should get:item  key xsi:type=xsd:stringlock/key
  value xsi:type=xsd:booleanfalse/value/itemAny thoughts?(sorry
this is a bit more about CF than flex, but actionScript is the more
strongly typed language that cares about the difference between false
and false!)Thanks,Sean McKibben







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Flex / Flash / FlashComm, Remoting and CF

2005-06-09 Thread dave buhler



Use all Uppers when you reference the remoting object.

I assume you're returning a struct?

If so:

return tempstruct should work fine so long as you have tempstruct.FIRSTNAME as the firstname variable name.

If you are returning a query, you'll need to referece result[0].FIRSTNAME, etc.

On 6/9/05, Seth Voltz [EMAIL PROTECTED] wrote:
Hey everyone,A while back someone posted an article on quirks when using Remoting(and the flash gateway) with Flex / Flash and FlashComm. I can't findit anywhere (archive searches, google, etc.) Maybe I'm just not hitting
the right terms.If anyone remembers it I'd most appreciate the link.If not, here's the problem I'm having which I think that ink will solve(Off Topic):I have an FCS app which hits a CF7 server's flash gateway looking for a
service. The services which return strings work just fine but anythingthat returns something more complex doesn't seem to work. I tryreturn.VAR, return.var, return.Var, etc. but it comes back
undefined.Thanks,SethYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Adding a close button to a tab?

2005-06-08 Thread dave buhler



Eric, 

I believe you have to extend UIComponent or UIObject.

http://www.macromedia.com/support/documentation/en/flex/1_5/createcomponents/createcomponents5.html

On 6/8/05, Eric Raymond [EMAIL PROTECTED] wrote:
I already have the tab deletion part working.Now I just need to findan intuitive UI for the close button .. which is why we'd like to puta close button in the tab. Any ideas/help here?FYI, I simply delete the view from the viewstack.The tabbar has the
viewstack as it's data provider.--- In flexcoders@yahoogroups.com, dave buhler [EMAIL PROTECTED] wrote: I think you're going to run into a few more complications.
 When you 'close' the tab, as I learned from Ali, you'll really haveto do the following: Set the tab's visibility to false. Set the tab's width to 0.
Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Adding a close button to a tab?

2005-06-07 Thread dave buhler



Hi Eric,

Are the tabs specific to an underlying view or are the tabs meant to be
closeButtons, similar to what you might find for a TitleWindow?

DaveOn 6/7/05, Eric Raymond [EMAIL PROTECTED] wrote:
Is there a way to add a close button to a tab in a tabbar?That is, we'd like to put a graphic image of an x in some tabs inour application that are closeable.I think there are two issues here:
1) Adding an extra icon to the tabAs a hack, we could get away with prepending the close image theexisting tab icon.2) Detecting a click in the close iconAs far as I know, the tabbar grabs all mouse/click events.
Any ideas?Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Custimizing Tooltip

2005-06-06 Thread dave buhler



ToolTips support CSS.
TextInputs support CSS

ToolTip {
 background-color:#FF;
}

TextInput {
 font-family: Arial, Helvetica, sans-serif;
 margin: 0px;
 padding: 0px;
 height:12px;
 font-size: 12px;
 border-style:solid;
 background-color:#f1f1f1;
 border-color:#99;
 border-thickness:1px;
 depth-colors:#4C555E,#454C53;
 gutter-bottom:#33;
 color:#00;
}On 6/6/05, rockmoyosa [EMAIL PROTECTED] wrote:
Is ther A simple way to, for example, change backgroundcolor of atooltip of a textinput.Both (mouseover) tooltip as validation tooltip?Yahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] dragging around a canvas

2005-06-06 Thread dave buhler



Hi,

Did you look into the TitleWindow (non-modal)?

http://livedocs.macromedia.com/flex/15/flex_docs_en/0376.htm

DaveOn 6/6/05, Mike Anderson [EMAIL PROTECTED] wrote:
The only thing I could come up with, is pre-create all the panels youwould like to have displayed with the content you would like inside, andthen place startup code in your Application Container, using thePopUpManager Class to instantiate all the individual Panels upon
startup.Since PopUpManager is the ONLY way I know of, to create drag-ablePanels, this is how I'd do it.It would be nice, to create a Panel during design time, and simply set aDrag-able property to True - but it was not designed that way.
That would be something nice to see, in later versions of Flex.Just my two cents, but I am pretty sure this is the only way to do it.Mike-Original Message-From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Robert BrueckmannSent: Monday, June 06, 2005 1:54 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] dragging around a canvasIs there a simple example somewhere of being able to drag and drop apanel around a canvas?I've seen the minimizable/maximizable and the
draggable examples previously posted, but I just want to be able toallow the user to move a handful of panels that contain staticinformation around the canvas of their browser in any order/positionthey would like and I can't seem to figure it out with the drag  drop
examples I find in the documentation...robert l. brueckmannsenior web developermerlin securities595 madison avenuenew york, ny 10022p: 212.822.4821f: 212.822.4820
This message contains information from Merlin Securities, LLC, or fromone of its affiliates, that may be confidential and privileged. If youare not an intended recipient, please refrain from any disclosure,
copying, distribution or use of this information and note that suchactions are prohibited. If you have received this transmission in error,please notify the sender immediately by telephone or by replying to this
transmission.Merlin Securities, LLC is a registered broker-dealer. Services offeredthrough Merlin Securities, LLC are not insured by the FDIC or any otherFederal Government Agency, are not deposits of or guaranteed by Merlin
Securities, LLC and may lose value. Nothing in this communication shallconstitute a solicitation or recommendation to buy or sell a particularsecurity.Yahoo! Groups Links
Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] linkbar selected color

2005-06-06 Thread dave buhler



Tinkering around I came up with

LinkBar {
 disabled-color: #99ff66;
 }

on...


http://www.markme.com/mc/archives/FlexStyleExplorer.html



On 6/6/05, Tom Fitzpatrick [EMAIL PROTECTED] wrote:
I'm trying to have the links in a linkbar change color when they'reselected and remain that color until another link is selected.Setting selectedFillColors doesn't seem to work.Any suggestions?
- TomYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] MfgQuote Launches Rich Internet Application

2005-06-06 Thread dave buhler



Tarik,

Are there any publically accessible parts of the application or screenshots?

DaveOn 6/6/05, Tarik Ahmed [EMAIL PROTECTED] wrote:
ATLANTA, Georgia, June 6, 2005  MfgQuote Inc., a leading provider ofonline sourcing management technology for the manufacturing marketplace,today announced the launch of its first rich Internet application (RIA)
capabilities developed with Macromedia's Flex technology, part of theFlash Platform. Using these new RIA capabilities, MfgQuote users canmanage the sourcing process and collaborate with suppliers in a faster
"software-like" experience. The streamlined interactions translate intomore productivity and less time processing.http://www.tenlinks.com/NEWS/PR/MFGQUOTE/060605_ria.htm
Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] How do you store and then retrieve the backcolor of something

2005-06-06 Thread dave buhler



getRGB()

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary143.html
On 6/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I am asking because what I want to do is change the color of a button
to a different color but later on reset it to its original color. How
do you first store the value of the original color and how do you call
it back later?


Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Accessiblity and Section 508 Complience with Flex?

2005-06-05 Thread dave buhler



http://www.macromedia.com/macromedia/accessibility/features/flash/

Flex uses the Flash player and inherents all of the accessibility
features of Flash. To make authoring accessible apps in Flex even
easier, we spent a lot of time enabling the accessibility layer of the
components that ship with Flex. Thus Flex apps will voice and expose
the functionality encapsulated in the components with little effort. 


 

Posted by Bob Regan
On 6/5/05, rynoguill9 [EMAIL PROTECTED] wrote:
Hey guys, first time poster here.I have an advanced coldfusionbackground and we are evaluating flex for use in a large project wehave coming up for an educational system.One of our biggestconsiderations when developing this app will be Accessibility and
Section 508 complience.I am new to accessibility concerns so I amnot even really sure what I am asking for, but is this possible usingflash/flex swfs?Are there things that we can do to ensure usability
for blind, visually and mobility impared, and other disabled persons?Thanks for any help, and if anyone has any examples I could look at orany resources at all they will be greatly appreciated!
Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Accessiblity and Section 508 Complience with Flex?

2005-06-05 Thread dave buhler



My name's not Bob. :(

http://www.markme.com/accessibility/archives/006073.cfm
On 6/5/05, Ryan Guill [EMAIL PROTECTED] wrote:
Thats great news Bob.Do you have any specific examples of accessibleflash that I could look at and show some of my clients that areinterested?Thanks for the help!On 6/5/05, dave buhler 
[EMAIL PROTECTED] wrote: http://www.macromedia.com/macromedia/accessibility/features/flash/
 Flex uses the Flash player and inherents all of the accessibility features of Flash. To make authoring accessible apps in Flex even easier, we spent a lot of time enabling the accessibility layer of the components that ship
 with Flex. Thus Flex apps will voice and expose the functionality encapsulated in the components with little effort. Posted by Bob Regan On 6/5/05, rynoguill9 
[EMAIL PROTECTED] wrote:   Hey guys, first time poster here.I have an advanced coldfusion  background and we are evaluating flex for use in a large project we
  have coming up for an educational system.One of our biggest  considerations when developing this app will be Accessibility and  Section 508 complience.I am new to accessibility concerns so I am
  not even really sure what I am asking for, but is this possible using  flash/flex swfs?Are there things that we can do to ensure usability  for blind, visually and mobility impared, and other disabled persons?
   Thanks for any help, and if anyone has any examples I could look at or  any resources at all they will be greatly appreciated!
 Yahoo! Groups Links   
Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.--Ryan Guill
BlueEyesDevelopment[EMAIL PROTECTED]www.ryanguill.com(270) 217.2399Want gmail? Get it here while its hot.
www.ryanguill.com/blog/Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Flash Remoting DataGlue equivalents for Flex?

2005-06-04 Thread dave buhler





http://livedocs.macromedia.com/flex/15/flex_docs_en/0218.htm

On 6/4/05, Mike Anderson [EMAIL PROTECTED] wrote:
Hello,In my existing Flash Application, I would bring back a Table object frommy Remoting Call.In this particular Table, I have 10 records, eachcomprised of a Text Value and a Numeric ID value.In Flash MX, in order
for the proper Values to bind to the proper portions of the ComboBox, Ihad to use DataGlue in order to bind the proper fields.If I simply bind the result.Table result to my ComboBox'sDataProvider, it displays BOTH the Text Value and ID Value separated by
a Comma.How do I force the ComboBox DataProvider property, to bind the DisplayedValue to one field (in this case FirstName) and the Numeric Value (inthis case ID) to the other field?
Thanks for any information regarding this,MikeYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Flash Remoting DataGlue equivalents for Flex?

2005-06-04 Thread dave buhler



Can you post the code you have so far.On 6/4/05, Mike Anderson [EMAIL PROTECTED] wrote:







Thanks guys!

Yes, just like Flash MX- the Labelfield option was 
also available...

But how do you address the data or value portion of the 
ComboBox? The portion that I am going to bind my DataSource towhen 
the time comes to send my data back to the server?

This is why I turned to DataGlue in Flash - otherwise, in 
that case too, I would have simply used Labelfield.

Thanks again,

Mike


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of dave 
buhlerSent: Saturday, June 04, 2005 9:07 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flash Remoting 
DataGlue equivalents for Flex?
If you run into problems, post the code you do have up for the group 
to look over.
On 6/4/05, dave 
buhler [EMAIL PROTECTED] 
 wrote:

http://livedocs.macromedia.com/flex/15/flex_docs_en/0218.htm
  
  On 6/4/05, Mike 
  Anderson [EMAIL PROTECTED]  
  wrote:
  Hello,In 
my existing Flash Application, I would bring back a Table object frommy 
Remoting Call.In this particular Table, I have 10 records, 
eachcomprised of a Text Value and a Numeric ID value.In 
Flash MX, in order for the proper Values to bind to the proper portions 
of the ComboBox, Ihad to use DataGlue in order to bind the proper 
fields.If I simply bind the result.Table result to my 
ComboBox'sDataProvider, it displays BOTH the Text Value and ID Value 
separated by a Comma.How do I force the ComboBox DataProvider 
property, to bind the DisplayedValue to one field (in this case 
FirstName) and the Numeric Value (inthis case ID) to the other 
field? Thanks for any information regarding 
this,MikeYahoo! Groups Links* To 
visit your group on the web, go to: 
http://groups.yahoo.com/group/flexcoders/ * 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/








Yahoo! Groups Links

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

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Cairngorm .99 + Flex-Config + Services.mxml

2005-06-02 Thread dave buhler



Hi Dirk,


  I believe there is a Flex-Config file that is at the very least, part of JRun4. Can someone confirm or deny this?
  There is one  gateway-config.xm file in my Flex web-inf folder. Is there a second one for CF that needs to be configured?

I think at this point, I need to take this step-by-step.

The difficulty I am having in part is because my first configuration works with the wild-card.

Dave
On 6/2/05, Dirk Eismann [EMAIL PROTECTED] wrote:
Hi Dave,to setup named remote objects with CF you'll need to1)
modify Flex's flex-config.xml file and CF's gateway-config.xml file (I
wondered to which file you are referring to when you say CF
FlexConfig.xml as there isn't such a thing)2) adjust the structure of CF's gateway-config.xml file a bit to define your named objects.To
point to the CF AMF gateway you can either use the endpoint on the
RemoteObject tag (the way you did) or chnage the amf-gateway
setting in your Flex's flex-config.xml (however, this changes the
gateway for *all* applications in your Flex server)Then, you'll need to add a dummy named object entry in the flex-config.xml to get the MXML compiled.Next, you'll have to add the named object definition to the CF 
gateway-config.xml file. In your case something like this:...whitelistunnamedsource/source/unnamednamedobject name=Echo
sourcewwwroot.MYDOMAIN.model.user.User/source/object/named/whitelist...restart
your Flex and your CF server and you should be ready to go. Again, this
is described in detail here: http://www.richinternet.de/blog/index.cfm?entry=831FE26E-0D70-9C2D-2549E1D1978CF1B0Dirk.
-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of dave buhler
Sent: Thursday, June 02, 2005 7:57 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Cairngorm .99 + Flex-Config + Services.mxmlooops..
Meant to post this WORKING code with the source inline.WorksServices.mxml mx:RemoteObject id=loginServiceendpoint=
http://localhost:8300/flashservices/gatewaysource=wwwroot.MYDOMAIN.model.user.Userprotocol=httpshowBusyCursor=true
result=event.call.resultHandler(
event )fault=event.call.faultHandler(
event ) /mx:RemoteObjectFlex FlexConfig.xmlobjectsource*/source /objectCF GatewayConfig.xmlStandard Setup
whitelistsource*/source/whitelistCF FlexConfig.xmlStandard SetupFailsServices.mxml mx:RemoteObject id=loginService named=usersService
endpoint=http://localhost:8300/flashservices/gatewayprotocol=httpshowBusyCursor=true
result=event.call.resultHandler(
event )fault=event.call.faultHandler(
event ) /mx:RemoteObjectFlexConfig.xml object name=usersServicesourcewwwroot.MYDOMAIN.model.user.usersService/source/object
GatewayConfig.xmlStandard Setupwhitelistsource*/source/whitelistCF FlexConfig.xmlremote-objectsamf-gateway{
context.root}/amfgateway/amf-gatewayamf-https-gateway{context.root}/amfgateway/amf-https-gatewayallow-url-overridefalse/allow-url-overridewhitelist
unnamedsource*/source/unnamednamed object name=usersService
source*/source!--
the type of the source being accessed - e.g. stateful-class or
stateless-class --!--
typestateless-class/type --!--
instructs the gateway to only allow authenticated users to invoke this
service
this is required when using normal J2EE Basic authentication --!--
use-basic-authenticationtrue/use-basic-authentication --!--
informs the gateway that is should attempt to use its own custom
authentication mechansim
as configured in the login-command section of gateway-config.xml --!--
use-custom-authenticationtrue/use-custom-authentication --!--
Adds the service's source to the unnamed whitelist.If
false, these can never be used as unnamed sources --!--
This will be forced to false if this named object requires
authentication --!--
allow-unnamed-accesstrue/allow-unnamed-access --!--
custom authorization roles can be specified when using custom
authentication --!--rolesrole/role/roles--!-- /object --
/object!-- /named --/named/whitelist/remote-objectsYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Cairngorm .99 + Flex-Config + Services.mxml

2005-06-02 Thread dave buhler



Thanks Peter,

I'm going to head down to Starbucks, buy some coffee and read through Dirk's document.

>From my understanding, I need to do the following:

  Alter my services.mxml and add the object names as a 'named' source
  
  Alter my flex-config.xml file to add the object name as I specified it in my Services.mxml
  
  Dig into my JRun folder for CF and add the exact same names to the gateway-cofig.


  Is the source path going to be the same as the one I had been using for my wildcard within the services.mxml that I am adding to my flex-config.xml and gateway-config.xml files?
  
  Do I need to add a Cross-Domain Policy File?
  Should I consider a career in something easier? Maybe truck-driving?
  I found a flex-config.xml file in my CF Folder for Jrun last night. Was
I just in the wrong place or does this file really exist and is it
important to this configuration?

On 6/2/05, Peter Farland [EMAIL PROTECTED] wrote:







Hi Dave, sorry I didn't get back to you earlier on this. I 
started replying about 2am last night but got sidetracked playing IT-support 
person for my family. Many thanks to Dirk for stepping in.

The first configuration works with the wildcard as it is a 
short-hand allowed for CFMX to allow any servicesource (i.e., CFC path) 
to be accessed, but note that source != 
named... named objects require specific configuration.

Also note that the * wildcard is in CFMX merely because 
this was the equivalent behavior of earlier CF releases... if you can restrict 
it down to specific services (and would have to do so for named Flex 
RemoteObject services) it's much advised.

Pete


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of dave 
buhlerSent: Thursday, June 02, 2005 11:37 AMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Cairngorm .99 
+ Flex-Config + Services.mxml
Hi Dirk,

  I believe there is a Flex-Config file that is at the very least, part of 
  JRun4. Can someone confirm or deny this? 
  There is one gateway-config.xm file in my Flex web-inf folder. Is there a 
  second one for CF that needs to be configured? I think at this point, 
I need to take this step-by-step.The difficulty I am having in part is 
because my first configuration works with the wild-card.Dave
On 6/2/05, Dirk 
Eismann [EMAIL PROTECTED] 
wrote:
Hi 
  Dave,to setup named remote objects with CF you'll need to1) 
  modify Flex's flex-config.xml file and CF's gateway-config.xml file (I 
  wondered to which file you are referring to when you say CF FlexConfig.xml 
  as there isn't such a thing)2) adjust the structure of CF's 
  gateway-config.xml file a bit to define your named objects.To point to 
  the CF AMF gateway you can either use the endpoint on the RemoteObject tag 
  (the way you did) or chnage the amf-gateway setting in your Flex's 
  flex-config.xml (however, this changes the gateway for *all* applications in 
  your Flex server)Then, you'll need to add a dummy named object entry 
  in the flex-config.xml to get the MXML compiled.Next, you'll have to 
  add the named object definition to the CF gateway-config.xml file. In your 
  case something like 
  this:...whitelistunnamedsource/source/unnamednamedobject 
  name=Echo 
  sourcewwwroot.MYDOMAIN.model.user.User/source/object/named/whitelist...restart 
  your Flex and your CF server and you should be ready to go. Again, this is 
  described in detail here: http://www.richinternet.de/blog/index.cfm?entry=831FE26E-0D70-9C2D-2549E1D1978CF1B0
Dirk. 
  -Original Message-From: flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com]On 
  Behalf Of dave buhler Sent: Thursday, June 02, 2005 7:57 AMTo: flexcoders@yahoogroups.com
Subject: 
  Re: [flexcoders] Re: Cairngorm .99 + Flex-Config + 
  Services.mxmlooops..Meant to post this WORKING code with 
  the source inline.WorksServices.mxml 
  mx:RemoteObject 
  id=loginServiceendpoint= 
  http://localhost:8300/flashservices/gatewaysource=wwwroot.MYDOMAIN.model.user.Userprotocol=httpshowBusyCursor=true 
  result=event.call.resultHandler( 
  event 
  )fault=event.call.faultHandler( 
  event ) /mx:RemoteObjectFlex 
  FlexConfig.xmlobjectsource*/source 
  /objectCF GatewayConfig.xmlStandard Setup 
  whitelistsource*/source/whitelistCF 
  FlexConfig.xmlStandard 
  SetupFailsServices.mxml mx:RemoteObject 
  id=loginService named=usersService 
  endpoint=http://localhost:8300/flashservices/gateway
protocol=httpshowBusyCursor=true 
  result=event.call.resultHandler( 
  event 
  )fault=event.call.faultHandler( 
  event ) 
  /mx:RemoteObjectFlexConfig.xml 
  object 
  name=usersServicesourcewwwroot.MYDOMAIN.model.user.usersService/source/object 
  GatewayConfig.xmlStandard 
  Setupwhitelistsource*/source/whitelistCF 
  FlexConfig.xmlremote-objectsamf-gateway{ 
  context.root}/amfgateway/amf-gatewayamf-https-gateway{context.root}/amfgateway/amf-https-gatewayallow-url-overridefalse/allow-url-override
whitelist 
  unnamedsource*/source/unnamedna

Re: [flexcoders] SOT: Flex Developer wanted in Atlanta

2005-06-02 Thread dave buhler



Hi Jeremy,

I meet all of your qualifications :) 

Let me know if you're still looking for a Flex/CF developer. I'm in Jacksonville, FL.

Best,
DaveOn 4/1/05, Jeremy Bruck [EMAIL PROTECTED] wrote:




  




MfgQuote
(www.MfgQuote.com) is looking for another CFMX  Macromedia
Flex developer to join the team. Applicants should have used Flex for
the past 6 months minimum, and ColdFusion for the last
2-3 years. Must be very good with CFCs. Prefer those
that have used Mach-II in production. A working knowledge of the
flex cairngorm framework is good as well. Expertise in SQL
and _javascript_ is also required.

Please send your resume, code samples and salary request to
[EMAIL PROTECTED]. We would prefer someone in Atlanta or those willing
to relocate to Atlanta. Depending on skill set  situation we
would be accept a commuter (travel to Atlanta 1-2 week(s)/month would
be required).

Please NO recruiters!

Thanks,
Jeremy









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.























Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Cairngorm .99 + Flex-Config + Services.mxml

2005-06-01 Thread dave buhler



Hi Dan,

MethodName: usersService.loginUser
Parameters (object #2)
.[0] (object #3)
.._flag: Envelope
..data (object #4)
...[0]: (undefined) 
..headers (object #5)
...[0] (object #6)
[0]: ServiceType
[1]: (boolean) false
[2]: stateless-class

Status (object #2)
.code: Server.ResourceNotFound
.description: Service wwwroot.myDomain.model.user.usersService not found.
.details: 
.level: error
.type: On 6/1/05, Daniel Harfleet [EMAIL PROTECTED] wrote:
Hey Dave,hate to ask the standard question, but here goes .what are the symptoms you are getting ? Is it an error message,timeout, or what ?thanksdan--- In 
flexcoders@yahoogroups.com, dave buhler [EMAIL PROTECTED] wrote: Hi, I am attempting to update the configuration for my services, both the flex-config.xml and services.mxml. This first example works fine,
thanks to the trusty wildcard. However, this week, I'll need to work onsecurity and databinding (this begins the segway into my next post) so it's time to rebuild both files. I know the cfc exists because I can access it at:
http://localhost:8300/wwwroot.myDomain.model.user.usersService.cfc?wsdland I can access it in the first example.
 Any help is appreciated. I'm running:- Flex (stand-alone) on JRun4 (port: 8700)- CF 7 on JRun4 (port: 8300)- Cairngorm .99- mach-ii
 Does Work: :) Services.mxml 1 cairngorm:ServiceLocatorxmlns:mx=http://www.macromedia.com/2003/mxmlxmlns:cairngorm=
http://www.iterationtwo.com/cairngormmx:RemoteObject id=loginDelegateendpoint=
http://localhost:8300/flashservices/gatewaysource=wwwroot.myDomain.model.user.usersServiceprotocol=httpshowBusyCursor=trueresult=event.call.resultHandler
( event )fault=event.call.faultHandler( event )/mx:RemoteObjectmx:RemoteObject id=ownersDelegateendpoint=
http://localhost:8300/flashservices/gatewaysource=wwwroot.myDomain.model.owner.ownersServiceprotocol=httpshowBusyCursor=trueresult=
event.call.resultHandler( event )fault=event.call.faultHandler( event )/mx:RemoteObject /cairngorm:ServiceLocator Flex-Config.mxml 1
 remote-objectswhitelistnamedobjectsource*/sourcetypestateless-class/type/object
/named/whitelistamf-gateway{context.root}/amfgateway/amf-gatewayamf-https-gateway{context.root}/amfgateway/amf-https-gateway
allow-url-overridefalse/allow-url-override /remote-objects---
 Does Not Work: :( - - Services.mxml 2 cairngorm:ServiceLocatorxmlns:mx=http://www.macromedia.com/2003/mxml
 xmlns:cairngorm=http://www.iterationtwo.com/cairngorm mx:RemoteObject id=loginService named=usersService
 protocol=http showBusyCursor=true result=event.call.resultHandler( event ) fault=event.call.faultHandler( event ) /mx:RemoteObject
 mx:RemoteObject id=ownersService named=ownersService protocol=http showBusyCursor=true result=event.call.resultHandler( event )
 fault=event.call.faultHandler( event ) /mx:RemoteObject /cairngorm:ServiceLocator Flex-Config.mxml 2 remote-objects
whitelistnamedobject name=usersServicesourcewwwroot.myDomain.model.user.usersService/sourcetypestateless-class/type
/objectobject name=ownersServicesourcewwwroot.myDomain.model.owner.ownersService/sourcetypestateless-class/type
/object/named/whitelistamf-gateway{context.root}/amfgateway/amf-gatewayamf-https-gateway{context.root}/amfgateway/amf-https-gateway
allow-url-overridefalse/allow-url-override /remote-objects DaveYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Cairngorm .99 + Flex-Config + Services.mxml

2005-06-01 Thread dave buhler



Hi Dirk

When I looked in the Cairngorm store example, the Flex-Config was
modified with names that I think had to map to names in my
Services.mxml.

I am @ work right now, so the gateway-config.xml isn't in front of me.
Do I need to modify a whitelist within the Gateway-Config AND the
Flex-Config or should I backtrack, return the Flex-Config to its
original settings, and define the service names in the gatway-config
file?

Services, Flex-Config and Gateway-Config = Lions and Tigers and Bears, oh my!

Dave
On 6/1/05, Dirk Eismann [EMAIL PROTECTED] wrote:
Hi Dave,make
sure to configure the named object in the gateway-config.xml file of
your ColdFusion MX 7 server and not in the flex-config.xmlDirk.-Original Message-From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com]On Behalf Of dave buhlerSent: Wednesday, June 01, 2005 3:33 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Cairngorm .99 + Flex-Config + 
Services.mxmlHi Dan,MethodName: usersService.loginUserParameters (object #2).[0] (object #3).._flag: Envelope..data (object #4)...[0]: (undefined)
..headers (object #5)...[0] (object #6)[0]: ServiceType[1]: (boolean) false[2]: stateless-class
Status (object #2).code: Server.ResourceNotFound.description: Service wwwroot.myDomain.model.user.usersService not found..details: .level: error
.type: Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] media playing at startup

2005-06-01 Thread dave buhler



Hi,

I typically use creationPolicy=all for my viewstack.

With your situation, you have options. If you want the mediaDisplay to
load the content in the background, use creationPolicy=all and have a
viewHelper load the FLV (setMedia or contentPath) when the button to
the view is clicked. 

Or, you can use creationPolicy=none and call the setMedia when the
component (the view) is first created, and you can instantiate the view
with createComponent.

Info: http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentationfile=1145.htm


If you're are requesting remoting, you could set the MediaDisplay when you receive a result from the server in a result handler.

DaveOn 6/1/05, Krzysztof Szlapinski [EMAIL PROTECTED] wrote:
hi,my application is basically a viewstack with many external componetchildren:mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
xmlns:local=* mx:Panel id=panwidth=900height=560horizontalAlign=centerverticalAlign=middlemx:ViewStack id=vswidthFlex=0borderStyle=none
width={pan.width*0.95}height={pan.height*0.85}creationPolicy=alllocal:test00027vb0 id=vb0 vs={vs}/local:test00027vb1 id=vb1 vs={vs}/
local:test00027vb00016 id=vb16 vs={vs}/local:test00027vb00018 id=vb18 vs={vs}//mx:ViewStackmx:Button id=nextButtonlabel=NEXTwidth=300
click=Next();/ /mx:Panel/mx:Applicationone of these comonents has a media display component and the problem isthat the media starts to play for one second and then stops when the
application is being initialized even when its autoplay property is setto false.when I change the creation policy of the viewstack to auto the mediastarts to play for a second when this component is being displayed
(initilized)krzysiekYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] TabNavigator - Hiding Tabs

2005-06-01 Thread dave buhler



Hi Ali,

I'll give it a try tonight.

One of the other difficulties I was having was this:

I wanted to Keep a tab's state when a view is switched.

For example, I have something like:

tabNavigator
---pets
-dogs
-cats

---programmers
-java
-actionscript
-php

/tabNavigator
I am currently hiding tabs for dogs, cats, actionscript, etc (all
the children). Ideally, I'd like to keep the state of the parent tab
up. Perhaps I could wrap those views in a Canvas with an ID, but I
wouldn't know how to specify that child within the modelLocator.


Dave


On 6/1/05, Alistair McLeod [EMAIL PROTECTED] wrote:







Hi Dave,

Have you tried using the resize handler of the 
TabNavigator, and resizing the tabs at that poing? I'd probably wrap this inside 
a custom TabNavigator component.

Cheers,

Ali




--
Alistair 
McLeodDevelopmentDirector
iteration::two[EMAIL PROTECTED]

Office: +44 (0)131 338 
6108

This e-mail and any associated attachments 
transmitted with it may contain confidential information and must not be copied, 
or disclosed, or used by anyone other than the intended recipient(s). If you are 
not the intended recipient(s) please destroy this e-mail, and any copies of it, 
immediately.Please also note that while software systems have been 
used to try to ensure that this e-mail has been swept for viruses, 
iteration::two do not accept responsibility for any damage or loss caused in 
respect of any viruses transmitted by the e-mail. Please ensure your own checks 
are carried out before any attachments are 
opened.




From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of dave 
buhlerSent: 31 May 2005 19:19To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] TabNavigator - 
Hiding Tabs
Hi Alistair,I'm using Cairngorm .99 and have added about 10 
mappings to my ModelLocator.Of those 10, 5 are views that need 
'tab-ability' and 5 should be hidden.I used the method below, hiding the 
tab and setting visibility to false. This works, initially.However, when 
the stage is resized, the tabnavigator recalculates and repositions the tabs, 
including the tabs with the width set to 0.Is there another 
workaround?Is there a way to add a Stage.onResize listener in Flex to reset 
specific tabs within the tabBar to a width of 0?Dave
On 5/21/05, Alistair 
McLeod [EMAIL PROTECTED] 
wrote:
Hi 
  Alex,Try this - I've made the tab visible and also set its width to 0, 
  to forcesubsequent tabs to move along to consume the space. tabBar is a 
  privateproperty of TabNavigator, so I've had to trick the compiler into 
  letting us access it.?xml version=1.0 
  encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml 
  mx:Script![CDATA[private 
  function hideSecondTab() : 
  Void{var
secondTab = tn[tabBar].getChildAt( 1 );secondTab.visible
= false;secondTab.width
= 0;}]]/mx:Scriptmx:TabNavigator 
  id=tn width=100% height=100% 
  mx:HBox 
  label=Tab 1 width=100% height=100% 
  /mx:HBox 
  label=Tab 2 width=100% height=100% 
  /mx:HBox 
  label=Tab 3 width=100% height=100% 
  //mx:TabNavigatormx:Button 
  label=Hide Second Tab click=hideSecondTab(); 
  //mx:Application--Alistair 
  McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office:+44 
  (0)131 338 6108This e-mail and any associated attachments transmitted 
  with it may contain confidential information and must not be copied, or 
  disclosed, or used byanyone other than the intended recipient(s). If you 
  are not the intendedrecipient(s) please destroy this e-mail, and any 
  copies of it, immediately. Please also note that while software 
  systems have been used to try to ensurethat this e-mail has been swept for 
  viruses, iteration::two do not acceptresponsibility for any damage or loss 
  caused in respect of any viruses transmitted by the e-mail. Please ensure 
  your own checks are carried outbefore any attachments are 
  opened.-Original Message-From: flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] 
  OnBehalf Of gevgelija50Sent: 20 May 2005 20:16To: flexcoders@yahoogroups.com 
  Subject: [flexcoders] TabNavigator - Hiding TabsI am trying to 
  hide certain tabs from a Tab Navigator based on somecriteria. If I follow 
  this approach: tabnav[0].visible = false; the actualTab is still visible 
  but the children within that tab are invisible. How can I hide the tab 
  button itself?Thanks,AlexYahoo! Groups 
  LinksYahoo! Groups Links* 
  To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/
* 
  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/








Yahoo! Groups Links

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

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To 

Re: [flexcoders] Image control does not display dynamically generated images?

2005-06-01 Thread dave buhler



Baseline = the same term as non-progressive.

Some of the image converters allow you to batch-convert images to baseline.On 6/1/05, JesterXL [EMAIL PROTECTED]
 wrote:








Are the JPEG's being created progressive? 
Flash Player only supports non-progressive JPEG's to be loaded at 
runtime.

- Original Message - 
From: 
Rick Bullotta 
To: flexcoders@yahoogroups.com 
Sent: Wednesday, June 01, 2005 2:17 PM
Subject: [flexcoders] Image control does not display dynamically 
generated images?


Attempts to use the 
load() method of an Image component with a URL that creates a server-side 
generated image (JPEG) do not seem to display properly in the Flash 
viewer. Works fine with static images. And the URL's are perfectly 
fine (work from within a browser or an HTML image 
tag).

Any 
thoughts/insights?

- 
Rick







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Image control does not display dynamically generated images?

2005-06-01 Thread dave buhler



So the player doesn't have to support a decompressor that would bloat the size.
Same reason it doesn't support RegEx.On 6/1/05, Rick Bullotta [EMAIL PROTECTED] wrote:
















Not sure we have the ability to change
the JPG rendering typeof course, everything else on the planet supports
this JPEG format  why not Flash Player? J
.











From:
flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of JesterXL
Sent: Wednesday, June 01, 2005
2:37 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Image
control does not display dynamically generated images?







Are the JPEG's being created progressive? Flash Player
only supports non-progressive JPEG's to be loaded at runtime.



















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Cairngorm .99 + Flex-Config + Services.mxml

2005-06-01 Thread dave buhler



Hi Peter and Steven,

First, thanks for the assistance and for Pete, the very eloquent response.


2. A Flex-specific RemoteObject envelope is being sent to a CFC - this
is not supported. The idea of a stateless-class or stateful-class isa Flex-only consideration for the Java adapters. You have eitherspecified this directly as a type attribute to your mx:RemoteObject
tag or perhaps registered it in the entry for the named service inflex-config.xml's remote-objects whitelist. It should be removed in anyevent.Removed

3. The Status error returned suggests a strange location for yourusersService CFC. While the CFC has to be available under the webroot,
the service name for the CFC should not include the webroot directory inits name. (This error also suggests that your mx:RemoteObject tag wasusing named services... more on this below).

The path is to my model folder within the mach-ii application framework. For example, the directory path is:


  C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\wwwroot\MYDOMAIN\model\user\usersService.cfc

  Straight to the CFC : http://localhost:8300/wwwroot/MYDOMAIN/model/user/usersService.cfc


I added the wwwroot to the
application awhile back and have not changed it in the CF
admin/directory structure to reflect a root. I'll add it to my list of
clean-up needed this week. Currently, I am running Flex on port 8700
and CF on 8300.

You're running Flex 1.5 and CFMX 7 right?

Correct 
Did you combine the two J2EE web applications of Flex and CFMX or haveyou left them separate? 


Sep. Jrun 4 instances
Or are you planning on compiling the MXMLapplication offline using mxmlc (requires a Flex license) and then
simply deploying the resulting SWF to a CFMX 7 web app that containsyour CFC based service?
YesIn any event, there are two configuration considerations.
1. The MXML compiler validates named mx:RemoteObject services atcompile time. This validation requires a correctly configuredflex-config.xml file containing your named object entry in theremote-objects whitelist. We understand this isn't exactly helpful for
he non-local deployment of RemoteObject services and have alreadyreceived complaints, but this is how Flex 1.5 works so it's somethingyou'll need to consider for now. (Note that the validation was added to
help the developer catch typos in service names at compile time...)
I cut down the code into what works (login returns true or false in my result handler) and the way I *think it should be done.

1) improve security. Security is important on this app if it sees production (*crosses fingers)
2) rebuild the VOs so I can work with direct databinding

After reading
(http://www.macromedia.com/devnet/flex/articles/data_binding/ch18_data_binding.pdf),
I realized that I needed to really solidify my service names in the
flex-config file and services.mxml file before I could proceed with the
databinding.

First, I have most of my framework complete (20 views, viewHelpers,
VOs, commands, lots of delegates, etc.) and I want to do the following
before I continue:


Works
Services.mxml
 mx:RemoteObject id=loginService

  
 
endpoint=http://localhost:8300/flashservices/gateway

  
  protocol=http

  
   showBusyCursor=true

  
  
result=event.call.resultHandler( event )

  
  
fault=event.call.faultHandler( event )
 /mx:RemoteObject

Flex FlexConfig.xml
  object
  source*/source
  /object

CF GatewayConfig.xml

Standard Setup


 whitelist
 source*/source
 /whitelist

CF FlexConfig.xml 
Standard Setup



Fails
Services.mxml
 mx:RemoteObject id=loginService  named=usersService


  
 
endpoint=http://localhost:8300/flashservices/gateway

  
  protocol=http

  
   showBusyCursor=true

  
  
result=event.call.resultHandler( event )

  
  
fault=event.call.faultHandler( event )
 /mx:RemoteObject

FlexConfig.xml object name=usersService
 sourcewwwroot.MYDOMAIN.model.user.usersService/source
  /object

GatewayConfig.xml

Standard Setup


 whitelist
 source*/source
 /whitelist

CF FlexConfig.xml 
 remote-objects

 amf-gateway{context.root}/amfgateway/amf-gateway
  
 amf-https-gateway{context.root}/amfgateway/amf-https-gateway

 allow-url-overridefalse/allow-url-override
 
 whitelist
 
 unnamed
 source*/source
 
 /unnamed
  named
 object name=usersService

source*/source

!-- the type of the source being accessed - e.g. stateful-class or
stateless-class --

!-- typestateless-class/type --


!-- instructs the gateway to only allow authenticated users to
invoke this service

this is required when using normal J2EE Basic authentication --

!--
use-basic-authenticationtrue/use-basic-authentication
--


!-- informs the gateway that is should attempt to use its own
custom authentication mechansim

as configured in the login-command section of gateway-config.xml --

!--
use-custom-authenticationtrue/use-custom-authentication
--

 !-- Adds
the service's source to the unnamed whitelist. If false, these can
never be used as unnamed sources --

!-- This will be forced to false if this named 

Re: [flexcoders] TabNavigator - Hiding Tabs

2005-05-31 Thread dave buhler



Hi Alistair,

I'm using Cairngorm .99 and have added about 10 mappings to my ModelLocator.

Of those 10, 5 are views that need 'tab-ability' and 5 should be hidden.

I used the method below, hiding the tab and setting visibility to false. This works, initially.

However, when the stage is resized, the tabnavigator recalculates and
repositions the tabs, including the tabs with the width set to 0.

Is there another workaround?
Is there a way to add a Stage.onResize listener in Flex to reset specific tabs within the tabBar to a width of 0?

DaveOn 5/21/05, Alistair McLeod [EMAIL PROTECTED] wrote:
Hi Alex,Try this - I've made the tab visible and also set its width to 0, to forcesubsequent tabs to move along to consume the space. tabBar is a privateproperty of TabNavigator, so I've had to trick the compiler into letting us
access it.?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
mx:Script![CDATA[private
function hideSecondTab() : Void{var
secondTab = tn[tabBar].getChildAt( 1 );secondTab.visible
= false;secondTab.width
= 0;}]]/mx:Scriptmx:TabNavigator id=tn width=100% height=100% mx:HBox
label=Tab 1 width=100% height=100% /mx:HBox
label=Tab 2 width=100% height=100% /mx:HBox
label=Tab 3 width=100% height=100% //mx:TabNavigatormx:Button label=Hide Second Tab click=hideSecondTab(); /
/mx:Application--Alistair McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office:+44 (0)131 338 6108This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, and any copies of it, immediately.
Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.-Original Message-From: flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com] OnBehalf Of gevgelija50Sent: 20 May 2005 20:16To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator - Hiding TabsI am trying to hide certain tabs from a Tab Navigator based on somecriteria. If I follow this approach: tabnav[0].visible = false; the actualTab is still visible but the children within that tab are invisible.
How can I hide the tab button itself?Thanks,AlexYahoo! Groups LinksYahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Flex Style Explorer

2005-05-31 Thread dave buhler



Stace,

I think the panels in the flex style explorer use an image for the
header. I could be wrong, but the reflection seems to swoop which you
can't do within the Flex styles.

And I think the color is #77.

DaveOn 5/31/05, Stacy Young [EMAIL PROTECTED] wrote:















Hi All,



Curious to know if anyone knows the
customizations used for the parent panels in the Flex Style Explorer? (the
outer, dark panels)



Thx!

Stace 











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Flex Style Explorer

2005-05-31 Thread dave buhler



Hi Peter,

Do you know the application color of the Flex Style Explorer?

DaveOn 5/31/05, Peter Baird [EMAIL PROTECTED] wrote:







I'm in the
process of doing a write up on the MC Blog with an updated version of
the Flex Style Explorer, and was planning on answering some of these
questions. (We're working on getting the comments working too)

I'll answer this one here. Dave is pretty much right on. Basically here's how those panels were created:

Headerless Panel (headerHeight="0") 
backgroundColor = #FF; (yup, it's white, but...)
backgroundAlpha = 20; (this lets the nice backgroundGradient show through)
panelBorderStyle = roundCorners;
Setting all margins to zero allows me to place an image in the top and make it look like a header
I
first place a container with a backgroundImage with my custom image (a
swf created in Flash Authoring which also has some transparency to
it)...
...then insert a Label tag with my header title.

Simple as that. The reason we did that was for two reasons:

It looks cooler
As
a subtle reminder to flex designers that, while CSS for style is
powerful, designs don't have to be limited to it, and can use some
imagery.


Okay, so for the actual MXML, here it is:

mx:Panel height=100%
 panelBorderStyle=roundCorners 
 headerHeight=0
 backgroundColor=#FF 
backgroundAlpha=20
 marginRight=0 
marginLeft=0 
marginTop=0 
marginBottom=0
 mx:Box width=100% backgroundImage=@Embed('assets/myHeader.swf') 
backgroundSize=100% 
marginTop=7 
marginLeft=10
mx:Label
text=Style Controls 
color=#FF 
fontSize=10 
fontWeight=bold 
marginLeft=5 /
 /mx:Box
 mx:Box width=100% 
marginLeft=10 
marginRight=10 
marginBottom=10 
height=100%
/mx:Box
/mx:Panel



On 5/31/05 2:48 PM, dave buhler [EMAIL PROTECTED] wrote:

Stace,

I think the panels in the flex style explorer use an image for the
header. I could be wrong, but the reflection seems to swoop which you
can't do within the Flex styles.

And I think the color is #77.

Dave

On 5/31/05, Stacy Young [EMAIL PROTECTED] wrote:
Hi All,

 

Curious
to know if anyone knows the customizations used for the parent panels
in the Flex Style Explorer? (the outer, dark panels)

 

Thx!

Stace 

Yahoo! Groups Links
To visit your group on the web, go to:

http://groups.yahoo.com/group/flexcoders/
 

To unsubscribe from this group, send an email to:

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 
 

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


Yahoo! Groups Links
To visit your group on the web, go to:

http://groups.yahoo.com/group/flexcoders/
 

To unsubscribe from this group, send an email to:

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 
 

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











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Cairngorm .99 + Flex-Config + Services.mxml

2005-05-31 Thread dave buhler



Hi,

I am attempting to update the
configuration for my services, both the flex-config.xml and
services.mxml. This first example works fine, thanks to the trusty
wildcard. However, this week, I'll need to work on security and
databinding (this begins the segway into my next post) so it's time to
rebuild both files.

I know the cfc exists because I can access it at:
http://localhost:8300/wwwroot.myDomain.model.user.usersService.cfc?wsdl
and I can access it in the first example.

Any help is appreciated.

I'm running:


  Flex (stand-alone) on JRun4 (port: 8700)
  CF 7 on JRun4 (port: 8300)
  Cairngorm .99
  mach-ii


Does Work: :)

Services.mxml 1
cairngorm:ServiceLocator xmlns:mx=http://www.macromedia.com/2003/mxml 


  
  
 
xmlns:cairngorm=http://www.iterationtwo.com/cairngorm

 mx:RemoteObject id=loginDelegate

  
  
endpoint=http://localhost:8300/flashservices/gateway 

  
  
source=wwwroot.myDomain.model.user.usersService

  
   protocol=http

  
   showBusyCursor=true

  
  
result=event.call.resultHandler( event )

  
  
fault=event.call.faultHandler( event )
 /mx:RemoteObject
 
  mx:RemoteObject id=ownersDelegate

  
  
endpoint=http://localhost:8300/flashservices/gateway 

  
  
source=wwwroot.myDomain.model.owner.ownersService

  
   protocol=http

  
   showBusyCursor=true

  
  
result=event.call.resultHandler( event )

  
  
fault=event.call.faultHandler( event )
 /mx:RemoteObject

/cairngorm:ServiceLocator

Flex-Config.mxml 1
remote-objects
   

whitelist

  named
   object
 source*/source

  
 typestateless-class/type
   /object
  /named
 /whitelist
  
 amf-gateway{context.root}/amfgateway/amf-gateway 
 amf-https-gateway{context.root}/amfgateway/amf-https-gateway
 allow-url-overridefalse/allow-url-override
 
/remote-objects

---

Does Not Work: :( - - 

Services.mxml 2
cairngorm:ServiceLocator xmlns:mx=http://www.macromedia.com/2003/mxml 
  
  
  
xmlns:cairngorm=http://www.iterationtwo.com/cairngorm

 mx:RemoteObject id=loginService named=usersService
  
   
protocol=http
  
   
showBusyCursor=true
  
   
result=event.call.resultHandler( event )
  
   
fault=event.call.faultHandler( event )
 /mx:RemoteObject
 
   mx:RemoteObject id=ownersService named=ownersService
  
   
protocol=http
  
   
showBusyCursor=true
  
   
result=event.call.resultHandler( event )
  
   
fault=event.call.faultHandler( event )
 /mx:RemoteObject


/cairngorm:ServiceLocator

Flex-Config.mxml 2
remote-objects


whitelist

  named
  
   object name=usersService

  
sourcewwwroot.myDomain.model.user.usersService/source
typestateless-class/type
   /object
   
   object name=ownersService

  
sourcewwwroot.myDomain.model.owner.ownersService/source
typestateless-class/type
   /object
   
  /named
 /whitelist

 amf-gateway{context.root}/amfgateway/amf-gateway 
 amf-https-gateway{context.root}/amfgateway/amf-https-gateway
 allow-url-overridefalse/allow-url-override

/remote-objects

Dave









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] CFlogin, SetCredentials and the RemoteObject

2005-05-27 Thread dave buhler



Hi Peter,

MX 7 installed on JRun4

DaveOn 5/27/05, Peter Farland [EMAIL PROTECTED] wrote:







What version of CF are you using 
Dave?


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of dave 
buhlerSent: Friday, May 27, 2005 10:36 AMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] CFlogin, 
SetCredentials and the RemoteObject
Thanks!
On 5/27/05, Indy 
Nagpal [EMAIL PROTECTED] 
wrote:
Yes, 
  I think that is the logic behind named objects.On 5/27/05, dave 
  buhler [EMAIL PROTECTED] 
  wrote:Interesting...So if I 
  use the named remote objects in the flex-config file, the paths to  
  the CFCs aren't visible?I should use a decompiler 
  on my own app to see, but I had assumed the paths would be 
  compiled.Dave On 5/26/05, 
  Indy Nagpal  [EMAIL PROTECTED] 
  wrote:   Have you looked at creating named 
  remoteobjects? That way even though  the methods might be visible 
  in the decompiler, but path to the actual   cfc won't be. 
Hmm... regarding your swf file finally being part of cfm 
  page... I've  find myself more comfortable with standalone flex 
  apps (that  interact with CF through remoteobject) rather and flex 
  apps embedded   in cfm pages. I find debugging quite painful when 
  a flex app is embbed  in a cfm page.   
  Indy   On 5/27/05, dave buhler  [EMAIL PROTECTED] 
  wrote:  I was debating if I should have my login 
  page exist within HTML or as a   sep., stand alone MXML 
  page.I mention it because I'm 
  pretty sure the CFC method names and service  names   
  would be visible to a decompiler and thus, visible to any user who 
  stumbles   across the Flex Admin system or has just simple 
  access to the Login screen,   if the login is part of 
  the overall Admin SWF.
  Ultimately, my MXML will be a CFM page and I was going to only 
  show the   Flex SWF if the session is valid, otherwise, kick 
  them back to the sep.login page.   
   Any thoughts?
  Dave   On 
  5/25/05, Indy Nagpal  
  [EMAIL PROTECTED] wrote:   
  Hi Dave:   Here is my setup, I 
  don't know if this helps.   I have 
  a CF application where users need to login. Once they 
  successfully plug in their username and password, their session is 
 setup (I'm using jessionid). I have a cfc (with relevant 
  functions forlogin/logout) that is used for 
  authenticating users and setting up session. 
I call that cfc as remoteobject, firing 
  the login function in the cfc,passing it the username 
  and password. If the login is successful, the session 
  for the user is setup and all is sweet. I can access the   
   user's session info through the same cfc (i have a function that 
 returns their session structure Flex. And my Flex code can then 
  look at the session object of the user and do what it 
  needs to.   I think the key for 
  you would be to get jsessionid going, along withusing 
  functions within a cfc to validate the user and return user's   
session (or any other value that you want to return to 
  flex).   Indy   

  On 5/26/05, dave buhler [EMAIL PROTECTED] wrote: 
 Hi Indy, 
 I understand setting up perhaps the username 
  and password as a  session 
  variable.
  Can you show me an example of how you are passing over the 
  username and password in the remote 
  object? I can see adding it as something like  the   
following on each request:  
service.getKittens(loginVO,kittensVO)  
...but was wondering if 
  there was another method that is used  directly   
  with the remote object configuration.  
Dave   
On 5/24/05, Indy Nagpal  [EMAIL PROTECTED]  wrote:  
  Hi Dave:   
  I've never tried using RemoteObject with cflogin, but 
  RemoteObject   works very nicely with CF 
  session variables, so it should be able to 
   pass that information to your application. To get it to work with 
   session variables, I was using CF and Flex on the 
  same server, and  had  turned on 
  jsessionid (in CF Admin).
 Indy 
On 5/23/05, dave buhler  [EMAIL PROTECTED]  
  wrote:  Does the RemoteObject 
  permit the passing of a username and password   
  to a
  CFLogin tag? I want to create an instance of NetConnection and  
   include   
  setCredentials(username,password) to pass over to
  my remote   
  object for a valid user check on each request. If it's not 
  supported   in   Flex, 
  does anyone have any suggestions so that we can ensure a  
  valid   username and password is part of 
  each remote CFC request.
  Best,  
   mx.controls.Alert.show('Dave') 
 
   
   Yahoo! Groups Links   
   
  To visit your group on the web, go to:   
  http://groups.yahoo.com/group/flexcoders/ 
  
   To unsubscribe from

Re: [flexcoders] Resizing SWFs in mx:Loader

2005-05-27 Thread dave buhler



Hi Tim,

You're using an image component, and not a loader component.

Once you change to a loader component, you can do the following:

I get the size of the SWF being loaded into the loader component and
then resize the loader component to the size of the contents. By doing
so, I can control the surrounding objects, too, if need be. We had
built a much more complicated app in Flash with a loader component that
needed its own resize engine for layouts. Here's pseudo-code:

//load swf controls go here.

// get size of contents
  loaderHeight = media_ldr.content._height
  loaderWidth = media_ldr.content._width
  //
  media_ldr.setSize(loaderWidth,loaderHeight);

Dave








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] CFlogin, SetCredentials and the RemoteObject

2005-05-27 Thread dave buhler



Hi Peter,

I'm assuming the CFC is the object?

What are the benefits of registering the named objects in the gateway-config file?
Is there an informal list of best-practices for security when working
with remoting? I would understand if MM couldn't comment on suggesting
best practices for security.

Dave
On 5/27/05, Peter Farland [EMAIL PROTECTED] wrote:







Ok. I believe you can register named objects for CFCs in 
CFMX 7's copy of gateway-config.xml asit shares essentially the same code 
as Flex 1.5's gateway- (though note this would be a Flex concept being 
introduced into a CF/Flash Remoting world)let me know if you are having 
any difficulties.


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of dave 
buhlerSent: Friday, May 27, 2005 3:03 PMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] CFlogin, 
SetCredentials and the RemoteObject
Hi Peter,MX 7 installed on JRun4Dave
On 5/27/05, Peter 
Farland [EMAIL PROTECTED] 
wrote:

  What 
  version of CF are you using Dave?
  
  
  From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of dave 
  buhlerSent: Friday, May 27, 2005 10:36 AMTo: flexcoders@yahoogroups.com
Subject: Re: 
  [flexcoders] CFlogin, SetCredentials and the RemoteObject
  
  Thanks!
  On 5/27/05, Indy 
  Nagpal [EMAIL PROTECTED] 
  wrote: 
  Yes, 
I think that is the logic behind named objects.On 5/27/05, 
dave buhler [EMAIL PROTECTED] 
wrote:Interesting...So if I 
use the named remote objects in the flex-config file, the paths to  
the CFCs aren't visible?I should use a 
decompiler on my own app to see, but I had assumed the paths would 
be compiled.Dave On 
5/26/05, Indy Nagpal  [EMAIL PROTECTED] 
wrote:   Have you looked at creating named 
remoteobjects? That way even though  the methods might be 
visible in the decompiler, but path to the actual   cfc won't 
be.   Hmm... regarding your swf file finally being 
part of cfm page... I've  find myself more comfortable with 
standalone flex apps (that  interact with CF through 
remoteobject) rather and flex apps embedded   in cfm pages. I 
find debugging quite painful when a flex app is embbed  in a cfm 
page.   Indy   On 5/27/05, 
dave buhler  
[EMAIL PROTECTED] wrote:  I was 
debating if I should have my login page exist within HTML or as a 
  sep., stand alone MXML page.
I mention it because I'm pretty sure the CFC method names 
and service  names   would be visible to a 
decompiler and thus, visible to any user who stumbles  
 across the Flex Admin system or has just simple access to the 
Login screen,   if the login is part of the overall 
Admin SWF.Ultimately, my 
MXML will be a CFM page and I was going to only show the   
Flex SWF if the session is valid, otherwise, kick them back to the sep. 
   login page.
Any thoughts?
Dave   
On 5/25/05, Indy Nagpal  [EMAIL PROTECTED] 
wrote:   Hi Dave:  
 Here is my setup, I don't know if this 
helps.   I have a CF application 
where users need to login. Once they successfully 
plug in their username and password, their session is
setup (I'm using jessionid). I have a cfc (with relevant functions 
forlogin/logout) that is used for authenticating 
users and setting up session.   
I call that cfc as remoteobject, firing the 
login function in the cfc,passing it the username 
and password. If the login is successful, the 
session for the user is setup and all is sweet. I can access the 
   user's session info through the same cfc (i have a function 
thatreturns their session structure Flex. And my 
Flex code can then look at the session object of the 
user and do what it needs to.   
I think the key for you would be to get jsessionid going, along with 
   using functions within a cfc to validate the user and return 
user's session (or any other value that you want to 
return to flex).   Indy 
  
  On 5/26/05, dave buhler [EMAIL PROTECTED] wrote:
Hi Indy,
I understand setting up perhaps the username and password as 
a  session variable.   
 Can you show me an example 
of how you are passing over the username and
 password in the remote object? I can see adding it as something like 
 the following on each request: 
   
service.getKittens(loginVO,kittensVO)
...but was wondering if there 
was another method that is used  directly   
with the remote object configuration. 
   Dave  
   On 5/24/05, Indy Nagpal  [EMAIL PROTECTED]  
wrote:  Hi Dave: 
  I've never tried using RemoteObject 
with cflogin, but RemoteObject   works very 
nicely with CF session variables, so it should be able

Re: [flexcoders] CFlogin, SetCredentials and the RemoteObject

2005-05-26 Thread dave buhler



I was debating if I should have my login page exist within HTML or as a sep., stand alone MXML page.

I mention it because I'm pretty sure the CFC method names and service
names would be visible to a decompiler and thus, visible to any user
who stumbles across the Flex Admin system or has just simple access to
the Login screen, if the login is part of the overall Admin SWF.

Ultimately, my MXML will be a CFM page and I was going to only show the
Flex SWF if the session is valid, otherwise, kick them back to the sep.
login page.

Any thoughts?

DaveOn 5/25/05, Indy Nagpal [EMAIL PROTECTED] wrote:
Hi Dave:Here is my setup, I don't know if this helps.I have a CF application where users need to login. Once theysuccessfully plug in their username and password, their session issetup (I'm using jessionid). I have a cfc (with relevant functions for
login/logout) that is used for authenticating users and setting upsession.I call that cfc as remoteobject, firing the login function in the cfc,passing it the username and password. If the login is successful, the
session for the user is setup and all is sweet. I can access theuser's session info through the same cfc (i have a function thatreturns their session structure Flex. And my Flex code can then lookat the session object of the user and do what it needs to.
I think the key for you would be to get jsessionid going, along withusing functions within a cfc to validate the user and return user'ssession (or any other value that you want to return to flex).Indy
On 5/26/05, dave buhler [EMAIL PROTECTED] wrote:Hi Indy,I understand setting up perhaps the username and password as a session
 variable.Can you show me an example of how you are passing over the username and password in the remote object? I can see adding it as something like the following on each request:
service.getKittens(loginVO,kittensVO)...but was wondering if there was another method that is used directly with the remote object configuration.Dave
 On 5/24/05, Indy Nagpal [EMAIL PROTECTED] wrote:  Hi Dave:   I've never tried using RemoteObject with cflogin, but RemoteObject  works very nicely with CF session variables, so it should be able to
  pass that information to your application. To get it to work with  session variables, I was using CF and Flex on the same server, and had  turned on jsessionid (in CF Admin). 
  Indy   On 5/23/05, dave buhler [EMAIL PROTECTED]  wrote:  Does the RemoteObject permit the passing of a username and password to
 a   CFLogin tag? I want to create an instance of NetConnection and include   setCredentials(username,password) to pass over to my remote   object for a valid user check on each request. If it's not supported in
   Flex, does anyone have any suggestions so that we can ensure a valid   username and password is part of each remote CFC request.Best,  
mx.controls.Alert.show('Dave')  Yahoo! Groups Links   To visit your group on the web, go to:
   http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:   
[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.  
   Yahoo! Groups Links   Yahoo! Groups Links
 To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.Yahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] file handling

2005-05-26 Thread dave buhler



As in, the user can upload an MP3 file through Flex?On 5/26/05, Drew Falkman [EMAIL PROTECTED] wrote:
Is there any moderately simple way to do file handling on the client (e.g.to prompt for a user to save a file, such as an mp3)?
TIA.Drew FalkmanVeraison, LLCYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] CFlogin, SetCredentials and the RemoteObject

2005-05-26 Thread dave buhler



Interesting...

So if I use the named remote objects in the flex-config file, the paths to the CFCs aren't visible?

I should use a decompiler on my own app to see, but I had assumed the paths would be compiled.

DaveOn 5/26/05, Indy Nagpal [EMAIL PROTECTED] wrote:
Have you looked at creating named remoteobjects? That way even thoughthe methods might be visible in the decompiler, but path to the actualcfc won't be.Hmm... regarding your swf file finally being part of cfm page... I've
find myself more comfortable with standalone flex apps (thatinteract with CF through remoteobject) rather and flex apps embeddedin cfm pages. I find debugging quite painful when a flex app is embbed
in a cfm page.IndyOn 5/27/05, dave buhler [EMAIL PROTECTED] wrote:I was debating if I should have my login page exist within HTML or as a
 sep., stand alone MXML page.I mention it because I'm pretty sure the CFC method names and service names would be visible to a decompiler and thus, visible to any user who stumbles across the Flex Admin system or has just simple access to the Login screen,
 if the login is part of the overall Admin SWF.Ultimately, my MXML will be a CFM page and I was going to only show the Flex SWF if the session is valid, otherwise, kick them back to the sep.
 login page.Any thoughts?Dave On 5/25/05, Indy Nagpal [EMAIL PROTECTED] wrote:   Hi Dave:
   Here is my setup, I don't know if this helps.   I have a CF application where users need to login. Once they  successfully plug in their username and password, their session is
  setup (I'm using jessionid). I have a cfc (with relevant functions for  login/logout) that is used for authenticating users and setting up  session.   I call that cfc as remoteobject, firing the login function in the cfc,
  passing it the username and password. If the login is successful, the  session for the user is setup and all is sweet. I can access the  user's session info through the same cfc (i have a function that
  returns their session structure Flex. And my Flex code can then look  at the session object of the user and do what it needs to.   I think the key for you would be to get jsessionid going, along with
  using functions within a cfc to validate the user and return user's  session (or any other value that you want to return to flex).   Indy   
   On 5/26/05, dave buhler [EMAIL PROTECTED] wrote:  Hi Indy,I understand setting up perhaps the username and password as a session
   variable.Can you show me an example of how you are passing over the username and   password in the remote object? I can see adding it as something like the
   following on each request:service.getKittens(loginVO,kittensVO)...but was wondering if there was another method that is used directly
 with   the remote object configuration.Dave On 5/24/05, Indy Nagpal [EMAIL PROTECTED]
 wrote:Hi Dave:   I've never tried using RemoteObject with cflogin, but RemoteObjectworks very nicely with CF session variables, so it should be able to
pass that information to your application. To get it to work withsession variables, I was using CF and Flex on the same server, and hadturned on jsessionid (in CF Admin).
   Indy   On 5/23/05, dave buhler [EMAIL PROTECTED]  wrote:Does the RemoteObject permit the passing of a username and password
 to   a CFLogin tag? I want to create an instance of NetConnection and include setCredentials(username,password) to pass over to my
   remote object for a valid user check on each request. If it's not supported in Flex, does anyone have any suggestions so that we can ensure a valid
 username and password is part of each remote CFC request.Best, mx.controls.Alert.show('Dave')
Yahoo! Groups Links To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
 Yahoo! Groups Links   
  Yahoo! Groups Links   To visit your group on the web, go to:
   http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:   
[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.  
   Yahoo! Groups Links   Yahoo! Groups Links
 To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.Yahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups

Re: [flexcoders] CFlogin, SetCredentials and the RemoteObject

2005-05-25 Thread dave buhler



Hi Indy,

I understand setting up perhaps the username and password as a session variable.

Can you show me an example of how you are passing over the username and
password in the remote object? I can see adding it as something like
the following on each request:

service.getKittens(loginVO,kittensVO)

...but was wondering if there was another method that is used directly with the remote object configuration.

DaveOn 5/24/05, Indy Nagpal [EMAIL PROTECTED] wrote:
Hi Dave:I've never tried using RemoteObject with cflogin, but RemoteObjectworks very nicely with CF session variables, so it should be able topass that information to your application. To get it to work with
session variables, I was using CF and Flex on the same server, and hadturned on jsessionid (in CF Admin).IndyOn 5/23/05, dave buhler [EMAIL PROTECTED]
 wrote:Does the RemoteObject permit the passing of a username and password to a CFLogin tag? I want to create an instance of NetConnection and include setCredentials(username,password) to pass over to my remote
 object for a valid user check on each request. If it's not supported in Flex, does anyone have any suggestions so that we can ensure a valid username and password is part of each remote CFC request.
Best,mx.controls.Alert.show('Dave')Yahoo! Groups Links To visit your group on the web, go to: 
http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED]
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.Yahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] how to use the setInterval() in flex actionscript ?

2005-05-25 Thread dave buhler




 Abdul Qabiz
[EMAIL PROTECTED] to flexcoders
More optionsApr 23

Hi,
However, I'm still unable to do the following:Call a setInterval within a class. Have the setInterval pass over a
number. And the function called increment that number. Pass this newnumber to a textfield object.If I call:setInterval(this,somefunction, 1000, 5)
function somefunction ( e : Number) { e++mx.controls.Alert.show(e)// shows 6}
I think, it would trace 6 repeatedly over the interval. And I feel that
there is no reason it won't work.

I just created a sample to verify if my feelings are right :)

This sample is demonstrating setInterval(..) inside a class. Look at the
attached files or code later in this mail.

Hope that helps...

-abdul


1) ##Counter.as##

import mx.core.UIObject;

[Event(start)]
[Event(increment)]
[Event(stop)]

class Counter extends UIObject
{

  var counterIntervalId:Number;
  var __delay:Number = 50;
  var __min:Number = 0;
  var __max:Number = 100;
  var __count:Number = 0;
  var running:Boolean = false;

  function Counter(delay:Number, min:Number, max:Number)
  {

__min = min ? min : 0;
__max = max ? max : 100;
__delay = delay ? delay : 50;
  }

  function startCounter():Void
  {

__count = 0;
running = true;
dispatchEvent({type:start});
 counterIntervalId = setInterval(this,incrementCou
nt, __delay,__min);//you can also do this://counterIntervalId =setInterval(mx.utils.Delegate.create(this,incrementCount), __delay, __min);
  }  function incrementCount(num):Void  { if(__count  __max) {   //un-comment the following to see setInterval
(..) passes samenumber agian and again  // mx.controls.Alert.show(num.toString());  __count++;  dispatchEvent({type:increment}); } else
 {   stopCounter(); }  }  function stopCounter():Void  {clearInterval(counterIntervalId);__count = 0;running = falsedispatchEvent({type:stop});
  }  function get min():Number  {return __min;  }  function set min(newValue:Number):Void  {__min = newValue;  }  function get max():Number
  {return __max;  }  function set max(newValue:Number):Void  {__max = newValue;  }  function get value():Number  {return __count;  }}
2) ##setIntervalExample.mxml##?xml version=1.0 encoding=iso-8859-1?mx:Application width=800 height=600xmlns:mx=
http://www.macromedia.com/2003/mxml initialize=onAppInit()  mx:Script![CDATA[  import Counter;  import mx.utils.Delegate;
  var counter:Counter;  function onAppInit()  {counter = new Counter();changeLimit();counter.addEventListener(start, 
Delegate.create(this,onCounterStart));counter.addEventListener(increment, Delegate.create(this,onCounterIncrement));counter.addEventListener(stop, Delegate.create
(this,onCounterStop));  }  function onCounterStart(event)  {_ta.text +=Counter started..\n;  }  function onCounterIncrement(event)
  {_ta.text += event.target.value + \n;  }  function onCounterStop(event)  {_ta.text += Counter stopped...\n;
  }  function changeLimit()  {counter.min = slider.values[0];counter.max = slider.values[1];  }]]
  /mx:Script  mx:HBoxmx:Label text=Count:/mx:TextArea id=_ta width=300height=150 /  /mx:HBox  mx:HBox
mx:Button label=Start Counter click=counter.startCounter();enabled={!counter.running}/mx:Button label=Stop Counter click=counter.stopCounter
();enabled={counter.running}/  /mx:HBox  mx:HSlider id=slidertoolTipPlacement=topthumbCount=2
labels=['min', 'max']values=[0, 100]snapInterval=1change=changeLimit();allowTrackClick=true
maximum=1000minimum=0//mx:Application
On 5/25/05, Erik Westra [EMAIL PROTECTED] wrote:
The documentation seems not correct here:setInterval(objectName:Object, methodName:Function, interval:Number [,param1:Object, param2, ..., paramN]) : NumberI thought methodName should be of type string when using an object as
1th parameter.Greetz Erik-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com
] OnBehalf Of loveewindSent: woensdag 25 mei 2005 13:52To: flexcoders@yahoogroups.comSubject: [flexcoders] how to use the setInterval() in flex actionscript
?the code run normally in swf,ActionScript:function checkOut(){ TextToCheck = spellCheck_txt.text; url_string = _javascript_:SpellCheck();; getURL(url_string, );
 checkOut_interval = setInterval(function () {if (spellResult != undefined){ spellCheck_txt.text = spellResult; clearInterval(checkOut_interval);
} // end if }, 100);}and how to use setInterval() in flex actionscriptas referred in flex actionscript reference:setInterval(functionName:Function, interval:Number [, param1:Object,
param2, ..., paramN]) : Number setInterval(objectName:Object,methodName:Function, interval:Number [, param1:Object, param2, ...,paramN]) : Number Parameters 

Re: [flexcoders] Cairngorm error

2005-05-25 Thread dave buhler



I had to do the same as Jimmy. When I started from a clean install (after uninstalling Flex Server) the app worked.On 5/25/05, Dimitrios Gianninas 
[EMAIL PROTECTED] wrote:







Humm weird... I just did a 
fresh install of Flex 1.5 under Tomcat 5.1 and used the flex-config.xml you 
posted and it worked!

Perhaps you should start from 
scratch as I did, just create a Hello World app, make sure it works and if it 
does, then add in your other files.
You must have some corrupt file 
somewhere that is causing you that trouble.

Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 25, 2005 6:54 PMTo: 
'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm 
error

Here it is


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios 
GianninasSent: Wednesday, May 25, 2005 3:51 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm 
error

Ahh, that has nothing to do 
with the Cairngorm manifest... I looked to quickly at the previous 
error.

Can you attach your 
flex-config.xml so we can take a look at what might be wrong with it. Seems like 
the mxml-manifest can't be found.

Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 25, 2005 6:49 PMTo: 
'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm 
error

Nope, didn't work

let me paste the entire exception info



Compilation 
Results  Errors, warnings or 
exceptions were found while compiling /internet/ourpeople/index.mxml. Visit 
the online Flex documentation or 
API reference for further information. 

5 Errors found. Error /com/littler/ourpeople/business/Services.mxml:11 

Namespace http://macromedia.com/2003/mxml has not been 
associated with component manifest.Error 
/com/littler/ourpeople/business/Services.mxml:11 

Don't know how to parse element 
http://macromedia.com/2003/mxml:RemoteObject. It is not a known type or a 
property of org.nevis.cairngorm.business.ServiceLocator.Error /internet/ourpeople/index.mxml:11 

Don't know how to parse element 
com.littler.ourPeople.business.*:Services. It is not a known type or a 
property of mx.core.Application.Error /internet/ourpeople/index.mxml:12 

Don't know how to parse element 
com.littler.ourPeople.Control.*:OurPeopleController. It is not a known type or 
a property of mx.core.Application.Error 
/internet/ourpeople/index.mxml:19 

Don't know how to parse element 
http://www.macromedia.com/2003/mxml:Canvas. It is not a known type or a 
property of mx.core.Application.





From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios 
GianninasSent: Wednesday, May 25, 2005 1:20 PMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm 
error

Ok the cairngorm-manifest.xml 
file is there, which is good.

I made a mistake in the earlier 
post (blame copy'n'paste), the entry should look like this (missing 
double-quotes):

namespace uri=
http://www.iterationtwo.com/cairngorm 
manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace

Can you let us 
know if that works?

Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 25, 2005 1:37 PMTo: 
'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm 
error

here's the flex-config file and the content of web-inf/flex 
folder:

/web-inf/flex/
 frameworks
 frameworks-debug
 generated
 jars
 logs
 system_classes
 user_classes
 cache.dep
 cairngorm-manifest.xml
 flash-unicode-table.xml
 flex-config.xml
 gateway-config.xml
 global.css
 license.properties
 mxml-manifest.xml

hope that helps figuring out the 
problem

Thanks


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios 
GianninasSent: Wednesday, May 25, 2005 1:08 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm 
error


Hi,

You must add the appropriate 
entry for the cairngorm-manifest.xml in the flex-config.xml (portion in red 
below):

namespace uri=
http://www.macromedia.com/2003/mxml 
manifest/WEB-INF/flex/mxml-manifest.xml/manifest/namespace
namespace 
uri=http://www.iterationtwo.com/cairngorm
 
manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace

This explains the 
error message. If it still doesn't work, please 
post you flex-config so we can take a look and please let us know what are the 
contents of the {server}\WEB-INF\flex 
folder.

Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: Mehdi, Agha [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 24, 2005 10:50 PMTo: 
'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] Cairngorm 
error

Did that just now. Same error. I restarted flex services 
but didn't work.


From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of dave 
buhlerSent: Tuesday, May 24, 2005 7:43 PMTo: 

Re: [flexcoders] Making a page with a video clip

2005-05-24 Thread dave buhler



Yes, the MediaPlayback and MediaDisplay only support one type of video file. it has to be an FLV file.

You can use any file format you want such as the following video types:
WMV, AVI, MPEG as the video type. You then need to convert one of the
aforementioned video types to an FLV. You can use a wide variety of
products to do this conversion. A popular conversion tool is Soresnon
Squeeze available at www.sorenson.com

A web cam is one tool used to create video files. So is a digital camera.

On 5/24/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:






One of the sample pages has a clip on it and its written like this
?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

 mx:MediaPlayback width=300 height=300 contentPath=../assets/clip.flv controllerPolicy=on/

/mx:ApplicationWhat I want to know is does the
file that it plays have to be a flv file and if so is there a way to
say convert a WMV file to a flv file or to do the same thing with an rm
file? If not how do I make a video that is going to be a flv file I
mean do I use a camera what do I use? I am asking because video has
always impressed me and I want to know how to do it for anything I do
in the future involving flex?







Yahoo! Groups Links

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

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Cairngorm error

2005-05-24 Thread dave buhler



Hi Agha,

Copy the Flex-Config file from the source files that came with either
the Login sample or Store sample that came with the cairngorm
download.Copy it over your existing Flex-Config file

Best,
DaveOn 5/24/05, Mehdi, Agha [EMAIL PROTECTED] wrote:









Hi 
guys,

I just 
started with Cairngorm 0.99 and am running into the following error. Did 
everything by the book. Any help will earn my thanks. :)

Error /com/littler/ourpeople/business/Services.mxml:11 

Namespace http://macromedia.com/2003/mxml has not been 
associated with component manifest.

- Agha 
Mehdi web developer Littler Mendelson 
P.C. work: 415-288-6362 cell: 415-987-7104
 - 








Yahoo! Groups Links

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

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

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










This email may contain confidential and privileged material for the
sole use of the intended recipient(s). Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the
intended recipient (or authorized to receive for the recipient), please
contact the sender by reply email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.com












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Saving a Flex chart as a jpeg file

2005-05-24 Thread dave buhler



http://www.convertzone.com/net/cz-adshareit%20swf%20to%20video%20converter%20pro-swf-jpg.htm
On 5/24/05, greenfishinwater [EMAIL PROTECTED] wrote:
I have a request for an application that presents data as variouskinds of charts and graphs. The user would like thye ability to savespecific charts as a jpeg, for later use in a powerpoint slide.Is this possible, I have a feeling it is not, I know how to print out,
but to save as a jpeg?AndrewYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Loading CSS dynamically at runtime?

2005-05-23 Thread dave buhler



I would guess MM chose to force users to set the styles as a sep. AS
file (which I think is how css values are converted) at compile time
rather than slow down the user's box with setStyle() at runtime.
setStyle() is extraordinarily CPU intensive. I could be wrong. I'm
diggin' back into memory for this one.

On 5/23/05, Manish Jethani [EMAIL PROTECTED] wrote:
On 5/23/05, Richard Butler [EMAIL PROTECTED] wrote: Has anyone tried loading in a CSS stylesheet dynamically at runtime, or know how it could be done? The only way I can think of is using the good
 old Flash way using TextField.StyleSheet's parseCSS() and then doing a few loops, but is there a more up-to-date method within Flex?Yes, styles specified in the Style tag are compiled into the SWF.As
far as I know, the only way to set styles at runtime is to use thesetStyle() method.See this thread:http://www.mail-archive.com/flexcoders@yahoogroups.com/msg04682.html
Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Double clicking on a datagrid

2005-05-23 Thread dave buhler



Devis,

There is no doubleClick event in Flex components, but it's quite simple to
implement this. If you look at the flexcoders archive, there has been
discussion on the same.

I could find this thread regarding Double-Click:

http://www.mail-archive.com/flexcoders@yahoogroups.com/msg01391.html



You can find more at:

http://www.mail-archive.com/flexcoders%40yahoogroups.com/
-abdul

- Show quoted text --Original Message-From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]Sent: Wednesday, April 20, 2005 12:36 PMTo: Flex Coders
Subject: [flexcoders] DataGrid doublelclickHi,i'm not find documentation about  double click cell press event intoDataGrid?It's possibile please.Thank you in advance.Devis
Yahoo! Groups LinksYahoo! Groups Links* To visit your group on the web, go to:  
http://groups.yahoo.com/group/flexcoders/* 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/

 ReplyForward
Invite Abdul to Gmail










 
[EMAIL PROTECTED]to flexcodersMore options
Apr 20ok thankdevisAbdul Qabiz ha scritto:
- Show quoted text -Devis,There is no doubleClick event in Flex components, but it's quite simple toimplement this. If you look at the flexcoders archive, there has been
discussion on the same.I could find this thread regarding Double-Click:
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg01391.htmlYou can find more at:
http://www.mail-archive.com/flexcoders%40yahoogroups.com/-abdul-Original Message-From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]Sent: Wednesday, April 20, 2005 12:36 PM
To: Flex CodersSubject: [flexcoders] DataGrid doublelclickHi,i'm not find documentation about  double click cell press event intoDataGrid?It's possibile please.
Thank you in advance.DevisYahoo! Groups LinksYahoo! Groups Links
Yahoo! Groups Links* To visit your group on the web, go to:  
http://groups.yahoo.com/group/flexcoders/* 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/ 
ReplyForwardInvite [EMAIL PROTECTED]
 to Gmail







 kaibabsowats
[EMAIL PROTECTED] to flexcoders
More optionsApr 20


Here is an example of a DoubleClickTree should be pretty easy to
convert over to a DataGrid:

#65279;[Event(doubleClick)]
class com.mason.core.components
.DoubleClickTree extendsmx.controls.Tree {var lastClick = 0;var dbLastSelected:Object;var dClick = false;// Required for Delegate.import 
mx.utils.Delegate;function DoubleClickTree() {addEventListener(change,_doubleClick);}function _doubleClick( event ) {checkDblClick( 
this.selectedNode );if( this.getIsBranch( this.selectedNode )  dClick ) {
 
 this.setIsOpen( this.selectedNode, (( this.getIsOpen(this.selectedNode ) ) ? false : true), true, true);}if( !this.getIsBranch( this.selectedNode )  dClick ) {
 dispatchEvent({ type: doubleClick });}}private function checkDblClick(s) {var clickTime = getTimer();

   dClick =
((clickTime-lastClick300)  (dbLastSelected == s));lastClick = clickTime;dbLastSelected = s;}}
On 5/23/05, dillo_mac [EMAIL PROTECTED] wrote:
Hello folks, I'm looking to implement a double click method on adatagrid. I have searched high and low on the web and seem to have runinto a dead end. Is this even possible to implement with flex? Anyhelp would be greatly appreciated.
Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] What is Compiled from the Flex-Config

2005-05-22 Thread dave buhler



When I configure my Flex-Config.xml file, what from that file gets
compiled into the SWF that is stored on the client (stored in
cache)?

Dave










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] CFlogin, SetCredentials and the RemoteObject

2005-05-22 Thread dave buhler



Does the RemoteObject permit the passing of a username and password to
a CFLogin tag? I want to create an instance of NetConnection and
include setCredentials(username,password) to pass over to my remote
object for a valid user check on each request. If it's not supported in
Flex, does anyone have any suggestions so that we can ensure a valid
username and password is part of each remote CFC request.

Best,
mx.controls.Alert.show('Dave')








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Question about the flex samples

2005-05-22 Thread dave buhler



The store example that is part of Cairngorm .99 may serve your purposes
and demonstrates best practice :) (or at the very least, much, much
better than my practice).On 5/22/05, Matt Chotin [EMAIL PROTECTED] wrote:

















Hi, you are welcome to use the samples as
a basis of your code. However I will say if you're building an app of
substance we are not necessarily saying that all apps provided demonstrate best
practice. But if it fits your needs feel free to take what you need J












From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of [EMAIL PROTECTED]
Sent: Friday, May 20, 2005 11:23
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question
about the flex samples








http://localhost:8700/samples/flexstore/flexstore.mxml?versionChecked=true





I have a question about this webpage and others in the
samples folder. I hope this is not a silly quesiton but is it ok to use the
sample files as a template to make other webpages? In other words alter the
data to fit your needs is that ok?














Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] deserialization bug: constructor runs AFTER properties are populated

2005-05-20 Thread dave buhler



As a point of reference:

Many of us use GMail and create a FlexCoders label to store all list information.

Gmail is highly searchable, groups threads by Subject line, and with
2GB of storage, can store the List's threads for years to come.

I search my FlexCoders label before I post a question and many times, as an alternative to liveDocs.

Best,
DaveOn 5/20/05, Joe Berkovitz [EMAIL PROTECTED] wrote:
Peter,I am sure that it's not a bug if you say it's not, but it should beclearly documented since it runs counter to the expectations of typicalOOP behavior.I read the Flex docs on object conversion back and forth
several times and I find no mention there.It is very difficult and awkward to search the Yahoo Groups archives,but I did actually search my own copy of the mailings which goes back afew months to when I joined the mailing list.I guess the discussion
must have been prior to that point.. ... ...jPeter Farland wrote: Actually, this is not a bug and is by design as per the Flash Player's handling of any object deserialization (LSO, AMF, etc).
 We discussed this on the list a few months ago... is it easy to search the archives for past messages (I admit I've not done it to date). Pete -Original Message-
 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Joe Berkovitz Sent: Friday, May 20, 2005 1:53 PM
 To: flexcoders@yahoogroups.com Subject: [flexcoders] deserialization bug: constructor runs AFTER properties are populated I just found to my surprise and chagrin that when a typed AMF object is
 deserialized on the client, the constructor for the object is run *after* the object's properties have been populated from the input stream.So if one innocently thinks that a constructor ought to be able
 to initialize various properties of the new object, well, this initialization clobbers any deserialized values of those properties. Macromedia support is entering this into their bug DB, but I thought
 this was worth alerting folks to.Obviously there's an easy workaround, which is to not do any initialization in constructors (or, if you do, make sure that the properties actually are undefined before setting
 them). . ... ...j P.S. note that this is totally different from a prior thread that concerned constructors with arguments.That is unsafe because the args will be undefined at deserialization time.Here the issue is the
 *timing* of the constructor call, not its argument values. Yahoo! Groups Links Yahoo! Groups Links
Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] multiple threads?

2005-05-20 Thread dave buhler



No.

You can change the timeout length from the default 15 seconds, though.

see : http://mxblogspace.journurl.com/index.cfm?fa=rdm=1384

Your best option, though, is to let the server peform a long, complicated process, and not the client.

If you're filtering a lot of data, you can limit the result-set and give the user the option of paging results.

On 5/20/05, sanjayd [EMAIL PROTECTED] wrote:
Hi all.Is there a way to create multiple threads in ActionScript, I have atimeconsuming client-side task that I'd like to get done in asecondary thread ..any ideas ?Thanks in advance. Sanjay
Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Web Services and CF7

2005-05-19 Thread dave buhler



from: http://forta.com/blog/index.cfm?mode=ccatid=11



		
		

		Using Flash Remoting With CFMX7? Watch Out For This One I mentioned this in a comment on a prior post
,
but it is important enough to warrant its own mention. If you are using
Flash Remoting to access ColdFusion code, you may run into an issue in
which ColdFusion could construct an invalid URL when appending a
jsessionid. If this occurs the web server via which you are accessing
your code could throw errors. The solution is simply, just add a ? To
the end of the gateway URL, change /flashservices/gateway to
/flashservices/gateway?, doing so ensures that the URL will be created
correctly. This issue was discovered by our tech support folks, and I
believe they'll be posting a TechNote on it shortly. 





CFC Results Via AMF And Case Inconsistencies

I just spent a long time troubleshooting a Flex ColdFusion connectivity
issue, and now that we've figured out what was going on I am sharing
this in case it bites anyone else.
There are
two basic ways for Flex to invoke back-end ColdFusion CFCs, SOAP (Web
Services) or AMF (Flash Remoting). My app had been using SOAP, but I
needed to convert to AMF (the performance difference is significant).
Last year Brandon Purcell wrote an excellent blog entry entitled Switching between webservices and Flash Remoting using Flex
,
and so I used his steps to make the switch. As he notes in that entry,
ColdFusion variables returned via SOAP have their names converted to
uppercase, whereas variables returned via AMF retain their original
case, and so any binding code (or Flex code referencing returned data)
needs to be converted from all caps to actual case.
The
converted code worked perfectly for CFC methods returning queries, they
ran exactly as they did before, just a whole lot quicker. But my CFC
methods returning structures all failed, none of my bindings and
client-side code worked.
The problem?
Waldo Smeets figured this one out, unlike returned queries, returned
structure members are all caps, even when using AMF. This is horribly
inconsistent, and hopefully it'll be fixed in the future. For now, keep
this in mind. 








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Cairngorm 0.99

2005-05-19 Thread dave buhler



I think the quotes needed to be added.

From:

namespace 
uri=http://www.iterationtwo.com/cairngorm
 
manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace

be:


namespace 
uri=http://www.iterationtwo.com/cairngorm
 
manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace


On 5/17/05, Dimitrios Gianninas [EMAIL PROTECTED] wrote:







Hi,

You must add the appropriate 
entry for the cairngorm-manifest.xml in the flex-config.xml (portion in red 
below):

namespace uri=
http://www.macromedia.com/2003/mxml 
manifest/WEB-INF/flex/mxml-manifest.xml/manifest/namespace
namespace 
uri=http://www.iterationtwo.com/cairngorm
 
manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest/namespace

This probably explains the 
error meesage.

Dimitrios Jimmy Gianninas
RIADeveloper
Optimal Payments Inc.



From: Sean McKibben 
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 17, 2005 6:25 
PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] 
Cairngorm 0.99
I'm having some trouble getting my Services.mxml to work with .99.

I keep getting errors like:
Error /com/cadpo/shared/business/Services.mxml:4

Namespace http://www.iterationtwo.com/cairngorm
 
has not been associated with component manifest.




Error /com/cadpo/shared/business/Services.mxml:4

No type for element 
http://www.iterationtwo.com/cairngorm:ServiceLocator




Error /com/cadpo/shared/business/Services.mxml:4

Unexpected root element 
http://www.iterationtwo.com/cairngorm:ServiceLocator 
does not extend MovieClip

I put the cairngorm-manifest.xml into the WEB-INF/flex 
directory, but it still doesn't want to eat it.
Here is the first part of my Services.mxml:
?xml version=1.0 encoding=utf-8?
cairngorm:ServiceLocator xmlns:mx=http://www.macromedia.com/2003/mxml 

 xmlns:cairngorm=http://www.iterationtwo.com/cairngorm
 mx:WebService id=myWS
...

Is thexmlns:cairngorm=http://www.iterationtwo.com/cairngorm 
attribute correct? I copied it out of one of the sample apps included in 
.99.

Any ideas?

Thanks,
Sean McKibben







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread dave buhler



I have the same issue with the Login example:


Error /org/nevis/cairngorm/samples/login/business/Services.mxml:22 

Namespace http://www.iterationtwo.com/cairngorm has not been 
associated with component manifest.



On 5/19/05, Hans Omli [EMAIL PROTECTED] wrote:
I'm having a similar issue.After changing db_path in/WEB-INF/classes/store.cfg to an absolute path, I get:Error: Unresolved compilation problems:The import org.apache.commons cannot be resolved
The import org.apache.commons cannot be resolvedlog cannot be resolvedlog cannot be resolvedlog cannot be resolvedlog cannot be resolvedlog cannot be resolved
log cannot be resolvedLog cannot be resolved to a typeLogFactory cannot be resolvedCould be an issue with the way I have the Tomcat project configured inEclipse.Will dig deeper into this in the morning.
-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Steven Webster
Sent: Wednesday, May 18, 2005 7:10 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Cairngorm 0.99Hi there,Can you zip up your webapp directory (removing 
flex.war/etc) on JRun andemail it privately to me offlist, and we'll take a look.On the login sample, you should have seen a result or a fault come back overthe wire ... what was the case ?Have you tried starting/stopping the appserver ?
I'm sure it's something simple.Best,Steven -Original Message- From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of violabg2002 Sent: 18 May 2005 15:04 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm 0.99
 Hi Steven changed the store.cfg paht to db_path=c:\\cairngormstore\\db\\but same problem. I have h commons-lang-1.0.1.jar h commons-logging-1.0.4.jar
 h hsqldb.jar h log4j-1.2.8.jar in the Flex\jrun4\servers\default\cairngormstore\WEB-INF\lib directory.Yahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread dave buhler



Hi Alex,

Let me try again when I get home from the office.

I'm confused about the purpose behind the SWC. As I understand it, and
stop me if I'm wrong, the SWC is the compiled Cairngorm framework. The
following code...

 !-- run this task to move cairngorm to you webapp --
 target name=get_cairngorm description=copies over Cairngorm source 
  copy todir=${dest_webapp}/WEB-INF/flex/user_classes/ overwrite=false
   fileset dir=${cairngorm}
  
 include
name=**/*cairngorm.swc/ 
  
   
   /fileset
  /copy
  copy todir=${dest_webapp}/WEB-INF/flex/ overwrite=false
   fileset dir=${cairngorm}
  
 include
name=**/*cairngorm-manifest.xml/
  
  
 
   /fileset
  /copy
 /target

... includes the cairngorm-manifest and the SWC. The
cairngorm-manifest.xml points to the framework classes, which seems
redundant to me.

I was also confused about where the 'build' folder is placed within the
directory to be executed. Do 'bin' and 'build' reside on the root of
the directory structure similar to:

--build
--bin
--org
--+nevis
---+---+cairngorm

I'm not sure where bin goes with its respective cairngorm-manifest.xml
file and cairngorm.swc. In the sames files, bin doesn't exist. I'm
missing something :)

DaveOn 5/19/05, Alex Uhlmann [EMAIL PROTECTED] wrote:
Hi Dave,have you made sure your config.xml containsnamespace uri=http://www.iterationtwo.com/cairngormmanifest/WEB-INF/flex/cairngorm-
manifest.xml/manifest/namespace,you have a cairngorm-manifest.xml file and most importantly, you've restarted your server?Best,Alex--Alex UhlmannSoftware Engineer
iteration::two-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com
]On Behalf Of dave buhlerSent: 19 May 2005 09:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Cairngorm 0.99I have the same issue with the Login example:
Error /org/nevis/cairngorm/samples/login/business/Services.mxml:22Namespace http://www.iterationtwo.com/cairngorm has not been associated with component manifest.
On 5/19/05, Hans Omli [EMAIL PROTECTED] wrote:I'm having a similar issue.After changing db_path in/WEB-INF/classes/store.cfg to an absolute path, I get:
Error: Unresolved compilation problems:The import org.apache.commons cannot be resolvedThe import org.apache.commons cannot be resolvedlog cannot be resolvedlog cannot be resolved
log cannot be resolvedlog cannot be resolvedlog cannot be resolvedlog cannot be resolvedLog cannot be resolved to a typeLogFactory cannot be resolved
Could be an issue with the way I have the Tomcat project configured inEclipse.Will dig deeper into this in the morning.-Original Message-From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Steven WebsterSent: Wednesday, May 18, 2005 7:10 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Cairngorm 0.99Hi there,Can you zip up your webapp directory (removing flex.war/etc) on JRun andemail it privately to me offlist, and we'll take a look.
On the login sample, you should have seen a result or a fault come back overthe wire ... what was the case ?Have you tried starting/stopping the appserver ?I'm sure it's something simple.
Best,Steven -Original Message- From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com
] On Behalf Of violabg2002 Sent: 18 May 2005 15:04 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm 0.99 Hi Steven
 changed the store.cfg paht to db_path=c:\\cairngormstore\\db\\but same problem. I have h commons-lang-1.0.1.jar h commons-logging-1.0.4.jar
 h hsqldb.jar h log4j-1.2.8.jar in the Flex\jrun4\servers\default\cairngormstore\WEB-INF\lib directory.Yahoo! Groups Links
Yahoo! Groups LinksTo visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.Yahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* 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/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread dave buhler



Samples*, not sames :)On 5/19/05, dave buhler [EMAIL PROTECTED] wrote:
Hi Alex,

Let me try again when I get home from the office.

I'm confused about the purpose behind the SWC. As I understand it, and
stop me if I'm wrong, the SWC is the compiled Cairngorm framework. The
following code...

 !-- run this task to move cairngorm to you webapp --
 target name=get_cairngorm description=copies over Cairngorm source 
  copy todir=${dest_webapp}/WEB-INF/flex/user_classes/ overwrite=false
   fileset dir=${cairngorm}
  
 include
name=**/*cairngorm.swc/ 
  
   
   /fileset
  /copy
  copy todir=${dest_webapp}/WEB-INF/flex/ overwrite=false
   fileset dir=${cairngorm}
  
 include
name=**/*cairngorm-manifest.xml/
  
  
 
   /fileset
  /copy
 /target

... includes the cairngorm-manifest and the SWC. The
cairngorm-manifest.xml points to the framework classes, which seems
redundant to me.

I was also confused about where the 'build' folder is placed within the
directory to be executed. Do 'bin' and 'build' reside on the root of
the directory structure similar to:

--build
--bin
--org
--+nevis
---+---+cairngorm

I'm not sure where bin goes with its respective cairngorm-manifest.xml
file and cairngorm.swc. In the sames files, bin doesn't exist. I'm
missing something :)

DaveOn 5/19/05, Alex Uhlmann 
[EMAIL PROTECTED] wrote:
Hi Dave,have you made sure your config.xml containsnamespace uri=http://www.iterationtwo.com/cairngorm
manifest/WEB-INF/flex/cairngorm-
manifest.xml/manifest/namespace,you have a cairngorm-manifest.xml file and most importantly, you've restarted your server?Best,Alex--Alex UhlmannSoftware Engineer
iteration::two-Original Message-From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com
]On Behalf Of dave buhlerSent: 19 May 2005 09:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Cairngorm 
0.99I have the same issue with the Login example:
Error /org/nevis/cairngorm/samples/login/business/Services.mxml:22Namespace http://www.iterationtwo.com/cairngorm
 has not been associated with component manifest.
On 5/19/05, Hans Omli [EMAIL PROTECTED] wrote:I'm having a similar issue.After changing db_path in
/WEB-INF/classes/store.cfg to an absolute path, I get:
Error: Unresolved compilation problems:The import org.apache.commons cannot be resolvedThe import org.apache.commons cannot be resolvedlog cannot be resolvedlog cannot be resolved
log cannot be resolvedlog cannot be resolvedlog cannot be resolvedlog cannot be resolvedLog cannot be resolved to a typeLogFactory cannot be resolved
Could be an issue with the way I have the Tomcat project configured inEclipse.Will dig deeper into this in the morning.-Original Message-From: 

flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Steven Webster
Sent: Wednesday, May 18, 2005 7:10 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Cairngorm 0.99Hi there,Can you zip up your webapp directory (removing flex.war/etc) on JRun andemail it privately to me offlist, and we'll take a look.
On the login sample, you should have seen a result or a fault come back overthe wire ... what was the case ?Have you tried starting/stopping the appserver ?I'm sure it's something simple.

Best,Steven -Original Message- From: flexcoders@yahoogroups.com
 [mailto: flexcoders@yahoogroups.com
] On Behalf Of violabg2002 Sent: 18 May 2005 15:04 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Cairngorm 0.99 Hi Steven
 changed the store.cfg paht to db_path=c:\\cairngormstore\\db\\but same problem. I have h commons-lang-1.0.1.jar h commons-logging-1.0.4.jar

 h hsqldb.jar h log4j-1.2.8.jar in the Flex\jrun4\servers\default\cairngormstore\WEB-INF\lib directory.Yahoo! Groups Links

Yahoo! Groups LinksTo visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread dave buhler



Whoa! I missed the PDF. :SOn 5/19/05, Steven Webster [EMAIL PROTECTED] wrote:
Reuben, That fixed it.Thanks.It might be good to have some manual installation instructions in the documentation for putting
 cairngorm into an existing flex server.http://www.iterationtwo.com/nevis/InstallationGuide.pdfOn page 6, we instruct:To copy over the store sample files, you must copy the contents of your
project webapp directory into your webservers webapp directory. Copy (contents of) webapp/ into WEBAPP_DIR/cairngormstore/If you do that, that'll take a copy of flex-config.xml out ofwebapp/WEB-INF/flex/ and put it into your context.We put all
the entries into flex-config.xml that will allow the sample torun out of the box.If folks want to ignore the step-by-step advice of startingwith a fresh Flex webapp context, then they're on theirown :)
Glad you've got it all up and running now,Best,Steven--Steven WebsterTechnical Directoriteration::twoThis e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, and any copies of it, immediately.
Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.Yahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread dave buhler



Wooo-H!

I'm in!

*** insert spy theme music here

My thoughts:


  I ran into the same errors as reuben and Sean above with the exact same errors.
  I have never heard of ANT until today. I'm a client-side
developer. Just like Berardini. Server configuration is foreign to me.
Lead my people to the Red Sea of Server Configuration. Help us cross. I
think most AS 2.0/OOP developers understand and love working within the
framework, but have a hard time getting over the hurdle of setting up
the server and server files.
  
  A clean install from the bare-bones helped. 
  
  I agree with hecubus that the release notes should state that .99
isn't compatible with .95. We're probably 5 projects into Cairngorm
.95, and I think we had anticipated a seamless upgrade.
  
  Item 3.2 in the docs should state that you have to copy over the flex-config file for your particular project and why.
  In some places, the docs show a path with '/' and sometimes
without. I dragged my flex-config to the wrong folder (it was 1 up).
The docs should be more consistent. For example:
  
bin/cairngorm.swc to
  WEBAPP_DIR/cairngormlogin/WEB-INF/flex/user_classes/
  
bin/cairngorm-manifest.xml to
WEBAPP_DIR/cairngormlogin/WEB-INF/flex

  
  these is spelled theses on page 2: flex contains the source Flex files of the Cairngorm API, you only need theses if

you are recompiling the SWC
  

Time to eat! Then, I'm coming back to play with my new framework. :)

Peace,
Dave
On 5/19/05, hecubus_eh [EMAIL PROTECTED] wrote:
I noticed that line in the documentation, but we wouldn't know whateffect that would haveon our existing application if we proceeded with the instructions.Without wanting to get into a heavy discussion about this, but I
couldn't find any caveat inthe install instructions or the release notes that this release wasintended to be a freshinstall, or that updates to the existing framework were notsupported.Just a suggestion
for the next set of install notes...:)Rick...--- In flexcoders@yahoogroups.com, dave buhler [EMAIL PROTECTED]wrote: Whoa! I missed the PDF. :S
 On 5/19/05, Steven Webster [EMAIL PROTECTED] wrote:   Reuben,That fixed it. Thanks. It might be good to have some manual   installation instructions in the documentation for putting
   cairngorm into an existing flex server.   http://www.iterationtwo.com/nevis/InstallationGuide.pdf 
  On page 6, we instruct:   To copy over the store sample files, you must copy the contentsof your  project  webapp directory into your webservers webapp directory.
   Copy (contents of) webapp/ into WEBAPP_DIR/cairngormstore/   If you do that, that'll take a copy of flex-config.xml out of  webapp/WEB-INF/flex/ and put it into your context. We put all
  the entries into flex-config.xml that will allow the sample to  run out of the box.   If folks want to ignore the step-by-step advice of starting  with a fresh Flex webapp context, then they're on their
  own :)   Glad you've got it all up and running now,   Best,   Steven   --  Steven Webster  Technical Director
  iteration::two   This e-mail and any associated attachments transmitted with itmay contain  confidential information and must not be copied, or disclosed,or used by
  anyone other than the intended recipient(s). If you are not theintended  recipient(s) please destroy this e-mail, and any copies of it,  immediately.   Please also note that while software systems have been used to
try to  ensure  that this e-mail has been swept for viruses, iteration::two donot accept  responsibility for any damage or loss caused in respect of anyviruses  transmitted by the e-mail. Please ensure your own checks are
carried out  before any attachments are opened.  Yahoo! Groups Links  
 Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Explaining Flex Log In and User Role Functionality to Java Developers

2005-05-18 Thread dave buhler



Highly educational.

Thanks Brian.On 5/18/05, Brian Deitte [EMAIL PROTECTED] wrote:







Instead of giving the information to you in the easiest 
language, I'm just going to try to give you a whole lot of information. 
:) I would first suggest looking at how J2EE security works. The 
first place I can think of is here:


http://livedocs.macromedia.com/jrun/4/Programmers_Guide/security_servlet.htm

Althrough I'm sure there's other great tutorials 
around. Next I would read this article, and not just because I 
wrote it:


http://www.macromedia.com/devnet/flex/articles/security_framework.html

This article could also be very helpful to the experienced 
J2EE developers andgive them an idea of how Flex security works. 
Lastly, I would try setting up the example in the article or the examples 
found in :

{flex.location}/resources/security/examples

Hope that helps, Brian



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Leif 
WellsSent: Tuesday, May 17, 2005 11:10 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Explaining Flex Log 
In and User Role Functionality to Java Developers
Here's the deal. I have a client putting together a (fairly large) 
Flex application; actually the company that I work for is putting together the 
Flex portion and the client and another vendor is putting together the J2EE 
back-end. So they come to me and say How are we handling logging in a 
user. Are we using cookies? What we've done in the past with Flash 
(sorry. I know that's a dirty word here) is have the user log in and have the 
server pass back a user object that contains (among other things) a role. If the 
server doesn't pass the user object, then they get the login screen again. If 
the user is logged in, they see screens/forms per what level their role is set. 
The security on this new application is going to need to be a bit more 
strict.My problem is this: I am NOT a full-time J2EE developer and the 
people who are asking these questions are very experienced J2EE developers. 
Every time I attempt to explain to them how we should handle user log in I 
appearently am not using the correct words. Can someone either point me to a 
document that explains how user log in would normally would be handled with Flex 
in a J2EE environment? Or give it to me is easy to understand language so I can 
relieve these guys' (and my) stress? Is there a best practice for handling user 
login in a secure application?Also, they threw me a curve today: How do 
we handle it if a user's role is demoted or promoted in the middle of a session? 
Can we immediately change what they see on-screen? Or can we immediately have 
them log off? Any thoughts?Leifhttp://www.leifwells.com







Yahoo! Groups Links

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

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

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Suggested location of shared View files in Cairngorm

2005-05-18 Thread dave buhler



Admin.mxml
Product.mxml

--+iterationtwo
--+--+Cairngorm

--+YourDomain
--+--+Admin
--+--+--+business
--+--+--+commands
--+--+--+control
--+--+--+view
--+--+--+vo

--+--+Product
--+--+--+business
--+--+--+commands
--+--+--+control
--+--+--+view
--+--+--+vo

--+--+Utilities
--+--+--+business
--+--+--+commands
--+--+--+control
--+--+--+view
--+--+--+vo










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Suggested location of shared View files in Cairngorm

2005-05-18 Thread dave buhler



You could also assign the folders by a product name. Doing so would
give you added flexibility in the future to create other Admin and
Utils folders while using the same framework.

ProductAdmin.mxml

Product.mxml



--+iterationtwo

--+--+Cairngorm



--+YourDomain

--+--+ProductAdmin

--+--+--+business

--+--+--+commands

--+--+--+control

--+--+--+view

--+--+--+vo



--+--+Product

--+--+--+business

--+--+--+commands

--+--+--+control

--+--+--+view

--+--+--+vo



--+--+ProductUtils

--+--+--+business

--+--+--+commands

--+--+--+control

--+--+--+view

--+--+--+vo









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] string trim

2005-05-18 Thread dave buhler



I would think string searches would be very CPU intensive on the client.
Can't you suppress/trim whitespace on the backend before passing it over?
On 5/18/05, Rajesh Jayabalan [EMAIL PROTECTED] wrote:
Hi, How do I trim a string in the actionscript? when I do thisif( combo.dataProvider[i].data == item[ getDataLabel() ] )sometimes item[ getDataLabel() ]returns a string with extra spaces and it
fails the conditionRegardsRajesh JYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* 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/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Flex Naming Conventions

2005-05-18 Thread dave buhler



Is there an online resource (in liveDocs) for naming conventions in
Flex, similar to the one for Flash. The liveDocs for Flash don't cover
all of the Flex components?

Flash:
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=0827.html


Flex?








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Cairngorm + Tartan Thread

2005-05-17 Thread dave buhler



Good idea Allen!On 5/16/05, Allen Manning [EMAIL PROTECTED] wrote:







Neil,

Could you unzip the directory and then rename all of the 
sub-zips to 'zippo', and email them to us as an attachment if you get the 
time. I think that might trick the anti-virus software. 


Otherwise, if you could email it to me offlist, then I will 
post it up on a website.

I'm sure we will get there somehow. 
:)

Allen

  
  

  


  

  
Allen 
Manning, Technical Director 

  
Prismix 
Ltd t: +44 (0)870 749 1100 f: +44 
(0)870 749 1200 w: www.prismix.com 












From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of dave 
buhlerSent: 16 May 2005 14:54To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm + 
Tartan Thread
Hi Allen,I had the same problem, too, searching back to 
January.Neil,I think there were 3 zips, total. 

  TartanUI.zip
  TartanFlex.zip 
  TartanCF.zip The link to the 
TartanFramework download site does not include a working example of Flex 
with Tartan. Oddly, it doesn't include a working example of Flash Remoting with 
Tartan, either.Agha's examples included a working example of the 
framework and right middleware (CF) for my purposes.Dave
On 5/16/05, Allen 
Manning [EMAIL PROTECTED] 
wrote:

  I had a 
  good look through the flexcoders Yahoo group website and had a difficult time 
  searching back to January when this message was posted. 
  
  
  I'll 
  keep looking around and if I find the zip, I'll postit up 
  here.
  
  Allen
  
  


  

  
  

  

Allen 
  Manning, Technical Director 
  

Prismix 
  Ltd t: +44 (0)870 749 1100 f: 
  +44 (0)870 749 1200 w: www.prismix.com 
  
  
  
  
  
  
  
  
  
  
  
  
  
  From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Cliff 
  MeyersSent: 16 May 2005 13:10To: flexcoders@yahoogroups.comSubject:
 Re: 
  [flexcoders] Cairngorm + Tartan Thread
  
  Yeah, I'd love to get my greedy mits on those too if they're 
  availablesomewhere.-CliffOn 5/16/05, dave 
  buhler [EMAIL PROTECTED] 
  wrote: Thanks very much Allen. It is! 
   Are Agha's Zips still available?  
  Dave   On 5/16/05, Allen Manning [EMAIL PROTECTED] 
  wrote:Hello David,   
Is this the one you are looking for?   
http://groups.yahoo.com/group/flexcoders/message/8408 
  HTH,   Allen  
Allen Manning, Technical 
  Director   Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 
  1200 w: www.prismix.com  


 
 From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of dave 
  buhler  Sent: 16 May 2005 08:43  To: flexcoders@yahoogroups.com  Subject: 
  [flexcoders] Cairngorm + Tartan Thread 
 Does somoene have a link to the thread where one of our 
  FlexCoders had posted a sample of Cairngorm being used with 
  Tartan?Thanks,  David Buhler 
  Yahoo! 
  Groups Links  To visit your group on 
  the web, go to:  http://groups.yahoo.com/group/flexcoders/ 
 To unsubscribe from this group, send an email 
  to:  [EMAIL PROTECTED]  
 Your use of Yahoo! Groups is subject to the 
  Yahoo! Terms of Service.
   Yahoo! Groups 
  Links   To visit your group on the web, go 
  to: http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an 
  email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service.
  
  Yahoo! Groups Links
  
To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. 







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Cairngorm 0.99

2005-05-17 Thread dave buhler



The link is for the .95 release.

On 5/17/05, Steven Webster [EMAIL PROTECTED] wrote:







http://www.iterationtwo.com/open_source_cairngorm.html


Any questions, we'll 
answer them tomorrow ... team iteration::two are off to the 
bar:-)

We shall have a 
drink at the bar on behalf of the rest of the Cairngorm Project 
Team
as well (in fact, 
Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send 

our bar bills...?) 
who also played their ever important roles in pulling this 
release
together.

Enjoy 
:)

Steven



--
Steven WebsterTechnical 
Director
iteration::two

This e-mail and any associated attachments 
transmitted with it may contain confidential information and must not be copied, 
or disclosed, or used by anyone other than the intended recipient(s). If you are 
not the intended recipient(s) please destroy this e-mail, and any copies of it, 
immediately.Please also note that while software systems have been 
used to try to ensure that this e-mail has been swept for viruses, 
iteration::two do not accept responsibility for any damage or loss caused in 
respect of any viruses transmitted by the e-mail. Please ensure your own checks 
are carried out before any attachments are 
opened.








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Explaining Flex Log In and User Role Functionality to Java Developers

2005-05-17 Thread dave buhler



Hi Leif,

I had presented a similar question a few days ago regarding Flex and CF7 which runs on j2EE.

I can share with you what I know, but I am also looking to learn more about security with Remoting, myself.

You should be able to attach setCredentials to your Remote Call. I know
setCredentials is configurable with CFLogin, which compiled down to
Java on J2ee.

Searching the Macromedia site for CFLogin and setCredentials should
yield some additional information. Also, from my recollection, you will
want to check permissions on each request before passing back data.
Within Flex, you could check permissions on the result to see if
permissions have changed.

More info here: http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=""


Also, the carbonFive project will have more information in depth for remoting and Java:

http://carbonfive.sourceforge.net/flashgatekeeper/api/com/carbonfive/flashgateway/security/package-summary.html


Dave



On 5/17/05, Leif Wells [EMAIL PROTECTED] wrote:



Here's the deal. I have a client putting together a (fairly large) Flex
application; actually the company that I work for is putting together
the Flex portion and the client and another vendor is putting together
the J2EE back-end. 

So they come to me and say How are we handling logging in a user. Are we using cookies? 

What we've done in the past with Flash (sorry. I know that's a dirty
word here) is have the user log in and have the server pass back a user
object that contains (among other things) a role. If the server doesn't
pass the user object, then they get the login screen again. If the user
is logged in, they see screens/forms per what level their role is set.
The security on this new application is going to need to be a bit more
strict.

My problem is this: I am NOT a full-time J2EE developer and the people
who are asking these questions are very experienced J2EE developers.
Every time I attempt to explain to them how we should handle user log
in I appearently am not using the correct words. Can someone either
point me to a document that explains how user log in would normally
would be handled with Flex in a J2EE environment? Or give it to me is
easy to understand language so I can relieve these guys' (and my)
stress? Is there a best practice for handling user login in a secure
application?

Also, they threw me a curve today: How do we handle it if a user's
role is demoted or promoted in the middle of a session? Can we
immediately change what they see on-screen? Or can we immediately have
them log off? Any thoughts?


Leif
http://www.leifwells.com








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Cairngorm + Tartan Thread

2005-05-16 Thread dave buhler



Does somoene have a link to the thread where one of our FlexCoders had posted a sample of Cairngorm being used with Tartan?

Thanks,
David Buhler








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Remoting Security with CFCs

2005-05-16 Thread dave buhler



I thought we could define the best-practices for locking down an
application using Remoting with Coldfusion, and keep this as a rolling
thread and updated list. Here is what I have come up with so far.

  Use SetCredentials with CFLogin to define the Roles.
  Check SetCredentials and Roles on every request,
  
  Use Hashing (encrypt and decrypt). Have users reset their password rather than use getPassword() method.
  
  (not sure about this one). With CF7, is it possible to set a
session ID in an application.cfc that persists through a session and
could be used as additional authentication?
  (not sure about this one) Use scriptProtect (CF7) to prevent
cross-site scripting. Since webservices can allow data to be retrieved
and sent outside of a domain, I'm not sure if scriptProtect is usable
for Remoting.
  Use HTTPS settings for Login and the exchange of other sensitive information.
  (not sure about this one) Include within a framework a security
module that calls a security delegate after a user has tried a username
3x ++, sending a request to lockout the attempted login's username
(preventing brute-force attacks). Or, include this counter as a session
variable within an application.cfc/security.cfc. 
  

Does anyone have experience with the gatekeeper:
http://carbonfive.sourceforge.net/flashgatekeeper/api/com/carbonfive/flashgateway/security/package-summary.html#documentation



Additional Ideas and feedback are always appreciated!
Dave








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Cairngorm + Tartan Thread

2005-05-16 Thread dave buhler



Thanks very much Allen. It is!

Are 
Agha's Zips still available?

Dave
On 5/16/05, Allen Manning [EMAIL PROTECTED] wrote:







Hello David,

Is this the one you are looking for?

http://groups.yahoo.com/group/flexcoders/message/8408


HTH,
Allen

  
  

  


  

  
Allen 
Manning, Technical Director 

  
Prismix 
Ltd t: +44 (0)870 749 1100 f: +44 
(0)870 749 1200 w: www.prismix.com 












From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of dave 
buhlerSent: 16 May 2005 08:43To: 
flexcoders@yahoogroups.comSubject:  [flexcoders] Cairngorm
 + Tartan 
Thread
Does somoene have a link to the thread where one of our FlexCoders 
had posted a sample of Cairngorm being used with Tartan?Thanks,David 
Buhler







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Cairngorm + Tartan Thread

2005-05-16 Thread dave buhler



Hi Allen,

I had the same problem, too, searching back to January.

Neil,

I think there were 3 zips, total. 



  TartanUI.zip

  TartanFlex.zip 
  TartanCF.zip



The link to the TartanFramework download site does not include a
working example of Flex with Tartan. Oddly, it doesn't include a
working example of Flash Remoting with Tartan, either.

Agha's examples included a working example of the framework and right middleware (CF) for my purposes.

Dave

On 5/16/05, Allen Manning [EMAIL PROTECTED] wrote:







I had a good look through the flexcoders Yahoo group 
website and had a difficult time searching back to January when this message was 
posted. 

I'll keep looking around and if I find the zip, I'll 
postit up here.

Allen


  
  

  


  

  
Allen 
Manning, Technical Director 

  
Prismix 
Ltd t: +44 (0)870 749 1100 f: +44 
(0)870 749 1200 w: www.prismix.com 













From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of Cliff 
MeyersSent: 16 May 2005 13:10To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm + 
Tartan Thread
Yeah, I'd love to get my greedy mits on those too if they're 
availablesomewhere.-CliffOn 5/16/05, dave buhler 
[EMAIL PROTECTED] wrote: Thanks very much Allen. It 
is!  Are Agha's Zips still available? 
 Dave   On 5/16/05, Allen Manning 
[EMAIL PROTECTED] wrote:Hello David, 
Is this the one you are looking for? 
http://groups.yahoo.com/group/flexcoders/message/8408
 
HTH,   Allen  
  Allen Manning, Technical 
Director   Prismix Ltd t: +44 (0)870 749 1100 f: +44 (0)870 749 1200 
w: www.prismix.com 
  
  
  
 From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On Behalf Of dave buhler 
 Sent: 16 May 2005 08:43  To: flexcoders@yahoogroups.com 
 Subject: [flexcoders] Cairngorm + Tartan Thread
Does somoene have a link to the thread where one of 
our FlexCoders had posted a sample of Cairngorm being used with 
Tartan?Thanks,  David Buhler 
    Yahoo! Groups 
Links  To visit your group on the web, 
go to:  http://groups.yahoo.com/group/flexcoders/ 
   To unsubscribe from this group, send an email 
to:  [EMAIL PROTECTED]  
   Your use of Yahoo! Groups is subject to the 
Yahoo! Terms of Service.
 Yahoo! Groups Links 
  To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/
 
 To unsubscribe from this group, send an email to: 
[EMAIL PROTECTED]  Your use of 
Yahoo! Groups is subject to the Yahoo! Terms of Service.







Yahoo! Groups Links

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

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

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Development of components with AS

2005-05-16 Thread dave buhler



Is there a common approach to differentiate public vars?On 5/16/05, JesterXL [EMAIL PROTECTED]
 wrote:








$var or _var was typically private, where-as __var 
was Macromedia's private.


  - Original Message - 
  
From: 
  dave 
  buhler 
  To: 
flexcoders@yahoogroups.com 
  Sent: Monday, May 16, 2005 1:19 PM

  Subject: Re: [flexcoders] Development of 
  components with AS
  What's common usage for variables with underscores in a class 
  architecture?__variable vs _variable vs 
  variable?Dave







Yahoo! Groups Links

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

To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: help with setInterval...

2005-04-24 Thread dave buhler

Indeed, I stand corrected.

Many thanks Abdul.

Dave

On 4/23/05, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi,
 
 However, I'm still unable to do the following:
 Call a setInterval within a class. Have the setInterval pass over a
 number. And the function called increment that number. Pass this new
 number to a textfield object.
 If I call:
 setInterval(this,somefunction, 1000, 5)
 function somefunction ( e : Number) {
  e++
 mx.controls.Alert.show(e)
 // shows 6
 }
 
 I think, it would trace 6 repeatedly over the interval. And I feel that
 there is no reason it won't work.
 
 I just created a sample to verify if my feelings are right :)
 
 This sample is demonstrating setInterval(..) inside a class. Look at the
 attached files or code later in this mail.
 
 Hope that helps...
 
 -abdul
 
 1) ##Counter.as##
 
 import mx.core.UIObject;
 
 [Event(start)]
 [Event(increment)]
 [Event(stop)]
 
 class Counter extends UIObject
 {
 
 var counterIntervalId:Number;
 var __delay:Number = 50;
 var __min:Number = 0;
 var __max:Number = 100;
 var __count:Number = 0;
 var running:Boolean = false;
 
 function Counter(delay:Number, min:Number, max:Number)
 {
 
 __min = min ? min : 0;
 __max = max ? max : 100;
 __delay = delay ? delay : 50;
 }
 
 function startCounter():Void
 {
 
 __count = 0;
 running = true;
 dispatchEvent({type:start});
 counterIntervalId = setInterval(this,incrementCount, __delay,
 __min);
 
 //you can also do this:
 //counterIntervalId =
 setInterval(mx.utils.Delegate.create(this,incrementCount), __delay, __min);
 
 }
 
 function incrementCount(num):Void
 {
   if(__count  __max)
   {
 
 //un-comment the following to see setInterval(..) passes same
 number agian and again
// mx.controls.Alert.show(num.toString());
 __count++;
 dispatchEvent({type:increment});
   }
   else
   {
   stopCounter();
   }
 
 }
 
 function stopCounter():Void
 {
 clearInterval(counterIntervalId);
 __count = 0;
 running = false
 dispatchEvent({type:stop});
 }
 
 function get min():Number
 {
 return __min;
 }
 function set min(newValue:Number):Void
 {
 __min = newValue;
 }
 
 function get max():Number
 {
 return __max;
 }
 function set max(newValue:Number):Void
 {
 __max = newValue;
 }
 function get value():Number
 {
 return __count;
 }
 
 }
 
 2) ##setIntervalExample.mxml##
 
 ?xml version=1.0 encoding=iso-8859-1?
 mx:Application width=800 height=600
 xmlns:mx=http://www.macromedia.com/2003/mxml;  initialize=onAppInit()
 
 mx:Script
 ![CDATA[
 
 import Counter;
 import mx.utils.Delegate;
 
 var counter:Counter;
 
 function onAppInit()
 {
 counter = new Counter();
 changeLimit();
 
 counter.addEventListener(start, Delegate.create(this,
 onCounterStart));
 counter.addEventListener(increment, Delegate.create(this,
 onCounterIncrement));
 counter.addEventListener(stop, Delegate.create(this,
 onCounterStop));
 }
 
 function onCounterStart(event)
 {
 _ta.text +=Counter started..\n;
 }
 function onCounterIncrement(event)
 {
 _ta.text += event.target.value + \n;
 }
 function onCounterStop(event)
 {
 _ta.text += Counter stopped...\n;
 }
 
 function changeLimit()
 {
 counter.min = slider.values[0];
 counter.max = slider.values[1];
 }
 
 ]]
 /mx:Script
 mx:HBox
 mx:Label text=Count:/mx:TextArea id=_ta width=300
 height=150 /
 /mx:HBox
 mx:HBox
 
 mx:Button label=Start Counter click=counter.startCounter();
 enabled={!counter.running}/
 mx:Button label=Stop Counter click=counter.stopCounter();
 enabled={counter.running}/
 
 /mx:HBox
 mx:HSlider id=slider
toolTipPlacement=top
 
thumbCount=2
labels=['min', 'max']
values=[0, 100]
snapInterval=1
change=changeLimit();
allowTrackClick=true
maximum=1000
minimum=0/
 /mx:Application
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 Sent: Saturday, April 23, 2005 7:22 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: help with setInterval...
 
 Hi Abdul,
 
 I ran into a similar issue. In short, whether my code was not scoped
 in an MXML file or whether it was within a class, I could not pass

Re: [flexcoders] What event is called on website change

2005-04-24 Thread dave buhler

If you're using Coldfusion mx 7, you can use the onSessionEnd() in
your Application.cfc to trigger a log-out or page-departure.

More Info:
http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentationfile=0701.htm



On 4/24/05, Matt Chotin [EMAIL PROTECTED] wrote:
  
  
 
 You can capture this in Javascript and notify your SWF but I'm not sure how
 reliable this is.  For example, I don't think if you try to trigger a
 WebService it's going to work because the browser will have already
 navigated and unloaded the SWF. 
 
   
 
 Matt 
 
   
  
  
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, April 21, 2005 11:48 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] What event is called on website change 
  
 
   
 
 
  Hi... 
  
  I'm writing an application in Macromedia Flex with a login screen 
  which interacts with a webservice. 
  
  I want to logout the user when he moves to some other website. What 
  event is fired if the website is changed? Or can anyone suggest me a 
  way to logout a user if he goes to some other site. 
  
  Regards
  
  Shobhit
  
  
  
  
  
  
  Yahoo! Groups Links
  
  
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
   
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


 
Yahoo! Groups Links

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

* 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: help with setInterval...

2005-04-22 Thread dave buhler

Hi Abdul,

I ran into a similar issue. In short, whether my code was not scoped
in an MXML file or whether it was within a class, I could not pass
over a parameter (a number in my case) and have the function called by
the setInterval reference the parameter passed over  more than 1x.

With Terry's problem, I had experienced something similar using
Cairngorm with Flex. I could not get my textfield (or label) to update
if I called a function that called a setInterval. If I called the
function directly it worked. I fixed this when I stuck the code in a
class and specified the object with view.MyTextfield.text.

However, I'm still unable to do the following:

Call a setInterval within a class. Have the setInterval pass over a
number. And the function called increment that number. Pass this new
number to a textfield object.

If I call:

setInterval(this,somefunction, 1000, 5)

function somefunction ( e : Number) {
 e++
mx.controls.Alert.show(e)
// shows 6
}


My code is at work, but the above is what I remember as having not worked.
It works if I set a default value within the function. But as a
parameter, the value fails.

Best,
Dave


 
Yahoo! Groups Links

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

* 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: help with setInterval...

2005-04-22 Thread dave buhler

Does not work.

On 4/12/05, michael keirnan [EMAIL PROTECTED] wrote:
 
 it would be good to go through the Flex UG sections on scoping and event
 listeners. in the long run understanding scope is invaluable. in your
 test case the following might work:
 
   setInterval(mx.utils.Delegate.create(this, upCount, 1000);
 
/mgk
 
 terry_hrtn wrote:
 
 Matt...now I'm getting the message below in the debug file...any
 suggestions.
 
 Warning: [type Function] is not a function
at ()
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:
 
 
 You're having scope issues.  setInterval(this, upCount, 1000);
 
 
 
 More info here:
 http://livedocs.macromedia.com/flex/15/flex_docs_en/1662.htm
 http://livedocs.macromedia.com/flex/15/flex_docs_en/1662.htm
 
 
 
 Matt
 
 
 
   _
 
 From: terry_hrtn [mailto:[EMAIL PROTECTED]
 Sent: Monday, April 11, 2005 10:03 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] help with setInterval...
 
 
 
 
 Needing some help with setInterval...
 Can someone tell me why setInterval calls the upCount function
 but does not update label on screen?
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
 http://www.macromedia.com/2003/mxml  
   mx:Script
   ![CDATA[
 
 var nCnt : Number = 0;
 var lClock : Number = -1;
 
 function startClock()
 {
   btStart.enabled = false;
   btStop.enabled = true;
 
   upCount();
   lClock = setInterval(upCount,1000);
 
   lbClockStat.text = 'Started! (' + lClock
 + ')';
 }
 
 function upCount()
 {
   nCnt += 1;
   lbShow.text = 'Count: ' + nCnt;
 }
 
 function stopClock()
 {
   lbClockStat.text = Stopped at  + nCnt;
   nCnt = 0;
   btStop.enabled = false;
   btStart.enabled = true;
   clearInterval(lClock);
 }
 
 
   ]]
   /mx:Script
   mx:Panel width=304 height=121 
 mx:Label id=lbShow text=start /
 mx:HBox
   mx:Button id=btStart label=Start Clock
 click=startClock() /
   mx:Button id=btStop label=Stop Clock
 click=stopClock() enabled=false /
 /mx:HBox
 mx:Label id=lbClockStat /
   /mx:Panel
 /mx:Application
 
 
 
 
 
 
   _
 
 Yahoo! Groups Links
 
 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/
 
 * To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 
 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/  Terms of Service.
 
 
 
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 
 
 
 
 
 
 
 
 
 Yahoo! Groups Links
 
 
 
 



 
Yahoo! Groups Links

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

* 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] Flex, Flashcomm, MediaDisplay Component

2005-04-17 Thread dave buhler

FlexCoders,

We have an application that utilizes Matt and Chris's class for
extending the MediaDisplay component to intergrate Flex with Flash
Communication Server.

Interestingly, I can record an FLV with the same name and have the FLV
stream live, into the component, only 3x before the stream will not
show in a live format. The MediaDisplay Component then displays
nothing or it displays a dated FLV.

After the 3rd recording, the Stream is recorded, but subsequent
attempts to show 'streaming' video (of the same name)  fails.

My best guess is that this is a:
-Flash Communication Server Memory Issue
-Flash SWF, Flex Server, or or Flash Communication Server Garbage
Collection issue.
-An issue with the MediaDisplay component.

Can anyone else shed light on their thoughts about what it could be
and how I could go about debugging this issue?

Best,
Dave


 
Yahoo! Groups Links

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

* 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] Integrating with Python

2005-03-02 Thread dave buhler
http://www.jonasgalvez.com/blog/
http://blog.klaustrofobik.org/

Tanja and Jonas work with AS and Python applications.


On Wed, 2 Mar 2005 15:26:41 -0500, dunwerkin [EMAIL PROTECTED] wrote:
 
 Can anyone point me towards an example integrating Flex with Python? I
 have existing Python classes, etc that I hope to reuse so that I can
 feed in a data structure coming from a Flex front end and get back a
 new data structure to send to Flex for visualization. I'm not sure if
 I need to dive into learning how Jython works, or if there is a
 simpler way I'm missing. If the Jython route is recommended, any
 links would be great.
 
 If it matters, my development version of Flex is currently running on
 JRun integrated, but I'm considering switching it to Tomcat. The
 server runs Apache 2, with PHP 4.3, and Python2.4 works fine for CGI
 stuff.
 
 
 Yahoo! Groups Links
 
 
 
 





Class to Integrate Central with Flex

2005-02-25 Thread dave buhler
Hello FlexCoders,

Does anyone have the class needed to integrate Flex with Central?

Dave




Re: [flexcoders] Class to Integrate Central with Flex

2005-02-25 Thread dave buhler
Thanks!




FlashComm Flex - LiveMediaDisplay - Streaming Problem

2005-02-24 Thread dave buhler
I am currently building a FlashComm and Flex application to do the following:

I am building this app. Based on Christophe Coenraet and Matt Chotin's
LiveMediaDisplay class and sample application.

How it should work:
If Person A logs in, he can see his stream and Person B's stream.
When Person B logs in, he can see his stream and Person A's stream.

Users can only log-in based on one of two names: PersonA or PersonB.
Depending on your login, I publish your name (PersonA or PersonB) as
the streamName (see webCam.as). After you log-in, I set the
streamNames to both of these known names (see app.mxml).

What's wrong:
When Person A logs in, he can see his stream and Person B's stream,
which is correct, be selecting the stream1() function or stream2()
function.
When Person B logs in, he can ONLY CHOOSE between his stream or Person
B's stream. He can always get one OR the other, but never both.

Notes: I have removed the userList and chat sections.

App.mxml
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
xmlns:c=collaboration.*

backgroundColor=#7D8FA8

mx:Style source=main.css/

mx:Script
![CDATA[
function getView() {

if (service.userName.toLowerCase() == 'personA'){
lmdCam1.streamName = 'personA';
lmdCam2.streamName = 'personB';
break;
} else {
if (service.userName.toLowerCase() == 'personB'){
lmdCam1.streamName = 'personB';
lmdCam2.streamName = 'personA';
break;
} else {
mx.controls.Alert.show('You must log-in as a personB or personA')
}
}
}


function stream1() {
// NOTES: When logged in as personB, it will do one stream OR the
other but not both!

lmdCam1.streamName = 'personB';
mx.controls.Alert.show('stream1');
}
function stream2() {

lmdCam2.streamName = 'personA';
mx.controls.Alert.show('stream2');
}


]]
/mx:Script

c:RTMPService id=service url=rtmp://172.16.200.205/rmaxmeeting/

c:WebCam id=webCam service={service} streamName={service.userName}/

mx:Panel title=Collaboration width=300 height=100% marginTop=8

c:Logon service={service}/

mx:VBox width=100% height=100% horizontalAlign=center
c:LiveMediaDisplay id=lmdCam1 rtmpURL={service.url} width=200/
mx:Button label={webCam.started?'Stop My Cam':'Start My Cam'}
click=webCam.toggle()
/
/mx:VBox

mx:VBox width=100% height=100% horizontalAlign=center 
c:LiveMediaDisplay id=lmdCam2 rtmpURL={service.url} width=200/
mx:Button label={webCam.started?'DisConnect Peer':'Connect Peer'}
click=getView() /
mx:Button label=stream1 click=stream1() /
mx:Button label=stream2 click=stream2() /
/mx:VBox

/mx:Panel

/mx:Application

webCam.as
import collaboration.RTMPService;

class collaboration.WebCam {

public var service: RTMPService;
public var streamName: String;
public var started: Boolean=false;

private var ns: NetStream;


function toggle()
{
if (started)
stopCamera();
else
startCamera();
}

function startCamera()
{
// started=true;

var camera = Camera.get();
camera.setMode(320, 240, 15);
camera.setQuality(50, 60);
camera.setKeyFrameInterval(24);

ns=new NetStream(service.nc);
ns.attachVideo(camera);
ns.attachAudio(Microphone.get());

ns.publish(service.userName, live);

}


function stopCamera()
{
started=false;
ns.attachVideo(null);
ns.close();
}

}

Any help is much obliged,
Dave




Re: [flexcoders] FlashComm Flex - LiveMediaDisplay - Streaming Problem

2005-02-24 Thread dave buhler
Nope. Thanks, though Matt.

The only two Flashcomm people I know are Fernando Florez and Jesse, so
I'll pop off some emails to see if they know.

Dave


On Thu, 24 Feb 2005 13:48:22 -0800, Matt Chotin [EMAIL PROTECTED] wrote:
 
 
 The only thing I can see is that you're doing toLowerCase() but the
 comparing against personA and personB. With toLowerCase it should be
 persona and personb.
 
 
 
 Otherwise I dunno J
 
 
 
 
 
 From: dave buhler [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 24, 2005 6:55 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] FlashComm  Flex - LiveMediaDisplay - Streaming
 Problem
 
 
 
 
 I am currently building a FlashComm and Flex application to do the
 following:
 
 I am building this app. Based on Christophe Coenraet and Matt Chotin's
 LiveMediaDisplay class and sample application.
 
 How it should work:
 If Person A logs in, he can see his stream and Person B's stream.
 When Person B logs in, he can see his stream and Person A's stream.
 
 Users can only log-in based on one of two names: PersonA or PersonB.
 Depending on your login, I publish your name (PersonA or PersonB) as
 the streamName (see webCam.as). After you log-in, I set the
 streamNames to both of these known names (see app.mxml).
 
 What's wrong:
 When Person A logs in, he can see his stream and Person B's stream,
 which is correct, be selecting the stream1() function or stream2()
 function.
 When Person B logs in, he can ONLY CHOOSE between his stream or Person
 B's stream. He can always get one OR the other, but never both.
 
 Notes: I have removed the userList and chat sections.
 
 App.mxml
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; 
 xmlns:c=collaboration.*
 
 backgroundColor=#7D8FA8
 
 mx:Style source=main.css/
 
 mx:Script
 ![CDATA[
 function getView() {
 
 if (service.userName.toLowerCase() == 'personA'){
 lmdCam1.streamName = 'personA';
 lmdCam2.streamName = 'personB';
 break;
 } else {
 if (service.userName.toLowerCase() == 'personB'){
 lmdCam1.streamName = 'personB';
 lmdCam2.streamName = 'personA';
 break;
 } else {
 mx.controls.Alert.show('You must log-in as a personB or personA')
 }
 }
 }
 
 
 function stream1() {
 // NOTES: When logged in as personB, it will do one stream OR the
 other but not both!
 
 lmdCam1.streamName = 'personB';
 mx.controls.Alert.show('stream1');
 }
 function stream2() {
 
 lmdCam2.streamName = 'personA';
 mx.controls.Alert.show('stream2');
 }
 
 
 ]]
 /mx:Script
 
 c:RTMPService id=service url=rtmp://172.16.200.205/rmaxmeeting/
 
 c:WebCam id=webCam service={service} streamName={service.userName}/
 
 mx:Panel title=Collaboration width=300 height=100% marginTop=8
 
 c:Logon service={service}/
 
 mx:VBox width=100% height=100% horizontalAlign=center
 c:LiveMediaDisplay id=lmdCam1 rtmpURL={service.url} width=200/
 mx:Button label={webCam.started?'Stop My Cam':'Start My Cam'}
 click=webCam.toggle()
 /
 /mx:VBox
 
 mx:VBox width=100% height=100% horizontalAlign=center 
 c:LiveMediaDisplay id=lmdCam2 rtmpURL={service.url} width=200/
 mx:Button label={webCam.started?'DisConnect Peer':'Connect Peer'}
 click=getView() /
 mx:Button label=stream1 click=stream1() /
 mx:Button label=stream2 click=stream2() /
 /mx:VBox
 
 /mx:Panel
 
 /mx:Application
 
 webCam.as
 import collaboration.RTMPService;
 
 class collaboration.WebCam {
 
 public var service: RTMPService;
 public var streamName: String;
 public var started: Boolean=false;
 
 private var ns: NetStream;
 
 
 function toggle()
 {
 if (started)
 stopCamera();
 else
 startCamera();
 }
 
 function startCamera()
 {
 // started=true;
 
 var camera = Camera.get();
 camera.setMode(320, 240, 15);
 camera.setQuality(50, 60);
 camera.setKeyFrameInterval(24);
 
 ns=new NetStream(service.nc);
 ns.attachVideo(camera);
 ns.attachAudio(Microphone.get());
 
 ns.publish(service.userName, live);
 
 }
 
 
 function stopCamera()
 {
 started=false;
 ns.attachVideo(null);
 ns.close();
 }
 
 }
 
 Any help is much obliged,
 Dave
 
 
 
 Yahoo! Groups Sponsor
 ADVERTISEMENT
 
 
 Yahoo! Groups Links
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




Re: [flexcoders] Flex and FlashCom = Referencing the MediaDisplay

2005-02-09 Thread dave buhler
Whoa. I feel like someone when I can get Kevin to respond.

Indeed, what we did was to use Chris's source-file with Matt's hack. I
asked some of the FlashCom gurus if they knew a workaround, but they
didn't.

I posted a request for added documentation on integrating the Media
components with Flex. The example Chris/Matt have is the only one
using AS 2.0.

Dave Buhler


On Wed, 9 Feb 2005 11:19:59 -0700, Kevin Towes (New Toronto Group)
[EMAIL PROTECTED] wrote:
 The Media Display has a video within it already. For Flashcom, you need to
 use: MediaDisplay.contentPath, then specify the full RTMP line.
 
 mx:MediaDisplay
 contentPath=rtmp://fcs.macromedia.com/application/instance/MyVideo
 height=400 width=400 /\
 
 application: the name of the FCS application
 instance: the name of the FCS applicat
 myVideo: the name of the FLV file (less the .flv extension)
 
 Hope this helps.
 Kev.
 
 
 Kevin Towes, Sr. Consultant
 New Toronto Group, [EMAIL PROTECTED]
 Office: 905-306-2790 Mobile: 416-882-4445
 [onRemote]
 
 
 From: Robin Hilliard [EMAIL PROTECTED]
 Sent: February 7, 2005 7:52 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex and FlashCom = Referencing the MediaDisplay
 
 
 Dave,
 
 According to the Flex docs there is no attachVideo method on 
 mx.controls.MediaDisplay - in fact it doesn't look like it's supposed 
 to work with a FCS stream, only flvs or mp3s on the server using 
 progressive playback.
 
 Robin
 
 
 On 08/02/2005, at 1:08 PM, dave buhler wrote:
 
  I've built a FlashCom piece that:
 
  1) works as a swf in HTML when built in Flash. The MovieClip shows the
  video stream from my camera
  2) doesn't work in Flex. The MovieClip does not show the video stream
  from my camera. Nor do I get a message from the player asking for me
  to accept/decline sharing my camera.
 
  The difference:
 
  1) In Flash, I have an instance name on my MovieClip.
  2) In Flex, I have an ID name on my MediaDisplay.
 
 
 
 
 Yahoo! Groups Sponsor
 ADVERTISEMENT
 
 
 Yahoo! Groups Links
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




Re: [flexcoders] Flex + Flashcom + debug player = browser crash

2005-02-01 Thread dave buhler
We had similar problems running LabTec cams on some of the FlashComm
sample apps. The NetConnection Debugger was off for us.


On Tue, 1 Feb 2005 08:45:17 -0800, Matt Chotin [EMAIL PROTECTED] wrote:
 
 
 I haven't run Christophe's example specifically but my Logitech works on the
 debug player in the Flashcom apps I've written. (both Firefox and IE on
 SP2).
 
 
 
 
 
 From: JesterXL [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 01, 2005 7:14 AM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Flex + Flashcom + debug player = browser crash
 
 
 
 
 Blew up here, too.
 
 
 
 
 
 WinXP SP2
 
 
 Flash 7,0,35,29
 
 
 Firefox 1.0
 
 
 
 
 
 Would reckon she's the debug player.
 
 
 
 
 
 - Original Message - 
 
 
 From: Benoit Hediard 
 
 
 To: flexcoders@yahoogroups.com 
 
 
 Sent: Tuesday, February 01, 2005 5:49 AM
 
 
 Subject: [flexcoders] Flex + Flashcom + debug player = browser crash
 
 
 
 
 
 Hi everyone,
 
 
 
 
 
 Has anyone tried to run the following Flex+Flashcom app?
 
 
 http://coenraets.com/viewarticle.jsp?articleId=90
 
 
 
 
 
 It's a great example.
 
 
 
 
 
 Problem : when starting the webcam with the Flash debug player 7.0.35.21
 (the one coming with Flex 1.5), it crashes my browser (Firefox or IE) when I
 confirm the activation of my webcam (Logitech QuickCam).
 
 
 Uninstalling the debug player and installing the current Flash player
 7.0.19.0 solves the problem (webcam can be activated).
 
 
 
 
 
 Anyone has run successfully the app with a webcam and the debug player?
 
 
 
 
 
 
 
 
 Benoit Hediard
 
 
 
 Yahoo! Groups Links
 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 
 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
 
 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.