Re: [flexcoders] DataGroup and XML problem

2010-09-09 Thread Craig McLeod
SOLVED thanks to a...@adobe

 

I changed my resultType="E4X" and then used {new
XMLListCollection(XMLList(getSpeedDialList.lastResult).chartlist)}

 

This solved the problem perfectly.

 

It's important to remember that when using E4X the first node is ignored in
your xml.

But with out the list conversion (since datagroups support Ilists and so on)
I would have been lost.

 

So all credit to Alex Harui from the Flex SDK Team

 

Craig McLeod

Phone:   086 111 4512
Fax:033 343 2265

Email:<mailto:cr...@sumitsolutions.co.za> cr...@sumitsolutions.co.za
Website:<http://www.sumitsolutions.co.za/>
http://www.sumitsolutions.co.za

sumit_solutions_logo.jpg

 

This is an email from SUMIT Solutions. The contents are confidential to the
intended recipient at the email address to which it has been addressed. It
may not be disclosed copied or used by anyone other than this addressee. If
you receive this email in error please contact SUMIT Solutions on +27 33 343
2888 quoting the name of the sender and the addressee then delete it from
your system. Note that neither SUMIT Solutions nor the sender accepts
responsibility for viruses and you are advised to scan attachments before
opening or saving them

 

<>

Re: [flexcoders] DataGroup and XML problem

2010-09-09 Thread Craig McLeod
Hi Alex,

 

Firstly thank you so much for your reply.

 

When I try the first option you suggested:  "{new
XMLListCollection(XMLList(getSpeedDialList.lastResult).SDLIST.charlist)} I
stop getting errors, but the item renderer shows nothing.

 

The second option pulls errors 1119 and 1118.

 

I have been searching desperately for a working example of Datagroup with
item renderers using XML as the provider, but just have not been able to
find one.

 

I welcome any advice you have.

 

Warmest regards and many thanks.

Craig

 

 



Re: [flexcoders] Re: Photo Viewer Sample App

2010-03-20 Thread Craig Steury
Hi Amy,
Thanks for the help.
I don't really want the other viewstack children involved.  When they are
the carousel seems to initiate correctly.  So I thought I'd set
creationPolicy to none for viewstack and initiate a
createComponentsFromDescriptors.  This is not working though as I get a null
error at the galleries.addEventListener CollectionChange Event.. here is
what the photoservice code looks like.
Any ideas where I go from here?

public class PhotoService
{
private var service:HTTPService;
private var app:PhotoViewer;

[Bindable]
public var galleries:ArrayCollection;

public function PhotoService(url:String)
{
service = new HTTPService();
service.url = url;
service.addEventListener(ResultEvent.RESULT, resultHandler);
service.send();
galleries = new ArrayCollection([]);
galleries.addEventListener(CollectionEvent.COLLECTION_CHANGE,
app.views.createComponentsFromDescriptors);
}

private function resultHandler(event:ResultEvent):void
{
var result:ArrayCollection = event.result.galleries.gallery is
ArrayCollection
? event.result.galleries.gallery as ArrayCollection
: new
ArrayCollection(ArrayUtil.toArray(event.result.galleries.gallery));
var temp:ArrayCollection = new ArrayCollection();
var cursor:IViewCursor = result.createCursor();
while (!cursor.afterLast)
{
temp.addItem(new Gallery(cursor.current));
cursor.moveNext();
}


galleries = temp;


}
}
}










On Sat, Mar 20, 2010 at 5:13 PM, Amy  wrote:

>
>
>
>
> --- In flexcoders@yahoogroups.com ,
> "cjsteury2"  wrote:
> >
> > Hey Pete,
> >
> > I see you had the same issue I am experiencing today.. and its been 1/2 a
> day so far of pulling out hair.
> >
> > Do you remember how you solved this 3 years ago???
>
> What you have is a race condition where the reset() function in Carousel.as
> assumes that you always have a valid Carousel, but of course the gallery
> property is beling set by a BindSetter that doesn't have anything to bind to
> until the PhotoService resultHandler has populated the photoService's
> galleries property.
>
> If you want to actually fix it, one way is to go into the PhotoService code
> and initialize the galleries variable to new ArrayCollection([new
> ArrayCollection)]);
>
> Not the cleanest solution, but that's kind of what you get when the code is
> too dependent on binding. The Carousel component unfortunately doesn't
> _know_ it's dependent on binding, so it isn't able to swallow up errors
> related to being passed in junk values via binding.
>
> If you want to just work around it, then you can just listen for
> COLLECTION_CHANGE on photoService.galleries, and switch the ViewStack pane
> once the result is received.
>
> HTH;
>
> Amy
>
>  
>


[flexcoders] Re: Compiler Not Reporting Errors

2010-03-16 Thread Craig
Not sure if it's exactly the same thing, certainly the same symptoms,  but 
there's a known issue if you're using modules as part of your project:

https://bugs.adobe.com/jira/browse/FB-12298


--- In flexcoders@yahoogroups.com, "okie_174"  wrote:
>
> Yesterday I found that Flex Builder (v3) was no longer reporting compiler 
> errors when compiling. It is reporting warnings but no errors. I purposely 
> introduced errors and it will build the project and then present a blank 
> screen. I have looked to see if there's some sort of setting I made by 
> mistake to make this happen but can't find anything. I re-installed Felx 
> Builder but it didn't help.
> 
> Anyone know why Flex Builder would suddenly stop reporting compiler errors?
>




Re: [flexcoders] Submenu Opens Below Menubar on First Click (PROBLEM)

2010-02-22 Thread Craig Steury
Alex, Can you fill me in on what I need to do to get to 3.5 from 3.0  is it
just a download?
(I know i can look this up pretty easy but it's always good to get any
upgrade tips from the 'insiders' if known!)
Thanks,
CS


On Mon, Feb 22, 2010 at 1:50 PM, Alex Harui  wrote:

>
>
> I think we fixed that in 3.5
>
>
>
> On 2/22/10 11:03 AM, "cjsteury2"  wrote:
>
>
>
>
>
>
> the Submenu of the MenuBar opens Below the Menu Item on the First Click but
> there is no space at bottom... So it is not view-able.
> Then on second click it open above the MenuBar Item, correctly.
>
> Does anyone know how to fix this, please??
>
> Craig
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>   
>


[flexcoders] Re: Identifying module loaded

2010-02-03 Thread Craig


In your event handler (dispModule in your example code), event.target will 
reference the IModuleInfo returned from your getModule(...) call. Use that to 
identify the module loaded.

One additional caveat though: I'd highly recommend keeping a reference to the 
IModuleInfo returned from getModule until at least the module has loaded or 
failed to load. I've had numerous occasions where I didn't keep hold of the 
reference, called load() and then got nothing ... no READY or ERROR events 
getting fired. Presumably because it got GC'd.

--- In flexcoders@yahoogroups.com, "criptopus"  wrote:
>
> When I load a module...
> 
> private function loadModule(modName:String):void
> {
> module=ModuleManager.getModule("comps/InstCntr/" + modName + ".swf");
> module.addEventListener(ModuleEvent.READY, dispModule);
> module.load();
> }
> 
> How does my listener (dispModule) decide what has been loaded
> Is their an AysyncToken or somthing?
> 
> - Stephen
>




[flexcoders] Configuring a service for HTTPS access

2009-11-30 Thread Craig
Hi everyone,

I'm hoping someone can shed some light on a problem I'm having trying to get a 
simple webservice working over HTTPS.

The basic scenario is thus; I have a couple of web service components running 
on an IIS box which has been secured so that HTTPS access is required to get at 
the service components. My Flex app that uses the services uses HTTPService to 
access them. The website on which the services reside has HTTP and HTTPS 
channels open to the services and has a wide open crossdomain.xml file at its 
root:


http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>

  
  
  


Now, when I hit the services via HTTP, all is well. When I try and hit them via 
HTTPS though, I get a fault event every time I try and access a service. 
Specifically, I get the fault string, 'Security error accessing url'. I've put 
a little test app together too that runs locally and simply tries to access one 
of the services. This throws the same error but gives me a little more in the 
console window, 

Error: Request for resource at https://myserver.co.uk/myservice.ashx by 
requestor from http://localhost/dev/HttpsTest-debug/HttpsTest.swf is denied due 
to lack of policy file permissions.

*** Security Sandbox Violation ***
Connection to https://myserver.co.uk/myservice.ashx halted - not permitted from 
http://localhost/dev/HttpsTest-debug/HttpsTest.swf

I'm not sure where to go from here, as the policy file is permitting access 
isn't it? I've done a lot of looking around and have found a few suggestions 
that browser and header issues might be the cause but I don't think its down to 
that ... I've tried the big 3 browsers and behaviour is the same on them all.

I'm running out of ideas now, and would like to ask if anyone knows where I 
might be going wrong here? Any help would be very much appreciated.

Regards,
Craig



[flexcoders] Detecting Flash Player standalone menu events

2009-10-05 Thread Craig
Hi everyone,
 
