[flexcoders] Re: Plot Chart drag drop

2008-01-10 Thread simonjpalmer
yes.

Write yourself a custom renderer for the data points in your chart
which traps the start of the drag.  Add drag and drop handlers to your
chart.  On drop inspect what is being dropped and where the drop
happened, convert into data coordinates, update the data accordingly
and refresh your chart.

All the drag drop stuff is very well documented.  Converting from
screen to data is possible on your chart via several mechanisms.  Data
binding should take care of refreshing your chart.

hth
Simon

--- In flexcoders@yahoogroups.com, "nasawebguy" <[EMAIL PROTECTED]> wrote:
>
> Can you drag n' drop OR "move" a data point from one place to another
> inside a chart and have it update the chart and dataprovider?
> 
> For example, if my x-axis is date, and a datapoint sits at 1/9/2008,
> and the user moves that datapoint to 2/9/2009, the chart/dataProvider
> would update the new date for the selectedItem?
> 
> Thanks,
> Don
>




[flexcoders] NumericStepper Total

2008-01-10 Thread JRBower

Yesterday I could learn how to display the total for 5 NumericSteppers in a
Label:

For example:

//  private function stepperSumFun( val1:int, val2:int, val3:int, val4:int,
val5:int):String 
//  { 
//  return (val1+val2+val3+val4+val5).toString(); 
//  }

//


However, I would like to be able to display the total in a (6th)
NumericStepper. 

I tried changing String to Number but it didn't work. How do I get this to
work?

Thanks,

James
-- 
View this message in context: 
http://www.nabble.com/NumericStepper-Total-tp14750764p14750764.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] More control over datagrid? Put headings on the LHS instead of the top?

2008-01-10 Thread Alex Harui
Check out OLAPDataGrid.  It might handle pivots.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh 
McDonald
Sent: Thursday, January 10, 2008 6:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] More control over datagrid? Put headings on the LHS 
instead of the top?

 

Right, so that's a "no" on the pivot then. Cheers. Are there any articles out 
there on runtime manipulation of datagrids, or should I just hit the docs and 
start experimenting?

Cheers,
-Josh

On Jan 11, 2008 11:56 AM, Gordon Smith <[EMAIL PROTECTED]  > wrote:

> I'm wondering about how much run-time control you have over a data grid?

 

Everything the DataGrid component does can be controlled at runtime.

 

> Can you add rows / columns at runtime?

 

Yes.

 

> Also, is it possible to sort of pivot a table 90º anti-clockwise so instead 
> of defining

> columns, you define rows, and your data appears as columns instead of rows? 

 

What do you mean by "appears as columns"? A DataGrid appears as a rectangular 
matrix of cells. The columns can have headers. Row headers are not supported.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com   
[mailto:flexcoders@yahoogroups.com  ] On 
Behalf Of Josh McDonald
Sent: Thursday, January 10, 2008 5:50 PM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] More control over datagrid? Put headings on the LHS 
instead of the top?

Hi guys,

I'm wondering about how much run-time control you have over a data grid? Can 
you add rows / columns at runtime? Also, is it possible to sort of pivot a 
table 90º anti-clockwise so instead of defining columns, you define rows, and 
your data appears as columns instead of rows? 

It's awfully hard to google up some advanced datagrid topics without just 
getting half-finished docs on the new "advanced datagrid" :D

Not sure I explained that very well, if not let me know and I'll try and expand 
on it a bit... 

Cheers,
-Josh

-- 
"This is crazy! Why are we talking about going to bed with Wilma Flintstone... 
She'll never leave Fred and we know it. "

:: Josh 'G-Funk' McDonald 
:: 0437 221 380 :: [EMAIL PROTECTED]   




-- 
"This is crazy! Why are we talking about going to bed with Wilma Flintstone... 
She'll never leave Fred and we know it. "

:: Josh 'G-Funk' McDonald 
:: 0437 221 380 :: [EMAIL PROTECTED]   

 



RE: [flexcoders] DataGrid corruption issue

2008-01-10 Thread Alex Harui
Is this renderer used in all columns?  What kind of corruption are you
seeing?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jitendra jain
Sent: Thursday, January 10, 2008 9:59 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] DataGrid corruption issue

 

Thanks for your kind support

This is a renderer code . Does this problem is due to
vertialScrollPolicy and horizontalScrollPolicy is off? 



http://www.adobe.com/2006/mxml"; backgroundAlpha=".6"
verticalScrollPolicy="off" horizontalScrollPolicy="off"
horizontalAlign="right">



  ! ;  



Alex Harui <[EMAIL PROTECTED]> wrote:

If your renderers don't handle recycling properly they may not
display properly.  Post some of your renderer code if you still have
issues.

 






From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of jitendra jain
Sent: Thursday, January 10, 2008 3:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid corruption issue

 

Hi friends,

   I have a issue with datagrid. I have mutiple of itemRenderers
for this datagrid. Often this datagrid corrupts(while scrolling
horizontally) . Why this is happening?

  Thanks,

   With regards,
JJain

  

  





Looking for last minute shopping deals? Find them fast with
Yahoo! Search.
 

 

  



Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
 

 



RE: [flexcoders] Re: HierarchicalCollectionViewCursor

2008-01-10 Thread Alex Harui
The ADG will create the cursor, you don't do it yourself unless you also
need to walk the collection.  Your largeObject is really an array and is
not hierarchical so creating the proper IHD implementation will be
trickier but doable I think.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joshuajnoble
Sent: Thursday, January 10, 2008 7:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HierarchicalCollectionViewCursor

 

So I have this:

private function init():void {

var largeObject:Object = 
[{ id:"1", name:"Misc", type:"parent", parentTask:"0"}, 
{id:"2", name:"Clean the kitchen", type:"parent", parentTask:"0"}, 
{id:"3", name:"Pay the bills", type:"parent", parentTask:"0"},
{id:"4", name:"Paint the shed", type:"parent", parentTask:"1"}, 
{id:"5", name:"Get ready for party", type:"parent",
parentTask:"1"},
{id:"6", name:"Do the dishes", type:"child", parentTask:"2"},
{id:"7", name:"Take out trash", type:"child", parentTask:"2"},
{id:"8", name:"Gas Bill", type:"child", parentTask:"3"},
{id:"9", name:"Registration", type:"child", parentTask:"3"},
{id:"10", name:"Fix the car", type:"parent", parentTask:"0"},
{id:"11", name:"New tires", type:"child", parentTask:"10"},
{id:"12", name:"Emissions test", type:"child", parentTask:"10"},
{id:"13", name:"Get new paint", type:"child", parentTask:"4"},
{id:"14", name:"Buy brushes", type:"child", parentTask:"4"},
{id:"15", name:"Buy Drinks", type:"child", parentTask:"5"},
{id:"16", name:"clean living room", type:"child", parentTask:"5"},
{id:"16", name:"finish invitations", type:"child",
parentTask:"5"}];

/* create a new class that implements the IHierarchicalData
interface */
var dataObj:ObjectHierarchicalData = new
ObjectHierarchicalData(largeObject);

dg.dataProvider = dataObj;

hd = new HierarchicalCollectionView(dataObj);
cursor = new HierarchicalCollectionViewCursor(hd, hd, dataObj);
}

The first arg to the Cursor needs to be the collection, the next
something that implements ICollectionView (should this be something
different? ) and the third the IHierarchicalData obj that provides the
info about parent/child relationships etc. Am I thinking about this
incorrectly?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> IHierarchicalData describes the hierarchy of the data in the model.
How
> to get its children, determine if there is a branch, etc.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of joshuajnoble
> Sent: Tuesday, January 08, 2008 2:19 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] HierarchicalCollectionViewCursor
> 
> 
> 
> Can anyone shed any light on the constructor of the
> HierarchicalCollectionViewCursor, the signature is: 
> 
> public function
>
HierarchicalCollectionViewCursor(collection:HierarchicalCollectionView,
> model:ICollectionView, hierarchicalData:IHierarchicalData) 
> and the explanation in the docs is:
> 
> collection:HierarchicalCollectionView - The
> HierarchicalCollectionView instance referenced by this cursor. 
> 
> model:ICollectionView - The source data collection. 
> 
> hierarchicalData:IHierarchicalData - The data used to created the
> HierarchicalCollectionView instance. 
> 
> which seems a little unclear to me. What is the relationship between
> model and the hierarchicalData parameters there? I can't seem to find
> any info.
> 
> Also, I've created a HierarchicalCollectionViewCursor which can
> traverse the top level nodes, but even after opening a secondary node,
> I cannot get the cursor to traverse the lower nodes. Any thoughts or
> comments?
>

 



RE: [flexcoders] DataGrid corruption issue

2008-01-10 Thread jitendra jain
Thanks for your kind support

This is a renderer code . Does this problem is due to vertialScrollPolicy and 
horizontalScrollPolicy is off? 



http://www.adobe.com/2006/mxml"; 
backgroundAlpha=".6"
verticalScrollPolicy="off" horizontalScrollPolicy="off" 
horizontalAlign="right">







Alex Harui <[EMAIL PROTECTED]> wrote: 
  If your renderers don’t handle recycling properly they may not display 
properly.  Post some of your renderer code if you still have issues.
   
  
-
  
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jitendra jain
 Sent: Thursday, January 10, 2008 3:56 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] DataGrid corruption issue
  
   
Hi friends,
 
I have a issue with datagrid. I have mutiple of itemRenderers for this 
datagrid. Often this datagrid corrupts(while scrolling horizontally) . Why this 
is happening?
 
   Thanks,
 
With regards,
 JJain
 
   


-
  
  Looking for last minute shopping deals? Find them fast with Yahoo! Search.
  
  
  


 
   

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

Re: [flexcoders] So You Want To Hire a SWF Developer?

2008-01-10 Thread Joseph Balderson
Thanks for the feedback.

I'm aware that Flex components can be skinned; what was mentioned was 
"The Flex 2 components, by contrast, must be "styled" with CSS as 
opposed to skinned" -- I should have been more specific in my language 
and said that Flex components are "more easily styled than skinned."

Though there have been great strides made in the Flex3/Flash CS3 
workflow, Flex components are still "styling-oriented," and for that 
reason "Flash Developers" will choose the CS3 components over the Flex 
ones if they can.

Thanks for pointing that out though.

___

Joseph Balderson, Flash Platform Developer | http://joeflash.ca
Writing partner, Community MX | http://www.communitymx.com
Abobe Certified Developer & Trainer


Narciso Jaramillo wrote:
> Hi Joseph,
> 
> Interesting article! It's true that the Flash platform developer
> landscape has changed quite a bit in the last couple of years, and it's
> great to see people starting to explain the nuances.
> 
> I just wanted to point out one factual error in your article.  Page 2
> says that the Flex 2 components must be styled through CSS and can't be
> skinned. In fact, you can create purely graphical skins for Flex
> components using either bitmap or vector artwork created in the CS3
> tools. In Flex 2, it was a somewhat manual process, described in this
> article:
> 
> http://www.adobe.com/devnet/flex/articles/flex_skins.html
> 
> In Flex 3, which is coming out soon, we've automated the process, so you
> have a fully automated workflow for Flex skinning from the CS3 design
> tools into Flex Builder:
> 
> http://www.adobe.com/go/flex3_cs3_skinning_extensions
> 
> Thanks,
> 
> nj
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Joseph Balderson
> Sent: Thursday, January 10, 2008 12:21 AM
> To: undisclosed-recipients
> Subject: [flexcoders] So You Want To Hire a SWF Developer?
> 
> FYI, there's a free article on Community MX 
>  I penned to help 
> recruiters, HR personnel, managers and developers wrestling with the 
> question "what do we call the person who builds SWF files for a living, 
> and what exactly do they do?"
> 
> By no means the final word on job descriptions (so please don't take 
> offence if you feel you don't fit into any of the categories), this 
> should offer some clarity on the evolution of the Flash ecosystem of 
> technologies and proposed skillset descriptions in the current
> marketplace.
> 
> A further description of the document can be found here 
>  .html>, 
> and a PDF version of the document can be downloaded on the article page 
> link above.
> 
> Pass this along to any managers, recruiters or HR people who may have a 
> use for it. Apologies for the plug, but a lot of people I know could use
> 
> this information, just wanted to share.
> 
> 
> Cheers,
> 


Re: [flexcoders] Re: Exit

2008-01-10 Thread Savan Patel
Hi Alger,
   
 Thanks :) 

This thread is about manual Exit issue.  Can have same thing for forcefull exit 
as well? 
for example: When user closes/refreshes the browser without logging out, we 
need to perform forcefull logout to end that particular session.

While I worked on the item, I was calling a JS function on 
"window.onbeforeunload" event, which shall transfer the call to flex's logout 
function. But it did not helped me to resolve the issue. 
I did not come to know where I was wrong, in making a call or in accessing 
flex's code.

** If we add any JS functions in "index.template.html" and compile the code, 
All the flex classes can acces that JS function without importing anything, 
right? Please let me know about this.
 
Thanks Again,
Savan
- Original Message 
From: Alger Werft <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, 10 January, 2008 4:51:50 PM
Subject: [flexcoders] Re: Exit

Hi Savan,

yes, just include the JS Function in the  of your
index.template. html

Alger

--- In [EMAIL PROTECTED] ups.com, "flex.fusion"  wrote:
>
> Hi Alger,
> 
> Can you please tell us where shall we have these " _global_ 
> JavaScript functions" written? 
> 
> Shall there be separate JavaScripts being called from 'header or 
> body' portion of "index.template. html" project file? 
> 
> Or there is someother way you wanted to convey, please guide about 
> it.
> 
> Thanks & Regards,
> Savan
> 
> --- In [EMAIL PROTECTED] ups.com, Alger Werft  
> wrote:
> >
> > You are trying to access the JavaScript object 'window', but you 
> are in 
> > the ActionScript world, and there the window you are looking for 
> does 
> > not exist.
> > 
> > Write a _global_ JavaScript function that calls window.close( ).
> > And from AS call that Function.
> > 
> > JS
> > function closeWindow( ) {
> > window.close( )
> > }
> > 
> > 
> > AS
> > ExternalInterface. call("closeWindo w");
> > 
> > 
> > Alger
> > 
> > John wrote:
> > > 
> > > 
> > > Hi there,
> > > 
> > > I am trying to create a close window routine that will be run 
> when a
> > > user clicks the exit button using the following:
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Now I am getting silly errors like Access of unidentified 
> property
> > > window. Can someone please shed some light on this
> > > 
> > >
> >
>





  Did you know? You can CHAT without downloading messenger. Go to 
http://in.messenger.yahoo.com/webmessengerpromo.php/ 

[flexcoders] Re: Custom Currency itemRenderer - what am I doing wrong?

2008-01-10 Thread carl_steinhilber
--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Monday 07 Jan 2008, carl_steinhilber wrote:
> > The two problems I'm having are:
> 
> Not posting a small self contained bit of code ?
> Not giving all the relevant details ?
> Not having read "How To Ask Questions The Smart Way" ?

Sorry, Tom, but care to elaborate on any of those assertions?

1. I *did* post example code in as small a footprint as I could that
would still fully explain the issue. If you feel that I could've
condensed the code I posted and still provided enough background, do
let me know.

2. I provided *all* relevant details, as far as I can tell. Again, if
you feel there was anything I didn't provide, please let me know.

3. Actually, I have read Eric's guide. And I follow it for *all* my
posts. As I mentioned, I do everything I can to keep from wasting
people's time. I do my research beforehand. I do try to be concise. So
do let me know where/how I didn't follow "How To Ask Questions The
Smart Way".





[flexcoders] Plot Chart drag drop

2008-01-10 Thread nasawebguy
Can you drag n' drop OR "move" a data point from one place to another
inside a chart and have it update the chart and dataprovider?

For example, if my x-axis is date, and a datapoint sits at 1/9/2008,
and the user moves that datapoint to 2/9/2009, the chart/dataProvider
would update the new date for the selectedItem?

Thanks,
Don



RE: [flexcoders] Modal / Modeless Windows

2008-01-10 Thread Justin Raymond
Oops, forgot to say that your canvas MXML component should be wrapped as
a TitleWindow
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dale Fraser
Sent: Friday, 11 January 2008 2:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Modal / Modeless Windows



Im probably missing something obvious here.

But how would I create a window from flex, the window content may be
inline or come from a separate MXML canvas.

I want to do similar to the CF8 http://learncf.com

 

#
Note:

This correspondence and any files transmitted with it are confidential. If you
are not the intended recipient, you must not disclose or use the information
contained in it. Any opinions expressed in this correspondence are those of the
individual sender, except where the sender expressly, and with authority, states
them to be the opinions of ABBOTSLEIGH.

If you have received this correspondence in error please notify Abbotsleigh
immediately by phone (612 9473 7900) or email ([EMAIL PROTECTED]).
Neither the sender nor ABBOTSLEIGH warrants that any communication via the 
Internet
is free of errors, viruses, interception or interference. Information is 
distributed
without warranties of any kind. 
#


RE: [flexcoders] Modal / Modeless Windows

2008-01-10 Thread Justin Raymond
Hi Dale,
 
You should be able to use this:
 
var popup : MyPopUpCanvas = 
   MyPopUpCanvas (PopUpManager.createPopUp(this, 
   MyPopUpCanvas , 
   true));  
 popup.x = 350;
 popup.y = 100; 
 popup.title = title;
 popup.width = 400;
 popup.height = 350;  

 

Justin Raymond
Applications Developer

 
An Anglican K-12 School for Girls


www.abbotsleigh.nsw.edu.au

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dale Fraser
Sent: Friday, 11 January 2008 2:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Modal / Modeless Windows



Im probably missing something obvious here.

But how would I create a window from flex, the window content may be
inline or come from a separate MXML canvas.

I want to do similar to the CF8 http://learncf.com

 

#
Note:

This correspondence and any files transmitted with it are confidential. If you
are not the intended recipient, you must not disclose or use the information
contained in it. Any opinions expressed in this correspondence are those of the
individual sender, except where the sender expressly, and with authority, states
them to be the opinions of ABBOTSLEIGH.

If you have received this correspondence in error please notify Abbotsleigh
immediately by phone (612 9473 7900) or email ([EMAIL PROTECTED]).
Neither the sender nor ABBOTSLEIGH warrants that any communication via the 
Internet
is free of errors, viruses, interception or interference. Information is 
distributed
without warranties of any kind. 
#
<>

[flexcoders] Modal / Modeless Windows

2008-01-10 Thread Dale Fraser
Im probably missing something obvious here.

 

But how would I create a window from flex, the window content may be inline
or come from a separate MXML canvas.

 

I want to do similar to the CF8 http://learncf.com

 



Re: [flexcoders] XML List problems

2008-01-10 Thread YOGESH JADHAV
I think you shoud specify the method of php( GET or POST). using result
event handler is most preferd way but u can directly assign dataprovider =
"{tempXML.lastResult.asset}" and provide datafield="fleet".

On Jan 11, 2008 3:10 AM, markcavins <[EMAIL PROTECTED]> wrote:

>   I have had some help from some others on this issue but the battle
> continues and I am perplexed as to why this might be happening.
>
> I am grabbing a HTTPService from my site
>
>  url="
> https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit
> "
> />
>
> and displaying it in a TileList
>
>  width="344" backgroundColor="#00" color="#ff" fontSize="27"
> borderColor="#00" columnWidth="300" rowHeight="50"
> themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> id="TileList1" height="0" y="202" x="178"/>
>
> and then refreshing the data every 5 minutes or when a user pushes a
> button.
>
> before I was trying to call the data with a mx:XML and the data was
> displaying but the data would not refresh. Looking through the docs it
> seems that that is the expected response. changing to the Service
> request I can look through firebug and see that the request is being
> made and that the server is returning the proper xml but now the
> TileList is not displaying any information.
>
> I have tried to look through the docs to see what might be the cause
> but not solution has presented itself.
>
>  
>



