[Flashcoders] setGatewayURL & setDefaultGatwayURL

2007-04-20 Thread Andrew Kirkham
Can anyone tell me what the practical difference is between setGatewayURL and 
setDefaultGatewayURL? (Flash Remoting)  I can't discern any difference from the 
documentation.

I realise that the use of these methods is now deprecated. This is really just 
a matter of curiosity.

Regards
Andy
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] html vars and flash vars

2007-03-23 Thread Andrew Kirkham
Is this of use? (From Flash docs)

asfunction protocol
asfunction:function:Function, parameter:String

A special protocol for URLs in HTML text fields that allows an HREF link to 
call an ActionScript function. In HTML text fields, you can create links using 
the HTML A tag. The HREF attribute of the A tag contains a URL that uses a 
standard protocol such as HTTP, HTTPS, or FTP. The asfunction protocol is an 
additional protocol that is specific to Flash, which causes the link to invoke 
an ActionScript function.

(sorry I haven't quoted the original question, but I read it from the archive, 
so I wan't able to compose a direct reply)

Andy Kirkham
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Rearrange Fields between DataSet and DataGrid

2007-02-23 Thread Andrew Kirkham
I have a WebServiceConnector, a DataSet and a DataGrid.

I wish to display in the DataGrid only some of the fields that are read in by 
the WebServiceConnector, and I want the names displayed at the top of the 
columns to be different from the names used internally within the data. I have 
just discovered the Rearrange Fields formatter, and ostensibly it seems to be 
just what I need, applied on the binding into the DataGrid. Unfortunately I 
can't get it to work.

I can successfully bind WebServiceConnector.results-->DataGrid.dataProvider 
using a Rearrange Fields formatter.

I can successfully bind 
WebServiceConnector.results-->DataSet.dataProvider-->DataGrid.dataProvider 
without a formatter.

However, when I try to apply a Rearrange Fields formatter to the binding 
between the DataSet.dataProvider and DataGrid.dataProvider, the fields of the 
DataGrid are blank; the column names do appear, but they are the original 
names, not the new ones specified by the formatter.

(I have added to the schema of the DataSet the variables that are received from 
the WebServiceConnector).

I am aware that there are other techniques available to achieve what I want; my 
aim is to try to understand the component architecture and what it is capable 
of. I am hoping to accomplish this just by using the the tabs on the Component 
Inspector, without resort to ActionScript.

So what is the situation?
1. I am mistaken in expecting Rearrange Fields to work beween 
DataSet.dataProvider and DataGrid.dataProvider at all
2. It does work, but I haven't understood how to implement it properly.
3. It ought to work but it doesn't because of a defect in the components.

Can anyone help?

Thanks
Andy
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Selective display with XMLConnector, DataSet and DataGrid

2007-02-18 Thread Andrew Kirkham
I am learning about data integration and have completed the elementary "Dinner 
Menu" exercise at 
http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=0435.html
 .

The XML has a root node named , containing multiple nodes named 
, each of which contains nodes named , ,  and 
.

By means of XMLConnector, DataSet and DataGrid, this information is displayed 
in columns labelled "name", "price", "description" and "calories".

So far it is perfectly simple, but what I now want to modify the example to 
display only _selected_ columns in my DataGrid, for instance to read in the 
same XML but display only "name", "price" and "calories" in my DataGrid, 
omitting "description".  Nevertheless I don't want to discard "description"; I 
want to read it in with the other data, store it and make it available if the 
user requests it.

Can anybody suggest how I can do this, or direct me to any examples?

Thanks
Andy

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Transforming a MovieClip instance to monochrome

2007-01-24 Thread Andrew Kirkham
Is there a way of transforming a coloured MovieClip instance to monochrome 
(specifically grey scale) at run time? I want it to indicate that a control is 
disabled.

It seems a fairly elementary thing to do, so possibly I'm overlooking something 
quite obvious.

The ColorTransform class seems a likely method, but I'm not very knowledgable 
about the intricacies manipulating RGB values, and although I've spent some 
time adjusting various values I haven't acheived the result I want.

Regards
Andy KIrkham
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Using DepthManager in classes

2007-01-15 Thread Andrew Kirkham
I have recently been trying to start using DepthManager, and in some cases I 
have been successful, but I have a problem using it within a class.

This example causes the compiler to report "There is no method with the name 
'createChildAtDepth'"

/***/
import mx.managers.DepthManager;

class SubMovie extends MovieClip
{
  private var Square1:MovieClip;

   // Constructor
  private function SubMovie()
  {
  Square1 = createChildAtDepth("Square",DepthManager.kTop);
  }
 
}
/***/

If I can bypass the compiler's error checking, the code does in fact work, for 
instance by invoking createChildAtDepth() like this:

Square1 = this["createChildAtDepth"].call(this,"Square",DepthManager.kTop);

However I feel it is bad practice to make something work by fooling the 
compiler and I'm wondering if there is a proper way to inform the compiler that 
createChildAtDepth() has been added to MovieClip's prototype.

I have tried  DepthManager(this).createChildAtDepth("Square",DepthManager.kTop);
andUIObject(this).createChildAtDepth("Square",DepthManager.kTop);

Although both of them compile without complaint, they both fail at runtime.

I know I can also avoid the problem by making my class extend UIObject instead 
of MovieClip, so this query is scarcely urgent; but the fact that my original 
method failed suggests there is a gap in my understanding of Actionscript 
fundamentals (or that the documentation of DepthManager is misleading), so I'd 
be grateful if anyone can advise me.

Regards
Andy Kirkham

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com