I'm hoping someone might be able to point me in the right direction with an 
integration issue I'm currently facing. The application I'm writing is going to 
be hosted on a client's platform that uses some kind of queuing mechanism to 
preload and schedule content that is to be delivered to an external screen. 
Apparently, the way it works is that it uses Standalone flash player to host 
any flash content. The content gets preloaded into this player, then is 
immediately 'stopped' (using the Flash Player's Stop menu) until the platform 
decides its ready to go to screen. When it goes to screen, Flash Player's 
'Play' menu item is triggered, which is my queue to start my application. So my 
question is simple; does anyone know if I can hook up to those events, and if 
so, how? I'm guessing they're something to do with the timeline, but I'm not a 
CS3/4 developer, and I'm struggling to find any info on what exactly they do 
and the implications of them on SWFs developed in Flex.
 
Any help much appreciated,
Craig 



[flexcoders] Detecting Flash Player standalone menu events

2009-10-05 Thread Craig Shaw
Hi everyone,

I'm hoping someone might be able to point me in the right direction with an
integration issue I'm currently facing. The application I'm writing is going
to be hosted on a client's platform that uses some kind of queuing mechanism
to preload and schedule content that is to be delivered to an external
screen. Apparently, the way it works is that it uses Standalone flash player
to host any flash content. The content gets preloaded into this player, then
is immediately 'stopped' (using the Flash Player's Stop menu) until the
platform decides its ready to go to screen. When it goes to screen, Flash
Player's 'Play' menu item is triggered, which is my queue to start my
application. So my question is simple; does anyone know if I can hook up to
those events, and if so, how? I'm guessing they're something to do with the
timeline, but I'm not a CS developer, and I'm struggling to find any info on
what exactly they do and the implications of them on SWFs developed in Flex.

Any help much appreciated,
Craig


[flexcoders] Re: Synchronizing two ArrayCollections

2009-07-21 Thread Craig
Thanks that worked beautifully my final code follows:

private function dgClick():void {
   var curTick:String = dgOrdExt.selectedItem.Ticker;
   for (var i:int = 0; i < Array_Exits.length; i++)
  {
if ( Exits(Array_Exits.getItemAt(i).Ticker ==c urTick)
{
   dgExits.selectedIndex = i;
}
  }
   }



--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Going to have to loop:
> 
> var curTick:String = dg1.selectedItem.Ticker;
> 
> for (var i:int = 0; i < dg2.dataProvider.length; i++)
> {
>  if ( Object(dg2.dataProvider.getItemAt(i)).Ticker == curTick )
>  {
>   dg2.selectedIndex = i;
>  }
> }
> 
> Depending on your model, you could use for each instead.  Also, replace
> dg2.dataProivider with the appropriate ArrayCollection name and replace
> Object with your VO class name; if you're using one.  I'd use the
> "change" event instead of "click".
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> >
> >
> > Take 3... after further review, to simplify things I have bound 2
> > separate ArrayCollection to separate DataGrids they both share one
> > common field - Ticker.. I'd like to select the corresponding row
> > programmatically in the second datagrid which contains the value for
> > 'Ticker' that is selected in the first datagrid.
> >
> > So far this does not work...
> >
> >  > > result is Array_OrdExt and the second is Arrray_Exits.
> > > The Array Build routines for both are below.
> > >
> > > [Bindable] public var Array_Exits:ArrayCollection;
> > > public function Exits_Result(e:ResultEvent):void {
> > > Array_Exits = e.result as ArrayCollection;
> > > for (var i:int=0;i > > {
> > > var Current_exit:Exits = new Exits();
> > > Current_exit = new
> > > Exits(Array_Exits.getItemAt(i));
> > > Array_Exits.setItemAt(Current_exit, i);
> > > }
> > > }
> > >
> > > [Bindable] public var Array_OrdExt:ArrayCollection;
> > > private function OrdExt_result(e:ResultEvent):void {
> > > Array_OrdExt = e.result as ArrayCollection;
> > > for (var i:int=0;i > > {
> > > var Current_ordext:OrdExt = new OrdExt();
> > > Current_ordext = new
> > > OrdExt(Array_OrdExt.getItemAt(i));
> > > Array_OrdExt.setItemAt(Current_ordext, i);
> > > }
> > > }
> > >
> > > These build from two WebsServices results WSDL format (XML). For the
> > > second one, which is Array_Exits... can I just add it to the first
> one
> > > with the same result event? I would like to use the first field of
> > each
> > > collection 'Ticker' as the WHERE Ticker=Ticker then do the Get and
> > > Set...
> > >
> > > The Data Model for each Array is OrdExt.as and Exits.as is
> structured
> > as
> > > follows:
> > >
> > > package DTO.OrdEnt
> > > {
> > > [Bindable]
> > > public class OrdEnt
> > > {
> > > public var Ticker:String = "";
> > > public var Company:String = "";..continues
> > >
> > > public function OrdEnt(obj:Object=null){
> > > if (obj!=null){
> > > this.Ticker=obj.Ticker;
> > > this.Company=obj.Company;..continues
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Craig" craigj@ wrote:
> > > >
> > > > I need to create a DataModel.as that will synchronize two
> > > > arraycollections and allow me to update a Form based on the
> contents
> > > of
> > > > the 2nd arraycollection.index.item(s) when the first
> arraycollection
> > > > selecteditem is clicked as the dataprovider for a datagrid.
> > > >
> > > >
> > > > The 2 arraycollections are populated via webservices from sql
> > > database,
> > > > (which I can not InnerJoin from 4 different tables due to
> > > > performance)... so I end with two separate arraycollections:
> > > >
> > > > One populates a Datagrid, the other is just resident in an
> > > > ArrayCollection: Here is some of the sample code:
> > > >
> > > > 
> > > >  > > > headerText="Ticker"/>
> > > >  > > > headerText="Kind"

[flexcoders] Re: Synchronizing two ArrayCollections

2009-07-20 Thread Craig

Take 3... after further review, to simplify things I have bound 2
separate ArrayCollection to separate DataGrids they both share one
common field - Ticker..   I'd like to select the corresponding row
programmatically in the second datagrid which contains the value for
'Ticker' that is selected in the first datagrid.

So far this does not work...

 result is Array_OrdExt and the second is Arrray_Exits.
> The Array Build routines for both are below.
>
> [Bindable] public var Array_Exits:ArrayCollection;
> public function Exits_Result(e:ResultEvent):void {
> Array_Exits = e.result as ArrayCollection;
> for (var i:int=0;i {
> var Current_exit:Exits = new Exits();
> Current_exit = new
> Exits(Array_Exits.getItemAt(i));
> Array_Exits.setItemAt(Current_exit, i);
> }
> }
>
> [Bindable] public var Array_OrdExt:ArrayCollection;
> private function OrdExt_result(e:ResultEvent):void {
> Array_OrdExt = e.result as ArrayCollection;
> for (var i:int=0;i {
> var Current_ordext:OrdExt = new OrdExt();
> Current_ordext = new
> OrdExt(Array_OrdExt.getItemAt(i));
> Array_OrdExt.setItemAt(Current_ordext, i);
> }
> }
>
> These build from two WebsServices results WSDL format (XML). For the
> second one, which is Array_Exits... can I just add it to the first one
> with the same result event? I would like to use the first field of
each
> collection 'Ticker' as the WHERE Ticker=Ticker then do the Get and
> Set...
>
> The Data Model for each Array is OrdExt.as and Exits.as is structured
as
> follows:
>
> package DTO.OrdEnt
> {
> [Bindable]
> public class OrdEnt
> {
> public var Ticker:String = "";
> public var Company:String = "";..continues
>
> public function OrdEnt(obj:Object=null){
> if (obj!=null){
> this.Ticker=obj.Ticker;
> this.Company=obj.Company;..continues
>
>
>
>
>
>
>
> --- In flexcoders@yahoogroups.com, "Craig" craigj@ wrote:
> >
> > I need to create a DataModel.as that will synchronize two
> > arraycollections and allow me to update a Form based on the contents
> of
> > the 2nd arraycollection.index.item(s) when the first arraycollection
> > selecteditem is clicked as the dataprovider for a datagrid.
> >
> >
> > The 2 arraycollections are populated via webservices from sql
> database,
> > (which I can not InnerJoin from 4 different tables due to
> > performance)... so I end with two separate arraycollections:
> >
> > One populates a Datagrid, the other is just resident in an
> > ArrayCollection: Here is some of the sample code:
> >
> > 
> >  > headerText="Ticker"/>
> >  > headerText="Kind"
> > dataField="Kind"
> > itemRenderer="com.steury.baseClasses.CellFieldTrd"/>
> >  > labelFunction="{myPrice}"
> > dataField="EnterPrice"
> > headerText="EnterPrice"/>
> >  > labelFunction="{myClosePr}"
> > dataField="Close"
> > headerText="Price"/>
> >  > headerText="Profit"
> > dataField="Profit"
> > labelFunction="{perCent}"
> > itemRenderer="com.steury.baseClasses.CellFieldInt"/>
> > 
> >
> > __
> >
> >  > width="100%" height="50%"
> > textAlign="center"
> > dataProvider="{Array_OrdExt}"
> > itemClick="onTick4()" >
> >
> > One Array is Array_OrdEx and the other Array is Array_Exits.
> >
> > When I select an item on the dgOrdExt DataGrid, I simply want to
> > populate the text values of a Form with the appropriate Items in the
> > second datagrid... Here is the trick... they both share the same
> > 'Ticker' value, but just different other variables... so it's not
too
> > difficult, it's just trickier than my novice programming skills can
> > handle - easily.
> >
> > [Bindable] public var ExtTicker:String;
> >
> > So the OnTick4() event will contain the following code:
> >
> > ExtTicker=dgOrdExt.selectedItem.Ticker;
> >
> > Then I need to somehow update the form as follows:
> > formOrdExt.tiHigh.text=dgOrdExt.selectedItem.High;
> > formOrdExt.tiLow.text=dgOrdExt.selectedItem.Low
> >
> >
>
formOrdExt.tiStrategy.text=Array_Exists.getItemAt({ExtTicker}).Strategy;
> >
> > Or I need to build an DataModel.as class to sychronize the two
> > arraycollections... I have thought about using source.concat but
that
> > will append the two collections and I will have 2 of every Ticker,
> where
> > I only want 1 of every Ticker with the appropriate value (Open,
High,
> > Low, SellPrice, Profit, BudyDate, Exit, Strategy, etc).
> >
> > Can someone give me a hand?
> > CS
> >
>





[flexcoders] Re: Synchronizing two ArrayCollections

2009-07-20 Thread Craig
Actually after thinking about it, I should just add the 2nd Webservice
result to the first ArrayCollection data model.  They both share the
same field 'Ticker' but have different fields thereafter.  The first
result is Array_OrdExt and the second is Arrray_Exits.
The Array Build routines for both are below.

 [Bindable] public var Array_Exits:ArrayCollection;
 public function Exits_Result(e:ResultEvent):void  {
  Array_Exits = e.result as ArrayCollection;
  for (var i:int=0;i wrote:
>
> I need to create a DataModel.as that will synchronize two
> arraycollections and allow me to update a Form based on the contents
of
> the 2nd arraycollection.index.item(s) when the first arraycollection
> selecteditem is clicked as the dataprovider for a datagrid.
>
>
> The 2 arraycollections are populated via webservices from sql
database,
> (which I can not InnerJoin from 4 different tables due to
> performance)... so I end with two separate arraycollections:
>
> One populates a Datagrid, the other is just resident in an
> ArrayCollection:  Here is some of the sample code:
>
>  
>headerText="Ticker"/>
>headerText="Kind"
>  dataField="Kind"
> itemRenderer="com.steury.baseClasses.CellFieldTrd"/>
>labelFunction="{myPrice}"
>  dataField="EnterPrice"
>  headerText="EnterPrice"/>
>labelFunction="{myClosePr}"
>  dataField="Close"
>  headerText="Price"/>
>headerText="Profit"
>  dataField="Profit"
>  labelFunction="{perCent}"
>  itemRenderer="com.steury.baseClasses.CellFieldInt"/>
>  
>
> __
>
>width="100%" height="50%"
>  textAlign="center"
>  dataProvider="{Array_OrdExt}"
>  itemClick="onTick4()"  >
>
> One Array is Array_OrdEx and the other Array is Array_Exits.
>
> When I select an item on the dgOrdExt DataGrid, I simply want to
> populate the text values of a Form with the appropriate Items in the
> second datagrid... Here is the trick... they both share the same
> 'Ticker' value, but just different other variables... so it's not too
> difficult, it's just trickier than my novice programming skills can
> handle - easily.
>
>  [Bindable] public var ExtTicker:String;
>
> So the OnTick4() event will contain the following code:
>
>   ExtTicker=dgOrdExt.selectedItem.Ticker;
>
> Then I need to somehow update the form as follows:
>  formOrdExt.tiHigh.text=dgOrdExt.selectedItem.High;
>  formOrdExt.tiLow.text=dgOrdExt.selectedItem.Low
>
>
formOrdExt.tiStrategy.text=Array_Exists.getItemAt({ExtTicker}).Strategy;
>
> Or I need to build an DataModel.as class to sychronize the two
> arraycollections... I have thought about using source.concat but that
> will append the two collections and I will have 2 of every Ticker,
where
> I only want 1 of every Ticker with the appropriate value (Open, High,
> Low, SellPrice, Profit, BudyDate, Exit, Strategy, etc).
>
> Can someone give me a hand?
> CS
>




[flexcoders] Synchronizing two ArracyCollections

2009-07-19 Thread Craig
I need to create a DataModel.as that will synchronize two
arraycollections and allow me to update a Form based on the contents of
the 2nd arraycollection.index.item(s) when the first arraycollection
selecteditem is clicked as the dataprovider for a datagrid.


The 2 arraycollections are populated via webservices from sql database,
(which I can not InnerJoin from 4 different tables due to
performance)... so I end with two separate arraycollections:

One populates a Datagrid, the other is just resident in an
ArrayCollection:  Here is some of the sample code:

 
 
 
 
 
 
 

__

 

One Array is Array_OrdEx and the other Array is Array_Exits.

When I select an item on the dgOrdExt DataGrid, I simply want to
populate the text values of a Form with the appropriate Items in the
second datagrid... Here is the trick... they both share the same
'Ticker' value, but just different other variables... so it's not too
difficult, it's just trickier than my novice programming skills can
handle - easily.

 [Bindable] public var ExtTicker:String;

So the OnTick4() event will contain the following code:

  ExtTicker=dgOrdExt.selectedItem.Ticker;

Then I need to somehow update the form as follows:
 formOrdExt.tiHigh.text=dgOrdExt.selectedItem.High;
 formOrdExt.tiLow.text=dgOrdExt.selectedItem.Low

formOrdExt.tiStrategy.text=Array_Exists.getItemAt({ExtTicker}).Strategy;

Or I need to build an DataModel.as class to sychronize the two
arraycollections... I have thought about using source.concat but that
will append the two collections and I will have 2 of every Ticker, where
I only want 1 of every Ticker with the appropriate value (Open, High,
Low, SellPrice, Profit, BudyDate, Exit, Strategy, etc).

Can someone give me a hand?
CS





[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
--- In flexcoders@yahoogroups.com, "postwick"  wrote:

thank you, sir... I appreciate your help, I shall do as you say  !!

Craig


>
> That'll update the value of the cell.  
> 
> You can't do what you're trying to do.  You can't have a column with a 
> different dataField per row.  The dataField for the column is the same for 
> every row.
> 
> Is this data coming from a database, through a view?  You really should do 
> this there.  You can set up a view column with an if/then that returns the 
> column's value you want.
> 
> --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> >
> > now we're getting somewhere!  but will this update the value of the col2 or 
> > the value of col2 DataField?
> > 
> > I am trying to change the value of col2 DataField to "Profit" not the value 
> > of col2 itself.
> > 
> > Can I use:
> > 
> > dgOrdExt.getChildAt(i)["Profit"].dataField = "Profit"
> > 
> > CS
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > >
> > > You can't use selectedItem because there is no selectedItem.  You haven't 
> > > clicked a row.  Try looping through the grid.
> > > 
> > > In the end, I really don't understand why you don't do this in the 
> > > dataCollection, or even in the source data.
> > > 
> > > for (var i:Number = 0; i < mygrid.numChildren; i++) {
> > >   if (mygrid.getChildAt(i)["Kind"] == 
> > > "LONG") {
> > >   mygrid.getChildAt(i)["Profit"] 
> > > = "Profit";
> > >   }
> > > else { mygrid.getChildAt(i)["Profit"] = "ShProfit"; }
> > > 
> > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > >
> > > > Ok... In the parent component to the datagrid I used an initialize 
> > > > event:
> > > > 
> > > >  public function initDg():void  {
> > > > 
> > > > if(dgOrdExt.selectedItem["Kind"]=="LONG")dgOrdExt.Profit.dataField="Profit";
> > > > if(dgOrdExt.selectedItem["Kind"]=="SHORT")dgOrdExt.Profit.dataField="ShProfit";
> > > > 
> > > > }
> > > > 
> > > > it does not work.  but if I replace the code with 
> > > > dgOrdExt.dataField="Profit"; which just sets the dataField without 
> > > > referencing the other column the code is all working... 
> > > > 
> > > > I also tried creationcomplete event and that did not work either.
> > > > 
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > > >
> > > > > cause I was doing it within the custom component (column) itself for 
> > > > > the datagrid, which can not hold an Id value, I can put it in the 
> > > > > parent component however i'll give that a whack.
> > > > > 
> > > > > 
> > > > > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > > > > >
> > > > > > Not sure why you have all the Application.application stuff on 
> > > > > > there.  Just reference the datagrid by it's id.
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > mygrid.selectedItem["columname"] = "some value"
> > > > > > 
> > > > > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > > > > >
> > > > > > > From within the custom component DataGrid Column I tried this 
> > > > > > > code as you suggested at the initialize event but it errors:
> > > > > > > 
> > > > > > >   
> > > > > > > if(Application.application.CnvPos.dgOrdExt.selectedItem["Kind"]=="LONG")
> > > > > > >  Profit.dataField="Profit";
> > > > > > > 
> > > > > > > 
> > > > > > > I don't think the selecteditem field is the answer.
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > 
&

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
now we're getting somewhere!  but will this update the value of the col2 or the 
value of col2 DataField?

I am trying to change the value of col2 DataField to "Profit" not the value of 
col2 itself.

Can I use:

dgOrdExt.getChildAt(i)["Profit"].dataField = "Profit"

CS




--- In flexcoders@yahoogroups.com, "postwick"  wrote:
>
> You can't use selectedItem because there is no selectedItem.  You haven't 
> clicked a row.  Try looping through the grid.
> 
> In the end, I really don't understand why you don't do this in the 
> dataCollection, or even in the source data.
> 
> for (var i:Number = 0; i < mygrid.numChildren; i++) {
>   if (mygrid.getChildAt(i)["Kind"] == 
> "LONG") {
>   mygrid.getChildAt(i)["Profit"] 
> = "Profit";
>   }
> else { mygrid.getChildAt(i)["Profit"] = "ShProfit"; }
> 
> --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> >
> > Ok... In the parent component to the datagrid I used an initialize event:
> > 
> >  public function initDg():void  {
> > 
> > if(dgOrdExt.selectedItem["Kind"]=="LONG")dgOrdExt.Profit.dataField="Profit";
> > if(dgOrdExt.selectedItem["Kind"]=="SHORT")dgOrdExt.Profit.dataField="ShProfit";
> > 
> > }
> > 
> > it does not work.  but if I replace the code with 
> > dgOrdExt.dataField="Profit"; which just sets the dataField without 
> > referencing the other column the code is all working... 
> > 
> > I also tried creationcomplete event and that did not work either.
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > >
> > > cause I was doing it within the custom component (column) itself for the 
> > > datagrid, which can not hold an Id value, I can put it in the parent 
> > > component however i'll give that a whack.
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > > >
> > > > Not sure why you have all the Application.application stuff on there.  
> > > > Just reference the datagrid by it's id.
> > > > 
> > > > 
> > > > 
> > > > mygrid.selectedItem["columname"] = "some value"
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > > >
> > > > > From within the custom component DataGrid Column I tried this code as 
> > > > > you suggested at the initialize event but it errors:
> > > > > 
> > > > >   
> > > > > if(Application.application.CnvPos.dgOrdExt.selectedItem["Kind"]=="LONG")
> > > > >  Profit.dataField="Profit";
> > > > > 
> > > > > 
> > > > > I don't think the selecteditem field is the answer.
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > > > >
> > > > > > yes the datagrid is bound to an array collection.
> > > > > > I don't want to select any item, I want to change the value of a 
> > > > > > column's DataField to a one of two values based on the value of 
> > > > > > another column's output.
> > > > > > 
> > > > > > I don't want to have to 'selecteditem' but I can try that code 
> > > > > > below are you suggesting that I use it in the labelfunction of the 
> > > > > > datagrid column that I am trying to change?
> > > > > > 
> > > > > > 
> > > > > > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > > > > > >
> > > > > > > Is the datagrid bound to a collection?  if so, change the value 
> > > > > > > in the collection.
> > > > > > > 
> > > > > > > or try...
> > > > > > > 
> > > > > > > yourDataGrid.selectedItem["dataColumn1"] = 
> > > > > > > yourDataGrid.selectedItem["dataColumn2"]
> > > > > > > 
> > > > > > > --- In flexcoders@yahoogrou

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
Ok... In the parent component to the datagrid I used an initialize event:

 public function initDg():void  {

if(dgOrdExt.selectedItem["Kind"]=="LONG")dgOrdExt.Profit.dataField="Profit";
if(dgOrdExt.selectedItem["Kind"]=="SHORT")dgOrdExt.Profit.dataField="ShProfit";

}

it does not work.  but if I replace the code with dgOrdExt.dataField="Profit"; 
which just sets the dataField without referencing the other column the code is 
all working... 

I also tried creationcomplete event and that did not work either.



--- In flexcoders@yahoogroups.com, "Craig"  wrote:
>
> cause I was doing it within the custom component (column) itself for the 
> datagrid, which can not hold an Id value, I can put it in the parent 
> component however i'll give that a whack.
> 
> 
> --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> >
> > Not sure why you have all the Application.application stuff on there.  Just 
> > reference the datagrid by it's id.
> > 
> > 
> > 
> > mygrid.selectedItem["columname"] = "some value"
> > 
> > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > >
> > > From within the custom component DataGrid Column I tried this code as you 
> > > suggested at the initialize event but it errors:
> > > 
> > >   
> > > if(Application.application.CnvPos.dgOrdExt.selectedItem["Kind"]=="LONG") 
> > > Profit.dataField="Profit";
> > > 
> > > 
> > > I don't think the selecteditem field is the answer.
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > >
> > > > yes the datagrid is bound to an array collection.
> > > > I don't want to select any item, I want to change the value of a 
> > > > column's DataField to a one of two values based on the value of another 
> > > > column's output.
> > > > 
> > > > I don't want to have to 'selecteditem' but I can try that code below 
> > > > are you suggesting that I use it in the labelfunction of the datagrid 
> > > > column that I am trying to change?
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > > > >
> > > > > Is the datagrid bound to a collection?  if so, change the value in 
> > > > > the collection.
> > > > > 
> > > > > or try...
> > > > > 
> > > > > yourDataGrid.selectedItem["dataColumn1"] = 
> > > > > yourDataGrid.selectedItem["dataColumn2"]
> > > > > 
> > > > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > > > >
> > > > > > I am trying to set the value of a column based on the value of 
> > > > > > another column.  If I use ...selectedItem... it does not work, 
> > > > > > unless I am mistaken.
> > > > > > 
> > > > > > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > > > > > >
> > > > > > > You access the value in a column of a datagrid like this...
> > > > > > > 
> > > > > > > yourDataGrid.selectedItem["dataColumnNameOfColumn"]
> > > > > > > 
> > > > > > > 
> > > > > > > 
> > > > > > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > > > > > >
> > > > > > > > I GIVE UP!! I have tried everything!!.. I have a dataGrid that 
> > > > > > > > binds to
> > > > > > > > an ArrayCollection.  I need to change the value of one columen 
> > > > > > > > (Profit)
> > > > > > > > based on the value of another column (Kind) ie.. the results 
> > > > > > > > (either
> > > > > > > > 'LONG' or SHORT').  Here is where I'm at.  I've tried putting 
> > > > > > > > code into
> > > > > > > > customer DataGridColumns and labelFunctions and 
> > > > > > > > ItemRenderers... but can
> > > > > > > > not do it.  What seem to be working most are events in the 
> > > > > > > > DataGrid
> > > > > > > > Component, better than others, but comparing values in a 
> > > > > > > > DataGrid is
> > > > > > > > obviously impossible.
> > > > > > > > 
> > > > > > > > Somehow I need the code to access ArrayCollection getItemat() 
> > > > > > > > but I
> > > > > > > > can't do it!
> > > > > > > > 
> > > > > > > > Please help!
> > > > > > > > 
> > > > > > > > http://www.adobe.com/2006/mxml";
> > > > > > > >  initialize="initTA()">
> > > > > > > > 
> > > > > > > >   > > > > > > >  headerText="Kind"
> > > > > > > >  dataField="Kind"
> > > > > > > >  
> > > > > > > > itemRenderer="com.steury.baseClasses.CellFieldTrd"/>
> > > > > > > >   > > > > > > >  headerText="Profit"/>
> > > > > > > > 
> > > > > > > >  
> > > > > > > >  

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
>From within the custom component DataGrid Column I tried this code as you 
>suggested at the initialize event but it errors:


if(Application.application.CnvPos.dgOrdExt.selectedItem["Kind"]=="LONG") 
Profit.dataField="Profit";


I don't think the selecteditem field is the answer.




--- In flexcoders@yahoogroups.com, "Craig"  wrote:
>
> yes the datagrid is bound to an array collection.
> I don't want to select any item, I want to change the value of a column's 
> DataField to a one of two values based on the value of another column's 
> output.
> 
> I don't want to have to 'selecteditem' but I can try that code below are you 
> suggesting that I use it in the labelfunction of the datagrid column that I 
> am trying to change?
> 
> 
> --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> >
> > Is the datagrid bound to a collection?  if so, change the value in the 
> > collection.
> > 
> > or try...
> > 
> > yourDataGrid.selectedItem["dataColumn1"] = 
> > yourDataGrid.selectedItem["dataColumn2"]
> > 
> > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > >
> > > I am trying to set the value of a column based on the value of another 
> > > column.  If I use ...selectedItem... it does not work, unless I am 
> > > mistaken.
> > > 
> > > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > > >
> > > > You access the value in a column of a datagrid like this...
> > > > 
> > > > yourDataGrid.selectedItem["dataColumnNameOfColumn"]
> > > > 
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > > >
> > > > > I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds 
> > > > > to
> > > > > an ArrayCollection.  I need to change the value of one columen 
> > > > > (Profit)
> > > > > based on the value of another column (Kind) ie.. the results (either
> > > > > 'LONG' or SHORT').  Here is where I'm at.  I've tried putting code 
> > > > > into
> > > > > customer DataGridColumns and labelFunctions and ItemRenderers... but 
> > > > > can
> > > > > not do it.  What seem to be working most are events in the DataGrid
> > > > > Component, better than others, but comparing values in a DataGrid is
> > > > > obviously impossible.
> > > > > 
> > > > > Somehow I need the code to access ArrayCollection getItemat() but I
> > > > > can't do it!
> > > > > 
> > > > > Please help!
> > > > > 
> > > > > http://www.adobe.com/2006/mxml";
> > > > >  initialize="initTA()">
> > > > > 
> > > > >   > > > >  headerText="Kind"
> > > > >  dataField="Kind"
> > > > >  itemRenderer="com.steury.baseClasses.CellFieldTrd"/>
> > > > >   > > > >  headerText="Profit"/>
> > > > > 
> > > > >  
> > > > >  

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
yes the datagrid is bound to an array collection.
I don't want to select any item, I want to change the value of a column's 
DataField to a one of two values based on the value of another column's output.

I don't want to have to 'selecteditem' but I can try that code below are you 
suggesting that I use it in the labelfunction of the datagrid column that I am 
trying to change?


--- In flexcoders@yahoogroups.com, "postwick"  wrote:
>
> Is the datagrid bound to a collection?  if so, change the value in the 
> collection.
> 
> or try...
> 
> yourDataGrid.selectedItem["dataColumn1"] = 
> yourDataGrid.selectedItem["dataColumn2"]
> 
> --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> >
> > I am trying to set the value of a column based on the value of another 
> > column.  If I use ...selectedItem... it does not work, unless I am mistaken.
> > 
> > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > >
> > > You access the value in a column of a datagrid like this...
> > > 
> > > yourDataGrid.selectedItem["dataColumnNameOfColumn"]
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > >
> > > > I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to
> > > > an ArrayCollection.  I need to change the value of one columen (Profit)
> > > > based on the value of another column (Kind) ie.. the results (either
> > > > 'LONG' or SHORT').  Here is where I'm at.  I've tried putting code into
> > > > customer DataGridColumns and labelFunctions and ItemRenderers... but can
> > > > not do it.  What seem to be working most are events in the DataGrid
> > > > Component, better than others, but comparing values in a DataGrid is
> > > > obviously impossible.
> > > > 
> > > > Somehow I need the code to access ArrayCollection getItemat() but I
> > > > can't do it!
> > > > 
> > > > Please help!
> > > > 
> > > > http://www.adobe.com/2006/mxml";
> > > >  initialize="initTA()">
> > > > 
> > > >   > > >  headerText="Kind"
> > > >  dataField="Kind"
> > > >  itemRenderer="com.steury.baseClasses.CellFieldTrd"/>
> > > >   > > >  headerText="Profit"/>
> > > > 
> > > >  
> > > >  

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
I am trying to set the value of a column based on the value of another column.  
If I use ...selectedItem... it does not work, unless I am mistaken.

--- In flexcoders@yahoogroups.com, "postwick"  wrote:
>
> You access the value in a column of a datagrid like this...
> 
> yourDataGrid.selectedItem["dataColumnNameOfColumn"]
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> >
> > I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to
> > an ArrayCollection.  I need to change the value of one columen (Profit)
> > based on the value of another column (Kind) ie.. the results (either
> > 'LONG' or SHORT').  Here is where I'm at.  I've tried putting code into
> > customer DataGridColumns and labelFunctions and ItemRenderers... but can
> > not do it.  What seem to be working most are events in the DataGrid
> > Component, better than others, but comparing values in a DataGrid is
> > obviously impossible.
> > 
> > Somehow I need the code to access ArrayCollection getItemat() but I
> > can't do it!
> > 
> > Please help!
> > 
> > http://www.adobe.com/2006/mxml";
> >  initialize="initTA()">
> > 
> >   >  headerText="Kind"
> >  dataField="Kind"
> >  itemRenderer="com.steury.baseClasses.CellFieldTrd"/>
> >   >  headerText="Profit"/>
> > 
> >  
> >  

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
cause I was doing it within the custom component (column) itself for the 
datagrid, which can not hold an Id value, I can put it in the parent component 
however i'll give that a whack.


--- In flexcoders@yahoogroups.com, "postwick"  wrote:
>
> Not sure why you have all the Application.application stuff on there.  Just 
> reference the datagrid by it's id.
> 
> 
> 
> mygrid.selectedItem["columname"] = "some value"
> 
> --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> >
> > From within the custom component DataGrid Column I tried this code as you 
> > suggested at the initialize event but it errors:
> > 
> > 
> > if(Application.application.CnvPos.dgOrdExt.selectedItem["Kind"]=="LONG") 
> > Profit.dataField="Profit";
> > 
> > 
> > I don't think the selecteditem field is the answer.
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > >
> > > yes the datagrid is bound to an array collection.
> > > I don't want to select any item, I want to change the value of a column's 
> > > DataField to a one of two values based on the value of another column's 
> > > output.
> > > 
> > > I don't want to have to 'selecteditem' but I can try that code below are 
> > > you suggesting that I use it in the labelfunction of the datagrid column 
> > > that I am trying to change?
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > > >
> > > > Is the datagrid bound to a collection?  if so, change the value in the 
> > > > collection.
> > > > 
> > > > or try...
> > > > 
> > > > yourDataGrid.selectedItem["dataColumn1"] = 
> > > > yourDataGrid.selectedItem["dataColumn2"]
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > > >
> > > > > I am trying to set the value of a column based on the value of 
> > > > > another column.  If I use ...selectedItem... it does not work, unless 
> > > > > I am mistaken.
> > > > > 
> > > > > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > > > > >
> > > > > > You access the value in a column of a datagrid like this...
> > > > > > 
> > > > > > yourDataGrid.selectedItem["dataColumnNameOfColumn"]
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > > > > >
> > > > > > > I GIVE UP!! I have tried everything!!.. I have a dataGrid that 
> > > > > > > binds to
> > > > > > > an ArrayCollection.  I need to change the value of one columen 
> > > > > > > (Profit)
> > > > > > > based on the value of another column (Kind) ie.. the results 
> > > > > > > (either
> > > > > > > 'LONG' or SHORT').  Here is where I'm at.  I've tried putting 
> > > > > > > code into
> > > > > > > customer DataGridColumns and labelFunctions and ItemRenderers... 
> > > > > > > but can
> > > > > > > not do it.  What seem to be working most are events in the 
> > > > > > > DataGrid
> > > > > > > Component, better than others, but comparing values in a DataGrid 
> > > > > > > is
> > > > > > > obviously impossible.
> > > > > > > 
> > > > > > > Somehow I need the code to access ArrayCollection getItemat() but 
> > > > > > > I
> > > > > > > can't do it!
> > > > > > > 
> > > > > > > Please help!
> > > > > > > 
> > > > > > > http://www.adobe.com/2006/mxml";
> > > > > > >  initialize="initTA()">
> > > > > > > 
> > > > > > >   > > > > > >  headerText="Kind"
> > > > > > >  dataField="Kind"
> > > > > > >  
> > > > > > > itemRenderer="com.steury.baseClasses.CellFieldTrd"/>
> > > > > > >   > > > > > >  headerText="Profit"/>
> > > > > > > 
> > > > > > >  
> > > > > > >  

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
so if it's doing it row by row, then it would need to be a labelfunction event 
right?  where would you suggest the code go?  there needs to be an 
if (datagrid.seleteditem["Kind]=="LONG")datagrid.selecteditem[Profit]="Profit";
then another line that stipulate the other option:
if 
(datagrid.selecteditem[Kind]=="Short")datagrid.selecteditem[Profit]="ShProfit";

--- In flexcoders@yahoogroups.com, "postwick"  wrote:
>
> if you just did dataGrid.selectedItem then that would be the selected row.  
> add ["columnname"] to get to the column, so:
> 
> dataGrid.selectedItem["columnname"]
> 
> it's not the label, it's the data column name.
> 
> --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> >
> > yes the datagrid is bound to an array collection.
> > I don't want to select any item, I want to change the value of a column's 
> > DataField to a one of two values based on the value of another column's 
> > output.
> > 
> > I don't want to have to 'selecteditem' but I can try that code below are 
> > you suggesting that I use it in the labelfunction of the datagrid column 
> > that I am trying to change?
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > >
> > > Is the datagrid bound to a collection?  if so, change the value in the 
> > > collection.
> > > 
> > > or try...
> > > 
> > > yourDataGrid.selectedItem["dataColumn1"] = 
> > > yourDataGrid.selectedItem["dataColumn2"]
> > > 
> > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > >
> > > > I am trying to set the value of a column based on the value of another 
> > > > column.  If I use ...selectedItem... it does not work, unless I am 
> > > > mistaken.
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > > > >
> > > > > You access the value in a column of a datagrid like this...
> > > > > 
> > > > > yourDataGrid.selectedItem["dataColumnNameOfColumn"]
> > > > > 
> > > > > 
> > > > > 
> > > > > --- In flexcoders@yahoogroups.com, "Craig"  wrote:
> > > > > >
> > > > > > I GIVE UP!! I have tried everything!!.. I have a dataGrid that 
> > > > > > binds to
> > > > > > an ArrayCollection.  I need to change the value of one columen 
> > > > > > (Profit)
> > > > > > based on the value of another column (Kind) ie.. the results (either
> > > > > > 'LONG' or SHORT').  Here is where I'm at.  I've tried putting code 
> > > > > > into
> > > > > > customer DataGridColumns and labelFunctions and ItemRenderers... 
> > > > > > but can
> > > > > > not do it.  What seem to be working most are events in the DataGrid
> > > > > > Component, better than others, but comparing values in a DataGrid is
> > > > > > obviously impossible.
> > > > > > 
> > > > > > Somehow I need the code to access ArrayCollection getItemat() but I
> > > > > > can't do it!
> > > > > > 
> > > > > > Please help!
> > > > > > 
> > > > > > http://www.adobe.com/2006/mxml";
> > > > > >  initialize="initTA()">
> > > > > > 
> > > > > >   > > > > >  headerText="Kind"
> > > > > >  dataField="Kind"
> > > > > >  
> > > > > > itemRenderer="com.steury.baseClasses.CellFieldTrd"/>
> > > > > >   > > > > >  headerText="Profit"/>
> > > > > > 
> > > > > >  
> > > > > >  

[flexcoders] Re: This is not as easy as it seems ... apparently...

2009-07-12 Thread Craig
I GIVE UP!! I have tried everything!!.. I have a dataGrid that binds to
an ArrayCollection.  I need to change the value of one columen (Profit)
based on the value of another column (Kind) ie.. the results (either
'LONG' or SHORT').  Here is where I'm at.  I've tried putting code into
customer DataGridColumns and labelFunctions and ItemRenderers... but can
not do it.  What seem to be working most are events in the DataGrid
Component, better than others, but comparing values in a DataGrid is
obviously impossible.

Somehow I need the code to access ArrayCollection getItemat() but I
can't do it!

Please help!

http://www.adobe.com/2006/mxml";
 initialize="initTA()">

 
 

 
 

[flexcoders] This is not as easy as it seems ... apparently...

2009-07-11 Thread Craig
I am trying to access the value of a DataGridColumn and change the
DataField for another column based on this value...
Here is my code:


http://www.adobe.com/2006/mxml";
  creationComplete="getDp()" >

... Datagrid>

 
 
 

ActionScript:

private function getDp():void  {
if(Application.application.CnvPos.dgOrdExt.selectedItem.Kind=="LONG")Pro\
fit.dataField="Profit";Application.application.CnvPos.dgOrdExt.refresh()\
;
}


//This code works find if I use

if(Kind.DataField="Kind")Profit.dataField="Profit";

//above to test the rest of the code.

I can not figure out how to access the value of the Datagridcolumn.  I
have tied using event listeners, etc.. which did not work.  Please let
me know if anyone can help this fairly simple dilemma.







[flexcoders] Re: HELP! - Can not access Web Service!

2009-02-22 Thread Craig
By the way... I am running this via a SWF file that is hosted off of a
folder of the same domain.

--- In flexcoders@yahoogroups.com, "Craig"  wrote:
>
> I get error below if webservice asmx and URL of domain do not match...
> they both have to have http://www  or no 'www' in order to run...
> otherwise I get the following error below BUT my cross domain is at
> the root of the webserver!!  what am I doing wrong???:
> 
> 
> [RPC Fault faultString="Security error accessing url"
> faultCode="Channel.Security.Error" faultDetail="Unable to 
> 
> load WSDL. If currently online, please verify the URI and/or format of
> the WSDL 
> 
> (http://www.velocitytrading.net/VTOrdEnt.asmx?WSDL)"]
>   at mx.rpc.wsdl::WSDLLoader/faultHandler()
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at
>
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
>   at
>
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
>   at mx.rpc::Responder/fault()
>   at mx.rpc::AsyncRequest/fault()
>   at DirectHTTPMessageResponder/securityErrorHandler()
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at flash.net::URLLoader/redirectEvent()
> 
> 
> CROSS DOMAIN
> 
> 
>  "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
> 
>   http://velocitytrading.net"/>
>   http://www.velocitytrading.net"/>
>   
> 
>




[flexcoders] HELP! - Can not access Web Service!

2009-02-22 Thread Craig
I get error below if webservice asmx and URL of domain do not match...
they both have to have http://www  or no 'www' in order to run...
otherwise I get the following error below BUT my cross domain is at
the root of the webserver!!  what am I doing wrong???:


[RPC Fault faultString="Security error accessing url"
faultCode="Channel.Security.Error" faultDetail="Unable to 

load WSDL. If currently online, please verify the URI and/or format of
the WSDL 

(http://www.velocitytrading.net/VTOrdEnt.asmx?WSDL)"]
at mx.rpc.wsdl::WSDLLoader/faultHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at DirectHTTPMessageResponder/securityErrorHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()


CROSS DOMAIN


http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>

http://velocitytrading.net"/>
http://www.velocitytrading.net"/>








[flexcoders] Need Guidance for Integrating Flex and ASP.NET

2008-10-26 Thread Craig
My project loads stock tickers from SQL into asp.net datatables and
when a chart is needed, the SWF file for Flex runs as a separate
program.  The datatables and charts are duplicated and run separately
so you select the ticker from the table in flex to load the flex chart.

What I would really like is for the back end to remain ASP.NET and SQL
and when a chart is needed, Flex will launch a 'pop up window' or
sizable component module that displays the chart information - in
context with the asp.net datatable of tickers.

I need some guidance as to how this is accomplished - the easiest way
possible.  Help is appreciated.

CS




[flexcoders] Re: Help with ViewStack Event Listeners for Custom Components

2008-06-28 Thread Craig

--- In flexcoders@yahoogroups.com, "Craig" <[EMAIL PROTECTED]> wrote:
>
> Jitendra,
> Hi, my original post was not incorrect.  I am actually trying to make
> children of a viewstack visible using a tab navigator, however the tab
> navigator is not a parent of the viewstack components. It is a parent
> of two other components within a separate Viewstack... creating a
> click event for the tab navigator does not work.  A click event works
> when tied to the the children of the tab navigator, but doesn't make
> the interface work.
>
> ie... here is code with click event tied to tab nav (which does not
> work)...
>
>   import mx.events.FlexEvent;
>
>   private function showPanel():void {
>if (tbNav.selectedChild==Panel1)
> {
>  vwStk.selectedChild=pn1;
> }
>else
> {
>  vwStk.selectedChild=pn2;
> }
>   }
>  ]]>
> 
>
>  
>
>   height="40%" width="40%" >
>   
>  
>   height="40%" width="40%">
>   
>  
>
>  
>
>  
>   
>
>   
>   
>
>   
>  
>
>  
>
>
> 
>
>
> I suspect I will need to create some Listeners and Handlers, but I am
> not too good at understanding how to do that on my own, can you
> provide any guidance?
>
> Thanks !!
>
> Craig
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --- In flexcoders@yahoogroups.com, jitendra jain
> jitendra_jain_2007@ wrote:
> >
> > instead of  vwChart.selectedIndex=0 make it
> vwchart.selectedChild=lgch . It will work
> >
> >
> >  Thanks,
> >
> > with Regards,
> > Jitendra Jain
> > Software Engineer
> > 91-9979960798
> >
> >
> >
> > - Original Message 
> > From: Craig craigj@
> > To: flexcoders@yahoogroups.com
> > Sent: Saturday, June 28, 2008 10:00:53 AM
> > Subject: [flexcoders] Help with ViewStack Event Listeners for Custom
> Components
> >
> >
> > My Viewstack does not make custom components active (they do not
show
> > up with simple functions like this one...
> >
> > vwChrt.selectedinde x=0;
> >
> > vwChrt.selectedinde x=1;
> >
> > I suspect I need to add Event Handlers, and would like some
guidance.
> >
> > My MXML code looks like this (shortened) - A viewstack surrounding
two
> > custom components (panels)
> >
> >  > creationPolicy= "queued" >
> >
> >  > width="100%" height="100% ">
> >  > creationPolicy= "queued">
> > 
> > 
> >
> >  > width="100%" height="100% " >
> >  > creationPolicy= "queued">
> > 
> > 
> >
> > 
> >
> > I am not sure how to use the following event listeners.
> >
> > vwChrt.getChildAt( 0).addEventListe ner(FlexEvent. CREATION_
COMPLETE,
> > getLong);
> >
> > vwChrt.getChildAt( 1).addEventListe ner(FlexEvent. CREATION_
COMPLETE,
> > getShort);
> >
> > Can anyone offer any advice?
> > Thank you in advance for any help.
> > Craig
> >
>




[flexcoders] Re: Help with ViewStack Event Listeners for Custom Components

2008-06-28 Thread Craig
Jitendra,
Hi, my original post was not incorrect.  I am actually trying to make
children of a viewstack visible using a tab navigator, however the tab
navigator is not a parent of the viewstack components. It is a parent
of two other components within a separate Viewstack... creating a
click event for the tab navigator does not work.  A click event works
when tied to the the children of the tab navigator, but doesn't make
the interface work.

ie... here is code with click event tied to tab nav (which does not
work)...

import mx.events.FlexEvent;

private function showPanel():void   {
if (tbNav.selectedChild==Panel1)
{
vwStk.selectedChild=pn1;
}
else
{
vwStk.selectedChild=pn2;
}   
}
]]>




























I suspect I will need to create some Listeners and Handlers, but I am
not too good at understanding how to do that on my own, can you
provide any guidance?

Thanks !! 

Craig

















--- In flexcoders@yahoogroups.com, jitendra jain
<[EMAIL PROTECTED]> wrote:
>
> instead of  vwChart.selectedIndex=0 make it
vwchart.selectedChild=lgch . It will work
> 
> 
>  Thanks,
> 
> with Regards,
> Jitendra Jain
> Software Engineer
> 91-9979960798
> 
> 
> 
> - Original Message 
> From: Craig <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Saturday, June 28, 2008 10:00:53 AM
> Subject: [flexcoders] Help with ViewStack Event Listeners for Custom
Components
> 
> 
> My Viewstack does not make custom components active (they do not show
> up with simple functions like this one... 
> 
> vwChrt.selectedinde x=0;
> 
> vwChrt.selectedinde x=1;
> 
> I suspect I need to add Event Handlers, and would like some guidance.
> 
> My MXML code looks like this (shortened) - A viewstack surrounding two
> custom components (panels)
> 
>  creationPolicy= "queued" >
> 
>  width="100%" height="100% ">
>  creationPolicy= "queued">
> 
> 
> 
>  width="100%" height="100% " >
>  creationPolicy= "queued">
> 
> 
> 
> 
> 
> I am not sure how to use the following event listeners.
> 
> vwChrt.getChildAt( 0).addEventListe ner(FlexEvent. CREATION_ COMPLETE,
> getLong); 
> 
> vwChrt.getChildAt( 1).addEventListe ner(FlexEvent. CREATION_ COMPLETE,
> getShort); 
> 
> Can anyone offer any advice?
> Thank you in advance for any help.
> Craig
>




[flexcoders] Help with ViewStack Event Listeners for Custom Components

2008-06-27 Thread Craig
My Viewstack does not make custom components active (they do not show
up with simple functions like this one... 

vwChrt.selectedindex=0;

vwChrt.selectedindex=1;


I suspect I need to add Event Handlers, and would like some guidance.

My MXML code looks like this (shortened) - A viewstack surrounding two
custom components (panels)















I am not sure how to use the following event listeners.

vwChrt.getChildAt(0).addEventListener(FlexEvent.CREATION_COMPLETE,
getLong);   

vwChrt.getChildAt(1).addEventListener(FlexEvent.CREATION_COMPLETE,
getShort);  

Can anyone offer any advice?
Thank you in advance for any help.
Craig





[flexcoders] Very Strange Behavior

2008-06-23 Thread Craig
I have a Panel with a Tab Navigator and two Divided Boxes with DataGrids.

I am not sure why I can't get dgShorts to load properly... any ideas?
It will only load if it's brought to the to front before I bind it to
the array collection, whereas the dgResults (first) datagrid will load
fine either first or second.
CS










 
 
 
 






[flexcoders] Re: ASP.NET RSS proxy?

2008-05-23 Thread Craig
I am going to try to use the RSS PHP Proxy on this example...(below)
I am using the Flex3 code to load and parse the RSS files from the Flex3
documentation... it looks the same as most of the code from the
as3syndicationlib that is on Mike Chambers blog (also below).  This PHP
proxy looks fairly simple to implement along with the most of the same
code that I am using now, it skips ASP as a proxy, which I thought would
be the easiest route, but I am not finding a way to use ASP for RSS XML
proxy that has been done and can be easily re-produced and I do not want
to invent a new version of the wheel or in this case a new version of
the Toyota Prius ...

Thoughts and comments welcome.
PHP example:
http://www.infinitearray.com/experiments/feeder/srcview/index.html
rssfetch.php

Mike Chambers Blog
http://www.mikechambers.com/blog/2008/01/22/parsing-rss-20-feeds-in-acti\
onscript-3/

  [:))]



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Yes, something is returning HTML to you instead of XML.  At least the
> XML is not valid(not XHTML).  This looks like an error from the site
you
> are hitting.  Are you sure it is an RSS feed?  You will need to wrap
> that in a try catch block and handle the html error.
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Craig
> Sent: Friday, May 23, 2008 4:48 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: ASP.NET RSS proxy?
>
>
>
> Tracy, I did play with de-bugging a little more and this error came up
> with I came to the line below - one line at a time.
>
> The XML page cannot be displayed
>
> Cannot view XML input using XSL style sheet. Please correct the error
> and then click the Refresh button, or try again later.
>
> 
>
> Only one top level element is allowed in an XML document. Error
> processing resource 'http://localhost:1821/velocitytrading
>
> 
>
> -^
>
> Any Ideas?
> Craig
>
>
>
>
>
>
>
> --- In flexcoders@yahoogroups.com, "Tracy Spratt" tspratt@ wrote:
> >
> > Do you control the server? Can you turn on verbose errors? That is
in
> > the web.config file.
> >
> >
> >
> > Can you debug the aspx page? Step through in Visual Studio to see
> where
> > the error is.
> >
> >
> >
> > If for some reason you can't do that, comment out all the code until
> you
> > get no error, uncomment a line,response.Write("here"), hit the page
in
> a
> > browser until you find where the error is.
> >
> >
> >
> > Tracy
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of Craig
> > Sent: Friday, May 23, 2008 4:07 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: ASP.NET RSS proxy?
> >
> >
> >
> > That is what I see from the browser to the web page. I have not
gotten
> > around to accessing it from within Flex application yet.
> > CS
> >
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> > , "Tracy Spratt" tspratt@ wrote:
> > >
> > > What do you see if you hit that aspx page directly from a browser?
> You
> > > can get better error reporting that way.
> > >
> > >
> > >
> > > I don't see anything wrong, though I would have to verify that
> > outerXML
> > > was a property of XMLDocument. Might have to get documentElement.
> > >
> > >
> > >
> > > Tracy
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of Craig
> > > Sent: Friday, May 23, 2008 2:58 PM
> > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
>
> > > Subject: [flexcoders] Re: ASP.NET RSS proxy?
> > >
> > >
> > >
> > > Hey Tracy, this looks pretty easy, I am using ASP.NET with Flex
3.0
> > > and but when I create an aspx page I get an error with the code
> > > below... I don't use code behind and put it on one page and try to
> > > access the page itself. Do I need to access the page some other
way
> > > or modify code? the RSS is an example feed, my RSS feeds will need
a
> &g

[flexcoders] Re: ASP.NET RSS proxy?

2008-05-23 Thread Craig
Tracy, I did play with de-bugging a little more and this error came up
with I came to the line below - one line at a time.


The XML page cannot be displayed

Cannot view XML input using XSL style sheet.  Please correct the error
and then click the Refresh button, or try  again later.

Only one top level element is allowed in  an XML document. Error
processing resource  'http://localhost:1821/velocitytrading

-^Any Ideas?
Craig







--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Do you control the server? Can you  turn on verbose errors?  That is
in
> the web.config file.
>
>
>
> Can you debug the aspx page?  Step through in Visual Studio to see
where
> the error is.
>
>
>
> If for some reason you can't do that, comment out all the code until
you
> get no error, uncomment a line,response.Write("here"), hit the page in
a
> browser until you find where the error is.
>
>
>
> Tracy
>
>
>
> ____
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Craig
> Sent: Friday, May 23, 2008 4:07 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: ASP.NET RSS proxy?
>
>
>
> That is what I see from the browser to the web page. I have not gotten
> around to accessing it from within Flex application yet.
> CS
>
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> , "Tracy Spratt" tspratt@ wrote:
> >
> > What do you see if you hit that aspx page directly from a browser?
You
> > can get better error reporting that way.
> >
> >
> >
> > I don't see anything wrong, though I would have to verify that
> outerXML
> > was a property of XMLDocument. Might have to get documentElement.
> >
> >
> >
> > Tracy
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of Craig
> > Sent: Friday, May 23, 2008 2:58 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> > Subject: [flexcoders] Re: ASP.NET RSS proxy?
> >
> >
> >
> > Hey Tracy, this looks pretty easy, I am using ASP.NET with Flex 3.0
> > and but when I create an aspx page I get an error with the code
> > below... I don't use code behind and put it on one page and try to
> > access the page itself. Do I need to access the page some other way
> > or modify code? the RSS is an example feed, my RSS feeds will need a
> > variable ie... http://finance.yahoo.com/rss/headline?s=MSFT
> <http://finance.yahoo.com/rss/headline?s=MSFT>
> > <http://finance.yahoo.com/rss/headline?s=MSFT
> <http://finance.yahoo.com/rss/headline?s=MSFT> > (the
> > ticker symbol will be the variable).
> >
> > I am trying to access the feeds through Flex SWF.
> >
> > Any suggestions?
> >
> > The remote server returned an error: (404) Not Found.
> >
> > Here is code
> >
> > Craig
> >
> > <%@ Page Language="C#" %>
> > <%@ Import Namespace="System.Xml" %>
> >
> >  > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
> <http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
> > <http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
> <http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> > ">
> >
> > 
> > void page_load(Object sender, EventArgs e)
> > {
> > string strOutput;
> >
> > XmlDocument myXml = new XmlDocument();
> > myXml.Load("<a  rel="nofollow" href="http://www.weather.gov/alerts/ak.rss">http://www.weather.gov/alerts/ak.rss</a>
> <<a  rel="nofollow" href="http://www.weather.gov/alerts/ak.rss">http://www.weather.gov/alerts/ak.rss</a>>
> > <<a  rel="nofollow" href="http://www.weather.gov/alerts/ak.rss">http://www.weather.gov/alerts/ak.rss</a>
> <<a  rel="nofollow" href="http://www.weather.gov/alerts/ak.rss">http://www.weather.gov/alerts/ak.rss</a>> > ");
> >
> > strOutput = myXml.OuterXml;
> >
> > Response.ContentType = "text/xml";
> > Response.Write(strOutput);
> > }
> > 
> >
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Tra

[flexcoders] Re: ASP.NET RSS proxy?

2008-05-23 Thread Craig
I did turn on the tracing and de-bugging where I could find it and it
gave the following information.
It highlighted Line 13 below in RED.
However, I can access this RSS feed just fine in a browser. I am running
this from within Visual Studio 2005 not on an actual web server, but I
do believe it simulates a web environment, (though I guess I'm not
sure).
Craig

Server Error in '/velocitytrading.net' Application.
\


The remote server returned an error: (404) Not Found.
Description: An unhandled exception occurred during the execution of the
current web request. Please review

the stack trace for more information about the error and where it
originated in the code.

Exception Details: System.Net.WebException: The remote server returned
an error: (404) Not Found.

Source Error:


Line 11:
Line 12: XmlDocument myXml = new XmlDocument();
Line 13: myXml.Load("http://www.weather.gov/alerts/ak.rss";);  (THIS
SECTION WAS IN RED)
Line 14:
Line 15: strOutput = myXml.OuterXml;


Source File:
c:\Craig\VelocityTrading\Website\velocitytrading.net\RSS\yahoonews.aspx
Line: 13

Stack Trace:


[WebException: The remote server returned an error: (404) Not Found.]
System.Net.HttpWebRequest.GetResponse() +944
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) +124
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) +117
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role,
Type ofObjectToReturn) +71
System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +111
System.Threading.CompressedStack.runTryCode(Object userData) +54
   
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteed\
Cleanup(TryCode code,

CleanupCode backoutCode, Object userData) +0
System.Threading.CompressedStack.Run(CompressedStack compressedStack,
ContextCallback callback,

Object state) +174
System.Xml.XmlTextReaderImpl.OpenUrl() +264
System.Xml.XmlTextReaderImpl.Read() +104
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean
preserveWhitespace) +403
System.Xml.XmlDocument.Load(XmlReader reader) +159
System.Xml.XmlDocument.Load(String filename) +114
ASP.rss_yahoonews_aspx.page_load(Object sender, EventArgs e) in

c:\Craig\VelocityTrading\Website\velocitytrading.net\RSS\yahoonews.aspx:\
13
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object
o, Object t, EventArgs e) +31
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
sender, EventArgs e) +68
System.Web.UI.Control.OnLoad(EventArgs e) +88
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean

includeStagesAfterAsyncPoint) +3018




























--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Do you control the server? Can you  turn on verbose errors?  That is
in
> the web.config file.
>
>
>
> Can you debug the aspx page?  Step through in Visual Studio to see
where
> the error is.
>
>
>
> If for some reason you can't do that, comment out all the code until
you
> get no error, uncomment a line,response.Write("here"), hit the page in
a
> browser until you find where the error is.
>
>
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Craig
> Sent: Friday, May 23, 2008 4:07 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: ASP.NET RSS proxy?
>
>
>
> That is what I see from the browser to the web page. I have not gotten
> around to accessing it from within Flex application yet.
> CS
>
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> , "Tracy Spratt" tspratt@ wrote:
> >
> > What do you see if you hit that aspx page directly from a browser?
You
> > can get better error reporting that way.
> >
> >
> >
> > I don't see anything wrong, though I would have to verify that
> outerXML
> > was a property of XMLDocument. Might have to get documentElement.
> >
> >
> >
> > Tracy
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of Craig
> > Sent: Friday, May 23, 2008 2:58 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> > Subject: [flexcoders] Re: ASP.NET RSS proxy?
> >
> >
> >
> > Hey Tracy, this looks pretty easy, I am using ASP.NE

[flexcoders] Re: ASP.NET RSS proxy?

2008-05-23 Thread Craig
That is what I see from the browser to the web page. I have not gotten
around to accessing it from within Flex application yet.
CS




--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> What do you see if you hit that aspx page directly from a browser?  You
> can get better error reporting that way.
> 
>  
> 
> I don't see anything wrong, though I would have to verify that outerXML
> was a property of XMLDocument.  Might have to get documentElement.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Craig
> Sent: Friday, May 23, 2008 2:58 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: ASP.NET RSS proxy?
> 
>  
> 
> Hey Tracy, this looks pretty easy, I am using ASP.NET with Flex 3.0
> and but when I create an aspx page I get an error with the code
> below... I don't use code behind and put it on one page and try to
> access the page itself. Do I need to access the page some other way
> or modify code? the RSS is an example feed, my RSS feeds will need a
> variable ie... http://finance.yahoo.com/rss/headline?s=MSFT
> <http://finance.yahoo.com/rss/headline?s=MSFT>  (the
> ticker symbol will be the variable).
> 
> I am trying to access the feeds through Flex SWF.
> 
> Any suggestions?
> 
> The remote server returned an error: (404) Not Found.
> 
> Here is code
> 
> Craig
> 
> <%@ Page Language="C#" %>
> <%@ Import Namespace="System.Xml" %>
> 
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
> <http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd> ">
> 
> 
> void page_load(Object sender, EventArgs e)
> {
> string strOutput;
> 
> XmlDocument myXml = new XmlDocument();
> myXml.Load("<a  rel="nofollow" href="http://www.weather.gov/alerts/ak.rss">http://www.weather.gov/alerts/ak.rss</a>
> <<a  rel="nofollow" href="http://www.weather.gov/alerts/ak.rss">http://www.weather.gov/alerts/ak.rss</a>> ");
> 
> strOutput = myXml.OuterXml;
> 
> Response.ContentType = "text/xml";
> Response.Write(strOutput);
> } 
> 
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Tracy Spratt"  wrote:
> >
> > An of course you can generalize this by passing an url to the aspx
> page
> > from flex:
> > 
> > var oRequest:Object = {url=" www.whatever.com/example.xml"};
> > 
> > myHTTPRequest.send(oRequest);
> > 
> > 
> > 
> > then in the aspx doing:
> > 
> > myXml.Load(Request("url"));
> > 
> > 
> > 
> > Tracy
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of n0ctule
> > Sent: Friday, August 03, 2007 9:11 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: ASP.NET RSS proxy?
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Nick Durnell"  wrote:
> > >
> > > Hi all,
> > > 
> > > I've read here that in order to access RSS data in my Flex
> application
> > 
> > > (from sites with no crossdomain policy files) I will need to proxy
> the
> > 
> > > RSS data on the server which hosts the Flex application.
> > > 
> > > I have seen links to PHP proxy scripts but does anyone have an
> ASP.NET
> > 
> > > equivalent?
> > > 
> > > Thanks,
> > > 
> > > Nick.
> > >
> > 
> > Hi Nick
> > 
> > Try this:
> > 
> > <%@ Page Language="C#" Debug="true" %>
> > <%@ Import Namespace="System.Xml" %>
> > 
> > 
> > void page_load(Object sender, EventArgs e)
> > {
> > string strOutput;
> > 
> > XmlDocument myXml = new XmlDocument();
> > myXml.Load("www.whatever.com/example.xml");
> > 
> > strOutput = myXml.OuterXml;
> > 
> > 
> > Response.ContentType = "text/xml";
> > Response.Write(strOutput);
> > } 
> > 
> >
>




[flexcoders] Re: ASP.NET RSS proxy?

2008-05-23 Thread Craig
Hey Tracy, this looks pretty easy, I am using ASP.NET with Flex 3.0
and but when I create an aspx page I get an error with the code
below... I don't use code behind and put it on one page and try to
access the page itself.  Do I need to access the page some other way
or modify code?  the RSS is an example feed, my RSS feeds will need a
variable ie... http://finance.yahoo.com/rss/headline?s=MSFT (the
ticker symbol will be the variable).

I am trying to access the feeds through Flex SWF.

Any suggestions?

The remote server returned an error: (404) Not Found.

Here is code

Craig


<%@ Page Language="C#" %>
<%@ Import Namespace="System.Xml" %>

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>


void page_load(Object sender, EventArgs e)
{
string strOutput;

XmlDocument myXml = new XmlDocument();
myXml.Load("<a  rel="nofollow" href="http://www.weather.gov/alerts/ak.rss"">http://www.weather.gov/alerts/ak.rss"</a>;);

strOutput = myXml.OuterXml;

Response.ContentType = "text/xml";
Response.Write(strOutput);
} 







--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> An of course you can generalize this by passing an url to the aspx page
> from flex:
> 
> var oRequest:Object = {url=" www.whatever.com/example.xml"};
> 
> myHTTPRequest.send(oRequest);
> 
>  
> 
> then in the aspx doing:
> 
> myXml.Load(Request("url"));
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of n0ctule
> Sent: Friday, August 03, 2007 9:11 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: ASP.NET RSS proxy?
> 
>  
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Nick Durnell"  wrote:
> >
> > Hi all,
> > 
> > I've read here that in order to access RSS data in my Flex application
> 
> > (from sites with no crossdomain policy files) I will need to proxy the
> 
> > RSS data on the server which hosts the Flex application.
> > 
> > I have seen links to PHP proxy scripts but does anyone have an ASP.NET
> 
> > equivalent?
> > 
> > Thanks,
> > 
> > Nick.
> >
> 
> Hi Nick
> 
> Try this:
> 
> <%@ Page Language="C#" Debug="true" %>
> <%@ Import Namespace="System.Xml" %>
> 
> 
> void page_load(Object sender, EventArgs e)
> {
> string strOutput;
> 
> XmlDocument myXml = new XmlDocument();
> myXml.Load("www.whatever.com/example.xml");
> 
> strOutput = myXml.OuterXml;
> 
> 
> Response.ContentType = "text/xml";
> Response.Write(strOutput);
> } 
> 
>




[flexcoders] CrossDomain RSS Error Accessing from Web Server

2008-05-22 Thread Craig
I have a Flex 3.0 app that connects to RSS feed fine from FlexBuilder 
IDE but when deployed on Web Server gets the following error

Error #2044: Unhandled securityError:. text=Error #2048: Security 
sandbox violation: http://mywebserver.net/myflexapp.swf cannot load 
data from http://finance.yahoo.com/rss/headline?s=INMD.


I have tried many different crossdomain.xml configurations and they are 
easily acccessible from my web server root:

http://mywebserver.net/crossdomain.xml

but still no luck.

Is it true I have to create a proxy for accessing  this RSS data and do 
I need to write Java Server Applet as Satish has on his Blog... cause I 
don't look forward to that.

Any other suggestions



[flexcoders] Re: Learning to use RegEx Sting Replace

2008-05-22 Thread Craig
the morning sun shines a new light on the subject

the code should read...

var result:String = str.replace(pattern, "");
rssQteTitle = result.toString();

instead of 

str.replace(pattern, "");
var result:Object = pattern.exec(str);
rssQteTitle = result.toString();




--- In flexcoders@yahoogroups.com, "Craig" <[EMAIL PROTECTED]> wrote:
>
> i know, it should be easy, the following code gives me:
> Output: QuoteRSS
> 
> i am looking for it to give me:
> Output:  IBM 100
> 
> can you tell me what i am doing wrong?
> 
> var str:String = "QuoteRSS: IBM 100"; 
> var pattern:RegExp = /QuoteRSS/gi;
> str.replace(pattern, "");
> var result:Object = pattern.exec(str);
> rssQteTitle = result.toString();
> 
> Craig
>




[flexcoders] Re: Handling html formatted tables in Flex

2008-05-22 Thread Craig
This is the code. it is item description XML from stock quote.





--- In flexcoders@yahoogroups.com, "Battershall, Jeff"
<[EMAIL PROTECTED]> wrote:
>
> Craig,
> 
> See the note from Claus if you haven't already - he makes the important
> point that if the data is in XHTML you'll be able to conver the data
> into a format that could drive your datagrid very easily without string
> parsing. Is that the case?
> 
> Jeff
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Craig
> Sent: Tuesday, May 20, 2008 5:40 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Handling html formatted tables in Flex
> 
> 
> Jeff, Since you put it that way, I shall get to string parsing.  I
> really do appreciate your input. Craig
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Battershall, Jeff"
>  wrote:
> >
> > "Too difficult" Having a feed that has UI embedded in it, is 'less
> 
> > than optimum'.  Ideally the data you'd be receiving would be in a UI 
> > aqgnostic format. That said, I think you'll have to get your string 
> > parsing skills up to snuff. You have, within Flash/Flex, a RegEx 
> > implementation that should help you do that.
> > 
> > It seems a pretty large tangent to move to AIR just to solve this 
> > problem. I'd say its time to roll up your sleeves and learn string 
> > parsing.
> > 
> > Jeff
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> > On Behalf Of Craig
> > Sent: Tuesday, May 20, 2008 3:27 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Handling html formatted tables in Flex
> > 
> > 
> > My parsed data includes   and  commands which can't be 
> > read from datagrid, (I think)... the data is embedded in these tags, 
> > so getting it out would be too difficult.  I found AIR  
> > window but have to evaluate distributing app as AIR.  Do you have 
> > comment / other suggestion? CS
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Battershall, Jeff" 
> >  wrote:
> > >
> > > Use your parsed data to create a dataprovider for a DataGrid.
> > > 
> > > Jeff
> > > 
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> > > On Behalf Of Craig
> > > Sent: Tuesday, May 20, 2008 9:51 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Handling html formatted tables in Flex
> > > 
> > > 
> > > An RSS Feed providing quotes for my Flex application is outputting 
> > > an
> > > HTML formatted table.  I am able to parse everything out but can not
> 
> > > display it with TextArea.htmlText as htmlText does not support
> Tables.
> > 
> > > Does anyone know of a way to display Table formatted html code using
> > > Flex?  There is probably an easy way to do it that I am missing. 
> > > Thanks, CS
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --
> > > Flexcoders Mailing List
> > > FAQ: 
> > > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: 
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups 
> > > Links
> > >
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> > Links
> >
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>




[flexcoders] Learning to use RegEx Sting Replace

2008-05-22 Thread Craig
i know, it should be easy, the following code gives me:
Output: QuoteRSS

i am looking for it to give me:
Output:  IBM 100

can you tell me what i am doing wrong?

var str:String = "QuoteRSS: IBM 100";   
var pattern:RegExp = /QuoteRSS/gi;
str.replace(pattern, "");
var result:Object = pattern.exec(str);
rssQteTitle = result.toString();

Craig




[flexcoders] Re: Handling html formatted tables in Flex

2008-05-21 Thread Craig
Jeff, Since you put it that way, I shall get to string parsing.  I
really do appreciate your input.
Craig



--- In flexcoders@yahoogroups.com, "Battershall, Jeff"
<[EMAIL PROTECTED]> wrote:
>
> "Too difficult" Having a feed that has UI embedded in it, is 'less
> than optimum'.  Ideally the data you'd be receiving would be in a UI
> aqgnostic format. That said, I think you'll have to get your string
> parsing skills up to snuff. You have, within Flash/Flex, a RegEx
> implementation that should help you do that. 
> 
> It seems a pretty large tangent to move to AIR just to solve this
> problem. I'd say its time to roll up your sleeves and learn string
> parsing.
> 
> Jeff
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Craig
> Sent: Tuesday, May 20, 2008 3:27 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Handling html formatted tables in Flex
> 
> 
> My parsed data includes   and  commands which can't be
> read from datagrid, (I think)... the data is embedded in these tags, so
> getting it out would be too difficult.  I found AIR  window but
> have to evaluate distributing app as AIR.  Do you have comment / other
> suggestion? CS
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Battershall, Jeff"
>  wrote:
> >
> > Use your parsed data to create a dataprovider for a DataGrid.
> > 
> > Jeff
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> > On Behalf Of Craig
> > Sent: Tuesday, May 20, 2008 9:51 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Handling html formatted tables in Flex
> > 
> > 
> > An RSS Feed providing quotes for my Flex application is outputting an 
> > HTML formatted table.  I am able to parse everything out but can not 
> > display it with TextArea.htmlText as htmlText does not support Tables.
> 
> > Does anyone know of a way to display Table formatted html code using 
> > Flex?  There is probably an easy way to do it that I am missing. 
> > Thanks, CS
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> > Links
> >
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>




[flexcoders] Re: Handling html formatted tables in Flex

2008-05-20 Thread Craig
My parsed data includes   and  commands which can't be
read from datagrid, (I think)... the data is embedded in these tags,
so getting it out would be too difficult.  I found AIR 
window but have to evaluate distributing app as AIR.  Do you have
comment / other suggestion?
CS




--- In flexcoders@yahoogroups.com, "Battershall, Jeff"
<[EMAIL PROTECTED]> wrote:
>
> Use your parsed data to create a dataprovider for a DataGrid.
> 
> Jeff
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Craig
> Sent: Tuesday, May 20, 2008 9:51 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Handling html formatted tables in Flex
> 
> 
> An RSS Feed providing quotes for my Flex application is outputting an
> HTML formatted table.  I am able to parse everything out but can not
> display it with TextArea.htmlText as htmlText does not support Tables.
> Does anyone know of a way to display Table formatted html code using
> Flex?  There is probably an easy way to do it that I am missing. Thanks,
> CS
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>




[flexcoders] Handling html formatted tables in Flex

2008-05-20 Thread Craig
An RSS Feed providing quotes for my Flex application is outputting an
HTML formatted table.  I am able to parse everything out but can not
display it with TextArea.htmlText as htmlText does not support Tables.
Does anyone know of a way to display Table formatted html code using
Flex?  There is probably an easy way to do it that I am missing.
Thanks,
CS




[flexcoders] Parse RSS XML in HTML format???

2008-05-19 Thread Craig
I am using the RSSParser to read XML data into Flex, but can't get 
past an item which is formatted in HTML, it is the 
 portion of the feed... it it between Script tags 
like this...



My Parser reads it in but I don't know what to call it or do with it.

Here is xml PARSING code:


for each (var item:XML in rssXML..item) {
var itemTitle:String = 
item.title.toString();
var itempubDate:String = 
item.pubDate.toString();
var itemDescription:String = 
item.description.toString()
var itemLink:String = 
item.link.toString();
outXML += buildItemHTML(itemTitle,

itempubDate,

itemDescription,

itemLink);
}
XML.prettyPrinting = false;
rssOutput = outXML.toXMLString();   
trace(rssOutput);
rssTitle = rssXML.channel.title.toString();

dataWritten = new Event("dataWritten", true);
dispatchEvent(dataWritten);
}



Here is HTML output code:

private function buildItemHTML(itemTitle:String,

itempubDate:String,

itemDescription:String,

itemLink:String):XMLList {
default xml namespace = new Namespace();
var body:XMLList = new XMLList();
body += new XML("" + itemTitle + "");
body += new XML(itempubDate);
var p:XML = new XML("" + itemDescription 
+ "")

var link:XML = ;
[EMAIL PROTECTED] = itemLink; // 
[EMAIL PROTECTED] = "#008000"; // 

  // 0x008000 = green
link.font = "More...";

p.appendChild();
p.appendChild(link);
body += p;
return body;

Any suggestions?



[flexcoders] Re: How to remove space at the end of line chart when using disabledDays = "[6,0]"!

2008-04-07 Thread Craig
I figured out the specifics of 'monkeypatching' and your patch works 
great.


--- In flexcoders@yahoogroups.com, "Craig" <[EMAIL PROTECTED]> wrote:
>
> Hey Jim,
> I am ready to start in on this monkeypatch for disabled days white 
> space... but don't know where or how to copy and paste the 
> datetimeaxis class.  Can you help me out?  Also, what other 
specifics 
> should I know?  Should I call name it DateTimeAxis?  I assume the 
> program will not want two classes with the same name... 
> I've taught myself AS and MXML and do custom mxml components but 
have 
> not done a lot of custom classes.
> Any direction would be appreciated.
> Craig
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Jim Cheng  wrote:
> >
> > It's a Flex 3 charting bug alright.  This was originally reported 
> about 
> > 9 months ago during the beta cycle on the Flex bugbase and was 
> later 
> > closed by Adobe with a resolution of Cannot Fix for what I 
believe 
> to be 
> > a rather spurious reason, see:
> > 
> > https://bugs.adobe.com/jira/browse/FLEXDMV-963
> > 
> > Contrary to what's reported in the comments on that bug, the 
> problem is 
> > actually not too difficult to fix provided you have access to the 
> source 
> > code (e.g. using Flex Builder 3 Pro) and are willing to do a 
little 
> bit 
> > of subclassing or monkey-patching to fix the issue.  Read on if 
> you're 
> > interested.
> > 
> > The basic problem is that the DateTimeAxis class does not 
correctly 
> > calculate the total space available for charting when 
disabledDays 
> > and/or disabledRanges is enabled.  This is always taken to be the 
> > difference between computedMaximum and computedMinimum (as seen 
in 
> the 
> > transformCache, buildLabelCache and buildMinorTickCache methods).
> > 
> > However, this calculation becomes wrong when there are disabled 
> ranges, 
> > as it yields a total span that's now too large (not accounting 
for 
> the 
> > ranges that have been removed).  The visual consequence of this 
is 
> that 
> > the chart now appears to be condensed to the left.
> > 
> > The available space should instead be taken to be the difference 
> between 
> > computedMaximum and computedMinimum, with the following term also 
> > subtracted (in the context of the DateTimeAxis class):
> > 
> >dateRangeUtilities.calculateDisabledRange(computedMinimum,
> >  computedMaximum);
> > 
> > This additional term accounts for the space that is removed by 
the 
> > disabled ranges (or days), and consequently allows the chart's 
axis 
> and 
> > elements to correctly take up the full available width.
> > 
> > To make a simple monkey-patch to fix this, you can copy the 
> contents of 
> > Adobe's DateTimeAxis class into your own class path, doing a 
search 
> and 
> > replace on all instances in the file like so (removing quotes and 
> excess 
> > whitespace for formatting):
> > 
> > Find: "computedMaximum - computedMinimum"
> > 
> > Replace with: "computedMaximum - computedMinimum -
> >dateRangeUtilities.calculateDisabledRange(computedMinimum,
> >computedMaximum);"
> > 
> > You can also do this as a subclass, but that's somewhat trickier 
> since 
> > the methods that you'll need to override make references to a 
> number of 
> > private variables and methods of DateTimeAxis.
> > 
> > As an aside, perhaps someone at Adobe might want to consider 
> evaluating 
> > this patch for possible inclusion into the Flex 3 Charting 
> codebase.  I 
> > haven't found any other side effects in testing and my own use of 
> this 
> > change, and it correctly handles the test case from the JIRA bug 
> listed
> > at the top of message.
> > 
> > Jim
> > 
> > 
> > 
> > buithanhtuu wrote:
> > 
> > > I'm using chart of flex 3. When I use Linechart with 
DateTimeAxis
> > > tag, in this tag i used property disabledDays = "[6,0]" then 
> weekend
> > > days did not show on chart, but a lot of white space are show 
at 
> the
> > > end of chart. So, the width of line chart is not scale full the 
> width
> > > of chart.
> > > 
> > > I used sample from this link 
> > > http://livedocs.adobe.com/flex/3/html/help.html?
> content=charts_displayingdata_04.html
> > >  
> > > <http://livedocs.adobe.com/flex/3/html/help.html?
> content=charts_displayingdata_04.html>
> > > 
> > > 
> > > Could you please help me fix this problem or this is bugs of 
> chart in
> > >  flex 3 ?
> >
>




[flexcoders] Re: How to remove space at the end of line chart when using disabledDays = "[6,0]"!

2008-04-06 Thread Craig
Hey Jim,
I am ready to start in on this monkeypatch for disabled days white 
space... but don't know where or how to copy and paste the 
datetimeaxis class.  Can you help me out?  Also, what other specifics 
should I know?  Should I call name it DateTimeAxis?  I assume the 
program will not want two classes with the same name... 
I've taught myself AS and MXML and do custom mxml components but have 
not done a lot of custom classes.
Any direction would be appreciated.
Craig







--- In flexcoders@yahoogroups.com, Jim Cheng <[EMAIL PROTECTED]> wrote:
>
> It's a Flex 3 charting bug alright.  This was originally reported 
about 
> 9 months ago during the beta cycle on the Flex bugbase and was 
later 
> closed by Adobe with a resolution of Cannot Fix for what I believe 
to be 
> a rather spurious reason, see:
> 
> https://bugs.adobe.com/jira/browse/FLEXDMV-963
> 
> Contrary to what's reported in the comments on that bug, the 
problem is 
> actually not too difficult to fix provided you have access to the 
source 
> code (e.g. using Flex Builder 3 Pro) and are willing to do a little 
bit 
> of subclassing or monkey-patching to fix the issue.  Read on if 
you're 
> interested.
> 
> The basic problem is that the DateTimeAxis class does not correctly 
> calculate the total space available for charting when disabledDays 
> and/or disabledRanges is enabled.  This is always taken to be the 
> difference between computedMaximum and computedMinimum (as seen in 
the 
> transformCache, buildLabelCache and buildMinorTickCache methods).
> 
> However, this calculation becomes wrong when there are disabled 
ranges, 
> as it yields a total span that's now too large (not accounting for 
the 
> ranges that have been removed).  The visual consequence of this is 
that 
> the chart now appears to be condensed to the left.
> 
> The available space should instead be taken to be the difference 
between 
> computedMaximum and computedMinimum, with the following term also 
> subtracted (in the context of the DateTimeAxis class):
> 
>dateRangeUtilities.calculateDisabledRange(computedMinimum,
>  computedMaximum);
> 
> This additional term accounts for the space that is removed by the 
> disabled ranges (or days), and consequently allows the chart's axis 
and 
> elements to correctly take up the full available width.
> 
> To make a simple monkey-patch to fix this, you can copy the 
contents of 
> Adobe's DateTimeAxis class into your own class path, doing a search 
and 
> replace on all instances in the file like so (removing quotes and 
excess 
> whitespace for formatting):
> 
> Find: "computedMaximum - computedMinimum"
> 
> Replace with: "computedMaximum - computedMinimum -
>dateRangeUtilities.calculateDisabledRange(computedMinimum,
>computedMaximum);"
> 
> You can also do this as a subclass, but that's somewhat trickier 
since 
> the methods that you'll need to override make references to a 
number of 
> private variables and methods of DateTimeAxis.
> 
> As an aside, perhaps someone at Adobe might want to consider 
evaluating 
> this patch for possible inclusion into the Flex 3 Charting 
codebase.  I 
> haven't found any other side effects in testing and my own use of 
this 
> change, and it correctly handles the test case from the JIRA bug 
listed
> at the top of message.
> 
> Jim
> 
> 
> 
> buithanhtuu wrote:
> 
> > I'm using chart of flex 3. When I use Linechart with DateTimeAxis
> > tag, in this tag i used property disabledDays = "[6,0]" then 
weekend
> > days did not show on chart, but a lot of white space are show at 
the
> > end of chart. So, the width of line chart is not scale full the 
width
> > of chart.
> > 
> > I used sample from this link 
> > http://livedocs.adobe.com/flex/3/html/help.html?
content=charts_displayingdata_04.html
> >  
> > <http://livedocs.adobe.com/flex/3/html/help.html?
content=charts_displayingdata_04.html>
> > 
> > 
> > Could you please help me fix this problem or this is bugs of 
chart in
> >  flex 3 ?
>




[flexcoders] Re: Need some help with charts

2008-04-04 Thread Craig
try Lynda.com.





--- In flexcoders@yahoogroups.com, "flexuser1" <[EMAIL PROTECTED]> wrote:
>
> If the CFC returns an arraycollection you can just bind it to a chart
> in Flex.
> 
> Maybe I don't quite understand what you're asking.
>




[flexcoders] Re: How to remove space at the end of line chart when using disabledDays = "[6,0]"!

2008-03-30 Thread Craig
Jim & buithanhtuu,

Thank you for posting this issue and 'workaround'. This bug was re-
entered by Matt Chotin on March 27th, probably as a result of his 
reading this entry, it previously had been unresolved, let's hope 
this bug is fixed, it is a serious problem with Charting 
Applications, I also have a huge project on this... I have given up 
trying to find an answer and appreciate this workaround below.  I 
have not upgraded to 3.0 because of this issue and will now purchase 
Pro 3.0  to see if I can accomplish this... if there is anything else 
anyone knows to get around this issue with 2.0 please let me know... 
I have signed up to the Adobe Bug Report ...

https://bugs.adobe.com/jira/browse/SDK-15081

Let's hope this one does not get closed out as unresolved like the 
others!!

Craig



--- In flexcoders@yahoogroups.com, Jim Cheng <[EMAIL PROTECTED]> wrote:
>
> It's a Flex 3 charting bug alright.  This was originally reported 
about 
> 9 months ago during the beta cycle on the Flex bugbase and was 
later 
> closed by Adobe with a resolution of Cannot Fix for what I believe 
to be 
> a rather spurious reason, see:
> 
> https://bugs.adobe.com/jira/browse/FLEXDMV-963
> 
> Contrary to what's reported in the comments on that bug, the 
problem is 
> actually not too difficult to fix provided you have access to the 
source 
> code (e.g. using Flex Builder 3 Pro) and are willing to do a little 
bit 
> of subclassing or monkey-patching to fix the issue.  Read on if 
you're 
> interested.
> 
> The basic problem is that the DateTimeAxis class does not correctly 
> calculate the total space available for charting when disabledDays 
> and/or disabledRanges is enabled.  This is always taken to be the 
> difference between computedMaximum and computedMinimum (as seen in 
the 
> transformCache, buildLabelCache and buildMinorTickCache methods).
> 
> However, this calculation becomes wrong when there are disabled 
ranges, 
> as it yields a total span that's now too large (not accounting for 
the 
> ranges that have been removed).  The visual consequence of this is 
that 
> the chart now appears to be condensed to the left.
> 
> The available space should instead be taken to be the difference 
between 
> computedMaximum and computedMinimum, with the following term also 
> subtracted (in the context of the DateTimeAxis class):
> 
>dateRangeUtilities.calculateDisabledRange(computedMinimum,
>  computedMaximum);
> 
> This additional term accounts for the space that is removed by the 
> disabled ranges (or days), and consequently allows the chart's axis 
and 
> elements to correctly take up the full available width.
> 
> To make a simple monkey-patch to fix this, you can copy the 
contents of 
> Adobe's DateTimeAxis class into your own class path, doing a search 
and 
> replace on all instances in the file like so (removing quotes and 
excess 
> whitespace for formatting):
> 
> Find: "computedMaximum - computedMinimum"
> 
> Replace with: "computedMaximum - computedMinimum -
>dateRangeUtilities.calculateDisabledRange(computedMinimum,
>computedMaximum);"
> 
> You can also do this as a subclass, but that's somewhat trickier 
since 
> the methods that you'll need to override make references to a 
number of 
> private variables and methods of DateTimeAxis.
> 
> As an aside, perhaps someone at Adobe might want to consider 
evaluating 
> this patch for possible inclusion into the Flex 3 Charting 
codebase.  I 
> haven't found any other side effects in testing and my own use of 
this 
> change, and it correctly handles the test case from the JIRA bug 
listed
> at the top of message.
> 
> Jim
> 
> 
> 
> buithanhtuu wrote:
> 
> > I'm using chart of flex 3. When I use Linechart with DateTimeAxis
> > tag, in this tag i used property disabledDays = "[6,0]" then 
weekend
> > days did not show on chart, but a lot of white space are show at 
the
> > end of chart. So, the width of line chart is not scale full the 
width
> > of chart.
> > 
> > I used sample from this link 
> > http://livedocs.adobe.com/flex/3/html/help.html?
content=charts_displayingdata_04.html
> >  
> > <http://livedocs.adobe.com/flex/3/html/help.html?
content=charts_displayingdata_04.html>
> > 
> > 
> > Could you please help me fix this problem or this is bugs of 
chart in
> >  flex 3 ?
>




Re: [flexcoders] Security error - can anyone help with this?

2005-10-26 Thread Craig Newroth



nope, not yet, will give that a shot..
thx
Jeff Tapper <[EMAIL PROTECTED]> wrote:
try setting useProxy="true" on your HttpService tagAt 12:05 PM 10/26/2005, you wrote:>I am getting the following popup error when i try to access the>examples on my secured server. Any one seen this before and I ahve my>flex-config wide open..>>HTTPService Fault:>sun.security.validator.ValidatorExecption:>no trusted certificate could be found>>i am on a https connection, so it looks like that the service call is>thinking it is a http. is there something in the tag that I need to>chage to tell it that it is a https?-->Flexcoders Mailing List>FAQ: >http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>Search Archives: >http://www.mail-archive.com/flexcoders%40yahoogroups.com >SPONSORED LINKS>Web >site design development >Computer >software development >Software >design and development>Macromedia >flex >Software >development best practice>>>-->YAHOO! GROUPS LINKS>>    *  Visit your group > "flexcoders" on the web.>    *>    *  To unsubscribe from
 this group, send an email to:>    * > [EMAIL PROTECTED] >>    *>    *  Your use of Yahoo! Groups is subject to the > Yahoo! Terms of Service.>>>--
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 





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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









RE: [flexcoders] problem with cell renderer showing data in datagrid twice

2005-09-16 Thread Craig Newroth



Matt:
 Sure did, Kevin H sent me some files that showed how to fix...
thanks
Craig
ps. sorry for not responding quicker, been REAL busy...
Matt Chotin <[EMAIL PROTECTED]> wrote:









Craig, did you solve this or do you still need help?
 




From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Craig NewrothSent: Thursday, August 11, 2005 11:35 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] problem with cell renderer showing data in datagrid twice
 


here are the files

cnewroth55 <[EMAIL PROTECTED]> wrote:

okay, heres one for all; i have a datagrid and the last cell i wanted to put a combo box in it with a set of selections for a user to pick from. got the cell renederer to work and it puts the combo box in it, however if yu select an item from them combo box, it will put that selection in the next row that is 'invisible' or below the datagrids visible rows.graphic representation:__[][][combo box]<-i select an item here say '1'    (say there are 7 visible rows to datagrid)__here is the next row (8) that you cannot see unless you use scroll bar--[][][combo box] <-the item '1' shows up here...and in subsequent selection(s) numbering the amount of visible rows in the dg..?here is the cellrenderer code file and the main mxml fileany thoughts as to why or what I am doing wrong?(guess I will have to attach the files in a seperate reply to this post, dont see where to attach them here)



Start your day with Yahoo! - make it your home page 
		Yahoo! for Good 
Click here to donate to the Hurricane Katrina relief effort. 






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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Software design and development
  
  
Macromedia flex
  
  


Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



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



  









Re: [flexcoders] problem with cell renderer showing data in datagrid twice

2005-08-11 Thread Craig Newroth




here are the files
cnewroth55 <[EMAIL PROTECTED]> wrote:
okay, heres one for all; i have a datagrid and the last cell i wanted to put a combo box in it with a set of selections for a user to pick from. got the cell renederer to work and it puts the combo box in it, however if yu select an item from them combo box, it will put that selection in the next row that is 'invisible' or below the datagrids visible rows.graphic representation:__[][][combo box]<-i select an item here say '1'    (say there are 7 visible rows to datagrid)__here is the next row (8) that you cannot see unless you use scroll bar--[][][combo
 box] <-the item '1' shows up here...and in subsequent selection(s) numbering the amount of visible rows in the dg..?here is the cellrenderer code file and the main mxml fileany thoughts as to why or what I am doing wrong?(guess I will have to attach the files in a seperate reply to this post, dont see where to attach them here)
		 Start your day with Yahoo! - make it your home page 





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



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



  









MyCheckRenderer.mxml
Description: 2002487617-MyCheckRenderer.mxml


refresh.mxml
Description: 3102065804-refresh.mxml


Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!!

2005-08-11 Thread Craig Newroth



and as Studio 8 was released on mnayday that is what I intend to doyes, that did help, thx Alias
Alias <[EMAIL PROTECTED]> wrote:
Craig,This sounds like it's actually the result of a *fix* that's in the newplayer. If an object's _alpha is set to zero, it shouldn't bedisplayed at all - however, there were some issues with renderingdevice text with alpha, which is due to the limited font informationthe host platform passes back. However, as I understand it, the flash8 player has much improved font rendering capabilities.So on a player level, this is expected behavior - it's just one ofthose unfortunate cases where a bug becomes a fact of life, and fixingit ends up causing problems. I'd say - design for the new player.HTH,AliasOn 7/14/05, Craig Newroth <[EMAIL PROTECTED]> wrote:>  > okay, maybe i did not make my self clear...when I was using Flash PLayer 7> and set the property 'alpha' to zero, then not only could
 I NOT see the bar> (which is what I wanted) but i COULD STILL see the text in the control. Now> in Flah Player 8, if i set the SAME property (alpha) in the SAME control to> zero not only can I NOT see the BAR in the control, but the text is> invisible now also... > If i set the property to "1" then I cannot see the bar, but CAN still see> the text of the 'LinkBar" tag...>  > > > PR Muruganandh <[EMAIL PROTECTED]> wrote: >  >  > > Hi > >   > > In FP7[IE] & FP8[FireFox] > >   > > The following code works the same way > >   > >  > > http://www.macromedia.com/2003/mxml"> > > >  > >   > > If I change alpha="100", then also FP7[IE] & FP8[FireFox] works similar! > >   > > Might be some problem with this > > mouseOver="triggerShowEffectNeedReports()" ! > >   > >   > > - anand > >   > >   >  >  >  > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On> Behalf Of Abdul Qabiz> Sent: Thursday, July 14, 2005 6:05 PM> To: flexcoders@yahoogroups.com> Subject: RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!! > >   > > Hi, > >   > > We tried reproducing the same here
 at our end and we don't see any> difference between two players (FP7 & FP8 Beta). > >   > > -abdul > >   >  >  > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On> Behalf Of Craig Newroth> Sent: Thursday, July 14, 2005 5:41 PM> To: flexcoders@yahoogroups.com> Subject: Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!! >  > > and here is what I did to get it to do what I wanted, evidently the Flash> player 8 takes it literally on the alpha property :) - i set it to 1 (one)> instead of zero (0) and it is back to being transparent like I wanted it to> be... whew! >  > > WIll post that to the feedback Andrew, thx >  > > Craig >  > > > > Andrew
 Spaulding <[EMAIL PROTECTED]> wrote: >  > > Well I'm yet to find a bug but there seems to be some noticable> improvements in performance.> > Be sure to post your bug using the feedback form found here> http://www.macromedia.com/bin/fp8betafeedback.cgi?> > Cheers,> > Andrew Spaulding> www.flexdaddy.info> > > > --- In flexcoders@yahoogroups.com, "cnewroth55" <[EMAIL PROTECTED]> wrote:> > Okay, saw the post about the beta Flash Player 8 beta, and as I like > > to jump in with both feet, installed it for IE, Netscape 7.2 and Fire > > Fox 1.0.4...went to one of my flex apps and found that I could no > > longer see my label in the Link tag in my app. I was setting the > > property 'alpha' to  zero so that the "bar" that highlights the
 > > selection is invisible and just the rollovers would be seen. Removing > > the alpha property lets my labe be seen but then (as I am using > > haloBlue) i get a big ugly blue bar across my link label...I have a > > graphic behind the link bar and did not want this to show up (the > > bar)...it used to work in Flash player 7...so beta team thought you > > would like to knowI really, really dont want to give up my alpha :)> > > > ps. did noticed a slight improvement in load speed...> > > > this on longer works> > > > modalTransparency="0" borderStyle="none" alpha="0" > > textRollOverColor="#0099CC" mouseOver="triggerShowEffectNeedReports> > ()" />> > > > > --> Flexcoders
 Mailing List> FAQ: http://groups.yahoo.com/group/flexcoders/files/flex

Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!!

2005-08-11 Thread Craig Newroth



which would be the preferred method Sjors, except that i did not see a visible property to this single item in the menu bar itself, either the whole bar is 'visible' with all it's sub itmes, or the entire bar is invisible, and this was not what I wanted...
Sjors Pals <[EMAIL PROTECTED]> wrote:
Well i think not "rendering" objects with alpha zero is a big mistake.There is a visible property, and i think that should be the criteria to render an object.Especially when you look to backward compatibility i hope macromedia will decide to (not) fix this isue.Greets,SjorsAlias wrote:> Craig,>> This sounds like it's actually the result of a *fix* that's in the new> player. If an object's _alpha is set to zero, it shouldn't be> displayed at all - however, there were some issues with rendering> device text with alpha, which is due to the limited font information> the host platform passes back. However, as I understand it, the flash> 8 player has much improved font rendering capabilities.>> So on a player level, this is expected behavior - it's just one
 of> those unfortunate cases where a bug becomes a fact of life, and fixing> it ends up causing problems. I'd say - design for the new player.>> HTH,> Alias>> On 7/14/05, Craig Newroth <[EMAIL PROTECTED]> wrote:> > > > okay, maybe i did not make my self clear...when I was using Flash > PLayer 7> > and set the property 'alpha' to zero, then not only could I NOT see > the bar> > (which is what I wanted) but i COULD STILL see the text in the > control. Now> > in Flah Player 8, if i set the SAME property (alpha) in the SAME > control to> > zero not only can I NOT see the BAR in the control, but the text is> > invisible now also...> > If i set the property to "1" then I cannot see the bar, but CAN > still see> > the text of the 'LinkBar" tag...> > > >> >> > PR
 Muruganandh <[EMAIL PROTECTED]> wrote:> > > > > >> > Hi> >> >  > >> > In FP7[IE] & FP8[FireFox]> >> >  > >> > The following code works the same way> >> >  > >> > > >> > http://www.macromedia.com/2003/mxml">> >> > > > > >> >  > >> > If I change alpha="100", then also FP7[IE] & FP8[FireFox] works > similar!> >> >  > >> > Might be some problem with this> >> > mouseOver="triggerShowEffectNeedReports()" !>
 >> >  > >> >  > >> > - anand> >> >  > >> >  > > > >  > > > >> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On> > Behalf Of Abdul Qabiz> > Sent: Thursday, July 14, 2005 6:05 PM> > To: flexcoders@yahoogroups.com> > Subject: RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!!> >> >  > >> > Hi,> >> >  > >> > We tried reproducing the same here at our end and we don't see any> > difference between two players (FP7 & FP8 Beta).> >> >  > >> > -abdul> >> >  > >  > > > >> >
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On> > Behalf Of Craig Newroth> > Sent: Thursday, July 14, 2005 5:41 PM> > To: flexcoders@yahoogroups.com> > Subject: Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!!> > > >> > and here is what I did to get it to do what I wanted, evidently the > Flash> > player 8 takes it literally on the alpha property :) - i set it to 1 > (one)> > instead of zero (0) and it is back to being transparent like I > wanted it to> > be... whew!> > > >> > WIll post that to the feedback Andrew, thx> > > >> > Craig> > > >> >> >> > Andrew Spaulding <[EMAIL PROTECTED]> wrote:> > > >> > Well I'm yet to find a bug but there seems to be some noticable>
 > improvements in performance.> >> > Be sure to post your bug using the feedback form found here> > http://www.macromedia.com/bin/fp8betafeedback.cgi?> >> > Cheers,> >> > Andrew Spaulding> > www.flexdaddy.info> >> >> >> > --- In flexcoders@yahoogroups.com, "cnewroth55" <[EMAIL PROTECTED]> wrote:> > > Okay, saw the post about the beta Flash Player 8 beta, and as I like> > > to jump in with both feet, installed it for IE, Netscape 7.2 and Fire> > > Fox 1.0.4...went to one of my flex apps and found that 

RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!!

2005-08-11 Thread Craig Newroth




sorry it took so long to respond...here is the file
Craig
 
Abdul Qabiz <[EMAIL PROTECTED]> wrote:


Hi,
 
Can you please send the test file (mxml + swf) to me. I would like to see it...
 
We tried compiling your code with Flex 1.5 and running the app in firefox and IE with Flash Player 8. I can't reproduce it...
 
But I would like to see your file..
 
 
-abdul


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: Thursday, July 14, 2005 9:28 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!!

okay, maybe i did not make my self clear...when I was using Flash PLayer 7 and set the property 'alpha' to zero, then not only could I NOT see the bar (which is what I wanted) but i COULD STILL see the text in the control. Now in Flah Player 8, if i set the SAME property (alpha) in the SAME control to zero not only can I NOT see the BAR in the control, but the text is invisible now also...
If i set the property to "1" then I cannot see the bar, but CAN still see the text of the 'LinkBar" tag...
PR Muruganandh <[EMAIL PROTECTED]> wrote:









Hi
 
In FP7[IE] & FP8[FireFox]
 
The following code works the same way
 


 
 
If I change alpha="100", then also FP7[IE] & FP8[FireFox] works similar! 
 
Might be some problem with this
mouseOver="triggerShowEffectNeedReports()" !
 
 
- anand
 
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul QabizSent: Thursday, July 14, 2005 6:05 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!!
 
Hi,
 
We tried reproducing the same here at our end and we don't see any difference between two players (FP7 & FP8 Beta).
 
-abdul
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: Thursday, July 14, 2005 5:41 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!!

and here is what I did to get it to do what I wanted, evidently the Flash player 8 takes it literally on the alpha property :) - i set it to 1 (one) instead of zero (0) and it is back to being transparent like I wanted it to be... whew!

WIll post that to the feedback Andrew, thx

Craig

Andrew Spaulding <[EMAIL PROTECTED]> wrote:

Well I'm yet to find a bug but there seems to be some noticableimprovements in performance.Be sure to post your bug using the feedback form found herehttp://www.macromedia.com/bin/fp8betafeedback.cgi?Cheers,Andrew Spauldingwww.flexdaddy.info--- In flexcoders@yahoogroups.com, "cnewroth55" <[EMAIL PROTECTED]> wrote:> Okay, saw the post about the beta Flash
 Player 8 beta, and as I like > to jump in with both feet, installed it for IE, Netscape 7.2 and Fire > Fox 1.0.4...went to one of my flex apps and found that I could no > longer see my label in the Link tag in my app. I was setting the > property 'alpha' to  zero so that the "bar" that highlights the > selection is invisible and just the rollovers would be seen. Removing > the alpha property lets my labe be seen but then (as I am using > haloBlue) i get a big ugly blue bar across my link label...I have a > graphic behind the link bar and did not want this to show up (the > bar)...it used to work in Flash player 7...so beta team thought you > would like to knowI really, really dont want to give up my alpha :)> > ps. did noticed a slight improvement in load speed...> > this on longer works>     > modalTransparency="0" borderStyle="none" alpha="0" > textRollOverColor="#0099CC" mouseOver="triggerShowEffectNeedReports> ()" />--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



Start your day with Yahoo! - make it your home page --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 


Do you Yahoo!?Yahoo! Mail - You care about security. So do we. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 


Re: [flexcoders] Flex Portal Integration - Flex as a Portlet

2005-07-14 Thread Craig McDonald

>Do you need Flex to run in a separate context? If not, you can deploy
>the Flex classes etc. to the jetspeed context
>  
>
How exactly do I go about doing this - do I deploy the entire Flex war 
file in the jetspeed container? Or is there a sub-selection of 
appropriate flex libraries that will allow flex to function without 
having to deploy the entire flex app.

What implications does this have for licensing if I am deploying two 
instances of Flex - one in one context and another in the jetspeed context?

I guess my problem is stemming from a slightly incorrect installation of 
Flex then, correct? If so, what is the procedure for installing Flex in 
a portal environment? I am guessing I have to allow flex to run in the 
/jetspeed/flex context rather than the /flex context.

Thanks for your help so far.

Cheers,
Craig




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

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

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

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




RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!!

2005-07-14 Thread Craig Newroth



okay, maybe i did not make my self clear...when I was using Flash PLayer 7 and set the property 'alpha' to zero, then not only could I NOT see the bar (which is what I wanted) but i COULD STILL see the text in the control. Now in Flah Player 8, if i set the SAME property (alpha) in the SAME control to zero not only can I NOT see the BAR in the control, but the text is invisible now also...
If i set the property to "1" then I cannot see the bar, but CAN still see the text of the 'LinkBar" tag...
PR Muruganandh <[EMAIL PROTECTED]> wrote:









Hi
 
In FP7[IE] & FP8[FireFox]
 
The following code works the same way
 


 
 
If I change alpha="100", then also FP7[IE] & FP8[FireFox] works similar! 
 
Might be some problem with this
mouseOver="triggerShowEffectNeedReports()" !
 
 
- anand
 
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul QabizSent: Thursday, July 14, 2005 6:05 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Flash Player 8 Beta - found problem??!!
 
Hi,
 
We tried reproducing the same here at our end and we don't see any difference between two players (FP7 & FP8 Beta).
 
-abdul
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: Thursday, July 14, 2005 5:41 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!!

and here is what I did to get it to do what I wanted, evidently the Flash player 8 takes it literally on the alpha property :) - i set it to 1 (one) instead of zero (0) and it is back to being transparent like I wanted it to be... whew!

WIll post that to the feedback Andrew, thx

Craig

Andrew Spaulding <[EMAIL PROTECTED]> wrote:

Well I'm yet to find a bug but there seems to be some noticableimprovements in performance.Be sure to post your bug using the feedback form found herehttp://www.macromedia.com/bin/fp8betafeedback.cgi?Cheers,Andrew Spauldingwww.flexdaddy.info--- In flexcoders@yahoogroups.com, "cnewroth55" <[EMAIL PROTECTED]> wrote:> Okay, saw the post about the beta Flash
 Player 8 beta, and as I like > to jump in with both feet, installed it for IE, Netscape 7.2 and Fire > Fox 1.0.4...went to one of my flex apps and found that I could no > longer see my label in the Link tag in my app. I was setting the > property 'alpha' to  zero so that the "bar" that highlights the > selection is invisible and just the rollovers would be seen. Removing > the alpha property lets my labe be seen but then (as I am using > haloBlue) i get a big ugly blue bar across my link label...I have a > graphic behind the link bar and did not want this to show up (the > bar)...it used to work in Flash player 7...so beta team thought you > would like to knowI really, really dont want to give up my alpha :)> > ps. did noticed a slight improvement in load speed...> > this on longer works>     > modalTransparency="0" borderStyle="none" alpha="0" > textRollOverColor="#0099CC" mouseOver="triggerShowEffectNeedReports> ()" />--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 



Start your day with Yahoo! - make it your home page --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 
		Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we.


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



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



  









Re: [flexcoders] Re: Flash Player 8 Beta - found problem??!!

2005-07-14 Thread Craig Newroth



and here is what I did to get it to do what I wanted, evidently the Flash player 8 takes it literally on the alpha property :) - i set it to 1 (one) instead of zero (0) and it is back to being transparent like I wanted it to be... whew!
WIll post that to the feedback Andrew, thx
Craig
Andrew Spaulding <[EMAIL PROTECTED]> wrote:
Well I'm yet to find a bug but there seems to be some noticableimprovements in performance.Be sure to post your bug using the feedback form found herehttp://www.macromedia.com/bin/fp8betafeedback.cgi?Cheers,Andrew Spauldingwww.flexdaddy.info--- In flexcoders@yahoogroups.com, "cnewroth55" <[EMAIL PROTECTED]> wrote:> Okay, saw the post about the beta Flash Player 8 beta, and as I like > to jump in with both feet, installed it for IE, Netscape 7.2 and Fire > Fox 1.0.4...went to one of my flex apps and found that I could no > longer see my label in the Link tag in my app. I was setting the > property 'alpha' to  zero so that the "bar" that highlights the > selection is invisible and just the rollovers would be seen.
 Removing > the alpha property lets my labe be seen but then (as I am using > haloBlue) i get a big ugly blue bar across my link label...I have a > graphic behind the link bar and did not want this to show up (the > bar)...it used to work in Flash player 7...so beta team thought you > would like to knowI really, really dont want to give up my alpha :)> > ps. did noticed a slight improvement in load speed...> > this on longer works>     > modalTransparency="0" borderStyle="none" alpha="0" > textRollOverColor="#0099CC" mouseOver="triggerShowEffectNeedReports> ()" />--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
		 Start your day with Yahoo! - make it your home page 


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



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



  









Re: [flexcoders] Re: Column chart using webservice result

2005-07-14 Thread Craig Newroth



Tony,
I would be interested in seeing how you did this, I have a similar situation, but have not been able to get it to do what I want either. thanks,
Craig
tony_lic <[EMAIL PROTECTED]> wrote:
Hi Matt,  Thanks for your help. I'm now able to render the chart successfully.with regards,tony--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:> Hard to know what you're running into without seeing your problems.  But> before you post them I'd just take a look at the existing chart samples> like the char explorer to see if you can match up on anything that might> already exist.  There are plenty of flexcoders posts about charts as> well, the archives might have code that you're looking for.> >  > > Matt> >  > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On> Behalf Of tony_lic> Sent: Tuesday, July 12, 2005
 1:07 AM> To: flexcoders@yahoogroups.com> Subject: [flexcoders] Re: Column chart using webservice result> >  > > Matt Chotin:>   Ha. i tried with that & it works. I have one more problem. now > i'm able to set the horizontal axis from the web service result. but> how can i set other details like Column series & values of each > series. it would be a great help for me if you could help me.> with regards,> tony> > --- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> > wrote:> > Shouldn't you be able to replace the last two lines with> > colchartKPI.horizontalAxis = series?> > > >  > > > > I haven't played with this much...> > > >  > > > > > > > > From:
 flexcoders@yahoogroups.com > [mailto:[EMAIL PROTECTED] On> > Behalf Of tony_lic> > Sent: Monday, July 11, 2005 4:24 AM> > To: flexcoders@yahoogroups.com> > Subject: [flexcoders] Column chart using webservice result> > > >  > > > > hi,> > I have to build a column chart, where all the properties like > > columnseries, categoryaxis & the y-axis  values all should come > from > > a web service.> > I dont know where to provide the data provider property. > > > > I tried some coding but it does not appear to work. let me provide > > with you the code snippet.> > please help me.> > > >   for(var i=0;i < oRequest.AxisData.item[0].Set.item.length; i++)>
 >   {> > tempValues.push> > (oRequest.AxisData.item[0].Set.item[i].Caption.toString());> > //Alert.show(oRequest.AxisData.item> > [0].Set.item[i].Caption.toString());> >   }> >   colchartKPI.dataProvider = > > oRequest.AxisData.item[0].Set;>
 >   var series:CategoryAxis = new CategoryAxis();> >   series.dataProvider = tempValues;> > > >   colchartKPI.horizontalAxis.CategoryAxis.dataProvider = > > tempValues;> >   colchartKPI.horizontalAxis.addItem(series);> > > > with regards,> > tony> > > > > > > > > > --> > 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 > > > >  > > > > *  Visit your group "flexcoders> > <http://groups.yahoo.com/group/flexcoders> " on the web.> > > > *  To unsubscribe from this group, send an email to:> >   [EMAIL PROTECTED]> >
 > subject=Unsubscribe> > > > > *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of> > Service <http://docs.yahoo.com/info/terms/> . > > > >  > > > > > > > > > --> 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 >
 >  > > *  Visit your group "flexcoders> <http://groups.yahoo.com/group/flexcoders> " on the web.>     > *  To unsubscribe from this group, send an email to:>   [EMAIL PROTECTED]> subject=Unsubscribe> >     > *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of> Service <http://docs.yahoo.com/info/terms/> . > >  > > --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
SPONSORED LINKS 



Computer software testing 
Macromedia flex 
Development 

Software developer 
		 Start your day with Yahoo! - make it your home page 


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



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



  









[flexcoders] Flex Portal Integration - Flex as a Portlet

2005-07-13 Thread Craig McDonald
I've been trying in vain over the last few weeks to get a simple Flex 
app deployed as a portlet in Jetspeed-2 (as a JSR-168 portlet).

The resources I've found on the web so far have helped get me heading 
down the right track (both the articles on the Macromedia Dev site and a 
blog post by Cristophe Coenraets.

However, I still cant get it to work, simply because I can't get the 
portlet to "look" outside of its own context. For example, I have 
jetspeed-2 running on Tomcat at http://myserver.com/jetspeed/ - this 
displays the jetspeed landing page.

Flex is installed on the same Tomcat instance, at 
http://myserver.com/flex - however, when I create the portlet and try 
and point the .java to a "view.jsp" - it only allows files to be 
viewed/exectued within the portlet that are contained within that 
portlet context.

This means that I can't put the mxml inside the portlet context because 
it is not within the Flex context (so it won't execute), and neither can 
I put the mxml outside in the flex context because my portlet can't 
access it.

Does anybody have a very basic "cookbook" for getting flex functioning 
within portlets. I know *somebody* out there must have done it, I know I 
am just not seeing/missing something obvious.

Any help, much appreciated.

Cheers,
Craig McDonald\

-- 
==
UCOnline Development Team
University of Canberra
e: [EMAIL PROTECTED]
p: +61-2-6201-5514





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

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

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

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





Re: [flexcoders] Calendar

2005-06-09 Thread Craig Newroth



use the caledar that is built in to flex
Joel Parish <[EMAIL PROTECTED]> wrote:
Is there any way to impliment a calendar in flex? I am looking intousing a TileList but I really don't want to reinvent the wheel(granted it's allready invented). Any insights into how i may do this,or how others have allready done it are welcome!Thank you,Joel
		Discover Yahoo! 
Have fun online with music videos, cool games, IM & more. Check it out!







Yahoo! Groups Links

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










RE: [flexcoders] Re: okay, so I can't beleive that......

2005-06-09 Thread Craig Newroth



i have tried every combination of the "Type" that I can, now the 
will let you knowdo you have any examples of a RO accepting mutlitple data and returning results? If so then please send, maybe I am missing something else..
thanks,
Craig
"Mercer, Dustin" <[EMAIL PROTECTED]> wrote:





Ok sorry, I thought he was going to Java not CFC.  A method signature is just what the method is expecting and what it is returning.  Basically how you typed the function.  I.E. a java method signature looks like this : private static void someFunction( String param1, String param2 ).
 
I don’t know if I have enough knowledge to help you with CF, but here goes…  Looks like your CF code should look like this : 
 
Here is the CFC:  output="true" access="remote">                          
Look at the cold bolded and red.  This code should look like this if you want to use selectedItems: 
    
 
You have to make sure your query will support an array though…  You may have to change the way you are doing this to include some code to parse the array.  I would really have to see what you are doing to explain better.  Hopefully this was enough of an explanation to help you.
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819iSent: Wednesday, June 08, 2005 12:12 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: okay, so I can't beleive that..
 
I am helping him on this, what do you mean method signature?The method is Thrust_Query the argument is ThrustName the web srv works fine.. the RO does not.Here is the CFC:  output="true" access="remote">    type="string" >                      Here is the RO call in flex:> endpoint="http://mydomains.com/flashservices/gateway" >> > > {thrustCB.selectedItems}> >   > --- In flexcoders@yahoogroups.com, "Mercer, Dustin" <[EMAIL PROTECTED]> wrote:> What is your RO expecting as a parameter?  An array or a single object?> selectedItems is an array so you must set your RO to accept an array as> a parameter.  What is the Thrust_Query method signature?> >  > >   _  > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On> Behalf Of cnewroth55> Sent: Wednesday, June
 08, 2005 11:36 AM> To: flexcoders@yahoogroups.com> Subject: [flexcoders] okay, so I can't beleive that..> >  > > okay, so i can't beleive that I cannot pass multiple valuse into a > RO tagI have a list control, it is being fed from an array, > multiple selections are set to truei have tried SEVERAL > different ways to pass the 'selectedItems' property to my Remote > Object tag...see below> the cfc call (obvious parts
 removed):> > access="remote">> > (have tired every thing in the type for this piece)> > the function;> > var revResult:Object;> function one(myEvent:Object):Void> {> revResult=myEvent.result;> } //Thanks Matt Boles>
 > the list control> > > change="gvsQueriesRO.Thrust_Query.send()" id="thrustCB" > multipleSelection="true" width="250" toolTip="Select from this list > to get an overview. Hold the control key down to select multiple > items." alpha="0" color="#FF" textRollOverColor="#33">> > the RO tag:> id="gvsQueriesRO" > endpoint="http://mydomains.com/flashservices/gateway" >> > > {thrustCB.selectedItems}> >   > > no matter WHAT I do tyring to use this returns squat!> if i change just this in the mx:arguments tag it works,>
 {thrustCB.selectedItem}> (so that i am only using a single value)...if I change the RO to a > web service then using 'selectedItems' will work. I am convinced > that you cannot make a call to a CFC using a RO with > the 'selectedIems' property, maybe a bug, has ANYONE been able to do > this? any insights or code would be MUCH appreciated...I want the > performance of an AMF vs the SOAP, but.> > > > > > > > >   _  > > Yahoo! Groups Links> > *  To visit your group on the web, go to:>   http://groups.yahoo.com/group/flexcoders/>     > *  To unsubscribe from this group, send an email to:>
   [EMAIL PROTECTED]>  >     > *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of> Service <http://docs.yahoo.com/info/terms/> .
		Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone.







Yahoo! Groups Links

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










RE: [flexcoders] Bug with RO Tag - can anyone explain or have noticed...

2005-06-08 Thread Craig Newroth



Tracy, my bad. I forgot that I changed it from a CB to a List
 
    just never change the id, sorry...
but the problem still remains.. when i try to add binding (ie data will flow FROM the list to the arg in my RO) if it is a 'single' selection it works, if I change it to selectedItems it fails..
CraigTracy Spratt <[EMAIL PROTECTED]> wrote:
I don't see where "selectedItems" is a property of a ComboBox.I did find the method "getSelectedItems()".  Note that this returns anarray, not a string, so your RO property would need to be typed tohandle that.Tracy-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: Tuesday, June 07, 2005 12:32 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Bug with RO Tag - can anyone explain or havenoticed...I have a RO object call. heres the code;endpoint="http://mydomainsbox.com/flashservices/gateway" result="reviewThrusts=event.result" > {thrustCB.selectedItem}  notice that I have a CB which has some data in it and it is the dataprovider that is providing data to my arg ..the aboive works just fine, HOWEVER if I change it (the dataprovider) to this;{thrustCB.selectedItems}(notice i just changed it so that I can select mutliple items and that string be returned to the binding)THE WHOLE DARN THING BREAKS nothing is returned back to my DG...anyone else had this happen to them? IF so is this a bug MM?Yahoo! Groups Links
		Discover Yahoo! 
Stay in touch with email, IM, photo sharing & more. Check it out!







Yahoo! Groups Links

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










RE: [flexcoders] prblem with getting dat back from A Remote Object

2005-06-03 Thread Craig Newroth



that's just it, not getting a result backsee reply to Tracy for what the network monitor is showing...
Peter Farland <[EMAIL PROTECTED]> wrote:
Is that the request show from the network monitor? If so, what does thenetwork monitor show for the result?-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: Thursday, June 02, 2005 12:11 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] prblem with getting dat back from A Remote Objecthi all, I am haiving a problem getting my data back from my call to a RO. It looks like (in the network monitor) that the call is working, but I am not getting any data back into my datagrid (where i think i have the binding right). the netowrk monitor shows this:Method: gvs._cfc.gvs_queries.Thrust_QueryParameter 1: name : param1type : objectvalue[object] : ThrustName[array] : length[Number] : 1[0][String] : ASMT - Affordable
 Structures and Mfg. Tech and my code isthis:
		Discover Yahoo! 
Have fun online with music videos, cool games, IM & more. Check it out!







Yahoo! Groups Links

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










RE: [flexcoders] prblem with getting dat back from A Remote Object

2005-06-03 Thread Craig Newroth



yes, i did not have the send, and it appears that I am not really sending the data in the parameter to the RO. If i run it as a web service i get this in the network monitor:
Method: Thrust_QueryParameter 1: 

name : ThrustNametype : string

value[array] : 
length[Number] : 1[0][String] : ASMT - Affordable Structures & Mfg. Tech
 
if i run it as a RO i get this in the network monitor:
Method: gvs._cfc.gvs_queries.Thrust_ReportParameter 1: 

name : param1type : object

value[array] : 
length[Number] : 1[0][String] : ASMT - Affordable Structures and Mfg. Tech
so it look like in need to add  tag to my RO tag? not sure how to do this, i think i saw it somewhere in the online docs, but not sure where :-)
Craig
Tracy Spratt <[EMAIL PROTECTED]> wrote:
I am assuming I missed the send().Have you traced or alerted the result in your result handler?Tracy-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: Thursday, June 02, 2005 12:11 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] prblem with getting dat back from A Remote Objecthi all, I am haiving a problem getting my data back from my call to a RO. It looks like (in the network monitor) that the call is working, but I am not getting any data back into my datagrid (where i think i have the binding right). the netowrk monitor shows this:Method: gvs._cfc.gvs_queries.Thrust_QueryParameter 1: name : param1type : objectvalue[object] : ThrustName[array] : length[Number] : 1[0][String] : ASMT - Affordable
 Structures and Mfg. Techand my code is this://the call to the ROhttp://www-stl-100d.mw.nos.boeing.com/flashservices/gateway" source="gvs._cfc.gvs_queries" >the scraip call to put everything where is it supposed to go (this is where I think i am doing it wrong)    

Re: [flexcoders] can I bind more that one checkbox to a send requ est?

2005-05-25 Thread Craig Newroth
That helped alot, thanks Jeff.

--- Jeff Steiner <[EMAIL PROTECTED]> wrote:

> Craig,
> 
> I have a specific example on FlexAuthority.  Visit:
>
http://www.flexauthority.com/samplesIndex.cfm?sampleID=23
> 
> I have multiple checkboxes that pass along their
> checked state to a CFC that
> returns XML to populate a chart.
> 
> Let me know if that does not answer your specific
> question.
> 
> Jeff
> http://www.flexauthority.com
> 
> - Original Message - 
> From: "Craig Newroth" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, May 24, 2005 4:55 AM
> Subject: RE: [flexcoders] can I bind more that one
> checkbox to a send requ
> est?
> 
> 
> > Matt:
> > Thanks for the response, I am trying to pass a
> list of
> > the ones that are checked..values in the
> checkboxes
> > are going to be passed to a cfc to get data from
> query
> > and returned to datagrid.
> > so I guess that you are saying to build an array
> out
> > of the checkboxes (if they are checked) and then
> pass
> > that array value to my cfc call?
> > Craig
> >
> > --- Matt Chotin <[EMAIL PROTECTED]> wrote:
> > > Are you trying to pass a list of the ones that
> are
> > > checked or just one?
> > > Your changeThrusts method can simply store which
> > > checkboxes are selected and
> > > then you can build an array to pass to your web
> > > service for the query.  If
> > > only one of those checkboxes is meant to be
> checked
> > > maybe you should look
> > > into using RadioButtons instead and then take
> > > advantage of
> > > RadioButtonGroup.selectedData.
> > >
> > >
> > >
> > > Matt
> > >
> > >
> > >
> > >   _
> > >
> > > From: flexcoders@yahoogroups.com
> > > [mailto:[EMAIL PROTECTED] On
> > > Behalf Of cnewroth55
> > > Sent: Thursday, May 19, 2005 10:44 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] can I bind more that one
> > > checkbox to a send request?
> > >
> > >
> > >
> > > I have a form that has several different
> checkboxes
> > > and need to pass
> > > any of their respected labels (or data) to a
> > > webservice cfc..what i
> > > what to do is be able to pass any of the below
> up to
> > > my webservice
> > > call. the code for the web service call is below
> > > this...;
> > >
> > > 
> > > > > color="#123154"  labelPlacement="right"
> > > id="ThrustReportsCHB1"
> > > click="changeThrusts( event );" />
> > > > > labelPlacement="right"
> > > id="ThrustReportsCHB2" />
> > > > > color="#123154" labelPlacement="right"
> > > id="ThrustReportsCHB3" />
> > > > > color="#123154" labelPlacement="right"
> > > id="ThrustReportsCHB4" />
> > > > > id="ThrustReportsCHB5" />
> > > > > color="#123154" labelPlacement="right"
> > > id="ThrustReportsCHB6" />
> > >
> > >   
> > >  > > color="#123154"
> > > labelPlacement="top" id="summaryCHB"
> > > click="changeOther( event );"/>
> > >   
> > >   
> > >  > > color="#123154"
> > > labelPlacement="top" id="detailCHB"
> > > click="changeOther( event );"/>
> > >   
> > >
> > >   
> > >
> > > WEB SERVICE CALL
> > >  > >
> >
>
wsdl="http://nameremoved.com/gvs/_cfc/gvs_queries.cfc?
> > >
> <http://nameremoved.com/gvs/_cfc/gvs_queries.cfc?>
> > > wsdl" id="gvsQueriesWS">
> > > 
> > >   
> > >
> > >
> >
>
{WhereIneedToPassCheckboxDATA}
> > >   
> > > 
> > >   
> > >
> > >
> > >
> > >
> > >
> > >
> > >   _
> > >
> > > Yahoo! Groups Links
> > >
> > > * To visit your group on the web, go to:
> > > http://groups.yahoo.com/group/flexcoders/
> > > <http://groups.yahoo.com/group/flexcoders/>
> > >
> > > * To unsubscribe from this group, send an email
> to:
> > > [EMAIL PROTECTED]
> > >
> >
>
<mailto:[EMAIL PROTECTED]>
> > >
> > >
> > > * Your use of Yahoo! Groups is subject to the
> Yahoo!
> > > <http://docs.yahoo.com/info/terms/>  Terms of
> > > Service.
> > >
> > >
> >
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Small Business - Try our new Resources site
> > http://smallbusiness.yahoo.com/resources/
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] can I bind more that one checkbox to a send requ est?

2005-05-24 Thread Craig Newroth
Matt:
Thanks for the response, I am trying to pass a list of
the ones that are checked..values in the checkboxes
are going to be passed to a cfc to get data from query
and returned to datagrid.
so I guess that you are saying to build an array out
of the checkboxes (if they are checked) and then pass
that array value to my cfc call?
Craig

--- Matt Chotin <[EMAIL PROTECTED]> wrote:
> Are you trying to pass a list of the ones that are
> checked or just one?
> Your changeThrusts method can simply store which
> checkboxes are selected and
> then you can build an array to pass to your web
> service for the query.  If
> only one of those checkboxes is meant to be checked
> maybe you should look
> into using RadioButtons instead and then take
> advantage of
> RadioButtonGroup.selectedData.
> 
>  
> 
> Matt
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> Behalf Of cnewroth55
> Sent: Thursday, May 19, 2005 10:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] can I bind more that one
> checkbox to a send request?
> 
>  
> 
> I have a form that has several different checkboxes
> and need to pass 
> any of their respected labels (or data) to a
> webservice cfc..what i 
> what to do is be able to pass any of the below up to
> my webservice 
> call. the code for the web service call is below
> this...;
> 
> 
> color="#123154"  labelPlacement="right"
> id="ThrustReportsCHB1" 
> click="changeThrusts( event );" />
> labelPlacement="right" 
> id="ThrustReportsCHB2" />
> color="#123154" labelPlacement="right"
> id="ThrustReportsCHB3" />
> color="#123154" labelPlacement="right"
> id="ThrustReportsCHB4" />
> id="ThrustReportsCHB5" />
> color="#123154" labelPlacement="right"
> id="ThrustReportsCHB6" />
>
>   
>  color="#123154" 
> labelPlacement="top" id="summaryCHB"
> click="changeOther( event );"/>
>   
>   
>  color="#123154" 
> labelPlacement="top" id="detailCHB"
> click="changeOther( event );"/>
>   
>
>   
> 
> WEB SERVICE CALL
> 
wsdl="http://nameremoved.com/gvs/_cfc/gvs_queries.cfc?
> <http://nameremoved.com/gvs/_cfc/gvs_queries.cfc?> 
> wsdl" id="gvsQueriesWS">
> 
>   
>
>
{WhereIneedToPassCheckboxDATA}
>   
> 
> 
> 
> 
> 
> 
> 
> 
>   _  
> 
> Yahoo! Groups Links
> 
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
> <http://groups.yahoo.com/group/flexcoders/> 
>   
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]>
> 
>   
> * Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>  Terms of
> Service. 
> 
> 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Announcing Flex Style Explorer

2005-05-19 Thread Craig Newroth
with the exception that CSS style selectors are not
supported in components...would have to load a .css
file I am assuming...

--- Jeff Beeman <[EMAIL PROTECTED]> wrote:
> This tool is absolutely fantastic!  I've got a bug
> report that one of
> our developers noticed, though, and since I can't
> make a comment on the
> site, I'll just note it here and hope someone sees
> it :)
> 
> Entering hex values using the keyboard seems to work
> for everything
> except components that have 2 color values (panel
> headings, buttons,
> etc).  When choosing a color from the drop down, the
> color displays
> correctly.  When typing in a hex value, it displays
> as black.
> 
> Also, I'd like to make a feature request - Would it
> be possible to make
> the text area where the resulting CSS appears be
> editable?  I'd love to
> be able to edit the resulting CSS on-the-fly and see
> the results.
> 
> Regardless, thanks for the great tool!
> 
> 
> 
> /**
> * Jeff Beeman
> **/
> 
> -Original Message-
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Jae Hess
> Sent: Tuesday, May 17, 2005 7:27 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Announcing Flex Style Explorer
> 
> Not sure if you have heard the news:
> 
> Announcing Flex Style Explorer
> 
> http://www.markme.com/mc/archives/007740.cfm
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] how to use a repeater question

2005-05-13 Thread Craig Newroth
THanks Matt, that worked great...and thanks for the
answer to the last part about performance...no, thrust
data isn't going to change (at least in the near
future :-)), but I wanted to be able to use a query to
provide the different labels from the DB so that they
would be dynamic if needed...

--- Matt Chotin <[EMAIL PROTECTED]> wrote:
> I think the repeater for this would be:
> 
>  
> 
> 
> 
>   
> 
> 
> 
>  
> 
> So it's pretty easy, though if thrustData isn't
> going to change I think it's
> more efficient code-wise to write it out by hand.
> 
>  
> 
> Matt
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> Behalf Of cnewroth55
> Sent: Thursday, May 12, 2005 10:57 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] how to use a repeater question
> 
>  
> 
> is it possible to use a repeater control to
> 'duplicate' a group of
> checkboxes? I have this text array i would like to
> have put into a
> group of checkboxes;
> 
> and would like for it to be the checkboxes label.
> is it faster to do a repeater or just make them up
> normally..
> 
> Craig Newroth
> Structures Technology - STL 
> Executive Computing Support 
> The Boeing Company 
> 
> 
> 
> 
> 
>   _  
> 
> Yahoo! Groups Links
> 
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
> <http://groups.yahoo.com/group/flexcoders/> 
>   
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]>
> 
>   
> * Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/>  Terms of
> Service. 
> 
> 



__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] help enabling or disabling a control when a user selects something - Solved

2005-05-11 Thread Craig Newroth
okay, now just one more thing
that works, in that it disables the listbox on the
right, now I have made a button on the file that runs
the following AS code when clicked:
function resetForm(){
srcgrid.enabled = !srcgrid.enabled
}

so that works in that it enables the listbox, but if i
drag "All Reports" back into the originiating listbox
then drag it back into the destination listbox control
box,(it should disable the box) it doesn't disable the
control...
what in the world am I doing wrong. It should be a
simple thing to enable / disable a control based on
the selection....hmmmm
Craig



--- Craig Newroth <[EMAIL PROTECTED]> wrote:
> Thanks Tracy for getting me on the right track.!!!
> In the action script file that I posted here is what
> I
> changed/added in the below function to make it
> work...
> Now all I have to do is do a test on it to see if
> they
> selected it somewhere in the middle of the process.
> :-)
> **
> function doDragDrop(event) {
> 
> doDragExit(event);
> var items =
> event.dragSource.dataForFormat("items");
> var dest = event.target;
> var dropLoc = dest.getDropLocation();
> 
> items.reverse();
> 
> for(var i = 0; i < items.length; i++) {
> dest.addItemAt(dropLoc,items[i]);
> // * THE CHANGE/ADDED CODE **
> // Check to see if the drop location contains 'All
> Reports', if is does then disable the srcgrid so the
> user cannot select any other reports 
>   if (dropLoc,items[i] == 'All Reports'){
>   srcgrid.enabled = !srcgrid.enabled;
>   }
> }
> }
> *
> --- Tracy Spratt <[EMAIL PROTECTED]> wrote:
> > The enable toggle works correctly right?  Say if
> you
> > were to run it
> > directly from a button?
> > 
> > And the drag/drop works correctly?
> > 
> > Your code wasn't complete enough for me to run, so
> I
> > need to ask, When
> > you drag an item into the list, is it
> automatically
> > selected?
> > 
> > If so, you want to test:
> > event.target.selectedItem.label == "All Reports"
> (or
> > whatever the label
> > column property is named)
> > 
> > If not, you will need to iterate through the items
> > to see if the "All
> > Reports" option is included.
> > 
> > Can you extract the issue into a simple example?
> > 
> > Tracy
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Craig Newroth
> > Sent: Friday, May 06, 2005 2:05 PM
> > To: flexcoders@yahoogroups.com
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [flexcoders] help enabling or
> disabling
> > a control when a
> > user selects something
> > 
> > well, it is supposed to test for the content of
> the
> > selected item and then what I want to do is enable
> > or
> > disable a list control.. I have tired both the
> > number
> > zero (the selected index) of my first list and the
> > text value and cannot get it to work.
> > 
> > --- Manish Jethani <[EMAIL PROTECTED]>
> wrote:
> > > On 5/5/05, cnewroth55 <[EMAIL PROTECTED]>
> > wrote:
> > > 
> > > > if (event.target.selectedIndices ==
> "All
> > > Reports"){
> > > > srcgrid.enabled =
> > > !srcgrid.enabled;
> > > > }
> > > 
> > > I'm sorry if this is a stupid question as I
> > haven't
> > > gone through your
> > > entire code line by line, but what does the
> above
> > > if-condition want to
> > > test?  'selectedIndices' will be an array of
> > Number
> > > objects, so I
> > > wonder if comparing it to a string like that is
> > > correct.
> > > 
> > 
> > 
> > 
> > Yahoo! Mail
> > Stay connected, organized, and protected. Take the
> > tour:
> > http://tour.mail.yahoo.com/mailtour.html
> > 
> > 
> > 
> >  
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> 
> 
>   
> Yahoo! Mail
> Stay connected, organized, and protected. Take the
> tour:
> http://tour.mail.yahoo.com/mailtour.html
> 
> 