-- 


Regards,
Yogesh


[flexcoders] Re: HierarchicalCollectionViewCursor

2008-01-10 Thread joshuajnoble
So I have this:

private function init():void {

var largeObject:Object = 
[{ id:"1", name:"Misc", type:"parent", 
parentTask:"0"}, 
{id:"2", name:"Clean the kitchen", 
type:"parent", parentTask:"0"}, 
{id:"3", name:"Pay the bills", 
type:"parent", parentTask:"0"},
   {id:"4", name:"Paint the shed", 
type:"parent", parentTask:"1"}, 
   {id:"5", name:"Get ready for party", 
type:"parent",
parentTask:"1"},
   {id:"6", name:"Do the dishes", type:"child", 
parentTask:"2"},
   {id:"7", name:"Take out trash", 
type:"child", parentTask:"2"},
   {id:"8", name:"Gas Bill", type:"child", 
parentTask:"3"},
   {id:"9", name:"Registration", type:"child", 
parentTask:"3"},
   {id:"10", name:"Fix the car", type:"parent", 
parentTask:"0"},
   {id:"11", name:"New tires", type:"child", 
parentTask:"10"},
   {id:"12", name:"Emissions test", 
type:"child", parentTask:"10"},
   {id:"13", name:"Get new paint", 
type:"child", parentTask:"4"},
   {id:"14", name:"Buy brushes", type:"child", 
parentTask:"4"},
   {id:"15", name:"Buy Drinks", type:"child", 
parentTask:"5"},
   {id:"16", name:"clean living room", 
type:"child", parentTask:"5"},
   {id:"16", name:"finish invitations", 
type:"child",
parentTask:"5"}];

/* create a new class that implements the 
IHierarchicalData
interface */
var dataObj:ObjectHierarchicalData = new
ObjectHierarchicalData(largeObject);

dg.dataProvider = dataObj;

hd = new HierarchicalCollectionView(dataObj);
cursor = new 
HierarchicalCollectionViewCursor(hd, hd, dataObj);
}

The first arg to the Cursor needs to be the collection, the next
something that implements ICollectionView (should this be something
different? ) and the third the IHierarchicalData obj that provides the
info about parent/child relationships etc. Am I thinking about this
incorrectly?


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> IHierarchicalData describes the hierarchy of the data in the model.  How
> to get its children, determine if there is a branch, etc.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of joshuajnoble
> Sent: Tuesday, January 08, 2008 2:19 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] HierarchicalCollectionViewCursor
> 
>  
> 
> Can anyone shed any light on the constructor of the
> HierarchicalCollectionViewCursor, the signature is: 
> 
> public function
> HierarchicalCollectionViewCursor(collection:HierarchicalCollectionView,
> model:ICollectionView, hierarchicalData:IHierarchicalData) 
> and the explanation in the docs is:
> 
> collection:HierarchicalCollectionView - The
> HierarchicalCollectionView instance referenced by this cursor. 
> 
> model:ICollectionView - The source data collection. 
> 
> hierarchicalData:IHierarchicalData - The data used to created the
> HierarchicalCollectionView instance. 
> 
> which seems a little unclear to me. What is the relationship between
> model and the hierarchicalData parameters there? I can't seem to find
> any info.
> 
> Also, I've created a HierarchicalCollectionViewCursor which can
> traverse the top level nodes, but even after opening a secondary node,
> I cannot get the cursor to traverse the lower nodes. Any thoughts or
> comments?
>




RE: [flexcoders] Re: XML List problems

2008-01-10 Thread Tracy Spratt
It is difficult to debug problems when you bind directly to lastResult.  
Instead, use a result handler, in which you can inspect yur data.
Tracy

Sample code using HTTPService, e4x, handler function to populate a list item.  
Also shows usage of AsyncToken.

The DataGrid tag:



The HTTPService tag:
mailto:[EMAIL PROTECTED] On Behalf Of 
markcavins
Sent: Thursday, January 10, 2008 7:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML List problems

another question would be if I need to add a result to the HTTPService
to get it to display and if so what would the result set need to be?

--- In flexcoders@yahoogroups.com, "markcavins" <[EMAIL PROTECTED]> wrote:
>
> This is the XML output for each asset
> 
> 
> 333CCC
> abc232
> 
> 0052
> Standard
> STANDARD
> 
> 1946
> Home
> 0
> 
> GMC
> 
> 12/10/2002
> −
> 
> 
> 
> 
> 1325465465
> 
> 
> 
> 
> 
> All I am looking for is just that asset name.
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Alger Werft  wrote:
> >
> > To clarify:
> >
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/http/mxml/HTTPService.html
> > 
> > There's a lastResult property but no result!
> > 
> > There's a result event which is fired when the HTTP response is
loaded.
> > This event has a result property.
> >
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/events/ResultEvent.html
> > 
> > 
> > What's the structure of your XML?
> > 
> > 
> > markcavins schrieb:
> > >
> > > In that case I get the following error
> > >
> > > 1119: Access of possibly undefined property result through a
reference
> > > with static type mx.rpc.http.mxml:HTTPService.
> > >
> > > --- In flexcoders@yahoogroups.com 
> > > , Sheriff  wrote:
> > > >
> > > > it shouldnt be tempXML.lastResult, instead tempXML.result
> > > >
> > > >
> > > > - Original Message 
> > > > From: markcavins 
> > > > To: flexcoders@yahoogroups.com

> > > > Sent: Thursday, January 10, 2008 3:40:58 PM
> > > > Subject: [flexcoders] XML List problems
> > > >
> > > > I have had some help from some others on this issue but the battle
> > > > continues and I am perplexed as to why this might be happening.
> > > >
> > > > I am grabbing a HTTPService from my site
> > > >
> > > >  > > > url="https://mysite. net/interface. php?action= showopen&
> > > amp;operation= showassets& amp;format= xml&opstatus =crit"
> > > > />
> > > >
> > > > and displaying it in a TileList
> > > >
> > > >  > > > width="344" backgroundColor= "#00" color="#ff"
fontSize="27"
> > > > borderColor= "#00" columnWidth= "300" rowHeight="50"
> > > > themeColor=" #808080" fontWeight=" bold" allowMultipleSelect
> ion="true"
> > > > id="TileList1" height="0" y="202" x="178"/>
> > > >
> > > > and then refreshing the data every 5 minutes or when a user
pushes a
> > > > button.
> > > >
> > > > before I was trying to call the data with a mx:XML and the
data was
> > > > displaying but the data would not refresh. Looking through the
> docs it
> > > > seems that that is the expected response. changing to the Service
> > > > request I can look through firebug and see that the request is
being
> > > > made and that the server is returning the proper xml but now the
> > > > TileList is not displaying any information.
> > > >
> > > > I have tried to look through the docs to see what might be the
cause
> > > > but not solution has presented itself.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > __
> > > > Looking for last minute shopping deals?
> > > > Find them fast with Yahoo! Search.
> > >
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping 
> > >
> 
> > > >
> > >
> > >
> >
>
 



Re: [flexcoders] More control over datagrid? Put headings on the LHS instead of the top?

2008-01-10 Thread Josh McDonald
Right, so that's a "no" on the pivot then. Cheers. Are there any articles
out there on runtime manipulation of datagrids, or should I just hit the
docs and start experimenting?

Cheers,
-Josh

On Jan 11, 2008 11:56 AM, Gordon Smith <[EMAIL PROTECTED]> wrote:

>> I'm wondering about how much run-time control you have over a data
> grid?
>
> Everything the DataGrid component does can be controlled at runtime.
>
> > Can you add rows / columns at runtime?
>
> Yes.
>
> > Also, is it possible to sort of pivot a table 90º anti-clockwise so
> instead of defining
> > columns, you define rows, and your data appears as columns instead of
> rows?
>
> What do you mean by "appears as columns"? A DataGrid appears as a
> rectangular matrix of cells. The columns can have headers. Row headers are
> not supported.
>
> Gordon Smith
> Adobe Flex SDK Team
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Thursday, January 10, 2008 5:50 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] More control over datagrid? Put headings on the
> LHS instead of the top?
>
>  Hi guys,
>
> I'm wondering about how much run-time control you have over a data grid?
> Can you add rows / columns at runtime? Also, is it possible to sort of pivot
> a table 90º anti-clockwise so instead of defining columns, you define rows,
> and your data appears as columns instead of rows?
>
> It's awfully hard to google up some advanced datagrid topics without just
> getting half-finished docs on the new "advanced datagrid" :D
>
> Not sure I explained that very well, if not let me know and I'll try and
> expand on it a bit...
>
> Cheers,
> -Josh
>
> --
> "This is crazy! Why are we talking about going to bed with Wilma
> Flintstone... She'll never leave Fred and we know it. "
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>  
>



-- 
"This is crazy! Why are we talking about going to bed with Wilma
Flintstone... She'll never leave Fred and we know it. "

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] More control over datagrid? Put headings on the LHS instead of the top?

2008-01-10 Thread Gordon Smith
> I'm wondering about how much run-time control you have over a data grid?
 
Everything the DataGrid component does can be controlled at runtime.
 
> Can you add rows / columns at runtime?
 
Yes.
 
> Also, is it possible to sort of pivot a table 90º anti-clockwise so instead 
> of defining
> columns, you define rows, and your data appears as columns instead of rows? 
 
What do you mean by "appears as columns"? A DataGrid appears as a rectangular 
matrix of cells. The columns can have headers. Row headers are not supported.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh 
McDonald
Sent: Thursday, January 10, 2008 5:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] More control over datagrid? Put headings on the LHS 
instead of the top?



Hi guys,

I'm wondering about how much run-time control you have over a data grid? Can 
you add rows / columns at runtime? Also, is it possible to sort of pivot a 
table 90º anti-clockwise so instead of defining columns, you define rows, and 
your data appears as columns instead of rows? 

It's awfully hard to google up some advanced datagrid topics without just 
getting half-finished docs on the new "advanced datagrid" :D

Not sure I explained that very well, if not let me know and I'll try and expand 
on it a bit... 

Cheers,
-Josh

-- 
"This is crazy! Why are we talking about going to bed with Wilma Flintstone... 
She'll never leave Fred and we know it. "

:: Josh 'G-Funk' McDonald 
:: 0437 221 380 :: [EMAIL PROTECTED]   

 


[flexcoders] More control over datagrid? Put headings on the LHS instead of the top?

2008-01-10 Thread Josh McDonald
Hi guys,

I'm wondering about how much run-time control you have over a data grid? Can
you add rows / columns at runtime? Also, is it possible to sort of pivot a
table 90º anti-clockwise so instead of defining columns, you define rows,
and your data appears as columns instead of rows?

It's awfully hard to google up some advanced datagrid topics without just
getting half-finished docs on the new "advanced datagrid" :D

Not sure I explained that very well, if not let me know and I'll try and
expand on it a bit...

Cheers,
-Josh

-- 
"This is crazy! Why are we talking about going to bed with Wilma
Flintstone... She'll never leave Fred and we know it. "

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] mp3 audio gauge:highs,lows etc

2008-01-10 Thread Jamie S
Yes.

You can use flash.media.SoundChannel.leftPeak and
flash.media.SoundChannel.rightPeak for simple volume. To do something
more complicated use flash.media.SoundMixer.computeSpectrum()

Jamie

On Jan 10, 2008 5:02 PM, mrazar6 <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> is there any kins of compnent to "gauge" the volume of an mp3 file? it
>  will be playing of course, i just want something like a gauge to be
>  triggered by the volume, highs, lows, bass etc. any ideas?
>
>  


[flexcoders] mp3 audio gauge:highs,lows etc

2008-01-10 Thread mrazar6
is there any kins of compnent to "gauge" the volume of an mp3 file? it 
will be playing of course, i just want something like a gauge to be 
triggered by the volume, highs, lows, bass etc. any ideas?



[flexcoders] Re: XML List problems

2008-01-10 Thread markcavins
another question would be if I need to add a result to the HTTPService
to get it to display and if so what would the result set need to be?


--- In flexcoders@yahoogroups.com, "markcavins" <[EMAIL PROTECTED]> wrote:
>
> This is the XML output for each asset
> 
> 
> 333CCC
> abc232
> 
> 0052
> Standard
> STANDARD
> 
> 1946
> Home
> 0
> 
> GMC
> 
> 12/10/2002
> −
> 
> 
> 
> 
> 1325465465
> 
> 
> 
> 
> 
> All I am looking for is just that asset name.
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Alger Werft  wrote:
> >
> > To clarify:
> >
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/http/mxml/HTTPService.html
> > 
> > There's a lastResult property but no result!
> > 
> > There's a result event which is fired when the HTTP response is
loaded.
> > This event has a result property.
> >
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/events/ResultEvent.html
> > 
> > 
> > What's the structure of your XML?
> > 
> > 
> > markcavins schrieb:
> > >
> > > In that case I get the following error
> > >
> > > 1119: Access of possibly undefined property result through a
reference
> > > with static type mx.rpc.http.mxml:HTTPService.
> > >
> > > --- In flexcoders@yahoogroups.com 
> > > , Sheriff  wrote:
> > > >
> > > > it shouldnt be tempXML.lastResult, instead tempXML.result
> > > >
> > > >
> > > > - Original Message 
> > > > From: markcavins 
> > > > To: flexcoders@yahoogroups.com

> > > > Sent: Thursday, January 10, 2008 3:40:58 PM
> > > > Subject: [flexcoders] XML List problems
> > > >
> > > > I have had some help from some others on this issue but the battle
> > > > continues and I am perplexed as to why this might be happening.
> > > >
> > > > I am grabbing a HTTPService from my site
> > > >
> > > >  > > > url="https://mysite. net/interface. php?action= showopen&
> > > amp;operation= showassets& amp;format= xml&opstatus =crit"
> > > > />
> > > >
> > > > and displaying it in a TileList
> > > >
> > > >  > > > width="344" backgroundColor= "#00" color="#ff"
fontSize="27"
> > > > borderColor= "#00" columnWidth= "300" rowHeight="50"
> > > > themeColor=" #808080" fontWeight=" bold" allowMultipleSelect
> ion="true"
> > > > id="TileList1" height="0" y="202" x="178"/>
> > > >
> > > > and then refreshing the data every 5 minutes or when a user
pushes a
> > > > button.
> > > >
> > > > before I was trying to call the data with a mx:XML and the
data was
> > > > displaying but the data would not refresh. Looking through the
> docs it
> > > > seems that that is the expected response. changing to the Service
> > > > request I can look through firebug and see that the request is
being
> > > > made and that the server is returning the proper xml but now the
> > > > TileList is not displaying any information.
> > > >
> > > > I have tried to look through the docs to see what might be the
cause
> > > > but not solution has presented itself.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > __
> > > > Looking for last minute shopping deals?
> > > > Find them fast with Yahoo! Search.
> > >
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping 
> > >
> 
> > > >
> > >
> > >
> >
>




[flexcoders] Can't set ContextMenuItem's submenu property?

2008-01-10 Thread Vijay Ganesan

The API docs for flash.ui.ContextMenuItem show a submenu property.
http://livedocs.adobe.com/labs/flex3/langref/flash/ui/ContextMenuItem.html)

But when I try to set it for my custom menu item instance, I get a
compilation error:
"Access of possibly undefined property submenu through a reference
with static type flash.ui:ContextMenuItem."

Any idea why I can't use this property to create sub-menus similar to
the built-in Quality menu item's Low, Medium, High submenu items?

Vijay





[flexcoders] Re: Manual refresh nested collection in LCDS managed object

2008-01-10 Thread Kevin
Thanks for the explanation.  That was EXTREMELY helpful.  You are
killing me with this "next release" stuff.  The new changes/features
sound great and address many of the issues I have encountered.  I'll
keep my eyes and ears open for the release date announcement.

Thanks! - Kevin



--- In flexcoders@yahoogroups.com, "Jeff Vroom" <[EMAIL PROTECTED]> wrote:
>
> If you make a change to the collection property on the client side, we
> queue an "update" message for the parent item of that collection.  This
> update will send down the entire collection, then push it to other
> clients even if you only added or removed one item from the collection.
> If your collection property is lazy="true" we only push around the ids
> of the elements in the collection.
> 
> 
> If you change a property of an item in a collection and that collection
> is a managed association, we only send the update for the item in the
> collection.  The parent item is not affected.  
> 
>  
> 
> This does make collection properties somewhat inefficient when dealing
> with large collections.  We have an alternative way of doing updates to
> collection properties coming out in the next release where we send
> around incremental changes. 
> 
>  
> 
> The ArrayCollection.refresh method is (I think) just about updating the
> client side sort and filters.  It won't go back to the server.  You'd
> have to call getItem or fill again for the parent item to refresh the
> child collection's membership.  To refresh individual items in the
> collection you can call getItem on them. 
> 
>  
> 
> Jeff
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Kevin
> Sent: Thursday, January 10, 2008 3:14 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Manual refresh nested collection in LCDS
> managed object
> 
>  
> 
> > Yes, that is in Java. If you are in ActionScript, usually you have the
> > collection property on the client already and so just make a change to
> > it using the collection apis.
> 
> I am curious to how this works internally. If I make a change to a
> collection (or an item in the collection) on the actionscript side,
> when that change is made on the server does the whole collection get
> refreshed OR just the single object that I made the change to.
> 
> Also, I am assuming that when I call someArrayCollection.refresh() on
> the client that this does NOT signal a refresh of data from the
> server. I would have to do something more substantial to actually
> signal a reload of the current data from the server (like change some
> data)... correct?
> 
> I guess I am trying to figure out the expected behavior when trying to
> managed objects/collections on the client with autosync vs. manual sync.
> 
> - Kevin
> 
> --- In flexcoders@yahoogroups.com 
> , "Jeff Vroom"  wrote:
> >
> > Yes, that is in Java. If you are in ActionScript, usually you have the
> > collection property on the client already and so just make a change to
> > it using the collection apis. When you commit, it should apply those
> > changes on the server. 
> > 
> > 
> > 
> > I started to answer your next question a few times and each time
> > realized my answer would probably get me in trouble with corporate :-)
> > 
> > 
> > 
> > Jeff
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of Kevin
> > Sent: Thursday, January 10, 2008 1:04 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: Manual refresh nested collection in LCDS
> > managed object
> > 
> > 
> > 
> > Sounds like this needs to be done in Java correct? Is there a way to
> > do a refresh from actionscript?
> > 
> > Also you have mentioned some new features (destination inheritance!)
> > for the next version. Is there a target date for that yet OR info
> > anywhere as to what the planned feature are?
> > 
> > Thanks! - Kevin
> > 
> > --- In flexcoders@yahoogroups.com
> 
> 
> > , "Jeff Vroom"  wrote:
> > >
> > > You can use the method DataServiceTransaction.updateItem(..) to
> update
> > > association properties as well. You need to create an instance of
> the
> > > parent object, fully populate the association property with the new
> > > values, then specify the property name (or names) you changed in the
> > > "changes" parameter. You can supply null for the previous item of
> > > course unless you want to do conflict detection. 
> > > 
> > > 
> > > 
> > > We're adding better support for incremental updates of association
> > > properties in general in the next version. 
> > > 
> > > 
> > > 
> > > Jeff
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com

RE: [flexcoders] Re: Manual refresh nested collection in LCDS managed object

2008-01-10 Thread Jeff Vroom
If you make a change to the collection property on the client side, we
queue an "update" message for the parent item of that collection.  This
update will send down the entire collection, then push it to other
clients even if you only added or removed one item from the collection.
If your collection property is lazy="true" we only push around the ids
of the elements in the collection.