Discover Yahoo! 
Stay in touch with email, IM, photo sharing and more. Check it out! 
http://discover.yahoo.com/stayintouch.html


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] help enabling or disabling a control when a user selects something - Solved

2005-05-11 Thread Craig Newroth
Thanks Tracy for getting me on the right track.!!!
In the action script file that I posted here is what I
changed/added in the below function to make it work...
Now all I have to do is do a test on it to see if they
selected it somewhere in the middle of the process.
:-)
**
function doDragDrop(event) {

doDragExit(event);
var items =
event.dragSource.dataForFormat("items");
var dest = event.target;
var dropLoc = dest.getDropLocation();

items.reverse();

for(var i = 0; i < items.length; i++) {
dest.addItemAt(dropLoc,items[i]);
// * THE CHANGE/ADDED CODE **
// Check to see if the drop location contains 'All
Reports', if is does then disable the srcgrid so the
user cannot select any other reports 
if (dropLoc,items[i] == 'All Reports'){
srcgrid.enabled = !srcgrid.enabled;
}
}
}
*
--- Tracy Spratt <[EMAIL PROTECTED]> wrote:
> The enable toggle works correctly right?  Say if you
> were to run it
> directly from a button?
> 
> And the drag/drop works correctly?
> 
> Your code wasn't complete enough for me to run, so I
> need to ask, When
> you drag an item into the list, is it automatically
> selected?
> 
> If so, you want to test:
> event.target.selectedItem.label == "All Reports" (or
> whatever the label
> column property is named)
> 
> If not, you will need to iterate through the items
> to see if the "All
> Reports" option is included.
> 
> Can you extract the issue into a simple example?
> 
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Craig Newroth
> Sent: Friday, May 06, 2005 2:05 PM
> To: flexcoders@yahoogroups.com
> Cc: [EMAIL PROTECTED]
> Subject: Re: [flexcoders] help enabling or disabling
> a control when a
> user selects something
> 
> well, it is supposed to test for the content of the
> selected item and then what I want to do is enable
> or
> disable a list control.. I have tired both the
> number
> zero (the selected index) of my first list and the
> text value and cannot get it to work.
> 
> --- Manish Jethani <[EMAIL PROTECTED]> wrote:
> > On 5/5/05, cnewroth55 <[EMAIL PROTECTED]>
> wrote:
> > 
> > > if (event.target.selectedIndices == "All
> > Reports"){
> > > srcgrid.enabled =
> > !srcgrid.enabled;
> > > }
> > 
> > I'm sorry if this is a stupid question as I
> haven't
> > gone through your
> > entire code line by line, but what does the above
> > if-condition want to
> > test?  'selectedIndices' will be an array of
> Number
> > objects, so I
> > wonder if comparing it to a string like that is
> > correct.
> > 
> 
> 
>   
> Yahoo! Mail
> Stay connected, organized, and protected. Take the
> tour:
> http://tour.mail.yahoo.com/mailtour.html
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] help enabling or disabling a control when a user selects something