If you change a property of an item in a collection and that collection
is a managed association, we only send the update for the item in the
collection.  The parent item is not affected.  

 

This does make collection properties somewhat inefficient when dealing
with large collections.  We have an alternative way of doing updates to
collection properties coming out in the next release where we send
around incremental changes. 

 

The ArrayCollection.refresh method is (I think) just about updating the
client side sort and filters.  It won't go back to the server.  You'd
have to call getItem or fill again for the parent item to refresh the
child collection's membership.  To refresh individual items in the
collection you can call getItem on them. 

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Thursday, January 10, 2008 3:14 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Manual refresh nested collection in LCDS
managed object

 

> Yes, that is in Java. If you are in ActionScript, usually you have the
> collection property on the client already and so just make a change to
> it using the collection apis.

I am curious to how this works internally. If I make a change to a
collection (or an item in the collection) on the actionscript side,
when that change is made on the server does the whole collection get
refreshed OR just the single object that I made the change to.

Also, I am assuming that when I call someArrayCollection.refresh() on
the client that this does NOT signal a refresh of data from the
server. I would have to do something more substantial to actually
signal a reload of the current data from the server (like change some
data)... correct?

I guess I am trying to figure out the expected behavior when trying to
managed objects/collections on the client with autosync vs. manual sync.

- Kevin

--- In flexcoders@yahoogroups.com 
, "Jeff Vroom" <[EMAIL PROTECTED]> wrote:
>
> Yes, that is in Java. If you are in ActionScript, usually you have the
> collection property on the client already and so just make a change to
> it using the collection apis. When you commit, it should apply those
> changes on the server. 
> 
> 
> 
> I started to answer your next question a few times and each time
> realized my answer would probably get me in trouble with corporate :-)
> 
> 
> 
> Jeff
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Kevin
> Sent: Thursday, January 10, 2008 1:04 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Manual refresh nested collection in LCDS
> managed object
> 
> 
> 
> Sounds like this needs to be done in Java correct? Is there a way to
> do a refresh from actionscript?
> 
> Also you have mentioned some new features (destination inheritance!)
> for the next version. Is there a target date for that yet OR info
> anywhere as to what the planned feature are?
> 
> Thanks! - Kevin
> 
> --- In flexcoders@yahoogroups.com


> , "Jeff Vroom"  wrote:
> >
> > You can use the method DataServiceTransaction.updateItem(..) to
update
> > association properties as well. You need to create an instance of
the
> > parent object, fully populate the association property with the new
> > values, then specify the property name (or names) you changed in the
> > "changes" parameter. You can supply null for the previous item of
> > course unless you want to do conflict detection. 
> > 
> > 
> > 
> > We're adding better support for incremental updates of association
> > properties in general in the next version. 
> > 
> > 
> > 
> > Jeff
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of Kevin
> > Sent: Thursday, January 10, 2008 10:55 AM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] Manual refresh nested collection in LCDS
managed
> > object
> > 
> > 
> > 
> > I am wondering if there is a way to manually refresh a nested
> > collection from the server. If I have an object with nested

[flexcoders] Re: Manual refresh nested collection in LCDS managed object

2008-01-10 Thread Kevin
> Yes, that is in Java.  If you are in ActionScript, usually you have the
> collection property on the client already and so just make a change to
> it using the collection apis.

I am curious to how this works internally.  If I make a change to a
collection (or an item in the collection) on the actionscript side,
when that change is made on the server does the whole collection get
refreshed OR just the single object that I made the change to.

Also, I am assuming that when I call someArrayCollection.refresh() on
the client that this does NOT signal a refresh of data from the
server.  I would have to do something more substantial to actually
signal a reload of the current data from the server (like change some
data)... correct?

I guess I am trying to figure out the expected behavior when trying to
managed objects/collections on the client with autosync vs. manual sync.

- Kevin



--- In flexcoders@yahoogroups.com, "Jeff Vroom" <[EMAIL PROTECTED]> wrote:
>
> Yes, that is in Java.  If you are in ActionScript, usually you have the
> collection property on the client already and so just make a change to
> it using the collection apis.  When you commit, it should apply those
> changes on the server.  
> 
>  
> 
> I started to answer your next question a few times and each time
> realized my answer would probably get me in trouble with corporate :-)
> 
>  
> 
> Jeff
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Kevin
> Sent: Thursday, January 10, 2008 1:04 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Manual refresh nested collection in LCDS
> managed object
> 
>  
> 
> Sounds like this needs to be done in Java correct? Is there a way to
> do a refresh from actionscript?
> 
> Also you have mentioned some new features (destination inheritance!)
> for the next version. Is there a target date for that yet OR info
> anywhere as to what the planned feature are?
> 
> Thanks! - Kevin
> 
> --- In flexcoders@yahoogroups.com 
> , "Jeff Vroom"  wrote:
> >
> > You can use the method DataServiceTransaction.updateItem(..) to update
> > association properties as well. You need to create an instance of the
> > parent object, fully populate the association property with the new
> > values, then specify the property name (or names) you changed in the
> > "changes" parameter. You can supply null for the previous item of
> > course unless you want to do conflict detection. 
> > 
> > 
> > 
> > We're adding better support for incremental updates of association
> > properties in general in the next version. 
> > 
> > 
> > 
> > Jeff
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of Kevin
> > Sent: Thursday, January 10, 2008 10:55 AM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Manual refresh nested collection in LCDS managed
> > object
> > 
> > 
> > 
> > I am wondering if there is a way to manually refresh a nested
> > collection from the server. If I have an object with nested
> > collections, I know how to refresh the collection holding the parent
> > object, but is there a way to refresh just the object OR just a
> > collection inside the object.
> > 
> > All my collections have association destinations, but the nested
> > collections are filled automatically from the parent object and not
> > from an explicit call that we make so I am not sure how best to
> > refresh them manually if needed.
> > 
> > I assume there is something basic here I am missing.
> > 
> > Thanks,
> > 
> > Kevin
> >
>




RE: [flexcoders] Re: Manual refresh nested collection in LCDS managed object

2008-01-10 Thread Jeff Vroom
Yes, that is in Java.  If you are in ActionScript, usually you have the
collection property on the client already and so just make a change to
it using the collection apis.  When you commit, it should apply those
changes on the server.  

 

I started to answer your next question a few times and each time
realized my answer would probably get me in trouble with corporate :-)

 

Jeff



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Thursday, January 10, 2008 1:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Manual refresh nested collection in LCDS
managed object

 

Sounds like this needs to be done in Java correct? Is there a way to
do a refresh from actionscript?

Also you have mentioned some new features (destination inheritance!)
for the next version. Is there a target date for that yet OR info
anywhere as to what the planned feature are?

Thanks! - Kevin

--- In flexcoders@yahoogroups.com 
, "Jeff Vroom" <[EMAIL PROTECTED]> wrote:
>
> You can use the method DataServiceTransaction.updateItem(..) to update
> association properties as well. You need to create an instance of the
> parent object, fully populate the association property with the new
> values, then specify the property name (or names) you changed in the
> "changes" parameter. You can supply null for the previous item of
> course unless you want to do conflict detection. 
> 
> 
> 
> We're adding better support for incremental updates of association
> properties in general in the next version. 
> 
> 
> 
> Jeff
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Kevin
> Sent: Thursday, January 10, 2008 10:55 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Manual refresh nested collection in LCDS managed
> object
> 
> 
> 
> I am wondering if there is a way to manually refresh a nested
> collection from the server. If I have an object with nested
> collections, I know how to refresh the collection holding the parent
> object, but is there a way to refresh just the object OR just a
> collection inside the object.
> 
> All my collections have association destinations, but the nested
> collections are filled automatically from the parent object and not
> from an explicit call that we make so I am not sure how best to
> refresh them manually if needed.
> 
> I assume there is something basic here I am missing.
> 
> Thanks,
> 
> Kevin
>

 



[flexcoders] .swf file

2008-01-10 Thread vivek
I have a.swf file of my application. Is it possible for me to convert
it into .mxml and access the source code like in case of sothink
software and all

Thanks,
Vivek



[flexcoders] LinkButton textSelectedUpColor ???

2008-01-10 Thread Kevin
I have a link button set to toggle and I would like to set the text
color to be different when it has been selected.  

I can set textSelectedColor, but that only shows when the mouse is
down.  It seems like I need a textSelectedUpColor and
textSelectedOverColor in the same way there is a selectedUpIcon and a
selectedOverIcon. 

Am I missing something here?

- Kevin



[flexcoders] Re: XML List problems

2008-01-10 Thread markcavins
This is the XML output for each asset


333CCC
abc232

0052
Standard
STANDARD

1946
Home
0

GMC

12/10/2002
−




1325465465





All I am looking for is just that asset name.




--- In flexcoders@yahoogroups.com, Alger Werft <[EMAIL PROTECTED]> wrote:
>
> To clarify:
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/http/mxml/HTTPService.html
> 
> There's a lastResult property but no result!
> 
> There's a result event which is fired when the HTTP response is loaded.
> This event has a result property.
>
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/events/ResultEvent.html
> 
> 
> What's the structure of your XML?
> 
> 
> markcavins schrieb:
> >
> > In that case I get the following error
> >
> > 1119: Access of possibly undefined property result through a reference
> > with static type mx.rpc.http.mxml:HTTPService.
> >
> > --- In flexcoders@yahoogroups.com 
> > , Sheriff  wrote:
> > >
> > > it shouldnt be tempXML.lastResult, instead tempXML.result
> > >
> > >
> > > - Original Message 
> > > From: markcavins 
> > > To: flexcoders@yahoogroups.com 
> > > Sent: Thursday, January 10, 2008 3:40:58 PM
> > > Subject: [flexcoders] XML List problems
> > >
> > > I have had some help from some others on this issue but the battle
> > > continues and I am perplexed as to why this might be happening.
> > >
> > > I am grabbing a HTTPService from my site
> > >
> > >  > > url="https://mysite. net/interface. php?action= showopen&
> > amp;operation= showassets& amp;format= xml&opstatus =crit"
> > > />
> > >
> > > and displaying it in a TileList
> > >
> > >  > > width="344" backgroundColor= "#00" color="#ff" fontSize="27"
> > > borderColor= "#00" columnWidth= "300" rowHeight="50"
> > > themeColor=" #808080" fontWeight=" bold" allowMultipleSelect
ion="true"
> > > id="TileList1" height="0" y="202" x="178"/>
> > >
> > > and then refreshing the data every 5 minutes or when a user pushes a
> > > button.
> > >
> > > before I was trying to call the data with a mx:XML and the data was
> > > displaying but the data would not refresh. Looking through the
docs it
> > > seems that that is the expected response. changing to the Service
> > > request I can look through firebug and see that the request is being
> > > made and that the server is returning the proper xml but now the
> > > TileList is not displaying any information.
> > >
> > > I have tried to look through the docs to see what might be the cause
> > > but not solution has presented itself.
> > >
> > >
> > >
> > >
> > >
> > >
> > __
> > > Looking for last minute shopping deals?
> > > Find them fast with Yahoo! Search.
> >
http://tools.search.yahoo.com/newsearch/category.php?category=shopping 
> >

> > >
> >
> >
>




[flexcoders] Re: Dynamic URLs

2008-01-10 Thread markcavins
Thank you Justin that worked great.


--- In flexcoders@yahoogroups.com, "Justin Raymond" <[EMAIL PROTECTED]> wrote:
>
> Hey Mark,
>  
> You can use the following:
>  
> var request:URLRequest = new URLRequest("test.htm");
>  request.method = URLRequestMethod.GET;
>  var urlVars : URLVariables = new URLVariables();
>  urlVars.username = "theUsername";
>  request.data = urlVars; 
>  navigateToURL(request,"_blank");
>  
> Just substitute your own vars in where appropriate.
> 
> Cheers
> 
> Justin
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Friday, 11 January 2008 8:55 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Dynamic URLs
> 
> 
> 
> Is there a way to take the results from form data services
> 
>  showBusyCursor="true" method="POST"
> url="https://cfg0013.zonarsystems.net/interface.php
>  " useProxy="false">
> 
> 
> {customer.text}
> 
> 
> {username.text}
> 
> 
> {password.text}
> 
> 
> 
> 
> and use it to dyanamically populate a url
> 
> https://{customer.text}.mysite.net/interface.php?action=showopen&ope
> ration=showassets&format=xml&opstatus=crit&username={usernam
> e.text}&password={password.text}
> 
> I know how to do this in most other languages but I am completely noob
> when it comes to Flex/Flash action script and I'm not quite sure how
> you would set this up but I only want to make this app once so that
> any customer can login and get information on their own information.
> 
> 
> 
>  
> 
>
#
> Note:
> 
> This correspondence and any files transmitted with it are
confidential. If you
> are not the intended recipient, you must not disclose or use the
information
> contained in it. Any opinions expressed in this correspondence are
those of the
> individual sender, except where the sender expressly, and with
authority, states
> them to be the opinions of ABBOTSLEIGH.
> 
> If you have received this correspondence in error please notify
Abbotsleigh
> immediately by phone (612 9473 7900) or email ([EMAIL PROTECTED]).
> Neither the sender nor ABBOTSLEIGH warrants that any communication
via the Internet
> is free of errors, viruses, interception or interference.
Information is distributed
> without warranties of any kind. 
>
#
>




RE: [flexcoders] Using the Flex Component Kit in an ActionScript project

2008-01-10 Thread Alex Harui
In Flex apps, the protocol is that parents size their children.  You'll
probably have to set the size and position of the component.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Elie Zananiri
Sent: Thursday, January 10, 2008 1:55 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Using the Flex Component Kit in an
ActionScript project

 

Hi again,

 

So I checked the link-report XML and the SWC seems to get loaded. Also,
the debugger shows that the Object gets instantiated, but its x, y,
width, and height are 0.

 

I've uploaded my work files
(http://www.silentlycrashing.net/flex2flash.zip)
 , if anyone has a
minute, could you have a look at it and see if you can find the problem?

 

Thanks again,

 

-Elie

 

On 10-Jan-08, at 2:28 PM, Alex Harui wrote:





 

Use link-report to make sure it got in the swf.

 

Use the debugger to see if it got instantiated and given the right size,
position and visibility

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Elie Zananiri
Sent: Thursday, January 10, 2008 9:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using the Flex Component Kit in an ActionScript
project

 

Hello all,

I am trying to use the Flex Component Kit to export some graphics drawn
in Flash CS3 to 
an ActionScript p! roject in Flex and I can't get it to work. 

Here's what I'm doing:
In Flash:
1. Creating an MC symbol in Flash.
2. Giving it name="SomeName", class="SomeName", and base 
class="mx.flash.UIMovieClip".
3. Right-clicking on the symbol in the library and exporting it as an
SWC file called 
"SomeNameUIMC.swc".
In Flex Builder:
4. Creating a new ActionScript project with main application file
"SomeOtherName.as".
5. Importing the SWC file to the library path.
6. Creating a new class called "SomeName.as" which extends
"mx.flash.UIMovieClip".
7. Instancing "SomeName" in "SomeOtherName" and adding it to the canvas.

Now when I run this, I don't get any compilation errors, but the display
is blank. I don't 
think my SWC file is being linked to the class, but I don't see any info
on h! ow to do this. All 
the tutorials I found online are using mxmlc, so is it possible that the
Component Kit only 
works with Flex projects? If not, does anyone have any examples working
on ActionScript 
projects or can anyone see what I'm doing wrong?

Thanks for the help,

-Elie

 

 

 

 



Re: [flexcoders] Re: XML List problems

2008-01-10 Thread Alger Werft
To clarify:
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/http/mxml/HTTPService.html

There's a lastResult property but no result!

There's a result event which is fired when the HTTP response is loaded.
This event has a result property.
http://livedocs.adobe.com/labs/flex3/langref/mx/rpc/events/ResultEvent.html


What's the structure of your XML?


markcavins schrieb:
>
> In that case I get the following error
>
> 1119: Access of possibly undefined property result through a reference
> with static type mx.rpc.http.mxml:HTTPService.
>
> --- In flexcoders@yahoogroups.com 
> , Sheriff <[EMAIL PROTECTED]> wrote:
> >
> > it shouldnt be tempXML.lastResult, instead tempXML.result
> >
> >
> > - Original Message 
> > From: markcavins <[EMAIL PROTECTED]>
> > To: flexcoders@yahoogroups.com 
> > Sent: Thursday, January 10, 2008 3:40:58 PM
> > Subject: [flexcoders] XML List problems
> >
> > I have had some help from some others on this issue but the battle
> > continues and I am perplexed as to why this might be happening.
> >
> > I am grabbing a HTTPService from my site
> >
> >  > url="https://mysite. net/interface. php?action= showopen&
> amp;operation= showassets& amp;format= xml&opstatus =crit"
> > />
> >
> > and displaying it in a TileList
> >
> >  > width="344" backgroundColor= "#00" color="#ff" fontSize="27"
> > borderColor= "#00" columnWidth= "300" rowHeight="50"
> > themeColor=" #808080" fontWeight=" bold" allowMultipleSelect ion="true"
> > id="TileList1" height="0" y="202" x="178"/>
> >
> > and then refreshing the data every 5 minutes or when a user pushes a
> > button.
> >
> > before I was trying to call the data with a mx:XML and the data was
> > displaying but the data would not refresh. Looking through the docs it
> > seems that that is the expected response. changing to the Service
> > request I can look through firebug and see that the request is being
> > made and that the server is returning the proper xml but now the
> > TileList is not displaying any information.
> >
> > I have tried to look through the docs to see what might be the cause
> > but not solution has presented itself.
> >
> >
> >
> >
> >
> >
> __
> > Looking for last minute shopping deals?
> > Find them fast with Yahoo! Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping 
> 
> >
>
>  


RE: [flexcoders] Dynamic URLs

2008-01-10 Thread Justin Raymond
Hey Mark,
 
You can use the following:
 
var request:URLRequest = new URLRequest("test.htm");
 request.method = URLRequestMethod.GET;
 var urlVars : URLVariables = new URLVariables();
 urlVars.username = "theUsername";
 request.data = urlVars; 
 navigateToURL(request,"_blank");
 
Just substitute your own vars in where appropriate.

Cheers

Justin

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markcavins
Sent: Friday, 11 January 2008 8:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamic URLs



Is there a way to take the results from form data services

https://cfg0013.zonarsystems.net/interface.php
 " useProxy="false">


{customer.text}


{username.text}


{password.text}




and use it to dyanamically populate a url

https://{customer.text}.mysite.net/interface.php?action=showopen&ope
ration=showassets&format=xml&opstatus=crit&username={usernam
e.text}&password={password.text}

I know how to do this in most other languages but I am completely noob
when it comes to Flex/Flash action script and I'm not quite sure how
you would set this up but I only want to make this app once so that
any customer can login and get information on their own information.



 

#
Note:

This correspondence and any files transmitted with it are confidential. If you
are not the intended recipient, you must not disclose or use the information
contained in it. Any opinions expressed in this correspondence are those of the
individual sender, except where the sender expressly, and with authority, states
them to be the opinions of ABBOTSLEIGH.

If you have received this correspondence in error please notify Abbotsleigh
immediately by phone (612 9473 7900) or email ([EMAIL PROTECTED]).
Neither the sender nor ABBOTSLEIGH warrants that any communication via the 
Internet
is free of errors, viruses, interception or interference. Information is 
distributed
without warranties of any kind. 
#


Re: [flexcoders] Using the Flex Component Kit in an ActionScript project

2008-01-10 Thread Elie Zananiri

Hi again,

So I checked the link-report XML and the SWC seems to get loaded.  
Also, the debugger shows that the Object gets instantiated, but its x,  
y, width, and height are 0.


I've uploaded my work files (http://www.silentlycrashing.net/flex2flash.zip 
), if anyone has a minute, could you have a look at it and see if you  
can find the problem?