2005-05-10 Thread Craig Newroth
Tracy:
 I have attached the files that I am using as weel as
the AS file for control...in the as file look around
line 58 for the code that I am trying. You will need
to comment out the ones that do the topmenu and the
display. StandardReports.mxml is the file in question.
WHen I select "all reports" from srcgrid and drag it
into destgrid I want 'srcgrid' to be disabled...
thanks,
Craig

--- Tracy Spratt <[EMAIL PROTECTED]> wrote:
> The enable toggle works correctly right?  Say if you
> were to run it
> directly from a button?
> 
> And the drag/drop works correctly?
> 
> Your code wasn't complete enough for me to run, so I
> need to ask, When
> you drag an item into the list, is it automatically
> selected?
> 
> If so, you want to test:
> event.target.selectedItem.label == "All Reports" (or
> whatever the label
> column property is named)
> 
> If not, you will need to iterate through the items
> to see if the "All
> Reports" option is included.
> 
> Can you extract the issue into a simple example?
> 
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Craig Newroth
> Sent: Friday, May 06, 2005 2:05 PM
> To: flexcoders@yahoogroups.com
> Cc: [EMAIL PROTECTED]
> Subject: Re: [flexcoders] help enabling or disabling
> a control when a
> user selects something
> 
> well, it is supposed to test for the content of the
> selected item and then what I want to do is enable
> or
> disable a list control.. I have tired both the
> number
> zero (the selected index) of my first list and the
> text value and cannot get it to work.
> 
> --- Manish Jethani <[EMAIL PROTECTED]> wrote:
> > On 5/5/05, cnewroth55 <[EMAIL PROTECTED]>
> wrote:
> > 
> > > if (event.target.selectedIndices == "All
> > Reports"){
> > > srcgrid.enabled =
> > !srcgrid.enabled;
> > > }
> > 
> > I'm sorry if this is a stupid question as I
> haven't
> > gone through your
> > entire code line by line, but what does the above
> > if-condition want to
> > test?  'selectedIndices' will be an array of
> Number
> > objects, so I
> > wonder if comparing it to a string like that is
> > correct.
> > 
> 
> 
>   
> Yahoo! Mail
> Stay connected, organized, and protected. Take the
> tour:
> http://tour.mail.yahoo.com/mailtour.html
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 
> 



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html


 
Yahoo! Groups Links

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

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

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


DragEventHandlers.as
Description: 229667049-DragEventHandlers.as


standardReports.mxml
Description: 767879685-standardReports.mxml


gvsStartA.mxml
Description: 2325252969-gvsStartA.mxml


Re: [flexcoders] help enabling or disabling a control when a user selects something

2005-05-06 Thread Craig Newroth
well, it is supposed to test for the content of the
selected item and then what I want to do is enable or
disable a list control.. I have tired both the number
zero (the selected index) of my first list and the
text value and cannot get it to work.

--- Manish Jethani <[EMAIL PROTECTED]> wrote:
> On 5/5/05, cnewroth55 <[EMAIL PROTECTED]> wrote:
> 
> > if (event.target.selectedIndices == "All
> Reports"){
> > srcgrid.enabled =
> !srcgrid.enabled;
> > }
> 
> I'm sorry if this is a stupid question as I haven't
> gone through your
> entire code line by line, but what does the above
> if-condition want to
> test?  'selectedIndices' will be an array of Number
> objects, so I
> wonder if comparing it to a string like that is
> correct.
> 



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: creditcard dashboard - for Alistair

2005-04-30 Thread Craig Newroth



well, that's the preoblem, I have tried all these and still get the error that I posted...however I will look at them one more time and post resutls...
it's a little frustrating to read the code, understand the code, read the chapters, follow along with them, and yet still not get it to work to 'see' it in actionhumm...
Steven Webster <[EMAIL PROTECTED]> wrote:
Craig,Can I clarify what your setup is here ?Are you invoking the remote object as an unnamed service ? (eg source="")Have you removed the named service for the delegate, including thenode.If you have done both those things, have your * configuration in the remote-objects whitelist then you shouldn't be having any access problems.Steven> -Original Message-> From: flexcoders@yahoogroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Craig Newroth> Sent: 29 April 2005 19:43> To: flexcoders@yahoogroups.com> Subject: RE: [flexcoders] Re: creditcard dashboard - for Alistair> > I'll try to be more civil Steven...> so okay let try this ONE more time, as I know that I posted > the error that I am getting the first
 time...-- No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 27/04/2005Yahoo! Groups Links<*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/<*> To unsubscribe from this group, send an email to:[EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 







Yahoo! Groups Links

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










RE: [flexcoders] Re: creditcard dashboard - for Alistair

2005-04-29 Thread Craig Newroth
I'll try to be more civil Steven...
so okay let try this ONE more time, as I know that I
posted the error that I am getting the first time...

" onFault Client.NotAllowed You are not allowed to
access the service
com.iterationtwo.boe.business.ApplicationDelegate. 
The service is not in the configured whitelist."

I have tried to place an instance of this in every
flex-config.xml file that I can find, and have used,
* (even though I know about the
security) just to make it work to no avail...that is
why i posted the question in the first place...
I have enjoyed your book and learned quite alot from
it, so i cannot understand why this is not working out
of the box so to speak...just about everything else
has (with the exception of the chart thing - thank god
for grep and global replace)
Craig


--- Steven Webster <[EMAIL PROTECTED]>
wrote:

> Craig,
>  
> On page 576 of the book, the RemoteObject service is
> defined as an unnamed
> service (using the source="") tag,
> which I will presume to be what you have in yoru
> code.
>  
> You have placed the service in your whitelist
> (double-check, I presume this
> is under the remote-objects node) as
> both an unnamed and named service, so you probably
> expect either
> named/unnamed services to both work.
>  
> However, in your named service block you have
> false 
>  
> This means that even though you are (I imagine,
> unless you have changed the
> code from p 576) accessing
> the RemoteObject as an unnamed service, your
> flex-config is prohibiting that
> for this very service.
>  
> Make sense ?
>  
> If this isn't your issue, then perhaps you could
> post the error message you
> are receiving ... in 
> gateway-config.xml you can turn on a little more
> debugging of events over
> the wire as well.  Your
> original email suggested that "...the book doesn't
> seem to explain or give
> examples for the whitelist..."
> which is why I pointed you in my last response to
> the appropriate sections
> in the book where the
> whitelist is explained, and examples given.  The
> more specific you can
> specify the problem you
> are having, and the error messages you are
> receiving, the more specific our
> responses can be.
>  
> I hope that the above helps you find the source of
> your problem.
>  
> Kindest Regards,
>  
> Steven
>  
>  
> 
> 
>_  
> 
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Craig Newroth
> Sent: 29 April 2005 17:27
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: creditcard dashboard -
> for Alistair
> 
> 
> Dear MR. WEBSTER:
> READ pages that you mention, and READ chapter 21,
> and I DO UNDERSTAND the
> concepts of the whitelist VERY well, and I DO have a
> CLEAR understanding of
> the mentioned concepts.
> Rather than make a smart assed comment like "...it's
> probably worth making
> sure you've got a clear understanding of the
> concepts covered in the
> relevant and preceeding chapters" or "...and
> then make sure you
> understand why that's a woefully insecure way of
> achieving your short term
> goal of getting the code to work" and (my
> favorite), "...if you still
> don't
> understand the concept of the whitelist,..."
> you could offer a better answer...MY SHORT TERM GOAL
> IS NOT TO MAKE YOUR
> CODE WORK, but to see it in action so that I can
> better understand WHY it is
> working the way it does and to see if your concepts
> mentioned in your book
> can be of use in my own development.
>  If that is your understanding of my questions,
> then please don't
> answer...I'll figure it out on my own. You have NO
> idea of how I have my
> system configured, or where I have placed 'your'
> code in relation to my
> install, so making your statements the way you did
> is just ludicrous. AND I
> resent your implication(s) that I don't UNDERSTAND
> the concept of what I am
> doing! 
> BTW...here is what I have in the whitelist and it
> still don't work smart
> guy! oh, wait, I forgot, don't answer me!
> 
> 
> 
> com.bng.flex.remoteObject.*
>
>
com.iterationtwo.boe.business.ApplicationDelegate
>
>
com.iterationtwo.boe.business.CreditCardDelegate
>
>
com.iterationtwo.boe.business.Responder
> *
> 
> 
> 
>
> 
>
>
com.iterationtwo.boe.business.ApplicationDelegate
> stateless-class
>
> false
>
>
false
> 
>
> 
> 
> 
> 
> -- 
> No vir