Thanks again,

-Elie

On 10-Jan-08, at 2:28 PM, Alex Harui wrote:



Use link-report to make sure it got in the swf.



Use the debugger to see if it got instantiated and given the right  
size, position and visibility




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of Elie Zananiri

Sent: Thursday, January 10, 2008 9:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using the Flex Component Kit in an  
ActionScript project




Hello all,

I am trying to use the Flex Component Kit to export some graphics  
drawn in Flash CS3 to

an ActionScript project in Flex and I can't get it to work.

Here's what I'm doing:
In Flash:
1. Creating an MC symbol in Flash.
2. Giving it name="SomeName", class="SomeName", and base
class="mx.flash.UIMovieClip".
3. Right-clicking on the symbol in the library and exporting it as  
an SWC file called

"SomeNameUIMC.swc".
In Flex Builder:
4. Creating a new ActionScript project with main application file  
"SomeOtherName.as".

5. Importing the SWC file to the library path.
6. Creating a new class called "SomeName.as" which extends  
"mx.flash.UIMovieClip".
7. Instancing "SomeName" in "SomeOtherName" and adding it to the  
canvas.


Now when I run this, I don't get any compilation errors, but the  
display is blank. I don't
think my SWC file is being linked to the class, but I don't see any  
info on how to do this. All
the tutorials I found online are using mxmlc, so is it possible that  
the Component Kit only
works with Flex projects? If not, does anyone have any examples  
working on ActionScript

projects or can anyone see what I'm doing wrong?

Thanks for the help,

-Elie








[flexcoders] Dynamic URLs

2008-01-10 Thread markcavins
Is there a way to take the results from form data services

https://cfg0013.zonarsystems.net/interface.php"; useProxy="false">


{customer.text}


{username.text}


{password.text}




and use it to dyanamically populate a url

https://{customer.text}.mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit&username={username.text}&password={password.text}

I know how to do this in most other languages but I am completely noob
when it comes to Flex/Flash action script and I'm not quite sure how
you would set this up but I only want to make this app once so that
any customer can login and get information on their own information.





[flexcoders] Re: XML List problems

2008-01-10 Thread markcavins
In that case I get the following error


1119: Access of possibly undefined property result through a reference
with static type mx.rpc.http.mxml:HTTPService.  


--- In flexcoders@yahoogroups.com, Sheriff <[EMAIL PROTECTED]> wrote:
>
> it shouldnt be tempXML.lastResult, instead tempXML.result
> 
> 
> - Original Message 
> From: markcavins <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, January 10, 2008 3:40:58 PM
> Subject: [flexcoders] XML List problems
> 
> I have had some help from some others on this issue but the battle
> continues and I am perplexed as to why this might be happening.
> 
> I am grabbing a HTTPService from my site
> 
>  url="https://mysite. net/interface. php?action= showopen&
amp;operation= showassets& amp;format= xml&opstatus =crit"
> />
> 
> and displaying it in a TileList
> 
>  width="344" backgroundColor= "#00" color="#ff" fontSize="27"
> borderColor= "#00" columnWidth= "300" rowHeight="50"
> themeColor=" #808080" fontWeight=" bold" allowMultipleSelect ion="true" 
> id="TileList1" height="0" y="202" x="178"/>
> 
> and then refreshing the data every 5 minutes or when a user pushes a
> button.
> 
> before I was trying to call the data with a mx:XML and the data was
> displaying but the data would not refresh. Looking through the docs it
> seems that that is the expected response. changing to the Service
> request I can look through firebug and see that the request is being
> made and that the server is returning the proper xml but now the
> TileList is not displaying any information.
> 
> I have tried to look through the docs to see what might be the cause
> but not solution has presented itself.
> 
> 
> 
> 
> 
>  

> Looking for last minute shopping deals?  
> Find them fast with Yahoo! Search. 
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>




Re: [flexcoders] XML List problems

2008-01-10 Thread Sheriff
it shouldnt be tempXML.lastResult, instead tempXML.result


- Original Message 
From: markcavins <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, January 10, 2008 3:40:58 PM
Subject: [flexcoders] XML List problems

I have had some help from some others on this issue but the battle
continues and I am perplexed as to why this might be happening.

I am grabbing a HTTPService from my site

https://mysite. net/interface. php?action= showopen& amp;operation= 
showassets& amp;format= xml&opstatus =crit"
/>

and displaying it in a TileList



and then refreshing the data every 5 minutes or when a user pushes a
button.

before I was trying to call the data with a mx:XML and the data was
displaying but the data would not refresh. Looking through the docs it
seems that that is the expected response. changing to the Service
request I can look through firebug and see that the request is being
made and that the server is returning the proper xml but now the
TileList is not displaying any information.

I have tried to look through the docs to see what might be the cause
but not solution has presented itself.





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: [flexcoders] XML List problems

2008-01-10 Thread Sheriff
never mind


- Original Message 
From: markcavins <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, January 10, 2008 3:40:58 PM
Subject: [flexcoders] XML List problems

I have had some help from some others on this issue but the battle
continues and I am perplexed as to why this might be happening.

I am grabbing a HTTPService from my site

https://mysite. net/interface. php?action= showopen& amp;operation= 
showassets& amp;format= xml&opstatus =crit"
/>

and displaying it in a TileList



and then refreshing the data every 5 minutes or when a user pushes a
button.

before I was trying to call the data with a mx:XML and the data was
displaying but the data would not refresh. Looking through the docs it
seems that that is the expected response. changing to the Service
request I can look through firebug and see that the request is being
made and that the server is returning the proper xml but now the
TileList is not displaying any information.

I have tried to look through the docs to see what might be the cause
but not solution has presented itself.





  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[flexcoders] XML List problems

2008-01-10 Thread markcavins
I have had some help from some others on this issue but the battle
continues and I am perplexed as to why this might be happening.

I am grabbing a HTTPService from my site

https://mysite.net/interface.php?action=showopen&operation=showassets&format=xml&opstatus=crit";
/>

and displaying it in a TileList



and then refreshing the data every 5 minutes or when a user pushes a
button.

before I was trying to call the data with a mx:XML and the data was
displaying but the data would not refresh. Looking through the docs it
seems that that is the expected response. changing to the Service
request I can look through firebug and see that the request is being
made and that the server is returning the proper xml but now the
TileList is not displaying any information.

I have tried to look through the docs to see what might be the cause
but not solution has presented itself.





[flexcoders] Re: Repeater problem

2008-01-10 Thread Merrill, Jason
Thanks - I suspected it was something like that too.

However, you're using all Actionscript examples, I'm declaring my
databinding in the MXML:



The data _user.skills array is created on ApplicationComplete - I'm not
sure how to setup the data before, and then set the dataprovider in the
MXML.  The only way I can imagine is doing it all in Actionscript, which
I could do, but why should I have to?  It seems to be a common thing to
bind actionscript data to components declared with MXML, no?

Jason Merrill
Bank of America  
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community






[flexcoders] Here is a puzzling error.

2008-01-10 Thread Andrew Strader
An application that I have been working on for a while occasionally 
throws the following error.

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at ::ModuleInfo/completeHandler()

This does not seem to be impede functionality. If I am using the 
debugger version of Flash Player, I just click "Continue" and 
continue.

When I try to "Open Type" in Flex Builder, it says "Source could not 
be found for mx.modules.ModuleInfo in "C:\Program Files\Adobe\Flex 
Builder 2 Plug-in\Flex SDK 2\frameworks\libs\flex.swc".

I also cannot find documentation for this class online or in the 
source folder of my SDK installation. Since there is no stack trace 
given, it seems anyone's guess as to why this is occurring.

Does anyone have any suggestions on how to troubleshoot this?



[flexcoders] Re: Manual refresh nested collection in LCDS managed object

2008-01-10 Thread Kevin
Sounds like this needs to be done in Java correct?  Is there a way to
do a refresh from actionscript?

Also you have mentioned some new features (destination inheritance!)
for the next version.  Is there a target date for that yet OR info
anywhere as to what the planned feature are?

Thanks!  - Kevin



--- In flexcoders@yahoogroups.com, "Jeff Vroom" <[EMAIL PROTECTED]> wrote:
>
> You can use the method DataServiceTransaction.updateItem(..) to update
> association properties as well.  You need to create an instance of the
> parent object, fully populate the association property with the new
> values, then specify the property name (or names) you changed in the
> "changes" parameter.   You can supply null for the previous item of
> course unless you want to do conflict detection.  
> 
>  
> 
> We're adding better support for incremental updates of association
> properties in general in the next version. 
> 
>  
> 
> Jeff
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Kevin
> Sent: Thursday, January 10, 2008 10:55 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Manual refresh nested collection in LCDS managed
> object
> 
>  
> 
> I am wondering if there is a way to manually refresh a nested
> collection from the server. If I have an object with nested
> collections, I know how to refresh the collection holding the parent
> object, but is there a way to refresh just the object OR just a
> collection inside the object.
> 
> All my collections have association destinations, but the nested
> collections are filled automatically from the parent object and not
> from an explicit call that we make so I am not sure how best to
> refresh them manually if needed.
> 
> I assume there is something basic here I am missing.
> 
> Thanks,
> 
> Kevin
>




[flexcoders] Re: Using the Flex Component Kit in an ActionScript project

2008-01-10 Thread ola.muldal
Instead of manually checking SWC in setting, select your desired
MovieClip in the library, and use the menu "Commands -> Convert Symbol
to Flex Component" (or Container).

The first time you do this, Flash will set the proper settings.



[flexcoders] Re: Yahoo Maps

2008-01-10 Thread Uber_Nick
Hi Chip,

I was also having trouble finding the right SWF and API source.  I did
get my app up and running after downloading a bunch of packages and
examples from random places.  I zipped them in a big ball and posted
it here:

https://share.adobe.com/adc/document.do?docid=3b5ccc88-bfb7-11dc-8eae-a591b7039fd5

Hope this helps.

-Nick Matelli
Amentra, Inc

--- In flexcoders@yahoogroups.com, "Chip Moeser" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> Does anyone have a copy of the 'com.yahoo.maps' package they can email
> me off list? 
> 
> I am trying to update the current 'as2map.swf' and the only code I can
> find is the new 'com.yahoo.webapis.maps' package which is severely
> lacking.
> Best,
> -Chip
> 
> chip.moeser at gmail
>




[flexcoders] Binding a function to a Button's label

2008-01-10 Thread Mogos Sebastian
Hi,

Can you please help me on how to generate the following behavior from mxml
to an AS class:



to

var theNewButton:Button = new Button();
theNewButton.label = I18nManager.getInstance().getValue("button.new");
//add here the binding instead of the upper code. I really don't know how
this can be done with BindingUtils (if it can be done)

Also I want to mention that the getValue function is binded to an event.

[Bindable(event="i18nItemsGathered")]
   public function getValue(key:String):String
   {
   var theValue:String = i18nKeys[key];
   return theValue != null? theValue: key;
   }

I have user this for internationalization, the event is generated when the
language is changed/set (all i18nKeys are gathered).

Adding the button in an MXML works fine, but adding it in AS doesn't.

I really appreciate any help.

Thanks,
Sebastian



RE: [flexcoders] Menu Seprator color

2008-01-10 Thread Deepa Subramaniam
You can specify a skin that the Menu uses as the separator. Check out
the separatorSkin style. There are examples of how to create graphical
skins (using Flash, Fireworks, etc) or programmatic skins (creating an
ActionScript file that draws the skin via the Flash drawing API) in the
Flex documentation - you then set the separatorSkin style to that skin. 


Also, this is a pretty expensive way to set styles on your Menu
instance. You should look into using CSS to specify your Menu's look and
feel. 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yourName
Sent: Thursday, January 10, 2008 2:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Menu Seprator color

 

can one tell how to control the size and color of menu seprator

 

follwing is code snipet

 

private function createAndShow():void

{

var myMenu:Menu = Menu.createMenu(null, myMenuData, false);

myMenu.setStyle( "color" , "#7d9bc6" );

myMenu.setStyle( "fontSize" , "11" );

myMenu.setStyle( "fontWeight" , "bold" );

myMenu.setStyle( "fontFamily" , "Arial" );

myMenu.setStyle( "borderStyle" , "solid" );

/* myMenu.setStyle( "borderColor" , "#f69401" ); */

myMenu.setStyle( "rollOverColor" , "white" );

myMenu.setStyle( "cornerRadius" , "5" ); 

myMenu.setStyle( "textRollOverColor" , "#f69401" ); 

myMenu.setStyle( "borderThicknessTop" , "1" );

myMenu.setStyle( "dropShadowEnabled" , "false" );

myMenu.setStyle( "selectionColor" , "#f69401" );

myMenu.setStyle( "menuseparator" , "#f69401" );

myMenu.labelField="@label";

myMenu.show(60, 90);

}

 







 























 

 



 

 



[flexcoders] Re: Setter question

2008-01-10 Thread markgoldin_2000
I wasn't exactly correct. I am overriding dataProvider.
A soon as DP is set I am fixing combo's value.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> As long as you're happy...
> 
>  
> 
> I don't understand how you can expect to choose an item from a
> dataprovider if the dataprovider isn't already set.  If you're 
seeing
> the dp change before the selected item is set, that implies that 
you are
> not setting the selectedItem in the same "script" as when the
> dataprovider is set.  Flash/Flex is a deferred rendering 
environment.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Thursday, January 10, 2008 9:14 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Setter question
> 
>  
> 
> Yes, I am basically doing the same.
> But I can't agree that DP must be set first. Maybe from Flex's 
point 
> of view it does, but not from the user's. 
> If you set DP first and then load your form's data then for a short 
> period of time(and maybe not really short) you will see wrong 
values 
> (actually first items) in all your combos till form is loaded. Not 
> big of a deal, but I dont like to see wrong data on the screen at 
all 
> times.
> I have got it working, it just more coding, that's all.
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > You might find this article helpful:
> > 
> > 
http://blogs.adobe.com/aharui/2008/01/selecteditem_and_combobox.html
> 

 
> > 
> > 
> > 
> > That way you can find the item you want to be selected after the 
DP 
> is
> > set. In general the DP must be set first.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of mark goldin
> > Sent: Friday, January 04, 2008 3:42 AM
> > To: flexcoders@yahoogroups.com  
> > Subject: RE: [flexcoders] Setter question
> > 
> > 
> > 
> > Yes, that's what I fugured.
> > 
> > Here is my code. 
> > 
> > I have a combobox as a form item.:
> > 
> >  > 
> > label="Other RailRoad Involved" width="302"> 
> > 
> >  > 
> > selectedIndex="
> > 
> > {modelGeneral.otherrailroadinvolved}" 
> > 
> > id="
> > 
> > otherrailroadinvolved" width="95"! > 
> > 
> >  
> > 
> >  
> > 
> > dataModel tag: 
> > 
> >  > 
> > id="modelGeneral"/> 
> > 
> > 
> > 
> > Data Model:
> > 
> > public
> > 
> > class accidentsGeneralModel 
> > 
> > {
> > 
> > private var _otherrailroa! dinvolved:int = 0; 
> > 
> > [
> > 
> > Bindable] 
> > 
> > public var modelValid:Boolean = false; 
> > 
> > 
> > 
> > [
> > 
> > Bindable] 
> > 
> > public function get otherrailroadinvolved():int 
> > 
> > {
> > 
> > return! _otherrailroadinvolved; 
> > 
> > }
> > 
> > public function set
> > otherrailroadinvolved(otherrailroadinvolved:int):void 
> > 
> > {
> > 
> > _otherrailroadinvolved = otherrailroadinvolved;
> > 
> > }
> > 
> > Combo's data:
> > 
> > combo.dataProvider = someXML;
> > 
> > 
> > 
> > Form's data:
> > 
> > //reference to main application
> > 
> > mainApp = mx.core.Application.application;
> > 
> > // reference to A! ccidents module 
> > 
> > accidentsModul! e = main App.moduleLoader.child;
> > 
> > accidentsModule.modelGeneral.otherrailroadinvolved =
> > resultXML.general.otherrailroadinvolved;
> > 
> > 
> > 
> > Here is what happens:
> > 
> > If I am setting up form's data after combo's dropdown has been 
set 
> then
> > the combo will show the correct item: item that is driven by the 
> form's
> > data. But if I do it other way around then the combo does not 
show 
> the
> > correct one but always has its selectedIndex = 0.
> > 
> > I am trying to override dataProvider property but dont know what 
I 
> can
> > match combo's dropdown data to to set its selectedIndex manually.
> > 
> > 
> > 
> > Thanks
> > 
> > 
> > Alex Harui  wrote: 
> > 
> > Unless comboItemRenderer is in a List or DataGrid or other
> > ListBase-derived class, the listData setter function will not be 
> called.
> > 
> > Assigning the combo's dataprovider just tells its dropdown List 
> what to
> > display.
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flex! [EMAIL PROTECTED] 
> ahoogroups.com]
> > On Behalf Of mark goldin
> > Sent: Thursday, January 03, 2008 6:17 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: RE: [flexcoders] Setter question
> > 
> > Combo:
> > 
> > package! 
> > 
> > CustomComponents 
> > 
> > {
> > 
> > import mx.controls.*; 
> > 
> > import mx.controls.listClasses.*; 
> > 
> > import mx.collections.*; 
> > 
> > import flash.events.Event; 
> > 
> > import mx.events.*; 
> > 
> >

RE: [flexcoders] Manual refresh nested collection in LCDS managed object

2008-01-10 Thread Jeff Vroom
You can use the method DataServiceTransaction.updateItem(..) to update
association properties as well.  You need to create an instance of the
parent object, fully populate the association property with the new
values, then specify the property name (or names) you changed in the
"changes" parameter.   You can supply null for the previous item of
course unless you want to do conflict detection.  

 

We're adding better support for incremental updates of association
properties in general in the next version. 

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Thursday, January 10, 2008 10:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Manual refresh nested collection in LCDS managed
object

 

I am wondering if there is a way to manually refresh a nested
collection from the server. If I have an object with nested
collections, I know how to refresh the collection holding the parent
object, but is there a way to refresh just the object OR just a
collection inside the object.

All my collections have association destinations, but the nested
collections are filled automatically from the parent object and not
from an explicit call that we make so I am not sure how best to
refresh them manually if needed.

I assume there is something basic here I am missing.

Thanks,

Kevin

 



[flexcoders] Re: Using HTTPService with a TileList

2008-01-10 Thread markcavins
Thanks for the help. However, doing that now I see no data at all in
the list.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> {tempXML.lastResult.asset.fleet}
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of markcavins
> Sent: Thursday, January 10, 2008 11:03 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Using HTTPService with a TileList
> 
>  
> 
> 
> Thank your Abdul for taking a look at my problem. this fixed one of
> the two errors but it is still hating my TileList
> 
>  width="344" backgroundColor="#00" color="#ff" fontSize="27"
> borderColor="#00" columnWidth="300" rowHeight="50"
> themeColor="#808080" fontWeight="bold" allowMultipleSelection="true" 
> id="TileList1" height="0" y="202" x="178"/>
> 
> 
> it is still returning 
> 
> 1119: Access of possibly undefined property asset through a reference
> with static type mx.rpc.http.mxml:HTTPService.
> 
> --- In flexcoders@yahoogroups.com 
> , "Abdul Qabiz"  wrote:
> >
> > click="HTTPService.send()"/>
> > 
> > It should be:-
> > 
> > click="tempXML.send ()"
> > 
> > 
> > -abdul
> > 
> > On Jan 10, 2008 11:24 PM, markcavins  wrote:
> > 
> > > I have also tried to change the way that I get the data to
> > >
> > > Code:
> > >
> > >  > > url="
> > >
> https://mysite.net/interface.php?action=showopen&operation=showasset
> s&a\
>  ts&a> > >
> mp;format=xml&opstatus=defect&rand=12345645647 t/interface.php?action=showopen&operation=showassets&format=xml&opstatus
> =defect&rand=12345645647
>  ormat=xml&opstatus=defect&rand=12345645647> >
> > > "
> > > >
> > >
> > >  > > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> > > borderColor="#00" columnWidth="300" rowHeight="50"
> > > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> > > id="TileList1" height="0" y="202" x="178"/>
> > >
> > >  > > borderColor="#DCDEDF" click="HTTPService.send()"/>
> > >
> > > but now I'm getting 2 errors
> > >
> > > 1061: Call to a possibly undefined method send through a reference
> > > with static type Class.
> > >
> > > 1119: Access of possibly undefined property asset through a
> reference
> > > with static type mx.rpc.http.mxml:HTTPService.
> > >
> > > I am trying to find the reason for that problem it seems it doesn't
> > > like the services being used with the TileList. Still trying to see
> > > what's going on now.
> > >
> > > 
> > >
> > 
> > 
> > 
> > -- 
> > -abdul
> > ---
> > http://abdulqabiz.com/blog/  
> > ---
> >
>




[flexcoders] Re: Massive Error for login script

2008-01-10 Thread markcavins
Thank you Abdul for your reply to this problem. 

If I copy and paste the url I still get the popup but as soon as I
enter the user and password it will let me through. But If I go
through the flex app then it will never validate and I will have to
click cancel which throws a 403 error. 

My goal is to try and have flex control the browser and let flex
control 403's and so on. I have read your blog post on controlling
HTTP requests but have not been able to get it to work.

Any other ideas that you have would be great.



--- In flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
>
> Probably, your login script on server-side is throwing some error
when it
> sees the wrong data...
> 
> What happens, if you copy paste URL in browser (not in flex app):-
> 
>
https://mysite.net/interface.php?password=pass&customer=34343&username=wrong_name
> 
> Do you see any error?
> 
> 
> BTW! Just a suggestion, nothing to do with this problem, it's not
good idea
> to use HTTP/GET for this purpose. Use POST method in HTTPService and
also
> modify the php to use $_POST or $_REQUEST (works for both GET and
POST but
> it's good to use the specific ones).
> 
> -abdul
> 
> On Jan 10, 2008 11:57 PM, markcavins <[EMAIL PROTECTED]> wrote:
> 
> >   Hello,
> >
> > I am having a major problem with my login script. When a user enters
> > information correctly there is not problem. if a user enters in the
> > wrong customer name I get the expected popup that says enter your
> > customer #. However if the username or customer name is wrong the
> > browser pops up a warning (set by a serverside js warning used by
> > other programs) and I get the following error
> >
> > [RPC Fault faultString="HTTP request error"
> > faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
> > type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
> > #2032: Stream Error. URL:
> >
> >
https://mysite.net/interface.php?password=pass&customer=13&username=uzernamz
> > "].
> > URL: https://mysite.net/interface.php";]
> > at
> > mx.rpc::AbstractInvoker/
> > http://www.adobe.com/2006/flex/mx/internal::faultHandler
> >
()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:211]
> > at
> > mx.rpc::Responder/fault
> >
()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
> > at
> > mx.rpc::AsyncRequest/fault
> >
()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:110]
> > at
> >
> >
DirectHTTPMessageResponder/errorHandler()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:343]
> > at flash.events::EventDispatcher/dispatchEventFunction()
> > at flash.events::EventDispatcher/dispatchEvent()
> > at flash.net::URLLoader/redirectEvent()
> >
> > I have read articals like judah's blog I am still stumped how to fix
> > this issue.
> >
> >  
> >
> 
> 
> 
> -- 
> -abdul
> ---
> http://abdulqabiz.com/blog/
> ---
>




RE: [flexcoders] Using the Flex Component Kit in an ActionScript project

2008-01-10 Thread Alex Harui
Use link-report to make sure it got in the swf.

 

Use the debugger to see if it got instantiated and given the right size,
position and visibility

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Elie Zananiri
Sent: Thursday, January 10, 2008 9:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using the Flex Component Kit in an ActionScript
project

 

Hello all,

I am trying to use the Flex Component Kit to export some graphics drawn
in Flash CS3 to 
an ActionScript project in Flex and I can't get it to work. 

Here's what I'm doing:
In Flash:
1. Creating an MC symbol in Flash.
2. Giving it name="SomeName", class="SomeName", and base 
class="mx.flash.UIMovieClip".
3. Right-clicking on the symbol in the library and exporting it as an
SWC file called 
"SomeNameUIMC.swc".
In Flex Builder:
4. Creating a new ActionScript project with main application file
"SomeOtherName.as".
5. Importing the SWC file to the library path.
6. Creating a new class called "SomeName.as" which extends
"mx.flash.UIMovieClip".
7. Instancing "SomeName" in "SomeOtherName" and adding it to the canvas.

Now when I run this, I don't get any compilation errors, but the display
is blank. I don't 
think my SWC file is being linked to the class, but I don't see any info
on how to do this. All 
the tutorials I found online are using mxmlc, so is it possible that the
Component Kit only 
works with Flex projects? If not, does anyone have any examples working
on ActionScript 
projects or can anyone see what I'm doing wrong?

Thanks for the help,

-Elie

 



RE: [flexcoders] Re: Using HTTPService with a TileList

2008-01-10 Thread Alex Harui
{tempXML.lastResult.asset.fleet}

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markcavins
Sent: Thursday, January 10, 2008 11:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using HTTPService with a TileList

 


Thank your Abdul for taking a look at my problem. this fixed one of
the two errors but it is still hating my TileList




it is still returning 

1119: Access of possibly undefined property asset through a reference
with static type mx.rpc.http.mxml:HTTPService.

--- In flexcoders@yahoogroups.com 
, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
>
> click="HTTPService.send()"/>
> 
> It should be:-
> 
> click="tempXML.send ()"
> 
> 
> -abdul
> 
> On Jan 10, 2008 11:24 PM, markcavins <[EMAIL PROTECTED]> wrote:
> 
> > I have also tried to change the way that I get the data to
> >
> > Code:
> >
> >  > url="
> >
https://mysite.net/interface.php?action=showopen&operation=showasset
s&a\
 > >
mp;format=xml&opstatus=defect&rand=12345645647 >
> > "
> > >
> >
> >  > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> > borderColor="#00" columnWidth="300" rowHeight="50"
> > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> > id="TileList1" height="0" y="202" x="178"/>
> >
> >  > borderColor="#DCDEDF" click="HTTPService.send()"/>
> >
> > but now I'm getting 2 errors
> >
> > 1061: Call to a possibly undefined method send through a reference
> > with static type Class.
> >
> > 1119: Access of possibly undefined property asset through a
reference
> > with static type mx.rpc.http.mxml:HTTPService.
> >
> > I am trying to find the reason for that problem it seems it doesn't
> > like the services being used with the TileList. Still trying to see
> > what's going on now.
> >
> > 
> >
> 
> 
> 
> -- 
> -abdul
> ---
> http://abdulqabiz.com/blog/  
> ---
>

 



RE: [flexcoders] Re: Setter question

2008-01-10 Thread Alex Harui
As long as you're happy...

 

I don't understand how you can expect to choose an item from a
dataprovider if the dataprovider isn't already set.  If you're seeing
the dp change before the selected item is set, that implies that you are
not setting the selectedItem in the same "script" as when the
dataprovider is set.  Flash/Flex is a deferred rendering environment.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Thursday, January 10, 2008 9:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Setter question

 

Yes, I am basically doing the same.
But I can't agree that DP must be set first. Maybe from Flex's point 
of view it does, but not from the user's. 
If you set DP first and then load your form's data then for a short 
period of time(and maybe not really short) you will see wrong values 
(actually first items) in all your combos till form is loaded. Not 
big of a deal, but I dont like to see wrong data on the screen at all 
times.
I have got it working, it just more coding, that's all.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You might find this article helpful:
> 
> http://blogs.adobe.com/aharui/2008/01/selecteditem_and_combobox.html
 
> 
> 
> 
> That way you can find the item you want to be selected after the DP 
is
> set. In general the DP must be set first.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of mark goldin
> Sent: Friday, January 04, 2008 3:42 AM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] Setter question
> 
> 
> 
> Yes, that's what I fugured.
> 
> Here is my code. 
> 
> I have a combobox as a form item.:
> 
>  
> label="Other RailRoad Involved" width="302"> 
> 
>  
> selectedIndex="
> 
> {modelGeneral.otherrailroadinvolved}" 
> 
> id="
> 
> otherrailroadinvolved" width="95"! > 
> 
>  
> 
>  
> 
> dataModel tag: 
> 
>  
> id="modelGeneral"/> 
> 
> 
> 
> Data Model:
> 
> public
> 
> class accidentsGeneralModel 
> 
> {
> 
> private var _otherrailroa! dinvolved:int = 0; 
> 
> [
> 
> Bindable] 
> 
> public var modelValid:Boolean = false; 
> 
> 
> 
> [
> 
> Bindable] 
> 
> public function get otherrailroadinvolved():int 
> 
> {
> 
> return! _otherrailroadinvolved; 
> 
> }
> 
> public function set
> otherrailroadinvolved(otherrailroadinvolved:int):void 
> 
> {
> 
> _otherrailroadinvolved = otherrailroadinvolved;
> 
> }
> 
> Combo's data:
> 
> combo.dataProvider = someXML;
> 
> 
> 
> Form's data:
> 
> //reference to main application
> 
> mainApp = mx.core.Application.application;
> 
> // reference to A! ccidents module 
> 
> accidentsModul! e = main App.moduleLoader.child;
> 
> accidentsModule.modelGeneral.otherrailroadinvolved =
> resultXML.general.otherrailroadinvolved;
> 
> 
> 
> Here is what happens:
> 
> If I am setting up form's data after combo's dropdown has been set 
then
> the combo will show the correct item: item that is driven by the 
form's
> data. But if I do it other way around then the combo does not show 
the
> correct one but always has its selectedIndex = 0.
> 
> I am trying to override dataProvider property but dont know what I 
can
> match combo's dropdown data to to set its selectedIndex manually.
> 
> 
> 
> Thanks
> 
> 
> Alex Harui <[EMAIL PROTECTED]> wrote: 
> 
> Unless comboItemRenderer is in a List or DataGrid or other
> ListBase-derived class, the listData setter function will not be 
called.
> 
> Assigning the combo's dataprovider just tells its dropdown List 
what to
> display.
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flex! [EMAIL PROTECTED] 
ahoogroups.com]
> On Behalf Of mark goldin
> Sent: Thursday, January 03, 2008 6:17 PM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] Setter question
> 
> Combo:
> 
> package! 
> 
> CustomComponents 
> 
> {
> 
> import mx.controls.*; 
> 
> import mx.controls.listClasses.*; 
> 
> import mx.collections.*; 
> 
> import flash.events.Event; 
> 
> import mx.events.*; 
> 
> public class comboIte! mRenderer extends ComboBox implements
> IDropInListItemRenderer 
> 
> {
> 
> public function! comboItemRenderer() 
> 
> { 
> 
> super(); 
> 
> }
> 
> override public function set listData(value:BaseListData):void 
> 
> {
> 
> super.listData = value; 
> 
> ..
> 
> Assigning data:
> 
> combo.dataProvider = XMLData;
> 
> Should I be getting into listData function after that command?
> 
> 
> Gordon Smith <[EMAIL PROTECTED]> wrote: 
> 
> What do you mean by defining a "set function" for the ComboBox? Can 
you
> show some code?
> 
> ! 
> 
> Gordon Smith
> 

RE: [flexcoders] Massive Error for login script

2008-01-10 Thread Alex Harui
When you put up the popup, execution does not stop like it does in other
environments so the next lines of code might run and end up calling the
webservice.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markcavins
Sent: Thursday, January 10, 2008 10:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Massive Error for login script

 

Hello,

I am having a major problem with my login script. When a user enters
information correctly there is not problem. if a user enters in the
wrong customer name I get the expected popup that says enter your
customer #. However if the username or customer name is wrong the
browser pops up a warning (set by a serverside js warning used by
other programs) and I get the following error

[RPC Fault faultString="HTTP request error"
faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
#2032: Stream Error. URL:
https://mysite.net/interface.php?password=pass&customer=13&username=uzer
namz
 "].
URL: https://mysite.net/interface.php 
"]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faul
tHandler 
()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractIn
voker.as:211]
at
mx.rpc::Responder/fault()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rp
c\src\mx\rpc\Responder.as:56]
at
mx.rpc::AsyncRequest/fault()[E:\dev\flex_3_beta2\sdk\frameworks\projects
\rpc\src\mx\rpc\AsyncRequest.as:110]
at
DirectHTTPMessageResponder/errorHandler()[E:\dev\flex_3_beta2\sdk\framew
orks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:343]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()

I have read articals like judah's blog I am still stumped how to fix
this issue.

 



RE: [flexcoders] Flex 1.5 - RemoteObject request timeout

2008-01-10 Thread Robert Brueckmann
Well, just for anyone interested, I did a little more digging and there
is an Apache-Weblogic connector that is used and there are settings for
this connector:

 

http://edocs.bea.com/wls/docs81/plugins/plugin_params.html

 

The one of interest for those with similar setups is 'WLIOTimeoutSecs'.
The default is 5 minutes, any request that takes longer is considered
timed out and I guess a 503 (?) status is sent to Flex but Flex isn't
catching this and just acts like it's still waiting for a response.  I
changed this setting to 10 minutes and the process that was previously
finishing past 5 minutes still takes the same amount of time but Flex
app regains control now because the request hadn't timed out.  

 

robert l. brueckmann

vice president

merlin securities

712 fifth avenue

new york, ny 10019

p: 212.822.4821
f: 212.822.4820



Merlin Securities - #1 Prime Broker North America and #1 Prime Broker Single 
Strategy Funds - Global Custodian 2007
#1 Prime Broker for Hedge Funds under $1 Billion - Alpha Survey 2007




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robert Brueckmann
Sent: Thursday, January 10, 2008 10:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5 - RemoteObject request timeout

 

We still support a Flex 1.5 app I wrote 3 years ago that our clients use
to run reports with.  I'm in the midst of upgrading the entire app to
Flex 2+, but of course the db people keep adding reports and one
recently added report is for the admin-side only and is a crude report
that can sometimes take over 5 minutes to return from the database with
data.

 

We have a setup as follows: Apache + Weblogic + firewall + Oracle
database.  Here's the weird thing...if only one person runs the report
at any given time...it may take about 4.5 minutes, I see the call made
to the database, I watch the log and see after 4+ minutes, the call to
the stored procedure return to the application server and the original
method return to the front-end and Flex correctly displays the report.
If I open two browsers or have a coworker hit the report within a few
seconds of my initial request and these two requests are made, a.) the
call to the database takes a minute or so longer (I know the db people
need to optimize this, but this is what I'm dealing with up front) and
b.) I see it come back and the data returned to the front-end but the
Flex app on either my or my coworker's machine or either browser
(dependent on how I'm testing) does not get the returned response.  The
clock busy cursor just continues to spin.

 

I've searched the archives and it seems a few people have posted similar
problems but nobody has posted what their absolute resolution was.
Anyone know anything about this?  I literally see the data returned to
the Flex application in the app server log but my Cairngorm command
class result/fault handlers never capture anything and the busy cursor
just keeps spinning.  Anyone know anything about this or should I make
use of my Flex support contract?  Could this be a timeout between the
apache and weblogic layer?  I checked with the systems guys and they
claim that the request timeout feature of apache isn't being used but I
don't know if there is a default setting that apache uses...I guess I'll
check that out...but any feedback would be GREATLY appreciated.

 

Thanks so much for anything!

 

rlb



Merlin Securities - #1 Prime Broker North America and #1 Prime Broker
Single Strategy Funds - Global Custodian 2007
#1 Prime Broker for Hedge Funds under $1 Billion - Alpha Survey 2007



 



This message contains information from Merlin Securities, LLC, or from
one of its affiliates, that may be confidential and privileged. If you
are not an intended recipient, please refrain from any disclosure,
copying, distribution or use of this information and note that such
actions 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 offered
through Merlin Securities, LLC are not insured by the FDIC or any other
Federal Government Agency, are not deposits of or guaranteed by Merlin
Securities, LLC and may lose value. Nothing in this communication shall
constitute a solicitation or recommendation to buy or sell a particular
security.


 



This message contains information from Merlin Securities, LLC, or from one of 
its affiliates, that may be confidential and privileged. If you are not an 
intended recipient, please refrain from any disclosure, copying, distribution 
or use of this information and note that such actions 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. Serv

[flexcoders] Re: Populating comboBox

2008-01-10 Thread simonjpalmer
one very small point, you can get rid of the line which adds a dummy
"Select" item by setting the prompt on the combo

--- In flexcoders@yahoogroups.com, "candysmate" <[EMAIL PROTECTED]> wrote:
>
> I'm tring to populate a comboBox with
> 
> var dsWeek:Array = [];
> [Bindable]
> var dsWeekArray = new ArrayCollection(dsWeek);
> var systemUtilitiesWeek:int = 35;
> 
> private function initDissection():void
> {
>   dsWeekArray.addItem({week:"Select"});
>   
>   for(var ds1:int = 1; ds1 <= systemUtilitiesWeek; ds1 ++)
>  {
>   dsWeekArray.addItem({week: ds1});
>  }
>  
>   dsWeekArray.refresh();   
> }
> 
> I'm expected the comboBox, with dataprovider set to {dsWeekArray}
> to be:
> 
> Select
> 1
> 2
> 3
> 4
> 5
> ...
> 
> but it just says [Object, object]
> 
> Where have I gone wrong please?
>




[flexcoders] Re: Using HTTPService with a TileList

2008-01-10 Thread markcavins

Thank your Abdul for taking a look at my problem. this fixed one of
the two errors but it is still hating my TileList




it is still returning 

1119: Access of possibly undefined property asset through a reference
with static type mx.rpc.http.mxml:HTTPService.


--- In flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
>
>  click="HTTPService.send()"/>
> 
> It should be:-
> 
> click="tempXML.send ()"
> 
> 
> -abdul
> 
> On Jan 10, 2008 11:24 PM, markcavins <[EMAIL PROTECTED]> wrote:
> 
> >   I have also tried to change the way that I get the data to
> >
> > Code:
> >
> >  > url="
> >
https://mysite.net/interface.php?action=showopen&operation=showassets&a\
> >
mp;format=xml&opstatus=defect&rand=12345645647
> > "
> > >
> >
> >  > width="344" backgroundColor="#00" color="#ff" fontSize="27"
> > borderColor="#00" columnWidth="300" rowHeight="50"
> > themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> > id="TileList1" height="0" y="202" x="178"/>
> >
> >  > borderColor="#DCDEDF" click="HTTPService.send()"/>
> >
> > but now I'm getting 2 errors
> >
> > 1061: Call to a possibly undefined method send through a reference
> > with static type Class.
> >
> > 1119: Access of possibly undefined property asset through a reference
> > with static type mx.rpc.http.mxml:HTTPService.
> >
> > I am trying to find the reason for that problem it seems it doesn't
> > like the services being used with the TileList. Still trying to see
> > what's going on now.
> >
> >  
> >
> 
> 
> 
> -- 
> -abdul
> ---
> http://abdulqabiz.com/blog/
> ---
>




RE: [flexcoders] The 'right' way to do custom styles

2008-01-10 Thread Gordon Smith
> There was a long post (before Xmas) about the examples
> of custom styles on components on LiveDocs not actually working

If the doc examples don't work, I suggest that you file a bug to get
them fixed and instead look at the actual framework source code. You can
see exactly how our components implement styles that work properly and
require minimal implementation effort.

> I can't see why I'd prefer two files over one.

You should prefer declaring default styles in CSS because this can
produce smaller SWFs. If you instead write class initialization code to
create a CSSStyleDeclaration representing a default type selector for
your component, that code will get linked into your SWF even if it the
developer using your component writes her own type selector in CSS. If
you write your default type selector in CSS, that doesn't happen.

Also, writing a CSS selector is considerably simpler than writing the
ActionScript for a factory function for a CSSStyleDeclaration and
getting that CSSStyleDeclaration installed into the StyleManager.

> It wouldn't be much of a component if it had no children

A component can have children which can look at the component's styles
to determine how to draw themselves, without that component having to
override styleChanged(). You need to override styleChanged() only in
rarer cases, such as when changing the style requires new children to be
created or the child order to change. Take a look at the implementation
of styleChanged() in UIComponent to see what you get without overriding.
It has logic about when to call invalidateSize() and
invalidateDisplayList() on itself and its parent.

Gordon Smith
Adobe Flex SDK Team


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Thursday, January 10, 2008 2:45 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] The 'right' way to do custom styles

On Wednesday 09 Jan 2008, Gordon Smith wrote:
> > a change boolean flag
>
> These are generally not necessary to implement styles. Where do you
see
> them in the framework components?

There was a long post (before Xmas) about the examples of custom styles
on 
components on LiveDocs not actually working, and an alternative method
(not 
found by me) that does work
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
p.htm?context=LiveDocs_Book_Parts&file=skinstyle_149_7.html
vs.
http://tech.groups.yahoo.com/group/flexcoders/message/92900 (and rest of

thread)