RE: [flexcoders] Re: creditcard dashboard - for Alistair

2005-04-29 Thread Craig Newroth



Dear MR. WEBSTER:
READ pages that you mention, and READ chapter 21, and I DO UNDERSTAND the concepts of the whitelist VERY well, and I DO have a CLEAR understanding of the mentioned concepts.
Rather than make a smart assed comment like "...it's probably worth making sure you've got a clear understanding of the concepts covered in the relevant and preceeding chapters" or "...and then make sure you understand why that's a woefully insecure way of achieving your short term goal of getting the code to work" and (my favorite), "...if you still don'tunderstand the concept of the whitelist,..."
you could offer a better answer...MY SHORT TERM GOAL IS NOT TO MAKE YOUR CODE WORK, but to see it in action so that I can better understand WHY it is working the way it does and to see if your concepts mentioned in your book can be of use in my own development.
 If that is your understanding of my questions, then please don't answer...I'll figure it out on my own. You have NO idea of how I have my system configured, or where I have placed 'your' code in relation to my install, so making your statements the way you did is just ludicrous. AND I resent your implication(s) that I don't UNDERSTAND the concept of what I am doing! BTW...here is what I have in the whitelist and it still don't work smart guy! oh, wait, I forgot, don't answer me!
        com.bng.flex.remoteObject.*com.iterationtwo.boe.business.ApplicationDelegatecom.iterationtwo.boe.business.CreditCardDelegatecom.iterationtwo.boe.business.Responder*       
        com.iterationtwo.boe.business.ApplicationDelegatestateless-classfalsefalse   Steven Webster <[EMAIL PROTECTED]> wrote:
> did look at flex-config.mxml... not a clue sorry. CTRL-F (Find) "whitelist" or "remote" or "remote-object in flex-config.xml and you should find the whitelist> and the > book it self doesn't seem to explain where or give example > for whitelist..Index at the back. W. Whitelist. Page 685 - "whitelists, overview495-496"On page 495-497, there are 3 pages of clear description of how to set the whitelist for RemoteObject calls, HTTPService calls and WebService calls,and the concept of named services and unnamed services. In fact Chapter 21opens with a section titled "The Flex Whitelist".Before trying to compile the code from the book and get the examplesworking, it's probably worth making sure you've got a clear understandingof the concepts covered in the relevant and preceeding
 chapters. The code is there to underline points in the text, not vice versa.Once you've read through the chapter material, if you still don'tunderstand the concept of the whitelist, go and set*and then make sure you understand why that's a woefully insecureway of achieving your short term goal of getting the code to work.Steven-- No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.0.308 / Virus Database: 266.10.4 - Release Date: 27/04/2005Yahoo! Groups Links<*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/<*> To unsubscribe from this group, send an email to:[EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject
 to:http://docs.yahoo.com/info/terms/__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 







Yahoo! Groups Links

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










RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

2005-04-24 Thread Craig Newroth



Thanks Steven...after you guys explained how the SWC was packaged, it made more sense.
DUH!, i'm slow :-)
Craig
Steven Webster <[EMAIL PROTECTED]> wrote:


Craig,
 
If you feel better about it, you can change your code to:
 

 
and then instantiate your component as:
 

 
In the SWC, Ali has packaged the component as com.iterationtwo.containers.AdvancedTabNavigator
 
You are simply creating a namespace within which you can unambiguously refer to the
AdvancedTabNavigator; call it what you like.
 
It makes sense however, that the namespace reflect the SWC/package from which you
are using the component, eg mx = Macromedia built-ins, iterationtwo = iteration::two, etc.
 
But your call how you use namespacesbut you're not going near our servers.
 
Steven



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: 19 April 2005 14:58To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

Alistair:
 THiunk i fixed with the namespace 'clue', here is what I added to my  tag:
 
http://www.macromedia.com/2003/mxml" xmlns:iterationtwo="com.iterationtwo.containers.*">
now the next question? Why does that work, am i going to your server somewhere to get the correct namespace for the URI? if so then that won't do...I need to make sure that it is reading the swc that you provided on my box...
Craig
Alistair McLeod <[EMAIL PROTECTED]> wrote:
Hi,   //What goes here, do i do the same thing as a 'regular'tabnavigator? Yes, inside the definition above, you put the same containers you would putin the standard TabNavigator. I'm suspecting that you've not set thenamespace up correctly - what error is the compiler returning?Ali--Alistair McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office:  +44 (0)131 338 6108This e-mail and any associated attachments transmitted with it may containconfidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, an! d any
 copies of it, immediately.Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any virusestransmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] Comments: Tab Navigator with Tabs at BottomAlistair:    this component is being called from gvsStartA.mxmx Here is the code:http://www.macromedia.com/2003/mxml">      id="datagrid1" x="8" y="24" dataProvider="{thrustdata.thrusts}" rowCount="10" >          width="125" />    columnName="BusinessUnit" width="140" />    columnName="BusinessProgram" width="140" />    columnName="NeedTitle" widt! h="300"
 />    columnName="NeedValue" width="150" />            What goeshere, do i do the same thing as a 'regular' tabnavigator?      Yahoo! Groups Links


Do you Yahoo!?Plan great trips with Yahoo! Travel: Now over 17,000 guides! 
--No virus found in this incoming message.Checked by AVG Anti-Virus.Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/04/2005
--No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 19/04/2005__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 







Yahoo! Groups Links

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










RE: [flexcoders] Charting

2005-04-24 Thread Craig Newroth



I would like to see those also. let me know when they are up if you could please..
Craig
Matt Chotin <[EMAIL PROTECTED]> wrote:







I mailed Christophe to see if he can update it.  Unfortunately they changed the passwords on that machine so I can’t grab the data.
 
Matt
 




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 6:54 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Charting
 
Thats nice but I really want to see the structure of the xml filesused in the examples at macromedia.com.  Anyone from mm have these ?Rich__Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 







Yahoo! Groups Links

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










RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

2005-04-19 Thread Craig Newroth



then that makes perfect sense :-)thanks again, this will come in VERY handy!  and again thanks for Chapter 7(I bought the book several months ago, very helpful)Alistair McLeod <[EMAIL PROTECTED]> wrote:


Hi Craig,
 
That namespace is the package structure in which the AdvancedTabNavigator exists inside the SWC.
 
Ali
 



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


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: 19 April 2005 15:30To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

I have read the namespaces info in the docs, but the namespace that you give to use is, "com.iterationtwo.containers.*"...and that 'path' doesn't exist on my box...so i am wondering why that works?, or is that not a 'path' as it were..Alistair McLeod <[EMAIL PROTECTED]> wrote: 


Hi Craig,
 
No you're not going to our server - the namespace is simply an identifier - read up on namespaces in the Flex docs.
 
Cheers,
 
Ali
 



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


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: 19 April 2005 14:58To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

Alistair:
 THiunk i fixed with the namespace 'clue', here is what I added to my  tag:
 
http://www.macromedia.com/2003/mxml" xmlns:iterationtwo="com.iterationtwo.containers.*">
now the next question? Why does that work, am i going to your server somewhere to get the correct namespace for the URI? if so then that won't do...I need to make sure that it is reading the swc that you provided on my box...
Craig
Alistair McLeod <[EMAIL PROTECTED]> wrote:
Hi,   //What goes here, do i do the same thing as a 'regular'tabnavigator? Yes, inside the definition above, you put the same containers you would putin the standard TabNavigator. I'm suspecting that you've not set thenamespace up correctly - what error is the compiler returning?Ali--Alistair McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office:  +44 (0)131 338 6108This e-mail and any associated attachments transmitted with it may containconfidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, an! ! d any
 copies of it, immediately.Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any virusestransmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] Comments: Tab Navigator with Tabs at BottomAlistair:    this component is being called from gvsStartA.mxmx Here is the code:http://www.macromedia.com/2003/mxml">      id="datagrid1" x="8" y="24" dataProvider="{thrustdata.thrusts}" rowCount="10" >          width="125" />    columnName="BusinessUnit" width="140" />    columnName="BusinessProgram" width="140" />    columnName="NeedTitle" widt! !
 h="300" />

RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

2005-04-19 Thread Craig Newroth



I have read the namespaces info in the docs, but the namespace that you give to use is, "com.iterationtwo.containers.*"...and that 'path' doesn't exist on my box...so i am wondering why that works?, or is that not a 'path' as it were..Alistair McLeod <[EMAIL PROTECTED]> wrote:


Hi Craig,
 
No you're not going to our server - the namespace is simply an identifier - read up on namespaces in the Flex docs.
 
Cheers,
 
Ali
 



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


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Craig NewrothSent: 19 April 2005 14:58To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

Alistair:
 THiunk i fixed with the namespace 'clue', here is what I added to my  tag:
 
http://www.macromedia.com/2003/mxml" xmlns:iterationtwo="com.iterationtwo.containers.*">
now the next question? Why does that work, am i going to your server somewhere to get the correct namespace for the URI? if so then that won't do...I need to make sure that it is reading the swc that you provided on my box...
Craig
Alistair McLeod <[EMAIL PROTECTED]> wrote:
Hi,   //What goes here, do i do the same thing as a 'regular'tabnavigator? Yes, inside the definition above, you put the same containers you would putin the standard TabNavigator. I'm suspecting that you've not set thenamespace up correctly - what error is the compiler returning?Ali--Alistair McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office:  +44 (0)131 338 6108This e-mail and any associated attachments transmitted with it may containconfidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, an! d any
 copies of it, immediately.Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any virusestransmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] Comments: Tab Navigator with Tabs at BottomAlistair:    this component is being called from gvsStartA.mxmx Here is the code:http://www.macromedia.com/2003/mxml">      id="datagrid1" x="8" y="24" dataProvider="{thrustdata.thrusts}" rowCount="10" >          width="125" />    columnName="BusinessUnit" width="140" />    columnName="BusinessProgram" width="140" />    columnName="NeedTitle" widt! h="300"
 />    columnName="NeedValue" width="150" />            What goeshere, do i do the same thing as a 'regular' tabnavigator?      Yahoo! Groups Links


Do you Yahoo!?Plan great trips with Yahoo! Travel: Now over 17,000 guides! 
		Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we.







Yahoo! Groups Links

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










RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

2005-04-19 Thread Craig Newroth



Alistair:
 THiunk i fixed with the namespace 'clue', here is what I added to my  tag:
 
http://www.macromedia.com/2003/mxml" xmlns:iterationtwo="com.iterationtwo.containers.*">
now the next question? Why does that work, am i going to your server somewhere to get the correct namespace for the URI? if so then that won't do...I need to make sure that it is reading the swc that you provided on my box...
Craig
Alistair McLeod <[EMAIL PROTECTED]> wrote:
Hi,   //What goes here, do i do the same thing as a 'regular'tabnavigator? Yes, inside the definition above, you put the same containers you would putin the standard TabNavigator. I'm suspecting that you've not set thenamespace up correctly - what error is the compiler returning?Ali--Alistair McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office:  +44 (0)131 338 6108This e-mail and any associated attachments transmitted with it may containconfidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, and any
 copies of it, immediately.Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any virusestransmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] Comments: Tab Navigator with Tabs at BottomAlistair:    this component is being called from gvsStartA.mxmx Here is the code:http://www.macromedia.com/2003/mxml">      id="datagrid1" x="8" y="24" dataProvider="{thrustdata.thrusts}" rowCount="10" >          width="125" />    columnName="BusinessUnit" width="140" />    columnName="BusinessProgram" width="140" />    columnName="NeedTitle" width="300"
 />    columnName="NeedValue" width="150" />            What goeshere, do i do the same thing as a 'regular' tabnavigator?      Yahoo! Groups Links
		Do you Yahoo!? 
Plan great trips with Yahoo! Travel: Now over 17,000 guides!







Yahoo! Groups Links

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










RE: [flexcoders] Comments: Tab Navigator with Tabs at Bottom

2005-04-19 Thread Craig Newroth



when I run the file (the start file) i get this:
4 Errors found.  Error /gvs/displayGVSData.mxml:16 
The prefix "iterationtwo" for element "iterationtwo:AdvancedTabNavigator" is not bound.
and in the flex builder i get this:
Invalid xmxl code view. in the codeview pane; in the validation i get this:
the prefix 'iterationtwo' has not been mapped to any URI[xml]
Alistair McLeod <[EMAIL PROTECTED]> wrote:
Hi,   //What goes here, do i do the same thing as a 'regular'tabnavigator? Yes, inside the definition above, you put the same containers you would putin the standard TabNavigator. I'm suspecting that you've not set thenamespace up correctly - what error is the compiler returning?Ali--Alistair McLeodDevelopment Directoriteration::two[EMAIL PROTECTED]Office:  +44 (0)131 338 6108This e-mail and any associated attachments transmitted with it may containconfidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, and any
 copies of it, immediately.Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any virusestransmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of cnewroth55Sent: 19 April 2005 14:09To: flexcoders@yahoogroups.comSubject: [flexcoders] Comments: Tab Navigator with Tabs at BottomAlistair:    this component is being called from gvsStartA.mxmx Here is the code:http://www.macromedia.com/2003/mxml">      id="datagrid1" x="8" y="24" dataProvider="{thrustdata.thrusts}" rowCount="10" >          width="125" />    columnName="BusinessUnit" width="140" />    columnName="BusinessProgram" width="140" />    columnName="NeedTitle" width="300"
 />    columnName="NeedValue" width="150" />            What goeshere, do i do the same thing as a 'regular' tabnavigator?      Yahoo! Groups Links
		Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses.







Yahoo! Groups Links

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










Re: [flexcoders] how to make an object active?

2005-04-15 Thread Craig Newroth



thanks jester, that helped and thanks to Steven Webster's book, chapter 7 :-)
here is what worked and what I did...
 
  function changeOther( event )  {   if ( event.target == summaryCHB )detailCHB.enabled = !detailCHB.enabled;   if ( event.target == detailCHB )summaryCHB.enabled = !summaryCHB.enabled;  }  
                
Craig Newroth
JesterXL <[EMAIL PROTECTED]> wrote:
Check out the enabled property, almost all controls support this gem.radioButton.enabled = false;- Original Message - From: "cnewroth55" <[EMAIL PROTECTED]>To: Sent: Thursday, April 14, 2005 10:10 AMSubject: [flexcoders] how to make an object active?Here's a quickie that I am sure someone can answer pretty quickly; I have a radio group that has x number of items, and what I want to do is make a coulple of checkboxes either be greyed out (active) or in-active depending on which radiobutton a user clicks on; my code:if a user click on the first radiobutton I want the summary check box to be active and the detail check box to gey out...can reply to [EMAIL PROTECTED] or
 here...        groupName="thrustReportsGroup"  x="24" y="14" />            groupName="thrustReportsGroup"  x="24" y="74" />    groupName="thrustReportsGroup"  x="24" y="94" />    groupName="thrustReportsGroup"  x="24" y="114" />                   
   Yahoo! Groups Links
		Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site! 







Yahoo! Groups Links

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










Re: [flexcoders] Re: How to pass var to CFC when it is blank

2005-04-11 Thread Craig Newroth

thank, for this last one. I will tyr this...and I have
a solution that works, just don't have the code with
me here on home box. but you solution is more elegant
than mine was :-)
I will send my snippet when I get back to
workthanks again.
Craig

--- stevenkeys2003 <[EMAIL PROTECTED]> wrote:
> 
> Sorry for the separate posts All..
> but on the flex side.. you can employ validation
> multiple ways but one
> option is to combine:
> 
> requred="true" in your  run a  or
> other validator to
> help enforce that requirement -- gives a lot of
> visual cues to user..
>  
> don't enable submit until everything is filled out
> in every forminput or last run a
> change="myfunction()" 
> and in the function check for myfield.length > 0 or
> whatever to ensure
> everything is filled out.. if so enable the button.
> 
> -Steve
> 
> --- In flexcoders@yahoogroups.com, "stevenkeys2003"
> <[EMAIL PROTECTED]> wrote:
> > 
> > Craig, sounds like your cfarguments are set to
> required="true" in the
> > CFC.. you could do a default= in your cfargument 
> so that you can have
> > something in there always.
> > 
> > Also, confused as to why you're employing..
> > 
> > * on of the request inputs in the webservice
> call to the cfc;
> >
>
{TypeOfAction.selectedData}
> > 
> > You are doing your  with a defined
> > handler correct?
> > 
> >  > endpoint="http://mydomain/flashservices/gateway?h";
> > source="app.machii.model.FlexUser"
> showBusyCursor="true">
> >  > result="roCompanyUserInfoHandler(event.result)"/>
> >
> > 
> > -Steve
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "cnewroth55"
> <[EMAIL PROTECTED]> wrote:
> > > 
> > > I have a form that I have several fields on and
> I am sending them to a
> > > cfc for processing, however if any of the fields
> are blank then I get,
> > > "Required parameter '' not found in input
> arguements". How can I
> > > either validate the fields or allow them to be
> blank...
> > > here is a sample of one of the field(s):
> > > 
> > > 
> > >> > groupName="TypeOfAction" data="yes" />
> > >> > groupName="TypeOfAction" data="no" />
> > > 
> > > * on of the request inputs in the webservice
> call to the cfc;
> > >
>
{TypeOfAction.selectedData}
> > > 
> > > now if I don't check this radio box then I will
> get the error
> > > mentioned above...i have other fields that vary
> from radio buttons to
> > > text fields and if I don't fill them all in the
> I get that error. ANy
> > > idea on how to allow for blank or nulls?
> > > Craig Newroth
> > > The Boeing Company - STL
> 
> 
> 
> 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/


 
Yahoo! Groups Links

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

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

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





RE: [flexcoders] CFC's and Databinding in FLEX

2005-03-21 Thread Craig Newroth



Peter, Matt, and All;
doing what Mat Suggested and the same advice and Help from Mr. Hoyt at MM; the example that Matt gave was the solution;
{myRO.myMethod.result[0].givenname}
the final little clue was the "[0]" after the .result - as the object being returned was a single object, doing that then the column name allowed me to complete the binding to my control...
THANKS to all who responded...
Craig Newroth
Peter Farland <[EMAIL PROTECTED]> wrote:








What version of CF are you using?
 
 
 

-Original Message-From: Matt Chotin [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 2:01 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] CFC's and Databinding in FLEX

I'm not sure why caps would make a difference here.  Bind it without caps.
 
{myRO.myMethod.result[0].givenname} etc.
 
For the FlashPaperLoader.as, that would go in the same directory as your application mxml file (or in user_classes if you wanted it shared).
 
Matt
 




From: cnewroth55 [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 09, 2005 10:55 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] CFC's and Databinding in FLEX
 
I am using a cfc to make a call to one of our LDAP servers thatcontain info on our employees, I used the Netdebugger and can see thatI am getting data back, but it is not in the `usual' format (i.e whenI make a DB call in a CFC to one of my `regular' db's, typically I getthe datafields back in CAPS) , I am enclosing what the debugger`sees'. Now because I am not getting it back in CAPS then I cannotbind the result to anything...also this code is being used as a`component' and I can see the call to the Web service, but when I
 putit in it's own application framework, it doesn't work at allWhat the debugger sees; [array] : length[Number] : 1[0][object] : smallcaseID[String] : XXsmallcaseBuilding[String] : 33.3smallcaseClock[String] : MXXsmallcaseDisplayName[String] : Newroth, CraigsmallcaseMailCode[String] : S034-1060departmentNumber[String] : GT-XX-XXXgivenname[String] : Craiginitials[String] :
 mail[String] : [EMAIL PROTECTED]sn[String] : NewrothtelephoneNumber[String] : XXX-XXX-also, Matt Chotin wrote an item in one of the blogs on how to load aflashpaper swf into flex, exactly what I am trying to do with a filethat I converted to FlashPaper but am unsure as to where to put the.as file to make that work...the url for the thing Matt wrote:http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=117
		Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site! 







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

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










Re: [flexcoders] Macromedia Looking for Dynamic Flex Interfaces

2005-03-21 Thread Craig Newroth



Lucian:
    I sent you a zip file from my other email address:
[EMAIL PROTECTED]
Lucian Beebe <[EMAIL PROTECTED]> wrote:





Periodically, Macromedia asks for help from you, the Flex community. Recently, I’ve solicited your thoughts about components and printing. Its incredibly valuable to us. It helps us get the product right so it works the way you want it to. I can’t tell you how much direct impact you can have by getting involved. Every day, good, detailed messages make the rounds of our engineering teams. We often ask customers to speak about their projects. This is all very valuable. Please keep volunteering your opinions when we ask. 
 
Today, I’d like to ask for your help in looking for several examples of your great work on really creative user interfaces built in Flex. I’d love to talk to you if you have built application interfaces with multiple windows or with “pods” of content that appear and disappear with user action or grow and shrink with more or less data. Also interested if you use a lot of effects to choreograph your application interface state changes. We’re looking for examples of the more dynamic Flex application interfaces out there. They don’t have to be entirely successful, either. 
 
If you’ve got something like that or have been fighting to get it to work the way *you* want it to, I’d love to hear from you. We can work together to make it better. In return, we’ll offer a better system long term, some guidance on how to do it today, and a whole lot of gratitude. 
 
If you think you can help, please contact me off list and let’s talk.
 
Thank you
 
Lucian Beebe
Flex product manager
Macromedia 
		Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site! 







Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

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










Data Service Layer Client-Client Message Interception

2004-06-04 Thread Craig Bowman
I have been testing Flex SWFs embedded in PDF files against Flash 
SWFs embedded in same using arbitrated script messaging.

When a frame seek command is sent from the PDF to the embedded Flash 
SWF and the Flash SWF has a web service connector present, the Flash 
movie correctly processes the seek message as being a direct client-
client message. When the same frame seek command is sent from the 
PDF to the embedded Flex SWF which has a web service present it 
makes a response back to the PDF, generating a status message. The 
message can be seen in Acrobat 6 Editor. An enormous delay is 
essentially the result when doing even a simple arbitrated command 
like setting a basic TextArea component's text property as each 
character in the command stream gets a response from the Flex SWF.

Flash SWFs don't have this problem. The delay also show up with 
Remote Object data services in Flex SWFs using AMF messaging. Also 
no problem with AMF messaging present in Flash SWFs.

You can see what I mean by tring the following PDF with Adobe Reader 
6.0 and the current Flash Player. (Windows Platform only)

http://24.71.76.197:8080/flex/soapExample.pdf

Play around with the Flash portion first. Notice everything works 
lickety split. Then try the Flex portion. It delays everything when 
messaging from the PDF buttons. The Soap services themselves are not 
affected. Only commands going from the PDF to the Flex SWF from the 
PDF command buttons.

Any insight here would be helpful. Also remember that the 
significant delay only happens in the Flex SWFs when data services 
are present in the file. Although there is a modest delay even 
without the data services. (Flex about a second) No problem with 
Flash at all, only about 3-4 milliseconds lag time)

Craig