> With Flex 3, a SWC can contain a CSS file which you can use to define
> type selectors for your components, so you don't have to do this in
> ActionScript.

Nice to know, but I can't see why I'd prefer two files over one.

> > an if in each of styleChanged()
>
> Unless a component has styles which affect which children it has (such
> as skin styles), it generally doesn't even need to override
> styleChanged().

It wouldn't be much of a component if it had no children :-)

But, regardless of the impl. details, it's a tedious process that seems
to me 
to be automatable.

-- 
Tom Chiverton
Helping to assertively develop bleeding-edge convergence
on: http://thefalken.livejournal.com



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

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

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

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


--
Flexcoders 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] Manual refresh nested collection in LCDS managed object

2008-01-10 Thread Kevin
I am wondering if there is a way to manually refresh a nested
collection from the server. If I have an object with nested
collections, I know how to refresh the collection holding the parent
object, but is there a way to refresh just the object OR just a
collection inside the object.

All my collections have association destinations, but the nested
collections are filled automatically from the parent object and not
from an explicit call that we make so I am not sure how best to
refresh them manually if needed.

I assume there is something basic here I am missing.

Thanks,

Kevin



Re: [flexcoders] crossdomain not working with HTTP Request Error

2008-01-10 Thread Abdul Qabiz
Not sure, Flash Player 9,0,115,0,  has some new rules for crossdomain data
and socket... Check out the security article:

http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_print.html

I doubt, does it have to do with port number. Remember,
www.yourserver.com:80 and yourserver.com:80 are considered to be two
different domains, you need to allow both of these in your crossdomain.xml

-abdul

On Jan 10, 2008 12:45 PM, Alex Harui < [EMAIL PROTECTED]> wrote:

>I'm not the expert on network sniffers but apparently there are such
> things so you can tell what is being accessed.  If your crossdomain.xml is
> in http://[host]:[port]/crossdomain/crossdomain.xml, then you will need to
> use loadPolicyFile, but if you have a wsdl in your app, it might get fetched
> before your call to loadPolicyFile so you have to make sure you get the
> timing right.
>
>
>
> Server OS shouldn't matter.  Prove you can hit the crossdomain.xml by
> typing its url in a browser.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of
> *Dominique Bessette - Halsema
> *Sent:* Wednesday, January 09, 2008 11:34 AM
> *To:* flexcoders@yahoogroups.com
>
> *Subject:* Re: [flexcoders] crossdomain not working with HTTP Request
> Error
>
>
>
> i tried creating a war file with the context-root = /  it's located at
> http://[host]:[port]/crossdomain
>
>
>
> and i tried using the loadPolicyFile command where i tried loading it from
> http://[host]:[port]/crossdomain and
>
>
> http://[host]:[port]/fcs-service/crossdomain.xml
>
>
>
>
>
> and it's still not working.  i'm still getting http errors and
>
>
>
> Error while loading imported schema from parent location: 
> http://[host]:[port]/fcs-service/fcs?xsd=1Security
>  error
> accessing url" faultCode=" XML.SchemaError.Import"
>
>
>
>
>
>
>
> what if my server is running on a linux server does that make a
> difference?  should i put it in the /root directory?  how can i tell if the
> crossdomain file is loading?
>
>
>
> On 1/8/08, *Alex Harui* <[EMAIL PROTECTED]> wrote:
>
> Normally that is http://[host]:[port]/
>
>
>   --
>
> * From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Dominique Bessette - Halsema
> *Sent:* Tuesday, January 08, 2008 1:51 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] crossdomain not working with HTTP Request
> Error
>
>
>
> i understand that, what i dont understand is where exactly the file is
> supposed to go, as i said right now it is at
>
>
>
> http://[host]:[port]/weemc-service/crossdomain.xml
> 
>
>
>
> which is the web root of that ear file it is trying to access.  so are you
> saying i'm supposed to put it in the web root of the server, where is that
> or what does that mean?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On 1/8/08, *Alex Harui* < [EMAIL PROTECTED]> wrote:
>
> When you run on your local machine, there is no enforcement of security
> rules (mainly because there is no server serving the swf and thus no domain
> to verify against), but also as a convenience for development.
>
>
>
> When you deploy to a server, that server becomes the domain for your SWF.
> Any access to a different domain in a url (even the ip equivalent of the
> domain) is considered cross-domain and the server being accessed must grant
> permission via crossdomain.xml.
>
>
>   --
>
> * From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On
> Behalf Of *Dominique Bessette - Halsema
> *Sent:* Tuesday, January 08, 2008 11:09 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] crossdomain not working with HTTP Request Error
>
>
>
> I'm trying to finish this project and i'm running out of time if anyone
> has any ideas PLEASE let me know.
>
>
>
> I have a flex application that calls my web service through the wsdl which
> is located in an ear file
>
>
>
> http://{svr8}:port/weemc-service/weemc?wsdl
> 
>
>
>
> on my local machine the flex app works when i try to get the data from the
> database, but on my production server (which is svr8)  i get a "security
> access error".  when i change the url so that i am viewing the file throught
> the web server (ie. svr8) and not the ip address I get a
>
>
>
> [WSDLError faultString="Element "" not resolvable" faultCode="
> WSDL.BadElement" faultDetail="null"]
>
>
>
> error.  After i select dismiss all and refresh the flex app then it's
> get's the data from the database.
>
> if i try to post/update data in the database on either my local machine I
> get this error
>
>
>
> [RPC Fault faultString="HTTP request error" faultCode="
> Server.Error.Request" faultDe

Re: [flexcoders] FLV dimensions from Flex or CF

2008-01-10 Thread Abdul Qabiz
FLV metadata contains it's dimensions, provided if right tool was used to
encode the video to FLV. In any case, you can use open-source tool called
flvtool2 (it's written in ruby and open-source) and hook it with your Upload
process, so you can run this tool on uploaded flv file. This way, you can
inject most of the metadata in flv and read it from Flex/ActionScript while
playback starts.

I am sure, there are such tools available in PHP/C#/Java, just search for
it. Burak (of ASV fame) has written FLVMDI, that can be used also along with
CFEXECUTE (if your are using windows as server), if you are using linux
based server, you might check for RUBY on your server and use flvtool2.

-abdul

On Jan 10, 2008 5:29 PM, Anzer <[EMAIL PROTECTED]> wrote:

>Hi,
>
> I have a Flex app that will allow users to upload FLV videos. I want to
> find out the width and height of the uploaded file and do some logic
> accordingly. I have done a lot of research to find out the FLV dimensions
> from ColdFusion but I couldn't find a solution.
>
> Please let me know if there is any method to find out the FLV dimensions
> from Flex?
>
>
>
> Best Regards,
>
> Anz
>
> http://www.digitalmesh.com | 
> http://www.FlickrMailer.com
>  
>



-- 
-abdul
---
http://abdulqabiz.com/blog/
---


[flexcoders] Re: Populating comboBox

2008-01-10 Thread candysmate
--- In flexcoders@yahoogroups.com, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote:
>
> ComboBox or most of the list-base components expect label and data
> properties in dataProvider. If your dataProvider has different
properties,
> you can use the labelField or labelFunction  fields to show the
label (which
> in this case is showing [Object Object]).
> 
> Check out the ComboBox (or Listbase) docs for more info. You can do the
> following to make it work for now.
> 
> comboBoxInstance.labelField = "week";
> 
> -abdul
> 

I inderstand now. Many thanks Abdul.



Re: [flexcoders] FileReferenceList for Downloads?

2008-01-10 Thread Abdul Qabiz
I think, it's not hard to build that using Flex? I would probably do this:-

1) Load a list of files in server-directory, in flex UI (pretty trivial
stuff).
2) Let user select bunch of items (shown in TileList or List or whatever
control)
3) Use FileReferenceList to initiate download

We should not forget that, Flash Player/AIR are client side runtimes.
Anything to do with server, you would need to write the logic. I remember,
from coldfusion management console, there was a java-applet that allowed you
to do that, but they would have done the similar thing as I mentioned
above...

-abdul

On Jan 10, 2008 9:42 PM, Rick Schmitty <[EMAIL PROTECTED]> wrote:

>   So this kinda functionality is only in Apollo/AIR?
>
> On Jan 9, 2008 11:11 AM, Dimitrios Gianninas
>
> <[EMAIL PROTECTED]>
> wrote:
> >
> >
> >
> >
> >
> >
> >
> > dont think this is possible, you would have to FileReference for every
> file
> > you want to download.
> > Annoying yes, but the upload/download with the Flash is not the best.
> >
> > Unless I am totally wrong and someone corrects me.
> >
> > Dimitrios Gianninas
> > RIA Developer and Team Lead
> > Optimal Payments Inc.
> >
> >
> > 
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> > Behalf Of Rick Schmitty
> > Sent: Wednesday, January 09, 2008 2:03 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] FileReferenceList for Downloads?
> >
> >
> >
> >
> >
> >
> > Is there a FileReferenceList for downloads? For example, select some
> > images on the server, then call download, it prompts you once for the
> > directory and now you can do something similar to multiple uploads and
> > show progress on each file being downloaded
> >
> >
> >
> > AVIS IMPORTANT
> >
> > WARNING
> >
> >
> > Ce message électronique et ses pièces jointes peuvent contenir des
> > renseignements confidentiels, exclusifs ou légalement privilégiés
> destinés
> > au seul usage du destinataire visé. L'expéditeur original ne renonce à
> aucun
> > privilège ou à aucun autre droit si le présent message a été transmis
> > involontairement ou s'il est retransmis sans son autorisation. Si vous
> > n'êtes pas le destinataire visé du présent message ou si vous l'avez
> reçu
> > par erreur, veuillez cesser immédiatement de le lire et le supprimer,
> ainsi
> > que toutes ses pièces jointes, de votre système. La lecture, la
> > distribution, la copie ou tout autre usage du présent message ou de ses
> > pièces jointes par des personnes autres que le destinataire visé ne sont
> pas
> > autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
> > électronique par erreur, veuillez en aviser l'expéditeur.
> >
> > This electronic message and its attachments may contain confidential,
> > proprietary or legally privileged information, which is solely for the
> use
> > of the intended recipient. No privilege or other rights are waived by
> any
> > unintended transmission or unauthorized retransmission of this message.
> If
> > you are not the intended recipient of this message, or if you have
> received
> > it in error, you should immediately stop reading this message and delete
> it
> > and all attachments from your system. The reading, distribution, copying
> or
> > other use of this message or its attachments by unintended recipients is
> > unauthorized and may be unlawful. If you have received this e-mail in
> error,
> > please notify the sender.
>  
>



-- 
-abdul
---
http://abdulqabiz.com/blog/
---


Re: [flexcoders] Re: HTTPService, POST, and QueryString

2008-01-10 Thread Abdul Qabiz
If it's PHP on server, you can use $_REQUEST for POST or GET data.

Not sure, if URLLoader would let you load a URL with a query-string at the
same time posting the data to it?

-abdul

On Jan 10, 2008 8:55 PM, Jim Hayes <[EMAIL PROTECTED]> wrote:

>I'm pretty sure that if you use POST in flex then you are going to have
> to change your server to read the POSTed information rather than the
> querystring.
>
> That said, you don't mention what you're using on your server. In any
> case, it's likely to be a fairly trivial change to implement assuming that
> you have control over the server side code.
>
>
>
> -Original Message-
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *markgoldin_2000
> *Sent:* 10 January 2008 14:26
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: HTTPService, POST, and QueryString
>
>
>
> Where is my Form data going to be? In URLVariables too?
>
> --- In flexcoders@yahoogroups.com , "Nathan
> Arizona"
> <[EMAIL PROTECTED]> wrote:
> >
> > You can use this I think.
> >
> > var dataset:URLVariables = new URLVariables();
> >
> > var request:URLRequest = newURLRequest("somepage");
> > request.data = dataset;
> > request.method = URLRequestMethod.POST
> >
> > --- In flexcoders@yahoogroups.com ,
> "markgoldin_2000"
> >  wrote:
> > >
> > > My server side of application uses QueryString to extract
> parameters
> > > being sent from the client to query data and send it back. To
> save data
> > > I would want to use POST but I also need to send some parameters
> to the
> > > server as well. I want to use same server logic to process
> parameters
> > > in both getting data and saving it. But if I use POST method no
> > > QueryString is available on the server. Any suggestions?
> > >
> > > Thanks
> > >
> >
>
>
> __
> This communication is from Primal Pictures Ltd., a company registered in
> England and Wales with registration No. 02622298 and registered office: 4th
> Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
> VAT registration No. 648874577.
>
> This e-mail is confidential and may be privileged. It may be read, copied
> and used only by the intended recipient. If you have received it in error,
> please contact the sender immediately by return e-mail or by telephoning
> +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
> contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs Email
> Security System.
> __
>  
>



-- 
-abdul
---
http://abdulqabiz.com/blog/
---


Re: [flexcoders] Massive Error for login script

2008-01-10 Thread Abdul Qabiz
Probably, your login script on server-side is throwing some error when it
sees the wrong data...

What happens, if you copy paste URL in browser (not in flex app):-

https://mysite.net/interface.php?password=pass&customer=34343&username=wrong_name

Do you see any error?


BTW! Just a suggestion, nothing to do with this problem, it's not good idea
to use HTTP/GET for this purpose. Use POST method in HTTPService and also
modify the php to use $_POST or $_REQUEST (works for both GET and POST but
it's good to use the specific ones).

-abdul

On Jan 10, 2008 11:57 PM, markcavins <[EMAIL PROTECTED]> wrote:

>   Hello,
>
> I am having a major problem with my login script. When a user enters
> information correctly there is not problem. if a user enters in the
> wrong customer name I get the expected popup that says enter your
> customer #. However if the username or customer name is wrong the
> browser pops up a warning (set by a serverside js warning used by
> other programs) and I get the following error
>
> [RPC Fault faultString="HTTP request error"
> faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
> type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
> #2032: Stream Error. URL:
>
> https://mysite.net/interface.php?password=pass&customer=13&username=uzernamz
> "].
> URL: https://mysite.net/interface.php";]
> at
> mx.rpc::AbstractInvoker/
> http://www.adobe.com/2006/flex/mx/internal::faultHandler
> ()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:211]
> at
> mx.rpc::Responder/fault
> ()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
> at
> mx.rpc::AsyncRequest/fault
> ()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:110]
> at
>
> DirectHTTPMessageResponder/errorHandler()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:343]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at flash.net::URLLoader/redirectEvent()
>
> I have read articals like judah's blog I am still stumped how to fix
> this issue.
>
>  
>



-- 
-abdul
---
http://abdulqabiz.com/blog/
---


Re: [flexcoders] Populating comboBox

2008-01-10 Thread Abdul Qabiz
ComboBox or most of the list-base components expect label and data
properties in dataProvider. If your dataProvider has different properties,
you can use the labelField or labelFunction  fields to show the label (which
in this case is showing [Object Object]).

Check out the ComboBox (or Listbase) docs for more info. You can do the
following to make it work for now.

comboBoxInstance.labelField = "week";

-abdul

On Jan 10, 2008 10:31 PM, candysmate <[EMAIL PROTECTED]> wrote:

>   I'm tring to populate a comboBox with
>
> var dsWeek:Array = [];
> [Bindable]
> var dsWeekArray = new ArrayCollection(dsWeek);
> var systemUtilitiesWeek:int = 35;
>
> private function initDissection():void
> {
> dsWeekArray.addItem({week:"Select"});
>
> for(var ds1:int = 1; ds1 <= systemUtilitiesWeek; ds1 ++)
> {
> dsWeekArray.addItem({week: ds1});
> }
>
> dsWeekArray.refresh();
> }
>
> I'm expected the comboBox, with dataprovider set to {dsWeekArray}
> to be:
>
> Select
> 1
> 2
> 3
> 4
> 5
> ...
>
> but it just says [Object, object]
>
> Where have I gone wrong please?
>
>  
>



-- 
-abdul
---
http://abdulqabiz.com/blog/
---


[flexcoders] Massive Error for login script

2008-01-10 Thread markcavins
Hello,

I am having a major problem with my login script. When a user enters
information correctly there is not problem. if a user enters in the
wrong customer name I get the expected popup that says enter your
customer #. However if the username or customer name is wrong the
browser pops up a warning (set by a serverside js warning used by
other programs) and I get the following error

[RPC Fault faultString="HTTP request error"
faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
#2032: Stream Error. URL:
https://mysite.net/interface.php?password=pass&customer=13&username=uzernamz";].
URL: https://mysite.net/interface.php";]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:211]
at
mx.rpc::Responder/fault()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
at
mx.rpc::AsyncRequest/fault()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:110]
at
DirectHTTPMessageResponder/errorHandler()[E:\dev\flex_3_beta2\sdk\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:343]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()

I have read articals like judah's blog I am still stumped how to fix
this issue.



Re: [flexcoders] can we control flashCS3 movies from flex

2008-01-10 Thread Abdul Qabiz
Is your SWF using ActionScript3? If yes, then you can pretty much control it
from Flex 2 application.

If it uses ActionScript 2, then you might consider using LocalConnection or
ExternInterface. AVM- (SWF which use ActionScript 2 or below)  and AVM+ (SWF
which uses ActionScript 3 or above) applications can not communicate with
each other except limited stuff, because each of these run different virtual
machines, as mentioned (AVM- and AVM+). There are only two ways:
LocalConnection and ExternalInterface.

Check out various libararies available, for example flashinteface:-

http://www.flashextensions.com/products/flashinterface.php

-abdul

On Jan 10, 2008 11:50 PM, Gustavo Duenas <[EMAIL PROTECTED]>
wrote:

> Hi Guys, I was wondering if anyone knows a good tutorial about how to
> controlan external swf movie from flex, the same old way as we did with
> flash.
>
> Regards
>
>
> Gustavo
>
>
>
>
> Gustavo A. Duenas
> Creative Director
> LEFT AND RIGHT SOLUTIONS
> 904.  265 0330 - 904. 386 7958
> www.leftandrightsolutions.com
> Jacksonville - Florida
>
>
>
>
>
>


-- 
-abdul
---
http://abdulqabiz.com/blog/
---


Re: [flexcoders] Binding to a property change in a collection

2008-01-10 Thread George
You'd better to check changes manually. COLLECTION_CHANGE is only to 
refresh screen renderering such as to display DataGrid with real values 
of collection, not means change of collection itself.

George

Kevin wrote:
> I am wondering how to approach the follow problem.  I have an object
> which holds a collection of objects.  When one of the properties of
> the first item in the collection changes, I want the getter to fire
> for bind purposes.
>
> My Object contains
>
> -MyCollection which contains
>
> --SomeProperty
>
> I tried to do this:
>
> MyCollection.addEventListener(CollectionEvent.COLLECTION_CHANGE,someFunction);
>
> but COLLECTION_CHANGE only seems to fire when a collection is updated
> (ie refreshed, add item, remove item)
>
> What would I watch to get an event to fire when the SomeProperty is
> changed?
>
> I apologize if this has been covered before.  I couldn't find a post
> that helped me.
>
> Thanks, Kevin
>   


Re: [flexcoders] Using HTTPService with a TileList

2008-01-10 Thread Abdul Qabiz
 click="HTTPService.send()"/>

It should be:-

click="tempXML.send ()"


-abdul

On Jan 10, 2008 11:24 PM, markcavins <[EMAIL PROTECTED]> wrote:

>   I have also tried to change the way that I get the data to
>
> Code:
>
>  url="
> https://mysite.net/interface.php?action=showopen&operation=showassets&a\
> mp;format=xml&opstatus=defect&rand=12345645647
> "
> >
>
>  width="344" backgroundColor="#00" color="#ff" fontSize="27"
> borderColor="#00" columnWidth="300" rowHeight="50"
> themeColor="#808080" fontWeight="bold" allowMultipleSelection="true"
> id="TileList1" height="0" y="202" x="178"/>
>
>  borderColor="#DCDEDF" click="HTTPService.send()"/>
>
> but now I'm getting 2 errors
>
> 1061: Call to a possibly undefined method send through a reference
> with static type Class.
>
> 1119: Access of possibly undefined property asset through a reference
> with static type mx.rpc.http.mxml:HTTPService.
>
> I am trying to find the reason for that problem it seems it doesn't
> like the services being used with the TileList. Still trying to see
> what's going on now.
>
>  
>



-- 
-abdul
---
http://abdulqabiz.com/blog/
---


[flexcoders] Using the Flex Component Kit in an ActionScript project

2008-01-10 Thread Elie Zananiri
Hello all,

I am trying to use the Flex Component Kit to export some graphics drawn in 
Flash CS3 to 
an ActionScript project in Flex and I can't get it to work. 

Here's what I'm doing:
In Flash:
1. Creating an MC symbol in Flash.
2. Giving it name="SomeName", class="SomeName", and base 
class="mx.flash.UIMovieClip".
3. Right-clicking on the symbol in the library and exporting it as an SWC file 
called 
"SomeNameUIMC.swc".
In Flex Builder:
4. Creating a new ActionScript project with main application file 
"SomeOtherName.as".
5. Importing the SWC file to the library path.
6. Creating a new class called "SomeName.as" which extends 
"mx.flash.UIMovieClip".
7. Instancing "SomeName" in "SomeOtherName" and adding it to the canvas.

Now when I run this, I don't get any compilation errors, but the display is 
blank. I don't 
think my SWC file is being linked to the class, but I don't see any info on how 
to do this. All 
the tutorials I found online are using mxmlc, so is it possible that the 
Component Kit only 
works with Flex projects? If not, does anyone have any examples working on 
ActionScript 
projects or can anyone see what I'm doing wrong?

Thanks for the help,

-Elie



[flexcoders] Using HTTPService with a TileList

2008-01-10 Thread markcavins
I have also tried to change the way that I get the data to

Code:

https://mysite.net/interface.php?action=showopen&operation=showassets&a\
mp;format=xml&opstatus=defect&rand=12345645647"
>






but now I'm getting 2 errors


1061: Call to a possibly undefined method send through a reference
with static type Class.

1119: Access of possibly undefined property asset through a reference
with static type mx.rpc.http.mxml:HTTPService.


I am trying to find the reason for that problem it seems it doesn't
like the services being used with the TileList. Still trying to see
what's going on now.




Re: [flexcoders] Enumerable classes

2008-01-10 Thread Johannes Nel
nice class.


On Jan 10, 2008 12:45 PM, Jamie S <[EMAIL PROTECTED]> wrote:

>   Tracey
>
> I have written a class that does just that. It's very similar to the
> Enumerable module in Prototype or Ruby. It's part of my open source
> framework JumpShip http://www.osflash.org/jumpship or grab it here:
>
> http://svn1.cvsdude.com/osflash/jumpship/AS3/com/jsjstudios/jumpship/core/JSEnumerable.as
>
> Jamie
>
>
> On Jan 10, 2008 8:50 AM, tsiesser <[EMAIL PROTECTED]>
> wrote:
> >
> >
> >
> >
> >
> >
> > Is it possible to write a collection class in AS3 that is directly
> > enumerable by a for-each statement? For example:
> >
> > var myCollection:MyCollection = new MyCollection();
> > myCollection.addItem("red");
> > myCollection.addItem("green");
> > myCollection.addItem("blue");
> > for each (var item:Object in myCollection)
> > {
> > // do stuff to item
> > }
> >
> > In other languages there's an IEnumerable interface that gets
> > implemented, but I'm not sure what to do in AS3...
> >
> > Thanks in advance for your help!
> >
> > --Tracey
> >
> >
>  
>



-- 
j:pn
\\no comment


Re: [flexcoders] Enumerable classes

2008-01-10 Thread Jamie S
Tracey

I have written a class that does just that. It's very similar to the
Enumerable module in Prototype or Ruby. It's part of my open source
framework JumpShip http://www.osflash.org/jumpship or grab it here:
http://svn1.cvsdude.com/osflash/jumpship/AS3/com/jsjstudios/jumpship/core/JSEnumerable.as

Jamie

On Jan 10, 2008 8:50 AM, tsiesser <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Is it possible to write a collection class in AS3 that is directly
>  enumerable by a for-each statement? For example:
>
>  var myCollection:MyCollection = new MyCollection();
>  myCollection.addItem("red");
>  myCollection.addItem("green");
>  myCollection.addItem("blue");
>  for each (var item:Object in myCollection)
>  {
>  // do stuff to item
>  }
>
>  In other languages there's an IEnumerable interface that gets
>  implemented, but I'm not sure what to do in AS3...
>
>  Thanks in advance for your help!
>
>  --Tracey
>
>  


[flexcoders] Combobox binding

2008-01-10 Thread markgoldin_2000
I am using Model to bind form's data to a combobox and trying to use 
same model to send modified data back. Here are some snippets:
Form:

  


Model:
private var _division:int = 0;
[Bindable]
public function get division():int
{
  return _division;
}
public function set division(division:int):void
{
  _division = division;
}
I also have code that will initially set the correct combo's value 
based on selectedIndex.
So, as far as I understand modelGeneral.division stores combo's 
selectedIndex during a time of user's interaction with the combobox.
But when I want to save I need to send to the server a value of a key 
field, not the selectedIndex. Do I need again manually code a change 
to modelGeneral.division in order to store actual data from the combo 
before data is sent to the server?

Thanks for help



Re: [flexcoders] Binding to a property change in a collection

2008-01-10 Thread Johannes Nel
you will need to add listeners to each item in the collection

On Jan 10, 2008 12:10 PM, Kevin <[EMAIL PROTECTED]> wrote:

>   I am wondering how to approach the follow problem. I have an object
> which holds a collection of objects. When one of the properties of
> the first item in the collection changes, I want the getter to fire
> for bind purposes.
>
> My Object contains
>
> -MyCollection which contains
>
> --SomeProperty
>
> I tried to do this:
>
> MyCollection.addEventListener(CollectionEvent.COLLECTION_CHANGE
> ,someFunction);
>
> but COLLECTION_CHANGE only seems to fire when a collection is updated
> (ie refreshed, add item, remove item)
>
> What would I watch to get an event to fire when the SomeProperty is
> changed?
>
> I apologize if this has been covered before. I couldn't find a post
> that helped me.
>
> Thanks, Kevin
>
>  
>



-- 
j:pn
\\no comment


[flexcoders] Re: Setter question

2008-01-10 Thread markgoldin_2000
Yes, I am basically doing the same.
But I can't agree that DP must be set first. Maybe from Flex's point 
of view it does, but not from the user's. 
If you set DP first and then load your form's data then for a short 
period of time(and maybe not really short) you will see wrong values 
(actually first items) in all your combos till form is loaded. Not 
big of a deal, but I dont like to see wrong data on the screen at all 
times.
I have got it working, it just more coding, that's all.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You might find this article helpful:
> 
> http://blogs.adobe.com/aharui/2008/01/selecteditem_and_combobox.html
> 
>  
> 
> That way you can find the item you want to be selected after the DP 
is
> set.  In general the DP must be set first.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of mark goldin
> Sent: Friday, January 04, 2008 3:42 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Setter question
> 
>  
> 
> Yes, that's what I fugured.
> 
> Here is my code. 
> 
> I have a combobox as a form item.:
> 
>  
> label="Other RailRoad Involved" width="302"> 
> 
>  
> selectedIndex="
> 
> {modelGeneral.otherrailroadinvolved}" 
> 
> id="
> 
> otherrailroadinvolved" width="95"! > 
> 
>  
> 
>  
> 
> dataModel tag: 
> 
>  
> id="modelGeneral"/> 
> 
>  
> 
> Data Model:
> 
> public
> 
> class accidentsGeneralModel 
> 
> {
> 
> private var _otherrailroa! dinvolved:int = 0; 
> 
> [
> 
> Bindable] 
> 
> public var modelValid:Boolean = false; 
> 
>   
> 
> [
> 
> Bindable] 
> 
> public function get otherrailroadinvolved():int 
> 
> {
> 
> return! _otherrailroadinvolved; 
> 
> }
> 
> public function set
> otherrailroadinvolved(otherrailroadinvolved:int):void 
> 
> {
> 
> _otherrailroadinvolved = otherrailroadinvolved;
> 
> }
> 
> Combo's data:
> 
> combo.dataProvider = someXML;
> 
>  
> 
> Form's data:
> 
> //reference to main application
> 
> mainApp = mx.core.Application.application;
> 
> // reference to A! ccidents module 
> 
> accidentsModul! e = main App.moduleLoader.child;
> 
> accidentsModule.modelGeneral.otherrailroadinvolved =
> resultXML.general.otherrailroadinvolved;
> 
>  
> 
> Here is what happens:
> 
> If I am setting up form's data after combo's dropdown has been set 
then
> the combo will show the correct item: item that is driven by the 
form's
> data. But if I do it other way around then the combo does not show 
the
> correct one but always has its selectedIndex = 0.
> 
> I am trying to override dataProvider property but dont know what I 
can
> match combo's dropdown data to to set its selectedIndex manually.
> 
>  
> 
> Thanks
> 
> 
> Alex Harui <[EMAIL PROTECTED]> wrote: 
> 
> Unless comboItemRenderer is in a List or DataGrid or other
> ListBase-derived class, the listData setter function will not be 
called.
> 
> Assigning the combo's dataprovider just tells its dropdown List 
what to
> display.
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flex! [EMAIL PROTECTED] 
ahoogroups.com]
> On Behalf Of mark goldin
> Sent: Thursday, January 03, 2008 6:17 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Setter question
> 
> Combo:
> 
> package! 
> 
> CustomComponents 
> 
> {
> 
> import mx.controls.*; 
> 
> import mx.controls.listClasses.*; 
> 
> import mx.collections.*; 
> 
> import flash.events.Event; 
> 
> import mx.events.*; 
> 
> public class comboIte! mRenderer extends ComboBox implements
> IDropInListItemRenderer 
> 
> {
> 
> public function! comboItemRenderer() 
> 
> { 
> 
> super(); 
> 
> }
> 
> override public function set listData(value:BaseListData):void 
> 
> {
> 
> super.listData = value; 
> 
> ..
> 
> Assigning data:
> 
> combo.dataProvider = XMLData;
> 
> Should I be getting into listData function after that command?
> 
> 
> Gordon Smith <[EMAIL PROTECTED]> wrote: 
> 
> What do you mean by defining a "set function" for the ComboBox? Can 
you
> show some code?
> 
> ! 
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Thursday, January 03, 2008 5:44 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Setter question
> 
> I have a combobox in a form. I have also defined a set function for 
> that combo. I am assigning data to the control using:
> combo.dataProvider = someXML. The data is shown with no problem, 
but 
> set function is not called. Am I doing something wrong?
> 
> Thanks
>




[flexcoders] Binding to a property change in a collection

2008-01-10 Thread Kevin
I am wondering how to approach the follow problem.  I have an object
which holds a collection of objects.  When one of the properties of
the first item in the collection changes, I want the getter to fire
for bind purposes.

My Object contains

-MyCollection which contains

--SomeProperty

I tried to do this:

MyCollection.addEventListener(CollectionEvent.COLLECTION_CHANGE,someFunction);

but COLLECTION_CHANGE only seems to fire when a collection is updated
(ie refreshed, add item, remove item)

What would I watch to get an event to fire when the SomeProperty is
changed?

I apologize if this has been covered before.  I couldn't find a post
that helped me.

Thanks, Kevin



[flexcoders] Populating comboBox

2008-01-10 Thread candysmate
I'm tring to populate a comboBox with

var dsWeek:Array = [];
[Bindable]
var dsWeekArray = new ArrayCollection(dsWeek);
var systemUtilitiesWeek:int = 35;

private function initDissection():void
{
dsWeekArray.addItem({week:"Select"});

for(var ds1:int = 1; ds1 <= systemUtilitiesWeek; ds1 ++)
   {
dsWeekArray.addItem({week: ds1});
   }
   
dsWeekArray.refresh();   
}

I'm expected the comboBox, with dataprovider set to {dsWeekArray}
to be:

Select
1
2
3
4
5
...

but it just says [Object, object]

Where have I gone wrong please?



RE: [flexcoders] Re: getting information about the last focussed object...

2008-01-10 Thread Alex Harui
Subclass panel and add the event metadata, or just use Actionscript to
register a listener.  The Panels themselves don't dispatch the event,
you are trying to catch it on the bubble from the children.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rahul_kandari2005
Sent: Wednesday, January 09, 2008 11:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: getting information about the last focussed
object...

 

I m working on the panels and panels do not contain the FocusIn Event
that is the main problem can you suggest me it for panels..

 



RE: [flexcoders] Re: Datagrid intermittent update

2008-01-10 Thread Alex Harui
You might want to listen for collection events to make sure they are
really being dispatched.  Note that when editing different columns in
the same row, collection events are not dispatched until you leave the
row

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of candysmate
Sent: Thursday, January 10, 2008 2:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Datagrid intermittent update

 

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> How are renderers defined?
> 
> 
> 
> 

Hi Alex,

my renderers are mxml like so:










 



RE: [flexcoders] Re: Security issue in crossscripting

2008-01-10 Thread Alex Harui
It isn't a FlashPlayer issue as much as a Flex Framework issue.  It is
not in 3.0, but may show up in 3.x or 4.0, but no guarantees

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Muhammad Ahmed Ullah
Sent: Thursday, January 10, 2008 3:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Security issue in crossscripting

 

Thanks Alex for the info. Can we expect this support will come with
flash-10 or when?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Flex does not currently support cross-domain sub-apps
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Muhammad Ahmed Ullah
> Sent: Wednesday, January 09, 2008 3:46 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Security issue in crossscripting
> 
> 
> 
> Hello,
> 
> When loading a SWF file (inner.swf) within a SWF file (outer.swf)
> through Loader's object, I'm getting the following error message:
> 
> SecurityError: Error #2047: Security sandbox violation: parent:
> http://192.168.0.20/wid/inner.swf 
 >
> cannot access
> http://192.168.0.18:81/Any/container/outer.swf.
 
>  > 
> at flash.display::DisplayObject/get parent()
> at
>
mx.managers::SystemManager/executeCallbacks()[E:\dev\flex_3_beta3\sdk\fr
> ameworks\projects\framework\src\mx\managers\SystemManager.as:1518]
> at
>
mx.managers::SystemManager/docFrameHandler()[E:\dev\flex_3_beta3\sdk\fra
> meworks\projects\framework\src\mx\managers\SystemManager.as:2311]
> 
> Both files are placed on different domains.
> On the server of inner.swf file, crossdomain.xml exists with the "*"
> permission.
> In the initialize event handler of inner.swf file,
> Security.allowDomain("*") also exists.
> 
> 
> If I write "Security.allowDomain("*")" in outer.swf file, before
> loading the inner.swf, then this error gets solved.
> 
> But my question is, "Why is it necessary to use allowDomain() in the
> outer.swf file, as I don't want to allow inner.swf file to access
> outer.swf file?" or "How can I solve this error without using the
> allowDomain() in outer.swf file?"
> 
> Thanks,
> Ahmed
>

 



RE: [flexcoders] DataGrid corruption issue

2008-01-10 Thread Alex Harui
If your renderers don't handle recycling properly they may not display
properly.  Post some of your renderer code if you still have issues.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jitendra jain
Sent: Thursday, January 10, 2008 3:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid corruption issue

 

Hi friends,

   I have a issue with datagrid. I have mutiple of itemRenderers for
this datagrid. Often this datagrid corrupts(while scrolling
horizontally) . Why this is happening?

  Thanks,

   With regards,
JJain

  

  



Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
 

 



RE: [flexcoders] Error 1061:

2008-01-10 Thread Alex Harui
You might be calling on the Class and not an instance of the class.
When you get an error like this, please post the entire stack trace.
Use a debug build and also post snippets of your code in the area
described in the stacktrace

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John
Sent: Thursday, January 10, 2008 8:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error 1061:

 

Hi there,

Although I have tried everything, I keep getting this error. Can anyone 
shed any light on the reasons why?

1061: Call to a possibly undefined method selectedChild through a 
reference with static type Class.

TIA
John

 



[flexcoders] Enumerable classes

2008-01-10 Thread tsiesser
Is it possible to write a collection class in AS3 that is directly
enumerable by a for-each statement? For example:

var myCollection:MyCollection = new MyCollection();
myCollection.addItem("red");
myCollection.addItem("green");
myCollection.addItem("blue");
for each (var item:Object in myCollection)
{
// do stuff to item
}

In other languages there's an IEnumerable interface that gets
implemented, but I'm not sure what to do in AS3...

Thanks in advance for your help!

--Tracey



[flexcoders] Error 1061:

2008-01-10 Thread John
Hi there,

Although I have tried everything, I keep getting this error. Can anyone 
shed any light on the reasons why?

1061: Call to a possibly undefined method selectedChild through a 
reference with static type Class.

TIA
John



[flexcoders] Re: Flex Calendar

2008-01-10 Thread vivek
Hey Aaron,

Yes i did. But no help there...



--- In flexcoders@yahoogroups.com, "Aaron Miller" <[EMAIL PROTECTED]> wrote:
>
> Have you messed around with the official framework at all? I played
with it
> while it awhile back in it's early stages of development. Maybe you
can get
> some use out of it.
> 
> http://labs.adobe.com/wiki/index.php/Flex_Scheduling_Framework
> 
> Best Regards,
> ...aaron
> 
> On 1/8/08, vivek <[EMAIL PROTECTED]> wrote:
> >
> >   Hey Guys,
> >
> > Thanks for looking into my message. I need some urgent help regarding
> > creating a calendar in flex. I want to create a calendar as shown
in the
> > image in this link:
> >
http://www.nabble.com/Customizing-DateChooser-in-Flex-to13983948.html . I
> > have treid almost everything on the datechooser component to get
the desired
> > functionality but i have given it up.  I cant find a solution. Pls
> > help..:(
> >
> > Thanks
> > Vivek
> >  
> >
> 
> 
> 
> -- 
> Aaron Miller
> Chief Technology Officer
> Splash Labs, LLC.
> [EMAIL PROTECTED]  |  360-255-1145
> http://www.splashlabs.com
>




[flexcoders] Colouring the zero line on a chart axis

2008-01-10 Thread leonpidgeon
Hi

i have a chart with where the y-axis is -200 to 200 and want to know if 
there is a way to change the look of the zero axis which runs across 
the middle of the chart. basically i want to make it red. does anyone 
have any ideas how this can be done. i have looked through rendering 
options and can't seem to find anything.

thanks



Re: [flexcoders] what about xml?

2008-01-10 Thread Paul Andrews
Gustavo,

Flex can manipulate XML very well. What it cannot do is write xml files on the 
server. You can send xml data to the server using  flex and then use whatever 
server technology you wish to write that data as an xml file.

XML is not the same thing as SQL. XML is essentially a tree based structure 
while SQL manipulates tables of data. Commonly XML is used only to transfer 
information between the client and server. Usually XML requests from the flex 
client will be interpreted on the server and used to update an SQL database. 
Flex really doesn't care very much about the server technology when 
communication with XML.

>From your posts and the responses, it looks as though you are planning to use 
>one or more XML files as a database. You can certainly make this work, but 
>will have huge problems if your application will ever be used by more than one 
>user at a time. There are XML databases out there but I have yet to use one.

My advice would be to work through/read the many Flex tutorials out there so 
that you have a better idea about how XML usually fits in the Flex workflow. 
There are also a ton of books out there.

I think that jumping in too early on an ambitious project will be a big mistake.

Paul
  - Original Message - 
  From: Gustavo Duenas 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, January 10, 2008 3:28 PM
  Subject: Re: [flexcoders] what about xml?


  Well there is a way to simply order flex to write down and create tables and 
so forth into an xml file,
  the same way as sql?...there should be, even using coldfusion, because I Have 
a coldfusion blog, and the database?
  is mostly in xml. Should be a way for sure




  and once the data is store in db.xml (example), there is a way to updated 
those and also to include new ones.






  Regards




  Gustavo




  On Jan 9, 2008, at 10:41 AM, Derrick Anderson wrote:


sure, i would get a little familiar with e4x so you can manipulate xml 
files in the client

http://life.neophi.com/danielr/2006/04/flex_2_beta_2_actionscript_3_a.html?

then just save the xml file back to the server with remoteObject or 
httpRequest or whatever your method of communication is.

d.



On Jan 9, 2008 10:29 AM, Gustavo Duenas <[EMAIL PROTECTED]> wrote:

  I'm just asking because when it comes I'd love to know how to set up the 
database xml, on the server would be great, actually my knowledge of xml is not 
much, so this would be a very handy information when it comes to set up ?a 
proposal for clients.

  And Positively i'd rather have the database in the server than in the 
application itself.


  Do you know some tutorial on the net?




  Regards


  Gustavo






  On Jan 9, 2008, at 10:11 AM, Derrick Anderson wrote:


hey gustavo, are u using adobe AIR for this or is it just flex (and are 
u using livecycle).

I guess the question is, where do you want to store the XML database, 
on the server or on the client??

d.



On Jan 9, 2008 9:29 AM, Gustavo Duenas <[EMAIL PROTECTED]> wrote:

  Hi I was wondering since flex2 interacts mostly with xml, how can I 
set up a database in xml, instead of writing those all in simple text, there is 
a way

  to do the same we do with coldfusion, php, asp and javascript when we 
do submit data into a sql database.
  Actually I know how to do this in coldfusion, is a way to create xml 
from a cfoutput of a cfquery, but I guess there is a way to write this down 
directly on the xml file...Does anyone know a good tutorial about it.?


  Regards




  Gustavo





  Gustavo A. Duenas
  Creative Director
  LEFT AND RIGHT SOLUTIONS
  904.? 265 0330 - 904. 386 7958
  www.leftandrightsolutions.com
  Jacksonville - Florida






















--





  Gustavo A. Duenas
  Creative Director
  LEFT AND RIGHT SOLUTIONS
  904.? 265 0330 - 904. 386 7958
  www.leftandrightsolutions.com
  Jacksonville - Florida










--


  Well there is a way to simply order flex to write down and create  
  tables and so forth into an xml file,
  the same way as sql?...there should be, even using coldfusion,  
  because I Have a coldfusion blog, and the database
  is mostly in xml. Should be a way for sure


  and once the data is store in db.xml (example), there is a way to  
  updated those and also to include new ones.



  Regards


  Gustavo


  On Jan 9, 2008, at 10:41 AM, Derrick Anderson wrote:

  > sure, i would get a little familiar with e4x so you can manipulate  
  > xml files in the client
  >
  > http://life.neophi.com/danielr/2006/04/ 
  > flex_2_beta_2_actionscript_3_a.html
  >
  > then just save the xml file back to the server with remoteObject or  
  > httpRequest or whatever your m

Re: [flexcoders] FileReferenceList for Downloads?

2008-01-10 Thread Rick Schmitty
So this kinda functionality is only in Apollo/AIR?

On Jan 9, 2008 11:11 AM, Dimitrios Gianninas
<[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> dont think this is possible, you would have to FileReference for every file
> you want to download.
> Annoying yes, but the upload/download with the Flash is not the best.
>
> Unless I am totally wrong and someone corrects me.
>
> Dimitrios Gianninas
> RIA Developer and Team Lead
> Optimal Payments Inc.
>
>
>  
>  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Rick Schmitty
> Sent: Wednesday, January 09, 2008 2:03 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] FileReferenceList for Downloads?
>
>
>
>
>
>
> Is there a FileReferenceList for downloads? For example, select some
> images on the server, then call download, it prompts you once for the
> directory and now you can do something similar to multiple uploads and
> show progress on each file being downloaded
>
>
>
> AVIS IMPORTANT
>
> WARNING
>
>
> Ce message électronique et ses pièces jointes peuvent contenir des
> renseignements confidentiels, exclusifs ou légalement privilégiés destinés
> au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
> privilège ou à aucun autre droit si le présent message a été transmis
> involontairement ou s'il est retransmis sans son autorisation. Si vous
> n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
> par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi
> que toutes ses pièces jointes, de votre système. La lecture, la
> distribution, la copie ou tout autre usage du présent message ou de ses
> pièces jointes par des personnes autres que le destinataire visé ne sont pas
> autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
> électronique par erreur, veuillez en aviser l'expéditeur.
>
> This electronic message and its attachments may contain confidential,
> proprietary or legally privileged information, which is solely for the use
> of the intended recipient. No privilege or other rights are waived by any
> unintended transmission or unauthorized retransmission of this message. If
> you are not the intended recipient of this message, or if you have received
> it in error, you should immediately stop reading this message and delete it
> and all attachments from your system. The reading, distribution, copying or
> other use of this message or its attachments by unintended recipients is
> unauthorized and may be unlawful. If you have received this e-mail in error,
> please notify the sender. 


Re: [flexcoders] ASDoc Problem

2008-01-10 Thread Tom Chiverton
On Thursday 10 Jan 2008, cksachdev wrote:
> have swc file (I have the code itself). I want to exclude the
> generation of those source files. 

# /opt/flex/bin/asdoc -help list|grep exclude
-exclude-classes [class] [...]
-exclude-dependencies

-- 
Tom Chiverton
Helping to dramatically disintermediate magnetic CEOs
on: http://thefalken.livejournal.com



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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


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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Re: content appearing in an Accordian container -WORK AROUND SOLUTION

2008-01-10 Thread myasandy2
I resolved this by making the container not visible. On creation 
complete, I jump to a function that:
sets the openDurartion to 001 and starts a timer. On each .1 sec, I 
select a new index until they are all selected. Then I select the first 
index again. When the timer is complete, I set the openDuration to the 
speed I wanted and make the container visible.

It is a bit of a work around, but it all works now with less than 2 sec 
load time.

Hope this helps someone else.
sandy



Re: [flexcoders] what about xml?

2008-01-10 Thread Derrick Anderson
i'm not exactly sure the level of complexity you need, but both flex and
coldfusion have the ability to natively work with XML, coldfusion is server
side, so it's very easy for CF to access the file system on the server and
save an XML file.  it's not 'automatic' by any means, i'm sure there is some
code in there behind the scenes in your blog that parses/creates xml and a
cffile call to save it to the server.  there is no single native function to
say "hey take this data structure here and save it as xml on the hard
drive".  you have to use the xml functions to create your xml document
first, then save it to the disk.

flex is client side, so it has similar abilities to work with xml, but it
has no access to the users directory structure (unless using AIR).  you
would need to communicate back to the server, send it the completed XML doc,
and have the server (maybe CF?) save that data back to the hard drive.

you say "order flex to write down and create tables and so forth into an xml
file,the same way as sql?", but i'm not sure what you are talking about with
SQL, flex can't communicate directly with a database (again, unless using
AIR and sqlLite).  unless there is some DAO or GUI tool you are using to
create sql, i don't know how that is 'automatic' either.

"and once the data is store in db.xml (example), there is a way to updated
those and also to include new ones."
again, yes it is possible- but it's not as easy as u might think it should
be.  you have to first read the file off the disk (cffile action="read") on
the server, then send that xml data back to the flex client.  from there you
can use e4x to update specific nodes, then you have to send the xml back to
the server to update the file on disk.

believe me, when Apollo was first released (pre-sqlLite days) i felt the
pain of working with xml databases and wished i could just use it like a
database and have some pseudo sql language that would interface with it, but
there isn't.

but then again, is XML a requirement? can you not use a real database?
(would be so much easier)

d.



On Jan 10, 2008 10:28 AM, Gustavo Duenas <[EMAIL PROTECTED]>
wrote:

> Well there is a way to simply order flex to write down and create tables
> and so forth into an xml file,the same way as sql?...there should be, even
> using coldfusion, because I Have a coldfusion blog, and the database
> is mostly in xml. Should be a way for sure
>
>
> and once the data is store in db.xml (example), there is a way to updated
> those and also to include new ones.
>
>
>
> Regards
>
>
> Gustavo
>
>
> On Jan 9, 2008, at 10:41 AM, Derrick Anderson wrote:
>
> sure, i would get a little familiar with e4x so you can manipulate xml
> files in the client
>
> http://life.neophi.com/danielr/2006/04/flex_2_beta_2_actionscript_3_a.html
>  
>
> then just save the xml file back to the server with remoteObject or
> httpRequest or whatever your method of communication is.
>
> d.
>
> On Jan 9, 2008 10:29 AM, Gustavo Duenas <
> [EMAIL PROTECTED]> wrote:
>
> > I'm just asking because when it comes I'd love to know how to set up the
> > database xml, on the server would be great, actually my knowledge of xml is
> > not much, so this would be a very handy information when it comes to set up
> >  a proposal for clients.
> > And Positively i'd rather have the database in the server than in the
> > application itself.
> >
> > Do you know some tutorial on the net?
> >
> >
> > Regards
> >
> > Gustavo
> >
> >
> > On Jan 9, 2008, at 10:11 AM, Derrick Anderson wrote:
> >
> > hey gustavo, are u using adobe AIR for this or is it just flex (and are
> > u using livecycle).
> >
> > I guess the question is, where do you want to store the XML database, on
> > the server or on the client?
> >
> > d.
> >
> > On Jan 9, 2008 9:29 AM, Gustavo Duenas <
> > [EMAIL PROTECTED]> wrote:
> >
> > > Hi I was wondering since flex2 interacts mostly with xml, how can I
> > > set up a database in xml, instead of writing those all in simple text, 
> > > there
> > > is a way
> > > to do the same we do with coldfusion, php, asp and javascript when we
> > > do submit data into a sql database.
> > > Actually I know how to do this in coldfusion, is a way to create xml
> > > from a cfoutput of a cfquery, but I guess there is a way to write this 
> > > down
> > > directly on the xml file...Does anyone know a good tutorial about it.?
> > >
> > > Regards
> > >
> > >
> > > Gustavo
> > >
> > >
> > >
> > > Gustavo A. Duenas
> > > Creative Director
> > > LEFT AND RIGHT SOLUTIONS
> > > 904.  265 0330 - 904. 386 7958
> > > www.leftandrightsolutions.com
> > > Jacksonville - Florida
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
>
>
>
>
>
> Gustavo A. Duenas
> Creative Director
> LEFT AND RIGHT SOLUTIONS
> 904.  265 0330 - 904. 386 7958
> www.leftandrightsolutions.com
> Jacksonville - Florida
>
>
>
>
>
>


[flexcoders] ASDoc Problem

2008-01-10 Thread cksachdev
Hi to all,
I was trying to generate documentation using asdoc. The problem I am
facing is, I am using some libraries like gettext for which I don't
have swc file (I have the code itself). I want to exclude the
generation of those source files. Here is command I used to generate
documentation.

asdoc 
-source-path 
"../opensrc/gettext" 
"../opensrc/crypto" 
"../opensrc/utils" 
"." 
-doc-classes "com.readio.shell.storypets.comm.sfs.SFSService"
--external-library-path 
"..\lib" 
"E:\Flex Builder 3 Plug-in\sdks\3.0.0\frameworks\libs" 
"E:\Flex Builder 3 Plug-in\sdks\3.0.0\frameworks\libs\player"
"../opensrc/gettext" 
"../opensrc/crypto" 
"../opensrc/utils"

Please help me how I can exclude those source files in documentation.



RE: [flexcoders] Re: HTTPService, POST, and QueryString

2008-01-10 Thread Jim Hayes
I'm pretty sure that if you use POST in flex then you are going to have
to change your server to read the POSTed information rather than the
querystring.
That said, you don't mention what you're using on your server. In any
case, it's likely to be a fairly trivial change to implement assuming
that you have control over the server side code.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: 10 January 2008 14:26
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HTTPService, POST, and QueryString
 
Where is my Form data going to be? In URLVariables too?

--- In flexcoders@yahoogroups.com 
, "Nathan Arizona" 
<[EMAIL PROTECTED]> wrote:
>
> You can use this I think.
> 
> var dataset:URLVariables = new URLVariables();
> 
> var request:URLRequest = newURLRequest("somepage");
> request.data = dataset;
> request.method = URLRequestMethod.POST
> 
> --- In flexcoders@yahoogroups.com
 , "markgoldin_2000"
>  wrote:
> >
> > My server side of application uses QueryString to extract 
parameters 
> > being sent from the client to query data and send it back. To 
save data 
> > I would want to use POST but I also need to send some parameters 
to the 
> > server as well. I want to use same server logic to process 
parameters 
> > in both getting data and saving it. But if I use POST method no 
> > QueryString is available on the server. Any suggestions?
> > 
> > Thanks
> >
>
 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

[flexcoders] Flex 1.5 - RemoteObject request timeout

2008-01-10 Thread Robert Brueckmann
We still support a Flex 1.5 app I wrote 3 years ago that our clients use
to run reports with.  I'm in the midst of upgrading the entire app to
Flex 2+, but of course the db people keep adding reports and one
recently added report is for the admin-side only and is a crude report
that can sometimes take over 5 minutes to return from the database with
data.

 

We have a setup as follows: Apache + Weblogic + firewall + Oracle
database.  Here's the weird thing...if only one person runs the report
at any given time...it may take about 4.5 minutes, I see the call made
to the database, I watch the log and see after 4+ minutes, the call to
the stored procedure return to the application server and the original
method return to the front-end and Flex correctly displays the report.
If I open two browsers or have a coworker hit the report within a few
seconds of my initial request and these two requests are made, a.) the
call to the database takes a minute or so longer (I know the db people
need to optimize this, but this is what I'm dealing with up front) and
b.) I see it come back and the data returned to the front-end but the
Flex app on either my or my coworker's machine or either browser
(dependent on how I'm testing) does not get the returned response.  The
clock busy cursor just continues to spin.

 

I've searched the archives and it seems a few people have posted similar
problems but nobody has posted what their absolute resolution was.
Anyone know anything about this?  I literally see the data returned to
the Flex application in the app server log but my Cairngorm command
class result/fault handlers never capture anything and the busy cursor
just keeps spinning.  Anyone know anything about this or should I make
use of my Flex support contract?  Could this be a timeout between the
apache and weblogic layer?  I checked with the systems guys and they
claim that the request timeout feature of apache isn't being used but I
don't know if there is a default setting that apache uses...I guess I'll
check that out...but any feedback would be GREATLY appreciated.

 

Thanks so much for anything!

 

rlb

Merlin Securities - #1 Prime Broker North America and #1 Prime Broker Single 
Strategy Funds - Global Custodian 2007
#1 Prime Broker for Hedge Funds under $1 Billion - Alpha Survey 2007



 



This message contains information from Merlin Securities, LLC, or from one of 
its affiliates, that may be confidential and privileged. If you are not an 
intended recipient, please refrain from any disclosure, copying, distribution 
or use of this information and note that such actions 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 offered through 
Merlin Securities, LLC are not insured by the FDIC or any other Federal 
Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC 
and may lose value. Nothing in this communication shall constitute a 
solicitation or recommendation to buy or sell a particular security.




[flexcoders] Controlling LinearAxis

2008-01-10 Thread atlantageek
Hi,
I'm building a few charts with LinearAxis and DateTimeAxis as my
horizontal Axis on a chart. I would like to force the maximum and
minimum values to be painted on the axis.  Anyone have a suggestion on
how to do this?



[flexcoders] Re: HTTPService, POST, and QueryString

2008-01-10 Thread markgoldin_2000
Where is my Form data going to be? In URLVariables too?

--- In flexcoders@yahoogroups.com, "Nathan Arizona" 
<[EMAIL PROTECTED]> wrote:
>
> You can use this I think.
> 
> var dataset:URLVariables = new URLVariables();
> 
> var request:URLRequest = newURLRequest("somepage");
> request.data = dataset;
> request.method = URLRequestMethod.POST
> 
> --- In flexcoders@yahoogroups.com, "markgoldin_2000"
>  wrote:
> >
> > My server side of application uses QueryString to extract 
parameters 
> > being sent from the client to query data and send it back. To 
save data 
> > I would want to use POST but I also need to send some parameters 
to the 
> > server as well. I want to use same server logic to process 
parameters 
> > in both getting data and saving it. But if I use POST method no 
> > QueryString is available on the server. Any suggestions?
> > 
> > Thanks
> >
>




[flexcoders] POSTing to ASP

2008-01-10 Thread markgoldin_2000
service = new HTTPService();
service.method = "POST";
service.url = "SomeASPpage;
service.resultFormat="e4x";
service.send(xmlData);

What exactly is available on the server?
Does Flex do HTTP Submit? Does it create Form collection?
Where in the docs I can take a look for this?

Can I do this on the server:
loObjDom = CREATEOBJECT("Msxml2.FreeThreadedDOMDocument")
loObjDom.load(Request) which should give me my xml data?
Where Request is the IIS Request Object.

Thanks for any help.






  1   2   >