[flexcoders] Creating a dynamic search interfaces - strategies and suggestions

2009-03-05 Thread David Adams
I'm experimenting with creating a dynamic search interface and am
wondering about the most effective strategy to use in Flex. I'm
ignorant enough about Flex that I'd guess some of my ideas won't make
sense so I'm hoping to get feedback that will save me from chasing
down too many dead ends.

For this experiment, I'm creating an interface like the Finder's
search in OS X. You start of with one search term and then can add as
many as you like - each on its own 'line'. For those of you that don't
know what this interface looks like, you get a series of (Drop-downs)
static text and [Entry Areas] along with a (-) ad (+) button to add or
remove terms.

(Kind) is (Any) (-) (+)  Where (Kind) can be "Kind", 
"Last
opened date", "Last modified data", and so on and (Any) can be
"Applications", "Folders", "Documents", "PDF" and so on. Depending on
the choice you make - the related options change. For example:

(Created date) is (within last) [  ]  (days) (-) (+) The
exact details aren't too important - the main thing is that:

* You can add any number of 'rows'.

* The type (kind) of query determines what objects appear in the row
and what they contain. (The entry and drop-down contents are driven by
the type.)

* When you add (+) or remove (-) a row, the rest of the objects on
screen move or resize automatically.

This isn't the exact interace I need, but it's a good enough starting
point. Once all of the entries are completed, I'd like to package them
up and send them off magically somewhere for processing using an HTTP
post.

Key point: I'd like some of the options to be data-driven from a
server. For example, the styles of comparison or the kind of searches
may not be something I know until runtime.

If anyone is still reading, and with all of that in mind, I'm
imagining there are a few ways to build this:

* Build one MXML component that has all of the various objects,
presumably wrapped inside of an HBox or Canvas. -- The dynamic values
(popups and so on) are assigned/modified using ActionScript. -- The
objects that should be shown/hidden are configured using AS.

* Build an AS class for SearchRow and pass into the constructor
whatever values are needed to set defaults.

* Build an AS class with a pretty nearly empty constructor and then
assign the various dynamic values from the code that creates the
object.

Since I want to package up all of the various settings, what I need to
be able to do is iterate over the 'rows' or handle them as an array of
objects. Given that, I'd be grateful for suggestions on the most
effective way to manage storing/return references to the objects.

Thanks in advance for any help or suggestions!


Re: [flexcoders] Re: Compressing messages/data: What binary/compression formats are workable in Flex?

2009-03-05 Thread David Adams
On Fri, Mar 6, 2009 at 5:31 PM, Guy Morton  wrote:
> You've still managed to avoid telling us about your back-end setup.
>
> Tell us more about that and we could probably be of more assistance. No good
> me suggesting stuff that works for apache on linux to find that you're
> running openVMS...

Sorry, I'm not meaning to be difficult. The server definitely does not
support AMF and will not any sooner than...not this year. That's why
I've been exploring alternative. Plus, I've spent some insane amount
of time over the last ten years studying messages on the wire and can
get a bit obsessive (read 'stupid') about sorting out message sizes
and round-trip times. I'm hoping to build up a pretty good list of
techniques/technologies to compare and put into a test harness. I
figure I'll end up using Charles to emulate different relevant
bandwidth constraints and it's easy enough to try various payload
sizes + encoding time + decoding times.


Re: [flexcoders] Re: Compressing messages/data: What binary/compression formats are workable in Flex?

2009-03-05 Thread Guy Morton

You've still managed to avoid telling us about your back-end setup.

Tell us more about that and we could probably be of more assistance.  
No good me suggesting stuff that works for apache on linux to find  
that you're running openVMS...



On 06/03/2009, at 4:12 PM, David Adams wrote:

On Fri, Mar 6, 2009 at 11:55 AM, Guy Morton   
wrote:


> JSON isn't binary but is more compact than XML. OTOH, parsing it  
may not be

> as quick as XML.

I haven't tested it yet in the Flash player but the post I linked to
earlier claimed String.split (native to the player) is considerably
faster than the native XML parser - at least in some cases. That's not
hard to imagine, really. Either JSON or XML are text - both of which
should benefit - even quite dramatically - from compression.

> I wouldn't be manually zipping and unzipping data - a better idea  
would be
> to enable GZIP on the web server and let the browser do the work  
(not that

> that is trouble-free but still...).

That sounds great and I'd like to pursue this as a few other people
have made the same observation. In my tests, the gzipping wasn't
happing in the browser prior to the data being loaded into the Flash
player. I set the MIME type on the server to "application/gzip" or
similar (I looked up the correct-sounding type at the time.)

Can anyone point me to a working example of gzipping working
'passively' but effectively? Namely, that the Flash player gets
uncompressed data even though the server sends the data compressed.
That would be ideal.

> Here: 
http://www.jamesward.com/blog/2007/12/12/blazebench-why-you-want-amf-and-blazeds/
> That should help you see what combinations are fast.

Thanks - it's a great article. The author mentions gzipping but I
haven't found the specifics. I suspect he's comparing processes
without any compression.






RE: [flexcoders] Re: LCDS Upgrade Problems

2009-03-05 Thread Jeff Vroom
I think this is maybe a problem with the version of hibernate you are using.   
As part of this simplified configuration feature, the assembler is going into 
the metadata for hibernate and it seems like the protection-level on that 
method has changed or is different in the version you are using than the one we 
compiled against.   We are using 3.2.5 I believe.

You should not need to change any configuration as it is compatible with the 
old format.   You can remove the metadata section entirely and it will generate 
the id properties and lazy=true associations for each hibernate association.
You can then add assoc tags as needed to change the defaults.Any associated 
destinations which are not defined are not directly accessible via clients 
though they are created so you don't have to declare all destinations in your 
model - just the ones you use fill or getItem calls on.

Back to the original error, I guess the other spring configuration you were 
using was generating some proxy class which did not extend HibernateAssembler?  
 What version of spring are you using?

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of foobone9
Sent: Thursday, March 05, 2009 6:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: LCDS Upgrade Problems


That is correct; I have a destination who's source is a derived object of 
HibernateAssembler (Just to shutoff autoRefreshFill). My assember is then a 
bean in the Spring container.

Obviously something is wrong with this bean because if I force CGLib proxies in 
my container (to avoid the proxy cast error; even though my derived assembler 
implements an interface) I get the following error:

17:45:18,606 ERROR [STDERR]  MessageBrokerServlet failed to initialize due 
to runtime exception: Error: java.lang.IllegalAccessError: tried to access 
method 
org.hibernate.persister.entity.AbstractEntityPersister.getEntityMetamodel()Lorg/hibernate/tuple/entity/EntityMetamodel;
 from class flex.data.assemblers.HibernateType
at flex.data.assemblers.HibernateType.start(HibernateType.java:247)
at flex.data.assemblers.HibernateAssembler.start(HibernateAssembler.java:216)

Would I need to update my data-management-config.xml file for 2.6? I am under 
the impression that it can be greatly simplified (from 2.5.1 config) by 
removing the hibernate object mappings; but it doesn't need to for backward 
compatibility.

I am using hibernate config files, not annotations, and an example destination 
I have (one with no relationships) is:




spring
TestCycleBean
true
application




0





com.xxx.ics.dto.TestCycle
PROPERTY
OBJECT

fill
java.util.List


false
true








and the simple bean definition is:



I commented everything else out in my data-management-config.xml.

--- In flexcoders@yahoogroups.com, Jeff 
Vroom  wrote:
>
> I am thinking your spring configuration must be wrapping the 
> HibernateAssembler in a proxy. The code is getting an error here:
>
> HibernateAssembler assembler = (HibernateAssembler) 
> destination.getFactoryInstance().lookup();
>
> when trying to use the factory to get the assembler component from the 
> destination. Usually when you generate a proxy though, it would extend the 
> class being proxied? Does that make sense as to what is going on? Maybe we 
> need to unwrap that proxy in the SpringFactory...
>
> I should also have mentioned, the source for the hibernate assembler is in 
> the product. It in resources/samples/assemblers in 
> flex-messaging-dist-src.zip.
>
> Jeff
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of foobone9
> Sent: Thursday, March 05, 2009 1:39 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: LCDS Upgrade Problems
>
>
> Actually, as it turns out now, I had reverted back to the version on Adobe 
> Exchange thinking it was a newer version because I was having the following 
> problem (with what I now know is the newest SpringFactory):
>
> 13:32:44,873 INFO [STDOUT] [Flex]MessageBroker failed to start: Exception: 
> java.lang.ClassCastException: $Proxy53 cannot be cast to 
> flex.data.assemblers.HibernateAssembler
> at flex.data.assemblers.HibernateType.start(HibernateType.java:237)
> at flex.data.assemblers.HibernateAssembler.start(HibernateAssembler.java:216)
>
> --- In 
> flexcoders@yahoogroups.com,
>  Jeff Vroom  wrote:
> >
> > I think the problem is that the HibernateAssembler.initialize is not 
> > getting called. If you are using the SpringFactory you probably just need a 
> > new version of that. I tried putting this up on the adobe component 
> > exchange a long time ago but apparently it never made it as I just checked 
> > and they still have the old version. I'll try to get that resolved but in

[flexcoders] dispatching data from remote object cfc query in an event.

2009-03-05 Thread stinasius
hi how can i dispatch data from a remote object call to a cfc query in an event.



RE: [flexcoders] HorizontalList ItemRnderers Mysterious Horizontal Gap

2009-03-05 Thread Alex Harui
Try: paddingLeft/Right/Top/Bottom = 0

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of adamduro
Sent: Thursday, March 05, 2009 3:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HorizontalList ItemRnderers Mysterious Horizontal Gap


I'm trying to develop a UI piece that consists of a HorizontalList using an 
Image control as an ItemRenderer.

Here is the code:

http://pastie.org/408846

For the life of me I cannot figure out how to get rid of a single pixel gap 
that gets put around each Image control. I've debugged a bit, and found out 
that even though the source image is 126px, and I've set the columnWidth to 
126px, Flex is shrinking the Image control to 124px.

I understand that if there was no gap, you would not be able to see the roll 
over tile, but that's my point. I want a continuous strip of images.

Anyone got any idea what is going on here?



Re: [flexcoders] Re: Compressing messages/data: What binary/compression formats are workable in Flex?

2009-03-05 Thread David Adams
On Fri, Mar 6, 2009 at 11:55 AM, Guy Morton  wrote:

> JSON isn't binary but is more compact than XML. OTOH, parsing it may not be
> as quick as XML.

I haven't tested it yet in the Flash player but the post I linked to
earlier claimed String.split (native to the player) is considerably
faster than the native XML parser - at least in some cases. That's not
hard to imagine, really. Either JSON or XML are text - both of which
should benefit - even quite dramatically - from compression.

> I wouldn't be manually zipping and unzipping data - a better idea would be
> to enable GZIP on the web server and let the browser do the work (not that
> that is trouble-free but still...).

That sounds great and I'd like to pursue this as a few other people
have made the same observation. In my tests, the gzipping wasn't
happing in the browser prior to the data being loaded into the Flash
player. I set the MIME type on the server to "application/gzip" or
similar (I looked up the correct-sounding type at the time.)

Can anyone point me to a working example of gzipping working
'passively' but effectively? Namely, that the Flash player gets
uncompressed data even though the server sends the data compressed.
That would be ideal.

> Here: http://www.jamesward.com/blog/2007/12/12/blazebench-why-you-want-amf-and-blazeds/
> That should help you see what combinations are fast.

Thanks - it's a great article. The author mentions gzipping but I
haven't found the specifics. I suspect he's comparing processes
without any compression.


[flexcoders] Re: how to close a titlewindow that was not created as a popup

2009-03-05 Thread stinasius
care to share how?



RE: [flexcoders] Re: Web service, parameters, errors... Help please

2009-03-05 Thread Tracy Spratt
First and foremost, we must know: what is the name of the operation/method
of the web service, and what are the parameters names and datatypes.  I am
not good enough at reading wsdls to offer to analyze yours, but you can
probably figure it out, or find some documentation.

 

For instance, where did you come up with the string,
'Find__CompIntfc__DL_TREE_IB_CI"?

 

Next, decide whether you want to do the whole thing in AS or not.  I often
declare the web service in mxml, then manipulate it in AS.  

 

No, "new GetInfo()"  would not be correct.  Declaring the WebService in
mxml, or calling "loadWSDL" automatically makes the operations/methods
available to the web service instance, no need to "new".

 

Here is a simple example that might help:

http://www.cflex.net/showfiledetails.cfm?ObjectID=223

 

Tracy

 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim
Sent: Thursday, March 05, 2009 11:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Web service, parameters, errors... Help please

 

Tracy,

> The value you want to pass needs to be in the text node, not in an
> attribute. Something like:
> 
> X

The above line won't work; it gets the error message about 
"Initializer for 'Find__CompIntfc__DL_TREE_IB_CI'; values of type
com.draper.Find__CompIntfc__DL_TREE_IB_CITypeShape cannot be represented as
text." with or without quotes.

I wonder if you would be willing to help me flesh out the function path (As
I said, I'm pretty new to this, both Flex and ActionScript).

private function betterway (): void
{
var myService:GetInfo = new GetInfo();(is that right for myService?) 
var sValue:String = "something";
var oRequest:Object ={ Find__CompIntfc__DL_TREE_IB_CI : sValue };

myService.send();

If I try this, I get an error that there is no send() method for GetInfo. If
I switch it to 
myService.findID(oRequest)
I get an error that type Object is being coerced to "possibly unrelated type
com.draper:Find__CompIntfc__DL_TREE_IB_CITypeShape."

Thanks for any light you can shed.

> 
> 
> 
> 
> 
> Also, this declarative syntax is hard to debug. I suggest invoking your
> call in an as function:
> 
> var sValue:String = "X":
> 
> var oRequest:Object ={ Find__CompIntfc__DL_TREE_IB_CI : sValue };
> 
> myService.send(oRequest);
> 
> 
> 
> Tracy
> 
> 
> 
> _ 
> 
> From: flexcod...@yahoogro  ups.com
[mailto:flexcod...@yahoogro  ups.com]
On
> Behalf Of Jim
> Sent: Thursday, March 05, 2009 8:57 AM
> To: flexcod...@yahoogro  ups.com
> Subject: [flexcoders] Web service, parameters, errors... Help please
> 
> 
> 
> I'm new to Flex and web services. I've created a web service in PeopleSoft
> and successfully imported the WSDL into Flex so that it has contacted the
PS
> server and returned data (using mx:WebService and mx:Operation code I
found
> examples of). However, I have been unable to pass a parameter to the
service
> from Flex using that code. I then discovered and followed the sample code
in
> the Flex-generated package, but no matter what I do I cannot successfully
> supply the "myValue" in the sample shown below. Here is Flex's own text in
> my GetInfo.as file built by Flex:
> 
> * MXML sample code:
> * First you need to map the package where the files were generated to a
> namespace, usually on the  tag, like this:
> xmlns:ws="com.draper.*"
> * Define the service and within its tags set the request wrapper for the
> desired operation
> * 
> *  Find__CompIntfc__DL_TREE_IB_CI=myValue/>
> * 
> * 
> * Then call the operation for which you have set the request wrapper value
> above, like this:
> *  click="myService.FindID_send()" />
> 
> My code is:
> 
>  Find__CompIntfc__DL_TREE_IB_CI="X"/>
> 
> 
> 
> When I try to run it, Flex is unhappy with the value I am assigning ("X"
> above) no matter what I put there. If I omit the double quotes and try to
> assign a text input field value (which is my goal here), it complains that
> it expects a double quote. If I put almost anything else there, it
complains
> either:
> 
> Initializer for 'Find__CompIntfc__DL_TREE_IB_CI'; values of type
> com.draper.Find__CompIntfc__DL_TREE_IB_CITypeShape cannot be represented
as
> text.
> 
> or, if I try this line, where I attempt to pass a text input field:
> 
> 
> 
> then I get:
> 
> 1067: Implicit coercion of a value of type String to an unrelated type
> com.draper:Find__CompIntfc__DL_TREE_IB_CITypeShape
> 
> Can anyone help with this please?
> 
> Thanks
> 
> Jim
>





[flexcoders] Re: LCDS Upgrade Problems

2009-03-05 Thread foobone9
That is correct; I have a destination who's source is a derived object of 
HibernateAssembler (Just to shutoff autoRefreshFill). My assember is then a 
bean in the Spring container.

Obviously something is wrong with this bean because if I force CGLib proxies in 
my container (to avoid the proxy cast error; even though my derived assembler 
implements an interface) I get the following error:

17:45:18,606 ERROR [STDERR]  MessageBrokerServlet failed to initialize due 
to runtime exception:   Error: java.lang.IllegalAccessError: tried to access 
method 
org.hibernate.persister.entity.AbstractEntityPersister.getEntityMetamodel()Lorg/hibernate/tuple/entity/EntityMetamodel;
 from class flex.data.assemblers.HibernateType
at flex.data.assemblers.HibernateType.start(HibernateType.java:247)
at 
flex.data.assemblers.HibernateAssembler.start(HibernateAssembler.java:216)


Would I need to update my data-management-config.xml file for 2.6? I am under 
the impression that it can be greatly simplified (from 2.5.1 config) by 
removing the hibernate object mappings; but it doesn't need to for backward 
compatibility. 

I am using hibernate config files, not annotations, and an example destination 
I have (one with no relationships) is:

  


spring
TestCycleBean
true
application




0





com.xxx.ics.dto.TestCycle
PROPERTY
OBJECT
   
fill
java.util.List


false
true








and the simple bean definition is:




I commented everything else out in my data-management-config.xml.


--- In flexcoders@yahoogroups.com, Jeff Vroom  wrote:
>
> I am thinking your spring configuration must be wrapping the 
> HibernateAssembler in a proxy.   The code is getting an error here:
> 
> HibernateAssembler assembler = (HibernateAssembler) 
> destination.getFactoryInstance().lookup();
> 
> when trying to use the factory to get the assembler component from the 
> destination.   Usually when you generate a proxy though, it would extend the 
> class being proxied?Does that make sense as to what is going on?   Maybe 
> we need to unwrap that proxy in the SpringFactory...
> 
> I should also have mentioned, the source for the hibernate assembler is in 
> the product.   It in resources/samples/assemblers in 
> flex-messaging-dist-src.zip.
> 
> Jeff
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of foobone9
> Sent: Thursday, March 05, 2009 1:39 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: LCDS Upgrade Problems
> 
> 
> Actually, as it turns out now, I had reverted back to the version on Adobe 
> Exchange thinking it was a newer version because I was having the following 
> problem (with what I now know is the newest SpringFactory):
> 
> 13:32:44,873 INFO [STDOUT] [Flex]MessageBroker failed to start: Exception: 
> java.lang.ClassCastException: $Proxy53 cannot be cast to 
> flex.data.assemblers.HibernateAssembler
> at flex.data.assemblers.HibernateType.start(HibernateType.java:237)
> at flex.data.assemblers.HibernateAssembler.start(HibernateAssembler.java:216)
> 
> --- In flexcoders@yahoogroups.com, Jeff 
> Vroom  wrote:
> >
> > I think the problem is that the HibernateAssembler.initialize is not 
> > getting called. If you are using the SpringFactory you probably just need a 
> > new version of that. I tried putting this up on the adobe component 
> > exchange a long time ago but apparently it never made it as I just checked 
> > and they still have the old version. I'll try to get that resolved but in 
> > the meantime, I put up a copy of the new source file here:
> >
> > http://www.jvroom.com/SpringFactory.java
> >
> > Jeff
> >
> > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com] On 
> > Behalf Of foobone9
> > Sent: Thursday, March 05, 2009 11:34 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] LCDS Upgrade Problems
> >
> >
> > I am upgrading LCDS from 2.5.1 to 2.6. I have quite a few assemblers that 
> > extend the Hibernate assembler and use the Spring factory.
> >
> > On start up the MessageBroker is croaking because of a Null pointer 
> > exception in HibernateAssembler line 211. Is the Hibernate assembler code 
> > provided in 2.6 as it previously was? (I didn't see it in the install) Has 
> > anyone seen this problem or know of any thing to try?
> >
>




Re: [flexcoders] Re: Compressing messages/data: What binary/compression formats are workable in Flex?

2009-03-05 Thread Guy Morton
I find it hard to believe you are running a back end that's incapable  
of sending AMF. I thought perl was problematic for AMF...but even it  
has a solution that works...so what *are* you using on the backend?  
You running a VAX machine or something? :-)


JSON isn't binary but is more compact than XML. OTOH, parsing it may  
not be as quick as XML.


I wouldn't be manually zipping and unzipping data - a better idea  
would be to enable GZIP on the web server and let the browser do the  
work (not that that is trouble-free but still...).


Here: 
http://www.jamesward.com/blog/2007/12/12/blazebench-why-you-want-amf-and-blazeds/

That should help you see what combinations are fast.

Guy


On 06/03/2009, at 8:31 AM, David Adams wrote:

On Fri, Mar 6, 2009 at 12:48 AM, valdhor  
 wrote:

> What kind of server do you have?
>
> I was fairly sure there was an implementation of AMF for every  
server out

> there.

Nope. I can bolt in zip/unzip and a JSON encoder/decoder - but not  
AMF.


Speaing of which, I think I've asked my question badly enough that no
one thought to suggest JSON. I guess my most general question is:

"What techniques can I explore for reducing message sizes that work
efficiently in Flex?"

As I understand it:
-- AMF is native & fast.
-- JSON is not native & I'm not sure how fast it is.
-- XML is native and relatively fast...for XML.
-- Unzipping is native and fast...but not many methods are supported.
-- Custom binary protocols are fine as long as I draw the data down
into a general object or ByteArray and then parse it myself. Of
course, that means the parser is running in ActionScript - not code
compiled into the player.

Any other ideas?

Thanks, as always, for any suggestions.






[flexcoders] Re: Problem in sorting XMLList collection as a dataProvider for the list

2009-03-05 Thread foobone9

There is a nice example in the Sort class documentation:

http://livedocs.adobe.com/flex/3/langref/mx/collections/Sort.html#compareFunction

--- In flexcoders@yahoogroups.com, crazy developer  wrote:
>
> Hi Thanks for replying
> What does we mean by custom sort compare function, Can we provide any
> examples of both sort and sort compare functions or little more details
> about what and how does we do that?
> Thanks much fro your help
> 
> 
> 
> On Thu, Mar 5, 2009 at 11:24 AM, Alex Harui  wrote:
> 
> >If you have a labelfunction, you'll probably need a custom sortcompare
> > function
> >
> >
> >
> > Alex Harui
> >
> > Flex SDK Developer
> >
> > Adobe Systems Inc. 
> >
> > Blog: http://blogs.adobe.com/aharui
> >
> >
> >
> > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> > Behalf Of *anuj181
> > *Sent:* Wednesday, March 04, 2009 3:51 PM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Problem in sorting XMLList collection as a
> > dataProvider for the list
> >
> >
> >
> > Hi Guys
> >
> > I am trying to sort the xmllist collection which is the dataprovider for
> > the list. As the implementation of name-value pairs, i am displaying the
> > entries in form of string in List and would like to sort all the data
> > displayed in the List alphabetically, I am making a call through amfphp call
> > to grab data from backend and populate XMLListCollection but now I need to
> > sort the data in the list. Below is the code,Can anyone please help me where
> > I am messing things up. Also please let me know if there is any question
> > regarding the code and if there is better way of doing it.
> >
> > Thanks
> >
> > /**CODE/
> >
> > 
> >  > fault="getListFault(event);"/>
> > 
> >
> > [Bindable] private var entriesXmlListFull:XMLList;
> > [Bindable] private var entriesXmlCollection:XMLListCollection;
> >
> >
> > public function getListHandler(event:ResultEvent):void
> > {
> >
> > entriesXmlListFull = XML(event.result).device;
> > populateEntries();
> > }
> > private function getListFault(event:FaultEvent):void
> > {
> > Alert.Show("Error retreiving Data");
> > }
> >
> > //Displaying names need to be displayed in the List box
> > private function entriesLabelFunc(item:Object):String
> > {
> > var xmlItem:XML = item as XML;
> >
> > return xmlItem..attribute.(@name=="friendlyname");
> > }
> >
> > //Populating List with XML Objects
> > private function populateEntries():void
> > {
> > entriesXmlCollection = new XMLListCollection();
> >
> > for each(var item:XML in entriesXmlListFull)
> > {
> >
> > var friendlyName:String = item..attribute.(@name=="friendlyname");
> > //Only add camera type
> > if ( !recordValue && hasFriendlyName && (itemType.toUpperCase() ==
> > "CAMERA") )
> > {
> > entriesXmlCollection.addItem(item);
> > }
> > }
> >
> > //Calling Sort on XMLList collection
> > entriesXmlCollection.sort = sortList;
> > entriesXmlCollection.refresh();
> >
> >
> > }
> >
> >
> > 
> > 
> > 
> > 
> > 
> >
> >  > labelFunction="entriesLabelFunc"/>
> >
> >   
> >
>




Re: [flexcoders] Re: Compressing messages/data: What binary/compression formats are workable in Flex?

2009-03-05 Thread David Adams
On Mon, Mar 2, 2009 at 2:34 AM, Amy  wrote:

> Plain text.

Further to this suggestion, I just stumbled across a note from 2007
that claims String.split is about 10x faster than the XML parser -
making delimited ASCII a good solution for (as an example)
transferring name-value pairs:

http://onflash.org/ted/2007/11/apis-with-delimited-ascii-text-vs-xml.php

As noted, gzip compression can reduce the overall message size.

I'm looking forward to the moment when I finally test and compare
various solutions - I'll post results whenever I've got them.


Re: [flexcoders] Problem in sorting XMLList collection as a dataProvider for the list

2009-03-05 Thread crazy developer
Hi Thanks for replying
What does we mean by custom sort compare function, Can we provide any
examples of both sort and sort compare functions or little more details
about what and how does we do that?
Thanks much fro your help



On Thu, Mar 5, 2009 at 11:24 AM, Alex Harui  wrote:

>If you have a labelfunction, you’ll probably need a custom sortcompare
> function
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. 
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *anuj181
> *Sent:* Wednesday, March 04, 2009 3:51 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Problem in sorting XMLList collection as a
> dataProvider for the list
>
>
>
> Hi Guys
>
> I am trying to sort the xmllist collection which is the dataprovider for
> the list. As the implementation of name-value pairs, i am displaying the
> entries in form of string in List and would like to sort all the data
> displayed in the List alphabetically, I am making a call through amfphp call
> to grab data from backend and populate XMLListCollection but now I need to
> sort the data in the list. Below is the code,Can anyone please help me where
> I am messing things up. Also please let me know if there is any question
> regarding the code and if there is better way of doing it.
>
> Thanks
>
> /**CODE/
>
> 
>  fault="getListFault(event);"/>
> 
>
> [Bindable] private var entriesXmlListFull:XMLList;
> [Bindable] private var entriesXmlCollection:XMLListCollection;
>
>
> public function getListHandler(event:ResultEvent):void
> {
>
> entriesXmlListFull = XML(event.result).device;
> populateEntries();
> }
> private function getListFault(event:FaultEvent):void
> {
> Alert.Show("Error retreiving Data");
> }
>
> //Displaying names need to be displayed in the List box
> private function entriesLabelFunc(item:Object):String
> {
> var xmlItem:XML = item as XML;
>
> return xmlItem..attribute.(@name=="friendlyname");
> }
>
> //Populating List with XML Objects
> private function populateEntries():void
> {
> entriesXmlCollection = new XMLListCollection();
>
> for each(var item:XML in entriesXmlListFull)
> {
>
> var friendlyName:String = item..attribute.(@name=="friendlyname");
> //Only add camera type
> if ( !recordValue && hasFriendlyName && (itemType.toUpperCase() ==
> "CAMERA") )
> {
> entriesXmlCollection.addItem(item);
> }
> }
>
> //Calling Sort on XMLList collection
> entriesXmlCollection.sort = sortList;
> entriesXmlCollection.refresh();
>
>
> }
>
>
> 
> 
> 
> 
> 
>
>  labelFunction="entriesLabelFunc"/>
>
>   
>


[flexcoders] Re: Scale To Fit

2009-03-05 Thread foobone9

The developer's guide regarding layout & sizing:

http://livedocs.adobe.com/flex/3/html/help.html?content=size_position_2.html

--- In flexcoders@yahoogroups.com, "pliechty"  wrote:
>
> Does Flex have a scale to fit mechanism?  I would like to scale a component 
> to fit in the visible screen space.
>




[flexcoders] Re: Scale To Fit

2009-03-05 Thread Bjorn Schultheiss
I've got a measuring class to do it.

Scale to fit, fill, stretch and center.
it return a matrix of the values.




--- In flexcoders@yahoogroups.com, "pliechty"  wrote:
>
> Does Flex have a scale to fit mechanism?  I would like to scale a component 
> to fit in the visible screen space.
>




RE: [flexcoders] Re: LCDS Upgrade Problems

2009-03-05 Thread Jeff Vroom
I am thinking your spring configuration must be wrapping the HibernateAssembler 
in a proxy.   The code is getting an error here:

HibernateAssembler assembler = (HibernateAssembler) 
destination.getFactoryInstance().lookup();

when trying to use the factory to get the assembler component from the 
destination.   Usually when you generate a proxy though, it would extend the 
class being proxied?Does that make sense as to what is going on?   Maybe we 
need to unwrap that proxy in the SpringFactory...

I should also have mentioned, the source for the hibernate assembler is in the 
product.   It in resources/samples/assemblers in flex-messaging-dist-src.zip.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of foobone9
Sent: Thursday, March 05, 2009 1:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: LCDS Upgrade Problems


Actually, as it turns out now, I had reverted back to the version on Adobe 
Exchange thinking it was a newer version because I was having the following 
problem (with what I now know is the newest SpringFactory):

13:32:44,873 INFO [STDOUT] [Flex]MessageBroker failed to start: Exception: 
java.lang.ClassCastException: $Proxy53 cannot be cast to 
flex.data.assemblers.HibernateAssembler
at flex.data.assemblers.HibernateType.start(HibernateType.java:237)
at flex.data.assemblers.HibernateAssembler.start(HibernateAssembler.java:216)

--- In flexcoders@yahoogroups.com, Jeff 
Vroom  wrote:
>
> I think the problem is that the HibernateAssembler.initialize is not getting 
> called. If you are using the SpringFactory you probably just need a new 
> version of that. I tried putting this up on the adobe component exchange a 
> long time ago but apparently it never made it as I just checked and they 
> still have the old version. I'll try to get that resolved but in the 
> meantime, I put up a copy of the new source file here:
>
> http://www.jvroom.com/SpringFactory.java
>
> Jeff
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of foobone9
> Sent: Thursday, March 05, 2009 11:34 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] LCDS Upgrade Problems
>
>
> I am upgrading LCDS from 2.5.1 to 2.6. I have quite a few assemblers that 
> extend the Hibernate assembler and use the Spring factory.
>
> On start up the MessageBroker is croaking because of a Null pointer exception 
> in HibernateAssembler line 211. Is the Hibernate assembler code provided in 
> 2.6 as it previously was? (I didn't see it in the install) Has anyone seen 
> this problem or know of any thing to try?
>

<><>

[flexcoders] Scale To Fit

2009-03-05 Thread pliechty
Does Flex have a scale to fit mechanism?  I would like to scale a component to 
fit in the visible screen space.



[flexcoders] HorizontalList ItemRnderers Mysterious Horizontal Gap

2009-03-05 Thread adamduro
I'm trying to develop a UI piece that consists of a HorizontalList using an 
Image control as an ItemRenderer.

Here is the code:

http://pastie.org/408846

For the life of me I cannot figure out how to get rid of a single pixel gap 
that gets put around each Image control. I've debugged a bit, and found out 
that even though the source image is 126px, and I've set the columnWidth to 
126px, Flex is shrinking the Image control to 124px.

I understand that if there was no gap, you would not be able to see the roll 
over tile, but that's my point. I want a continuous strip of images.

Anyone got any idea what is going on here? 



Re: [flexcoders] [Tree][move scrollbar to selectedIndex] how to ?

2009-03-05 Thread Fotis Chatzinikos
Solved :-)

Use verticalscrollposition to reposition the bar to the selectedindex (or
minus a couple lines to center it as well)

On Thu, Mar 5, 2009 at 7:05 PM, fotis.chatzinikos <
fotis.chatzini...@gmail.com> wrote:

>   Hello everybody,
> after much search on programatically opening a tree node, openItems,
> selectedIndex, and calllater magic, I managed to open AND select a node deep
> inside an mx:tree.
>
> The problem? this node might be lower in the tree than is visible
> (scrollbars appear as needed).
>
> Any ideas how to move the scrollbar where the selected node is?
>
> TIA,
> Fotis
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] Re: DataGrid ItemRenderers and display text highlighted search text.

2009-03-05 Thread foobone9
You'll want to work from the item renderer up; not from the data down:

http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html

--- In flexcoders@yahoogroups.com, "Todd"  wrote:
>
> Hello All (probably one for Alex H),
>  I know I've seen this implemented before somewhere around the web, but I've 
> search for awhile and can't find it.
> 
> I have a custom DataGrid that I've subclassed and do lots of trick 
> functionality on it.  I pass it a search string, and only the rows that 
> contain that search string are displayed.
> 
> Now, what I'd like to do is to customize the ItemRenderers so that the 
> portion of text in any ItemRenderer that matches the search string is 
> displayed in a different color and underlined.  
> 
> I know I've seen a demo of this somewhere?  Any ideas?  Or, any ideas how to 
> implement?
> 
> My idea is to make a custom DataGridItemRenderer and set it at the DataGrid 
> level so each of the columns will use it.  And then on the data property, 
> loop through each of the items being displayed and then format accordingly.  
> However, this seems inefficient, especially since I've already implemented 
> some filterFunctions on the dataProvider...
> 
> Thanks for any suggestions.
>




[flexcoders] Re: Lazy loading in AdvancedDataGrid using RemoteObject

2009-03-05 Thread Amy
--- In flexcoders@yahoogroups.com, "yossi.baram"  wrote:
>
> Hi guys,
> I am strugeling to figure out lazy loading in my AdvancedDataGrid.
> I didnt find any relevant document on that.
> If I'm using ItemRenderer for my columns to do manipulation on the data, it 
> is executed when I click on the grouped (branch )column.
> This is good if I ahve a dataprovider with all data.
> But if I want lazy loading,
> When or where should I create my RemoteObject to fetch the relevant data from 
> the server? 

I typically create a static class to use for the RemoteObject.  Each custom 
typed object in the collection has a reference to it and a method that can be 
called to tell it to load children.

> Can I do it in my ItemRenderer?
> Other option, If I catch a click from my AdvancedDataGrid and figure out the 
> parentId, and fetch the relevant data from the server, how can I activate the 
> Itemrenderer that I need to manipulate with this new data?

The dataProvider for your ADG will always be a HierachichalCollectionView, 
which means you can easily get from parent to child and vice versa.

If you start out with an empty ArrayCollection as the children property on each 
of your objects, then when that AC is updated (NOT REPLACED) by the result of a 
Remote Object call, then the AC should generate whatever events the ADG needs 
to fill itself in.

> Many questions regard this Lazy loading, can you guide me here please?

You might find this example helpful:

http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-posted.html

HTH;

Amy



[flexcoders] Is there a way to detect mouse button state without tracking events?

2009-03-05 Thread Dave Kong
I need to find out at this particular moment, if the mouse button is up or down.

Trying to work around the issue with wmode=transparent in FF. If I scroll a 
list, and drags cursor outside of the player and then releases the button. That 
mouseUp event is never captured by Flash Player, so when I move mouse cursor 
back, buttonDown is always true for all mouse events.  So I need a workaround 
on moues re-entry to detect if button is truly down, if not, call the 
scrollThumb's releaseButton function so it won't keep on scrolling.

Thanks!



RE: [flexcoders] HTTPService vs URLRequest

2009-03-05 Thread Ryan Graham

I suppose if you Base64 encode it for transfer it would, but that adds
roughly 30% to size of the binary data being transferred.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Guy Morton
Sent: Thursday, March 05, 2009 2:55 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HTTPService vs URLRequest

 

One good thing about URLLoader is that you can load binary data with it.
HTTPService doesn't seem to allow this, though I could be wrong about
that.

 

On 06/03/2009, at 2:56 AM, Osman Ullah wrote:





Surprisingly, I am having a very difficult time finding any discussion
on the advantages of using HTTPService instead of URLRequest. I've
always used URLRequest to handle my web API calls. What are some of the
benefits of using the HTTPService instead? I like URLLoader because my
network libraries aren't dependant on flex, but I don't quite understand
why Adobe makes very little mention of URLLoader in their Flex
documentation, and also doesn't have any articles comparing HTTPService
to URLLoader.

 





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Re: [flexcoders] HTTPService vs URLRequest

2009-03-05 Thread Guy Morton
One good thing about URLLoader is that you can load binary data with  
it. HTTPService doesn't seem to allow this, though I could be wrong  
about that.


On 06/03/2009, at 2:56 AM, Osman Ullah wrote:

Surprisingly, I am having a very difficult time finding any  
discussion on the advantages of using HTTPService instead of  
URLRequest. I've always used URLRequest to handle my web API calls.  
What are some of the benefits of using the HTTPService instead? I  
like URLLoader because my network libraries aren't dependant on  
flex, but I don't quite understand why Adobe makes very little  
mention of URLLoader in their Flex documentation, and also doesn't  
have any articles comparing HTTPService to URLLoader.








[flexcoders] DataGrid ItemRenderers and display text highlighted search text.

2009-03-05 Thread Todd
Hello All (probably one for Alex H),
 I know I've seen this implemented before somewhere around the web, but I've 
search for awhile and can't find it.

I have a custom DataGrid that I've subclassed and do lots of trick 
functionality on it.  I pass it a search string, and only the rows that contain 
that search string are displayed.

Now, what I'd like to do is to customize the ItemRenderers so that the portion 
of text in any ItemRenderer that matches the search string is displayed in a 
different color and underlined.  

I know I've seen a demo of this somewhere?  Any ideas?  Or, any ideas how to 
implement?

My idea is to make a custom DataGridItemRenderer and set it at the DataGrid 
level so each of the columns will use it.  And then on the data property, loop 
through each of the items being displayed and then format accordingly.  
However, this seems inefficient, especially since I've already implemented some 
filterFunctions on the dataProvider...

Thanks for any suggestions.



[flexcoders] Re: LCDS Upgrade Problems

2009-03-05 Thread foobone9
Actually, as it turns out now, I had reverted back to the version on Adobe 
Exchange thinking it was a newer version because I was having the following 
problem (with what I now know is the newest SpringFactory):

13:32:44,873 INFO  [STDOUT] [Flex]MessageBroker failed to start:   Exception: 
java.lang.ClassCastException: $Proxy53 cannot be cast to 
flex.data.assemblers.HibernateAssembler
at flex.data.assemblers.HibernateType.start(HibernateType.java:237)
at 
flex.data.assemblers.HibernateAssembler.start(HibernateAssembler.java:216)



--- In flexcoders@yahoogroups.com, Jeff Vroom  wrote:
>
> I think the problem is that the HibernateAssembler.initialize is not getting 
> called.  If you are using the SpringFactory  you probably just need a new 
> version of that.   I tried putting this up on the adobe component exchange a 
> long time ago but apparently it never made it as I just checked and they 
> still have the old version.I'll try to get that resolved but in the 
> meantime, I put up a copy of the new source file here:
> 
> http://www.jvroom.com/SpringFactory.java
> 
> Jeff
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of foobone9
> Sent: Thursday, March 05, 2009 11:34 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] LCDS Upgrade Problems
> 
> 
> I am upgrading LCDS from 2.5.1 to 2.6. I have quite a few assemblers that 
> extend the Hibernate assembler and use the Spring factory.
> 
> On start up the MessageBroker is croaking because of a Null pointer exception 
> in HibernateAssembler line 211. Is the Hibernate assembler code provided in 
> 2.6 as it previously was? (I didn't see it in the install) Has anyone seen 
> this problem or know of any thing to try?
>




Re: [flexcoders] Re: Compressing messages/data: What binary/compression formats are workable in Flex?

2009-03-05 Thread David Adams
On Fri, Mar 6, 2009 at 12:48 AM, valdhor  wrote:
> What kind of server do you have?
>
> I was fairly sure there was an implementation of AMF for every server out
> there.

Nope. I can bolt in zip/unzip and a JSON encoder/decoder - but not AMF.

Speaing of which, I think I've asked my question badly enough that no
one thought to suggest JSON. I guess my most general question is:

"What techniques can I explore for reducing message sizes that work
efficiently in Flex?"

As I understand it:
-- AMF is native & fast.
-- JSON is not native & I'm not sure how fast it is.
-- XML is native and relatively fast...for XML.
-- Unzipping is native and fast...but not many methods are supported.
-- Custom binary protocols are fine as long as I draw the data down
into a general object or ByteArray and then parse it myself. Of
course, that means the parser is running in ActionScript - not code
compiled into the player.

Any other ideas?

Thanks, as always, for any suggestions.


[flexcoders] Re: Problem in Sorting XMLListCollection (which is dataProvider for) the List

2009-03-05 Thread anuj181
This is my first e-mail to this group with the new e-mail address, i am just 
trying to make sure if this group is receiving my e-mails as nobody has replied 
yet, Please send me the test reply so that I know if you guys are receiving my 
mails
Thanks
--- In flexcoders@yahoogroups.com, "anuj181"  wrote:
>
> Hi Guys 
> I am trying to sort the dataProvider in the list which is in the form of 
> XMLListCollection, I am using amfPHP for grabbing data in the form of 
> XMLListCollection and for the display purpose I am using labelfunction to 
> display just the friendly name of my entries which is the specific attribute 
> from the XMLListCollection. I went through few tutorials online for sorting 
> and came up with the following code but some how this is not working, Can any 
> one please help me in figruing out whats going on here and why sorting of the 
> list is not working,
> Thanks
> 
> 
> /**CODE*/
> 
>fault="getListFault(event);"/>
>   
> 
> 
>   [Bindable] private var entriesXmlListFull:XMLList;
>   [Bindable] private var entriesXmlCollection:XMLListCollection;
>   
> 
>   public function getListHandler(event:ResultEvent):void
>   {   
>   
>   entriesXmlListFull = XML(event.result).device;
>   populateEntries();
>   }
>   private function getListFault(event:FaultEvent):void
>   {
>   Alert.Show("Error retreiving Data");
>   }
> 
>   //Displaying names need to be displayed in the List box
>   private function entriesLabelFunc(item:Object):String
>   {
>   var xmlItem:XML = item as XML;
> 
>   return xmlItem..attribute.(@name=="friendlyname");
>   }
> 
>   //Populating List with XML Objects
>   private function populateEntries():void
>   {
>   entriesXmlCollection = new XMLListCollection(); 
> 
> 
>   for each(var item:XML in entriesXmlListFull)
>   {
>   
>   var friendlyName:String = 
> item..attribute.(@name=="friendlyname");
>   //Only add camera type
>   if ( !recordValue && hasFriendlyName && 
> (itemType.toUpperCase() == "CAMERA") )
>   {
>   entriesXmlCollection.addItem(item);
>   }
>   }
>   
>   //Calling Sort on XMLList collection
>   entriesXmlCollection.sort = sortList;
>   entriesXmlCollection.refresh();  
> 
>   
>   }
>   
> 
>   
>   
>   
>   
>   
> 
>labelFunction="entriesLabelFunc"/>
>




RE: [flexcoders] LCDS Upgrade Problems

2009-03-05 Thread Jeff Vroom
I think the problem is that the HibernateAssembler.initialize is not getting 
called.  If you are using the SpringFactory  you probably just need a new 
version of that.   I tried putting this up on the adobe component exchange a 
long time ago but apparently it never made it as I just checked and they still 
have the old version.I'll try to get that resolved but in the meantime, I 
put up a copy of the new source file here:

http://www.jvroom.com/SpringFactory.java

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of foobone9
Sent: Thursday, March 05, 2009 11:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS Upgrade Problems


I am upgrading LCDS from 2.5.1 to 2.6. I have quite a few assemblers that 
extend the Hibernate assembler and use the Spring factory.

On start up the MessageBroker is croaking because of a Null pointer exception 
in HibernateAssembler line 211. Is the Hibernate assembler code provided in 2.6 
as it previously was? (I didn't see it in the install) Has anyone seen this 
problem or know of any thing to try?

<><>

[flexcoders] problem with HTTPS

2009-03-05 Thread John Deutsch
A business requirement for our company is to upload sensitive files over SSL. 
We have got the uploads working fine over HTTP but are recieving the following 
error over HTTPS: [IOErrorEvent type="ioError" bubbles=false cancelable=false 
eventPhase=2 text="Error #2038: File I/O Error. URL: 
https://www.elitehealth.com/secure/patient/eliteonline/webService/upload.php";].
We are aware that the issue is probably due to a misconfiguration with our 
cross-domain-policy, but are inexperienced with this specific requirement.

Any thoughts? We're open to hiring someone to help us with this problem if the 
solution is fairly complex.

Thanks,

John



[flexcoders] Facebook fires up head-to-head battle with Twitter

2009-03-05 Thread Kashmala Kashi

Facebook fires up head-to-head battle with Twitter


Twitter Inc. is at a critical juncture now that the popular
Facebook Inc. has redesigned its services to, well, be a lot more like
Twitter, according to analysts.
http://xrl.us/beif5g

  _  


Mozilla patches eight Firefox bugs, six critical


Firefox 3.0.7, the second security update this year to the
open-source browser, fixes about the same number of bugs that Mozilla
patched a month ago.
http://xrl.us/beif4j

  _  


Windows 7 leaks continue as new build hits BitTorrent


A second post-beta build of Windows 7 has leaked to file-sharing
sites on the Web, according to searches at BitTorrent trackers.
http://xrl.us/beifz7

  _  


Obama's Stimulus Package - Are Your Skills Needed?


It was in late November of 2008 when US president-elect Barack
Obama announced his economic stimulus package, which aimed to provide
millions of new jobs to Americans. This ambitious but seemingly possible
approach to the current recession in the country is estimated to have a
budget of over $1 trillion.
http://xrl.us/beh9xt

  _  



[flexcoders] New with Flex: Problem with data binding

2009-03-05 Thread Martin Gorostegui
Hi people, 

I'm starting with Flex technology and have some doubts on how datadinding 
between client-side objects work.
After reading Adobe's Flex3 and playing with some samples I ended up with the 
following situation:
Created a Product.as class declared as bindable.
Created a product.mxml in which I declare the following:
...

...

...

For what I understand the first binding is to make sure that the product's name 
is set to what the user entered in the textControl and the second binding can 
be used to load an initial value in the textControl from an existing product. 
right?

Now, my Product class actually has a Dimensions(width, height, etc) attribute, 
where Dimensions is another as class created by me and declared bindable.

How can I bind, for example the width of my Product to another textControl?
Can I nest a Dimensions tag inside the Product tag?
or add to the Product tag an attribute like 
dimensions.width="{widthControl.text}"?

I'd also like to achieve the same binding by creating the Product instance in 
actionScript and not using mxml tags. Is this possible?

Any example on how to do these will be aprreciated as I tried different ways 
but couln't get what I want. Any example on the web or open source project that 
I can use as a guide for this case? (trying to create a 
list-create-modify-delete screen and want to reuse the Product form for 
creation and modification) because I found Adobe's examples on this theme to be 
too simplistic.

Thanks in advanced,

Martin



Re: [flexcoders] AsyncToken with special chars

2009-03-05 Thread Alain Thibodeau
For the record, the workaround explained here: https://bugs. adobe.com/ 
jira/browse/ SDK-18326 worked.

TestWS.xmlSpecialCharsFilter = function(value:Object):String 
{ 
    return value.toString(); 
} 

Not sure I like the workaround much, but it's all I got for now.

If anyone can comfirm the same issues are happening to them in SDK 3.3 and FP 
10, that would be great.

thanks!


 




From: Alain Thibodeau 
To: flexcoders@yahoogroups.com
Sent: Thursday, March 5, 2009 3:02:50 PM
Subject: Re: [flexcoders] AsyncToken with special chars


Hmmm, thanks Maciek, but that did not solve it. I updated my sdk and it 
still does the same?

can anyone confirm or deny that this is still a bug?





From: Maciek Sakrejda 
To: flexcod...@yahoogro ups.com
Sent: Thursday, March 5, 2009 12:20:43 PM
Subject: Re: [flexcoders] AsyncToken with special chars


This sounds like your problem:
https://bugs. adobe.com/ jira/browse/ SDK-18326

Fixed in the 3.0.3 that recently went out, according to the release
notes.

-Original Message-
From: thibodeau.alain 
Reply-To: flexcod...@yahoogro ups.com
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] AsyncToken with special chars
Date: Thu, 05 Mar 2009 16:58:59 -

Hi there,

I've run into an issue that I am sure others have, but I cannot find a
solution. I am using cairngorm with a webservice. I need to send in my
soap body the less than and greater than characters. In my mxml based on
user input, I use <>. I follow the call and flex converts the
<> to <> until the AsyncToken gets a hold of it. It should convert
it back to <> for the soap call, however it takes the first & and
converts that too.. so the outgoing soap looks like this "<> "
instead of "<>".

Anyone know why this is happening or a solution?

Thanks in advance



Instant message from any web browser! Try the new Yahoo! Canada Messenger for 
the Web BETA 



  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now at
http://ca.toolbar.yahoo.com.

Re: [flexcoders] AsyncToken with special chars

2009-03-05 Thread Alain Thibodeau
Hmmm, thanks Maciek, but that did not solve it. I updated my sdk and it 
still does the same?

can anyone confirm or deny that this is still a bug?





From: Maciek Sakrejda 
To: flexcoders@yahoogroups.com
Sent: Thursday, March 5, 2009 12:20:43 PM
Subject: Re: [flexcoders] AsyncToken with special chars


This sounds like your problem:
https://bugs. adobe.com/ jira/browse/ SDK-18326

Fixed in the 3.0.3 that recently went out, according to the release
notes.

-Original Message-
From: thibodeau.alain 
Reply-To: flexcod...@yahoogro ups.com
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] AsyncToken with special chars
Date: Thu, 05 Mar 2009 16:58:59 -

Hi there,

I've run into an issue that I am sure others have, but I cannot find a
solution. I am using cairngorm with a webservice. I need to send in my
soap body the less than and greater than characters. In my mxml based on
user input, I use <>. I follow the call and flex converts the
<> to <> until the AsyncToken gets a hold of it. It should convert
it back to <> for the soap call, however it takes the first & and
converts that too.. so the outgoing soap looks like this "<> "
instead of "<>".

Anyone know why this is happening or a solution?

Thanks in advance





  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/

[flexcoders] Word Wrap on the FormItem label

2009-03-05 Thread menapole
I was wondering if it is possible to word wrap the label that is part of the 
FormItem. 

So if I have . 

Is there a way to make that wrap?





[flexcoders] LCDS Upgrade Problems

2009-03-05 Thread foobone9
I am upgrading LCDS from 2.5.1 to 2.6. I have quite a few assemblers that 
extend the Hibernate assembler and use the Spring factory.

On start up the MessageBroker is croaking because of a Null pointer exception 
in HibernateAssembler line 211. Is the Hibernate assembler code provided in 2.6 
as it previously was? (I didn't see it in the install) Has anyone seen this 
problem or know of any thing to try?



RE: [flexcoders] RSL Error after changing to 3.3

2009-03-05 Thread Alex Harui
I'm not sure existing projects get their settings upgraded so you may have to 
update the swz options yourself

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tom Chiverton
Sent: Thursday, March 05, 2009 1:23 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RSL Error after changing to 3.3


On Thursday 05 Mar 2009, azona26 wrote:
> Flex Error #1001: Digest mismatch with RSL
> http://127.0.0.1/framework_3.2.0.3958.swf. Redeploy the matching RSL or
> relink your application with the matching library.

Looks like the app is trying to use old versions of the RSL. The ones I have
here are:
1b5bc2b38f959de94f3e8d4f695d2c65 
/opt/flex-sdk-3.3_withMatchingChartingRelease_and_AIR-1.5.1/frameworks/rsls/framework_3.3.0.4852.swf
51734ac9ad178e47cb012998d8228bb2 
/opt/flex-sdk-3.3_withMatchingChartingRelease_and_AIR-1.5.1/frameworks/rsls/framework_3.3.0.4852.swz

Have you done a clean rebuild and deploy ?

--
Tom Chiverton
Helping to autoschediastically embrace value-added eyeballs
as part of the IT team of the year, '09 and '08



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of 
members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners. We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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



RE: [flexcoders] Problem in sorting XMLList collection as a dataProvider for the list

2009-03-05 Thread Alex Harui
If you have a labelfunction, you'll probably need a custom sortcompare function

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of anuj181
Sent: Wednesday, March 04, 2009 3:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem in sorting XMLList collection as a dataProvider 
for the list


Hi Guys
I am trying to sort the xmllist collection which is the dataprovider for the 
list. As the implementation of name-value pairs, i am displaying the entries in 
form of string in List and would like to sort all the data displayed in the 
List alphabetically, I am making a call through amfphp call to grab data from 
backend and populate XMLListCollection but now I need to sort the data in the 
list. Below is the code,Can anyone please help me where I am messing things up. 
Also please let me know if there is any question regarding the code and if 
there is better way of doing it.

Thanks

/**CODE/





[Bindable] private var entriesXmlListFull:XMLList;
[Bindable] private var entriesXmlCollection:XMLListCollection;


public function getListHandler(event:ResultEvent):void
{

entriesXmlListFull = XML(event.result).device;
populateEntries();
}
private function getListFault(event:FaultEvent):void
{
Alert.Show("Error retreiving Data");
}

//Displaying names need to be displayed in the List box
private function entriesLabelFunc(item:Object):String
{
var xmlItem:XML = item as XML;

return xmlItem..attribute.(@name=="friendlyname");
}

//Populating List with XML Objects
private function populateEntries():void
{
entriesXmlCollection = new XMLListCollection();

for each(var item:XML in entriesXmlListFull)
{

var friendlyName:String = item..attribute.(@name=="friendlyname");
//Only add camera type
if ( !recordValue && hasFriendlyName && (itemType.toUpperCase() == "CAMERA") )
{
entriesXmlCollection.addItem(item);
}
}

//Calling Sort on XMLList collection
entriesXmlCollection.sort = sortList;
entriesXmlCollection.refresh();


}












RE: [flexcoders] problem with a loaded swf

2009-03-05 Thread Alex Harui
Document is a Flex thing.

I don't recall the scoping rules in Flash, but it may be that the variable is 
not public or not declared on myFlash.  You might also try waiting for frame 
206 if there is one.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Gustavo Duenas
Sent: Thursday, March 05, 2009 11:07 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] problem with a loaded swf

yes, is a swf from flash, how could I've possibly known when it is created?, in 
the timeline of the flash movie it appears on the frame 205, how could I have 
this on flex, I read something like this.
but is still giving me the same error:

if(myflash.currentFrame == 205){
myflash.continuar.addEventListener and so on, but it is still giving me the 
same error, should I use document in the flash swf as well.

Regards,


Gustavo

On Mar 5, 2009, at 1:55 PM, Alex Harui wrote:



If the external swf is another FlexSWF, then a button is at 
myFlash.document.continuar.

If it is a Flash SWF, it is possible that the button hasn't been created yet.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Gustavo Duenas
Sent: Thursday, March 05, 2009 10:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] problem with a loaded swf



Hi I have this problem proba! bly I'm wrong, but here it is:
I have an exte! rnal swf loaded into flex3, the swf has a button instance name! 
d "conti nuar"
when I load the swf, I make it ! as Movie Clip, but when I try to do this, 
happens an error.
this is the code for the button:

var myflash:MovieClip = myFlash.content as MovieClip;


myflash.continuar.addEventListener(MouseEvent.CLICK, continuarClick);
  function continuarClick(e:MouseEvent):void{
 currentState="start";


!
  }


here is the error I'm having all the time.

TypeError: Error #1009: Cannot access a property or method of a null object re! 
ference.
   at gusDuenas/init()[/Users/gduenas/Documents/Flex Builder 
3/gusDuenas/src/gusDuenas.mxml:18]
   at 
gusDuenas/___gusDuenas_Application1_creationComplete()[/Users/gduenas/Documents/Flex
 Builder 3/gusDuenas/src/gusDuenas.mxml:2]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at 
mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
   at mx.core::UIComponent/! set init 
ialized()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1167]
   at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:698]
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at 
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
   at 
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projec! 
ts\framework\src\mx\core\UIComponent.as:8403]






I hope you can help me out.


Regards,


Gustavo Duenas









[flexcoders] Re: How do you populate a DTO from view components?

2009-03-05 Thread Rodrigo Pereira Fraga






..

public var model:MyModel;
public var controller:MyController;

...

What do you think about it?


--- In flexcoders@yahoogroups.com, Anggie Bratadinata  
wrote:
>
> Can ChangeWatcher be used in your case ?
> 
> -- 
> Anggie Bratadinata | www.masputih.com | Indonesia
> 
> On Thu, Mar 5, 2009 at 11:39 PM, Rodrigo Pereira Fraga wrote:
> 
> > Hi,
> >
> > I'm looking for a better solution for it.
> > I have two solutions:
> >
> > 1- With a model declared with a DTO(MXML)
> >  > password="{inputPassword.text}"/>
> >
> >
> > 2- With custom components, like it:
> >  > text="{model.user.login}"
> > entity="{model.user}" attribute="login"/>
> >
> > But I'm not happy. Does anybody has an another solution?
> > The problem is that the [Bindable] doesn't have a bind bi-direcional, like
> > Seam
> >
> > Thanks
> >
> >
> >
> >
>




RE: [flexcoders] Module unload GC

2009-03-05 Thread Alex Harui
Modules will unload when there are no longer any references to the classes or 
objects in a module.  There is a cache, but it uses weak references and will 
release the module when using the gc button in the profiler.  The browser 
caches module SWFs but that won't affect this issue.  Nate's solution sounded 
like the solution to the problem where you update a module on the server and 
want to load the new one.

If a module brings in a component that hasn't been loaded before, usually it 
brings in a CSSStyleDeclaration for it as well which gets registered with the 
central StyleManager and pins the module.  You can check the id in the id 
column to see if the module that is pinned is the first one loaded.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of claudiu ursica
Sent: Thursday, March 05, 2009 10:26 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Module unload GC

I'll try that first thing in the morning...
For now I'm loading the same module, but in the future there will be more 
modules, however since we only have one now and still working on it we have to 
test with one module... The thing I fear the most if that the same thing will 
happen for different modules, and then I'll have a serious memory leak. The 
modules will be quite complex with lots of functionality and animations 
(diffren games loaded on the same shell), that's why cleaning is so important...

I was going to duplicate the module into another project to see if that still 
happens... Right now I'm nullifying manually the url of the module when 
unloading but whi knows what happens behind the scenes...





From: Nate Beck 
To: flexcoders@yahoogroups.com
Sent: Thursday, March 5, 2009 8:16:52 PM
Subject: Re: [flexcoders] Module unload GC

Well if we're talking about modules...

If you're loading the same module over and over again that might be the 
problem... A while back I had to modify ModuleLoader and while I was in the 
code I seem to remember it has some caching built into it.  So it may be 
possible that ModuleLoader is holding on to a reference of a module.

I got around the caching issue when loading the same module over and over again 
by appending a random number to the loaded module.  (ex: myModule.swf? 
uid=123456789) .

The ModuleLoader stuff I was working on was back in 2.0.1... so it might be 
very different now.

Hope this helps.
On Thu, Mar 5, 2009 at 10:08 AM, claudiu ursica mailto:the_bran...@yahoo.com>> wrote:
I read this too, however when watching in profiler the gc runs a removes a set 
of the instances, the thing that bothers me is that after first load/unload the 
memory looks like the module is there. After the second load looks like 2 
modules are load I get duplicate instances ... After the second unload and 
forcing running gc a few times from profilet a set of instances is collected, 
but i still have the memory looking like I have one module in there. I don't 
get it how come that on set of instances are removed and one is there for 
good... It seems there is no way to see if my cleaning is actually hapenning 
... One could say is happening since the second, third, forth load/unload are 
actually cleaned but there's still a set of instances in the memory ...



From: Nate Beck mailto:n...@tldstudio.com>>
To: flexcod...@yahoogro ups.com
Sent: Thursday, March 5, 2009 7:55:01 PM
Subject: Re: [flexcoders] Module unload GC

Garbage Collection happens when it needs to happen.  You have no control over 
it.  This is from Grant Skinner's blog:

Deferred GC and Indeterminacy
A *very* important thing to understand about the Garbage Collector in FP9 is 
that it's operations are deferred. Your objects will not be removed immediately 
when all active references are deleted, instead they will be removed at some 
indeterminate time in the future (from a developer standpoint). The GC uses a 
set of heuristics that look at RAM allocation and the size of the memory stack 
(among other things) to determine when to run. As a developer, you must accept 
that fact that you will have no way of knowing when (or even if) your inactive 
objects will get deallocated. You must also be aware that inactive objects will 
continue to execute indefinitely (until the GC deallocates it), so code will 
keep running (ex. enterFrames) , sounds will keep playing, loads will keep 
happening, events will keep firing, etc.

It's very important to remember that you have no control over when your objects 
will be deallocated, so you must make them as inert as possible when you are 
finished with them. Strategies to manage this will be the focus for a future 
article.

On Thu, Mar 5, 2009 at 3:58 AM, Claudiu Ursica mailto:the_bran...@yahoo.com>> wrote:

Hi,
I'm using a module in my app. And I'm pr

RE: [flexcoders] problem with a loaded swf

2009-03-05 Thread Alex Harui
If the external swf is another FlexSWF, then a button is at 
myFlash.document.continuar.

If it is a Flash SWF, it is possible that the button hasn't been created yet.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Gustavo Duenas
Sent: Thursday, March 05, 2009 10:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] problem with a loaded swf



Hi I have this problem proba! bly I'm wrong, but here it is:
I have an exte! rnal swf loaded into flex3, the swf has a button instance name! 
d "conti nuar"
when I load the swf, I make it ! as Movie Clip, but when I try to do this, 
happens an error.
this is the code for the button:

var myflash:MovieClip = myFlash.content as MovieClip;


myflash.continuar.addEventListener(MouseEvent.CLICK, continuarClick);
  function continuarClick(e:MouseEvent):void{
 currentState="start";


!
  }


here is the error I'm having all the time.

TypeError: Error #1009: Cannot access a property or method of a null object re! 
ference.
   at gusDuenas/init()[/Users/gduenas/Documents/Flex Builder 
3/gusDuenas/src/gusDuenas.mxml:18]
   at 
gusDuenas/___gusDuenas_Application1_creationComplete()[/Users/gduenas/Documents/Flex
 Builder 3/gusDuenas/src/gusDuenas.mxml:2]
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at 
mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
   at mx.core::UIComponent/! set init 
ialized()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1167]
   at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:698]
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at 
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
   at 
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projec! 
ts\framework\src\mx\core\UIComponent.as:8403]





I hope you can help me out.


Regards,


Gustavo Duenas







[flexcoders] Re: file.upload() works fine on mac os x, does not work on a PC

2009-03-05 Thread tchredeemed
bump!

is it a headers issue?

--- In flexcoders@yahoogroups.com, "sunild99"  wrote:
>
> Are you doing this w/an account that does not have the "local admin" 
> privilege on the Windows workstation? Or does it work when you use HTTP?
> 
> Just a guess,
> Sunil
> 
> --- In flexcoders@yahoogroups.com, "tchredeemed"  wrote:
> >
> > I tried this in all browsers on my mac (firefox, safari, camino), and it 
> > uploaded fine.
> > 
> > I tried this on all browsers on my pc (firefox, ie6, ie7), and it did not.
> > 
> > file.upload( new URLRequest( 
> > _appGlobals.serverURL+"data/attachment/?order_id="+_appGlobals.order.id ) );
> > 
> > serverURL = https://www.oursite.com/
> > 
> > order_id is set
> > 
> > for some reason, it is faulting!  any ideas why?
> >
>




[flexcoders] problem with a loaded swf

2009-03-05 Thread Gustavo Duenas



Hi I have this problem probably I'm wrong, but here it is:
I have an external swf loaded into flex3, the swf has a button  
instance named "continuar"
when I load the swf, I make it as MovieClip, but when I try to do  
this, happens an error.

this is the code for the button:

var myflash:MovieClip = myFlash.content as MovieClip;

myflash.continuar.addEventListener(MouseEvent.CLICK, continuarClick);
function continuarClick(e:MouseEvent):void{
currentState="start";

}


here is the error I'm having all the time.

TypeError: Error #1009: Cannot access a property or method of a null  
object reference.
	at gusDuenas/init()[/Users/gduenas/Documents/Flex Builder 3/ 
gusDuenas/src/gusDuenas.mxml:18]
	at gusDuenas/___gusDuenas_Application1_creationComplete()[/Users/ 
gduenas/Documents/Flex Builder 3/gusDuenas/src/gusDuenas.mxml:2]

at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
	at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks 
\projects\framework\src\mx\core\UIComponent.as:9051]
	at mx.core::UIComponent/set initialized()[E:\dev\3.0.x\frameworks 
\projects\framework\src\mx\core\UIComponent.as:1167]
	at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x 
\frameworks\projects\framework\src\mx\managers\LayoutManager.as:698]

at Function/http://adobe.com/AS3/2006/builtin::apply()
	at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x 
\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
	at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks 
\projects\framework\src\mx\core\UIComponent.as:8403]





I hope you can help me out.


Regards,


Gustavo Duenas





[flexcoders] Developing Rich Clients with Macromedia Flex - source code?

2009-03-05 Thread Libby
Hi, I have this book but lost my copy of the source code I originally 
downloaded. The authors website (http://flexbook.iterationtwo.com/, 
http://www.flexbook.iterationtwo.com/) is down. Does anyone know how to contact 
the authors Stephen Webster and Alistair McCleod or maybe has a copy? 

Thanks,
Libby



Re: [flexcoders] Module unload GC

2009-03-05 Thread claudiu ursica
I'll try that first thing in the morning...
For now I'm loading the same module, but in the future there will be more 
modules, however since we only have one now and still working on it we have to 
test with one module... The thing I fear the most if that the same thing will 
happen for different modules, and then I'll have a serious memory leak. The 
modules will be quite complex with lots of functionality and animations 
(diffren games loaded on the same shell), that's why cleaning is so important...

I was going to duplicate the module into another project to see if that still 
happens... Right now I'm nullifying manually the url of the module when 
unloading but whi knows what happens behind the scenes...









From: Nate Beck 
To: flexcoders@yahoogroups.com
Sent: Thursday, March 5, 2009 8:16:52 PM
Subject: Re: [flexcoders] Module unload GC


Well if we're talking about modules...

If you're loading the same module over and over again that might be the 
problem... A while back I had to modify ModuleLoader and while I was in the 
code I seem to remember it has some caching built into it.  So it may be 
possible that ModuleLoader is holding on to a reference of a module.

I got around the caching issue when loading the same module over and over again 
by appending a random number to the loaded module.  (ex: myModule.swf? 
uid=123456789) .

The ModuleLoader stuff I was working on was back in 2.0.1... so it might be 
very different now.

Hope this helps.


On Thu, Mar 5, 2009 at 10:08 AM, claudiu ursica  wrote:

I read this too, however when watching in profiler the gc runs a removes a set 
of the instances, the thing that bothers me is that after first load/unload the 
memory looks like the module is there. After the second load looks like 2 
modules are load I get duplicate instances ... After the second unload and 
forcing running gc a few times from profilet a set of instances is collected, 
but i still have the memory looking like I have one module in there. I don't 
get it how come that on set of instances are removed and one is there for 
good... It seems there is no way to see if my cleaning is actually hapenning 
... One could say is happening since the second, third, forth load/unload are 
actually cleaned but there's still a set of instances in the memory ... 







 From: Nate Beck 
To: flexcod...@yahoogro ups.com
Sent: Thursday, March 5, 2009 7:55:01 PM
Subject: Re: [flexcoders] Module unload GC


Garbage Collection happens when it needs to happen.  You have no control over 
it.  This is from Grant Skinner's blog:


Deferred GC and Indeterminacy
A
*very* important thing to understand about the Garbage Collector in FP9
is that it's operations are deferred. Your objects will not be removed
immediately when all active references are deleted, instead they will
be removed at some indeterminate time in the future (from a developer
standpoint). The GC uses a set of heuristics
that look at RAM allocation and the size of the memory stack (among
other things) to determine when to run. As a developer, you must accept
that fact that you will have no way of knowing when (or even if) your
inactive objects will get deallocated. You must also be aware that
inactive objects will continue to execute indefinitely (until the GC 
deallocates it), so code will keep running (ex. enterFrames) , sounds
will keep playing, loads will keep happening, events will keep firing,
etc. 
It's very important to remember that you have no control over when
your objects will be deallocated, so you must make them as inert as
possible when you are finished with them. Strategies to manage this
will be the focus for a future article. 


On Thu, Mar 5, 2009 at 3:58 AM, Claudiu Ursica  wrote:

Hi,
I'm using a module in my app. And I'm profiling the app to see if unloading 
cleans after itself... The thing is the first time I unload nothing happens all 
the instances are still there in the Profiler. Now if I load the module again, 
the memory increases and the insatnces no. doubles. However when I unload the 
second time, the cleaning happens and I'm getting the memory and instances no 
from before the load. Is this normal, it looks to me like I'm having a module 
in there all the time after the first load... I'm pretty sure I do my internal 
cleaning OK before unloading the module, fact proved by the second, third forth 
load/unload 

Has anyone bumped into this? 
How reliable is the Profiler on this?

Any input is appreciated.

TIA,
Claudiu





-- 

Cheers,
Nate
 - - - -
http://blog. natebeck. net






-- 

Cheers,
Nate
 - - - -
http://blog. natebeck. net



   


  

RE: [flexcoders] help with httpService Error

2009-03-05 Thread Ryan Graham

It's probably something to do with policy file changes in FP9 and 10.
Here's some links that explain the changes that may be of help:

 

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

 

http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html

 

You may want to start troubleshooting with an open crossdomain.xml and
start tightening up from there:

 











 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ramsey, Robert L
Sent: Thursday, March 05, 2009 11:13 AM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] help with httpService Error

 

Hi, 

 

I am using FlexBuilder 3.0.2 and am getting a new error on new projects
when using the httpService feature.  Here is my httpService control, as
copied from an older project which still works:

 

https://www.someserver.edu/myfiles/flexfile.php";
useProxy="false"

  fault="show_fault(event.fault)">

  

  getmetainformation

  me

  



 

When I run the app locally, ctrl+f11 or clicking the run button in
eclipse, I get the following error:

 

[RPC Fault faultString="Security error accessing url"
faultCode="Channel.Security.Error" faultDetail="Destination:
DefaultHTTP"]

 

If I copy the swf file up to the server, it does run correctly there.

 

That exact same httpService control works fine in a project I finished
last fall when run locally.

 

The weird thing is that older projects, ones I did as little as a month
ago, run just fine when run locally.  It's only the new one I started
this week.

 

I tried adding  to
my crossdomain.xml file, but no go.  I am using Flash version 10,0,22,87
within Firefox 3.05 on windows Vista, fully patched.  

 

The only thing that I can think that would have changed from a few
months ago is that I have a newer version of Flash.

 

Any ideas what might be causing this and how to fix it?

 

Thanks,

 

Bob





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

[flexcoders] Reloading data while navigating a view stack

2009-03-05 Thread Wally Kolcz
Using Flex mxml, can you force a reload of data for each module in a viewstack 
so when the user flips between 'pages' updated data loads?



[flexcoders] Re: Different filtered dataProviders for the same data ?

2009-03-05 Thread Tim Hoff

See ICollectionView.

-TH

--- In flexcoders@yahoogroups.com, "Richard C Haven"  wrote:
>
> I have several lookup tables, some of which refer to or are
relationships between others.
>
> For instance, I have `membership type included inventory` which has
Membership ID and Inventory Type ID and is the amount of each Inventory
Type that one gets when one gets a specific type of membership.
>
> When the user is reviewing an Inventory Type, I want them to see the
amounts that go with each Membership Type; when the user is reviewing a
Membership Type, I want them to see what inventory that membership would
get.
>
> Can I use a only one ArrayCollection for InvetoryType instances and
only one ArrayCollection for MembershipType instances and somehow create
filters to get different "views" of the data?
>
> Each "view" would need its own cursor, sorting sequence, filter, etc.
>
> Cheers
>





Re: [flexcoders] Module unload GC

2009-03-05 Thread Nate Beck
Well if we're talking about modules...

If you're loading the same module over and over again that might be the
problem... A while back I had to modify ModuleLoader and while I was in the
code I seem to remember it has some caching built into it.  So it may be
possible that ModuleLoader is holding on to a reference of a module.

I got around the caching issue when loading the same module over and over
again by appending a random number to the loaded module.  (ex:
myModule.swf?uid=123456789).

The ModuleLoader stuff I was working on was back in 2.0.1... so it might be
very different now.

Hope this helps.

On Thu, Mar 5, 2009 at 10:08 AM, claudiu ursica wrote:

>   I read this too, however when watching in profiler the gc runs a removes
> a set of the instances, the thing that bothers me is that after first
> load/unload the memory looks like the module is there. After the second load
> looks like 2 modules are load I get duplicate instances ... After the second
> unload and forcing running gc a few times from profilet a set of instances
> is collected, but i still have the memory looking like I have one module in
> there. I don't get it how come that on set of instances are removed and one
> is there for good... It seems there is no way to see if my cleaning is
> actually hapenning ... One could say is happening since the second, third,
> forth load/unload are actually cleaned but there's still a set of instances
> in the memory ...
>
>
>
> --
> *From:* Nate Beck 
> *To:* flexcoders@yahoogroups.com
> *Sent:* Thursday, March 5, 2009 7:55:01 PM
> *Subject:* Re: [flexcoders] Module unload GC
>
>  Garbage Collection happens when it needs to happen.  You have no control
> over it.  This is from Grant Skinner's blog:
>
> *Deferred GC and Indeterminacy*
> A *very* important thing to understand about the Garbage Collector in FP9
> is that it's operations are deferred. Your objects will not be removed
> immediately when all active references are deleted, instead they will be
> removed at some indeterminate time in the future (from a developer
> standpoint). The GC uses a set of heuristics that look at RAM allocation
> and the size of the memory stack (among other things) to determine when to
> run. As a developer, you must accept that fact that you will have no way of
> knowing when (or even if) your inactive objects will get deallocated. You
> must also be aware that inactive objects will continue to execute
> indefinitely (until the GC deallocates it), so code will keep running (ex.
> enterFrames) , sounds will keep playing, loads will keep happening, events
> will keep firing, etc.
>
> It's very important to remember that you have no control over when your
> objects will be deallocated, so you must make them as inert as possible when
> you are finished with them. Strategies to manage this will be the focus for
> a future article.
>
>
> On Thu, Mar 5, 2009 at 3:58 AM, Claudiu Ursica  yahoo.com
> > wrote:
>
>>   Hi,
>> I'm using a module in my app. And I'm profiling the app to see if
>> unloading cleans after itself... The thing is the first time I unload
>> nothing happens all the instances are still there in the Profiler. Now if I
>> load the module again, the memory increases and the insatnces no. doubles.
>> However when I unload the second time, the cleaning happens and I'm getting
>> the memory and instances no from before the load. Is this normal, it looks
>> to me like I'm having a module in there all the time after the first load...
>> I'm pretty sure I do my internal cleaning OK before unloading the module,
>> fact proved by the second, third forth load/unload 
>>
>> Has anyone bumped into this?
>> How reliable is the Profiler on this?
>>
>> Any input is appreciated.
>>
>> TIA,
>> Claudiu
>>
>>
>
>
> --
>
> Cheers,
> Nate
>  - - - -
> http://blog. natebeck. net 
>
>
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


[flexcoders] Flash 10 File Chooser

2009-03-05 Thread twcrone70
Is there anyway to get the fully qualified path to a selected file rather than 
just the filename?

- Todd



[flexcoders] help with httpService Error

2009-03-05 Thread Ramsey, Robert L
Hi,

I am using FlexBuilder 3.0.2 and am getting a new error on new projects when 
using the httpService feature.  Here is my httpService control, as copied from 
an older project which still works:

https://www.someserver.edu/myfiles/flexfile.php"; useProxy="false"
  fault="show_fault(event.fault)">
  
  getmetainformation
  me
  


When I run the app locally, ctrl+f11 or clicking the run button in eclipse, I 
get the following error:

[RPC Fault faultString="Security error accessing url" 
faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]

If I copy the swf file up to the server, it does run correctly there.

That exact same httpService control works fine in a project I finished last 
fall when run locally.

The weird thing is that older projects, ones I did as little as a month ago, 
run just fine when run locally.  It's only the new one I started this week.

I tried adding  to my 
crossdomain.xml file, but no go.  I am using Flash version 10,0,22,87 within 
Firefox 3.05 on windows Vista, fully patched.

The only thing that I can think that would have changed from a few months ago 
is that I have a newer version of Flash.

Any ideas what might be causing this and how to fix it?

Thanks,

Bob


[flexcoders] Problem in Sorting XMLListCollection (which is dataProvider for) the List

2009-03-05 Thread anuj181
Hi Guys 
I am trying to sort the dataProvider in the list which is in the form of 
XMLListCollection, I am using amfPHP for grabbing data in the form of 
XMLListCollection and for the display purpose I am using labelfunction to 
display just the friendly name of my entries which is the specific attribute 
from the XMLListCollection. I went through few tutorials online for sorting and 
came up with the following code but some how this is not working, Can any one 
please help me in figruing out whats going on here and why sorting of the list 
is not working,
Thanks


/**CODE*/
  




[Bindable] private var entriesXmlListFull:XMLList;
[Bindable] private var entriesXmlCollection:XMLListCollection;


public function getListHandler(event:ResultEvent):void
{   

entriesXmlListFull = XML(event.result).device;
populateEntries();
}
private function getListFault(event:FaultEvent):void
{
Alert.Show("Error retreiving Data");
}

//Displaying names need to be displayed in the List box
private function entriesLabelFunc(item:Object):String
{
var xmlItem:XML = item as XML;

return xmlItem..attribute.(@name=="friendlyname");
}

//Populating List with XML Objects
private function populateEntries():void
{
entriesXmlCollection = new XMLListCollection(); 


for each(var item:XML in entriesXmlListFull)
{

var friendlyName:String = 
item..attribute.(@name=="friendlyname");
//Only add camera type
if ( !recordValue && hasFriendlyName && 
(itemType.toUpperCase() == "CAMERA") )
{
entriesXmlCollection.addItem(item);
}
}

//Calling Sort on XMLList collection
entriesXmlCollection.sort = sortList;
entriesXmlCollection.refresh();  


}













Re: [flexcoders] Module unload GC

2009-03-05 Thread claudiu ursica
I read this too, however when watching in profiler the gc runs a removes a set 
of the instances, the thing that bothers me is that after first load/unload the 
memory looks like the module is there. After the second load looks like 2 
modules are load I get duplicate instances ... After the second unload and 
forcing running gc a few times from profilet a set of instances is collected, 
but i still have the memory looking like I have one module in there. I don't 
get it how come that on set of instances are removed and one is there for 
good... It seems there is no way to see if my cleaning is actually hapenning 
... One could say is happening since the second, third, forth load/unload are 
actually cleaned but there's still a set of instances in the memory ... 







From: Nate Beck 
To: flexcoders@yahoogroups.com
Sent: Thursday, March 5, 2009 7:55:01 PM
Subject: Re: [flexcoders] Module unload GC


Garbage Collection happens when it needs to happen.  You have no control over 
it.  This is from Grant Skinner's blog:


Deferred GC and Indeterminacy
A
*very* important thing to understand about the Garbage Collector in FP9
is that it's operations are deferred. Your objects will not be removed
immediately when all active references are deleted, instead they will
be removed at some indeterminate time in the future (from a developer
standpoint). The GC uses a set of heuristics
that look at RAM allocation and the size of the memory stack (among
other things) to determine when to run. As a developer, you must accept
that fact that you will have no way of knowing when (or even if) your
inactive objects will get deallocated. You must also be aware that
inactive objects will continue to execute indefinitely (until the GC 
deallocates it), so code will keep running (ex. enterFrames) , sounds
will keep playing, loads will keep happening, events will keep firing,
etc. 
It's very important to remember that you have no control over when
your objects will be deallocated, so you must make them as inert as
possible when you are finished with them. Strategies to manage this
will be the focus for a future article. 


On Thu, Mar 5, 2009 at 3:58 AM, Claudiu Ursica  wrote:

Hi,
I'm using a module in my app. And I'm profiling the app to see if unloading 
cleans after itself... The thing is the first time I unload nothing happens all 
the instances are still there in the Profiler. Now if I load the module again, 
the memory increases and the insatnces no. doubles. However when I unload the 
second time, the cleaning happens and I'm getting the memory and instances no 
from before the load. Is this normal, it looks to me like I'm having a module 
in there all the time after the first load... I'm pretty sure I do my internal 
cleaning OK before unloading the module, fact proved by the second, third forth 
load/unload 

Has anyone bumped into this? 
How reliable is the Profiler on this?

Any input is appreciated.

TIA,
Claudiu




-- 

Cheers,
Nate
 - - - -
http://blog. natebeck. net



   


  

RE: [flexcoders] HTTPService vs URLRequest

2009-03-05 Thread Jeff Vroom
Of course HTTPService uses URLLoader when you are using a direct connection to 
your server.   HTTPService supports resultFormats, data binding, proxying with 
blazeDS, channel set failover, MXML tag definition, and AsyncToken's for more 
flexible code notification.   URLLoader is well covered in the flash 
documentation but there's no reason you can't use it for Flex too.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Osman Ullah
Sent: Thursday, March 05, 2009 7:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService vs URLRequest


Surprisingly, I am having a very difficult time finding any discussion on the 
advantages of using HTTPService instead of URLRequest. I've always used 
URLRequest to handle my web API calls. What are some of the benefits of using 
the HTTPService instead? I like URLLoader because my network libraries aren't 
dependant on flex, but I don't quite understand why Adobe makes very little 
mention of URLLoader in their Flex documentation, and also doesn't have any 
articles comparing HTTPService to URLLoader.

<><>

Re: [flexcoders] Module unload GC

2009-03-05 Thread Nate Beck
Garbage Collection happens when it needs to happen.  You have no control
over it.  This is from Grant Skinner's blog:

*Deferred GC and Indeterminacy*
A *very* important thing to understand about the Garbage Collector in FP9 is
that it's operations are deferred. Your objects will not be removed
immediately when all active references are deleted, instead they will be
removed at some indeterminate time in the future (from a developer
standpoint). The GC uses a set of heuristics that look at RAM allocation and
the size of the memory stack (among other things) to determine when to run.
As a developer, you must accept that fact that you will have no way of
knowing when (or even if) your inactive objects will get deallocated. You
must also be aware that inactive objects will continue to execute
indefinitely (until the GC deallocates it), so code will keep running (ex.
enterFrames), sounds will keep playing, loads will keep happening, events
will keep firing, etc.

It's very important to remember that you have no control over when your
objects will be deallocated, so you must make them as inert as possible when
you are finished with them. Strategies to manage this will be the focus for
a future article.


On Thu, Mar 5, 2009 at 3:58 AM, Claudiu Ursica wrote:

>   Hi,
> I'm using a module in my app. And I'm profiling the app to see if unloading
> cleans after itself... The thing is the first time I unload nothing happens
> all the instances are still there in the Profiler. Now if I load the module
> again, the memory increases and the insatnces no. doubles. However when I
> unload the second time, the cleaning happens and I'm getting the memory and
> instances no from before the load. Is this normal, it looks to me like I'm
> having a module in there all the time after the first load... I'm pretty
> sure I do my internal cleaning OK before unloading the module, fact proved
> by the second, third forth load/unload 
>
> Has anyone bumped into this?
> How reliable is the Profiler on this?
>
> Any input is appreciated.
>
> TIA,
> Claudiu
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


[flexcoders] Passing reference to a custom class

2009-03-05 Thread Deane Venske
Ok I'm not sure that this is possible BUT:

I have written a class to simplify our data transfers for my developers, 
but what I wanted to achieve was a single line call to the class that 
would do everything:
var dlAccounts:DataLoader = new DataLoader("php/index.php", vars, 
model.xmlAccounts, true, pbrLoadProgress);

That model.xmlAccounts variable is actually the variable I want to end 
up having the data in it. What I've seen though is that once it's passed 
to the class the reference to it is broken, so any data put into the 
class variable that holds it does not end up in model.xmlAccounts. I 
know that I SHOULD create an event that gets run when the data is 
loaded, which I've done and it works great there, but I was hoping to 
accomplish this all with 1 single call considering nothing really needs 
to happen after the load is completed everything from there works on 
bindings.

I guess one idea is that I could potentially declare model.xmlAccounts 
as my class instead of an XML object, which would mean that class 
handles everything for that variable. Anyone wanna scream at me for 
doing something that silly? :P

Thanks,
Deane




RE: [flexcoders] how to close a titlewindow that was not created as a popup

2009-03-05 Thread Ryan Graham

Listen for the close event, then removeChild().

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Thursday, March 05, 2009 8:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to close a titlewindow that was not created as
a popup

 

hi how can one how to close a titlewindow that was not created as a
popup?





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming?

2009-03-05 Thread Matt Chotin
Oops, I screwed up and forgot to set it to publish.  Should go live in a sec.

Note that we screwed up the symlinks for AIR that are used by the Mac.  We have 
a script available at http://bugs.adobe.com/jira/browse/SDK-19707
that can fix this and we'll be updating the bits in the next day or so.

Matt

On 3/5/09 5:06 AM, "Gregor Kiddie"  wrote:




Which Flex blog?
Not http://blogs.adobe.com/flex/?

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk http://www.inps.co.uk/>

The information in this internet email is confidential and is intended solely 
for the addressee. Access, copying or re-use of information in it by anyone 
else is not authorised. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of INPS or any of its affiliates. 
If you are not the intended recipient please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Matt Chotin
Sent: 04 March 2009 17:21
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming?


No license change, just a change in how we provided the bits since we didn't 
update FB.

I blogged the 3 DMV bug fixes on the Flex team blog.


On 3/4/09 12:09 AM, "Gregor Kiddie"  wrote:




I think I missed this one!

Does this release of the DMV code mean that we don't need a license for it 
anymore?

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co.uk http://www.inps.co.uk/>

The information in this internet email is confidential and is intended solely 
for the addressee. Access, copying or re-use of information in it by anyone 
else is not authorised. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of INPS or any of its affiliates. 
If you are not the intended recipient please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Matt Chotin
Sent: 03 March 2009 17:33
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming?


Rollout wasn't so smooth but everything's up now.

http://www.adobe.com/products/flex/flexdownloads/

The DMV bits are there too.

SDK bug fixes are here: 
https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hide&requestId=12020

I'll get one for DMV too, though you can search the bugbase yourself.

Reminder that there is no associated 3.0.3 Flex Builder coming.  Also I didn't 
write an article for this one since it's mostly bug fixes, many of them related 
to Marshall Plan.  Also it obviously has the new Players.

Have fun!
Matt


On 3/3/09 8:33 AM, "tntomek"  wrote:





--- In flexcoders@yahoogroups.com  , 
"Tianzhen Lin"  wrote:
>
> Not sure if this is old news, I just noticed a massive commit of Flex
> framework classes on Flex framework's repository, along with a nifty
comment
>
> "Merge 3.x revisions 5042,5072-5073,5090-5091 -> trunk
> This includes the latest released player 10.0.22.87"
>
> Coincidentally, I also noticed the Flex online documentation is now
> referring Flex 3.3,
>
> http://livedocs.adobe.com/flex/3/langref/mx/effects/Sequence.html
>
> Something new are definitely around the corner... (rubbing hands)
>
>
> - T.
>

Looks like 3.3 is out officially. Still no mention about how the
separate DMV is supposed to ship since there is no FB 3.03 to go with
this release.

Feb 5 build
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3












Re: [flexcoders] AsyncToken with special chars

2009-03-05 Thread Maciek Sakrejda
This sounds like your problem:
https://bugs.adobe.com/jira/browse/SDK-18326

Fixed in the 3.0.3 that recently went out, according to the release
notes.


-Original Message-
From: thibodeau.alain 
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AsyncToken with special chars
Date: Thu, 05 Mar 2009 16:58:59 -

Hi there,

I've run into an issue that I am sure others have, but I cannot find a
solution. I am using cairngorm with a webservice. I need to send in my
soap body the less than and greater than characters. In my mxml based on
user input, I use <>. I follow the call and flex converts the
<> to <> until the AsyncToken gets a hold of it. It should convert
it back to <> for the soap call, however it takes the first & and
converts that too.. so the outgoing soap looks like this "<>"
instead of "<>".

Anyone know why this is happening or a solution?

Thanks in advance









RE: [flexcoders] Preventing HSlider from moving forward

2009-03-05 Thread Ryan Graham

How are your users interacting with the slider? Be sure to cover all
interactions - i.e. clicking on the track to move the slider, dragging
the thumb, etc.

 

You can listen for the change, thumbPress, thumbRelease, and thumbDrag
events and provide your functionality there. In the thumbDrag handler
you could check the value against the one you are limiting the position
to, and kill the event there.

 

HTH,

Ryan

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tom Chiverton
Sent: Thursday, March 05, 2009 9:13 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Preventing HSlider from moving forward

 

On Friday 27 Feb 2009, Daman Dogra wrote:
> I have this requirement in a project where I need to block a slider
> from moving forward after it reaches a certain value. The user should
> still be able to move the slider backwards though.

Just set the maximum property ?

-- 
Tom Chiverton
Helping to economically utilize dynamic intuitive interactive niches
as part of the IT team of the year, '09 and '08

 


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

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at the
registered office together with a list of those non members who are
referred to as partners. We use the word ?partner? to refer to a member
of the LLP, or an employee or consultant with equivalent standing and
qualifications. Regulated by the Solicitors Regulation Authority.

CONFIDENTIALITY

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

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





This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.

Re: [flexcoders] How do you populate a DTO from view components?

2009-03-05 Thread Anggie Bratadinata
Can ChangeWatcher be used in your case ?

-- 
Anggie Bratadinata | www.masputih.com | Indonesia

On Thu, Mar 5, 2009 at 11:39 PM, Rodrigo Pereira Fraga wrote:

> Hi,
>
> I'm looking for a better solution for it.
> I have two solutions:
>
> 1- With a model declared with a DTO(MXML)
>  password="{inputPassword.text}"/>
>
>
> 2- With custom components, like it:
>  text="{model.user.login}"
> entity="{model.user}" attribute="login"/>
>
> But I'm not happy. Does anybody has an another solution?
> The problem is that the [Bindable] doesn't have a bind bi-direcional, like
> Seam
>
> Thanks
>
>
>
>


[flexcoders] [Tree][move scrollbar to selectedIndex] how to ?

2009-03-05 Thread fotis.chatzinikos
Hello everybody,
after much search on programatically opening a tree node, openItems, 
selectedIndex, and calllater magic, I managed to open AND select a node deep 
inside an mx:tree.

The problem? this node might be lower in the tree than is visible (scrollbars 
appear as needed).

Any ideas how to move the scrollbar where the selected node is?

TIA,
Fotis



[flexcoders] AsyncToken with special chars

2009-03-05 Thread thibodeau.alain
Hi there,

I've run into an issue that I am sure others have, but I cannot find a 
solution. I am using cairngorm with a webservice. I need to send in my soap 
body the less than and greater than characters. In my mxml based on user input, 
I use <>. I follow the call and flex converts the <> to <> until 
the AsyncToken gets a hold of it. It should convert it back to <> for the 
soap call, however it takes the first & and converts that too.. so the outgoing 
soap looks like this "<>" instead of "<>".

Anyone know why this is happening or a solution?

Thanks in advance



Re: [flexcoders] How do you populate a DTO from view components?

2009-03-05 Thread Jeffry Houser

 You can get 2-way binding in MXML using the mx:binding tag.  I'm not 
sure if that would be cleaner / better than your current approach, though.

Rodrigo Pereira Fraga wrote:
> Hi, 
>
> I'm looking for a better solution for it. 
> I have two solutions:
>
> 1- With a model declared with a DTO(MXML)
>  password="{inputPassword.text}"/>
>
>
> 2- With custom components, like it:
>  text="{model.user.login}" 
> entity="{model.user}" attribute="login"/>
>
> But I'm not happy. Does anybody has an another solution?
> The problem is that the [Bindable] doesn't have a bind bi-direcional, like 
> Seam
>
> Thanks
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>   

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




Re: [flexcoders] How to show the web image in Flex?

2009-03-05 Thread Fotis Chatzinikos
mx:image source="the web image source"?

On Thu, Mar 5, 2009 at 6:45 PM, markflex2007  wrote:

>   Hi,
>
> I want to something like html in Flex
>
> http://www.somecompany.com/img/test.gif"; />
>
> I also want to show the image in Flex without downloading it to local.
>
> mx:Image can show a local image and how to show web image.
>
> Thanks
>
> Mark
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] Re: mx:MenuBar - How to choose or trigger on click

2009-03-05 Thread valdhor
Use the itemClick event instead of the click event. vis...


http://www.adobe.com/2006/mxml";
layout="absolute">
 
 
 

 
 
 
 
 
 
 
 




--- In flexcoders@yahoogroups.com, "Wally Kolcz"  wrote:
>
> I am working on a couple AIR apps that would best be served with a
menu bar. Problem is, as where I do understand how to make menu items, I
cannot figure out how to trigger a function or switch a viewstack  when
a menu item is clicked.
>
> Lets say I have this:
> 
> 
> 
> 
> 
> 
> 
> 
>
> I want to trigger a function when either the load or cancel is
selected. How?
>



[flexcoders] How to show the web image in Flex?

2009-03-05 Thread markflex2007
Hi,

I want to something like html in Flex

http://www.somecompany.com/img/test.gif";   />

I also want to show the image in Flex without downloading it to local.

mx:Image can show a local image and how to show web image.

Thanks


Mark



[flexcoders] How do you populate a DTO from view components?

2009-03-05 Thread Rodrigo Pereira Fraga
Hi, 

I'm looking for a better solution for it. 
I have two solutions:

1- With a model declared with a DTO(MXML)



2- With custom components, like it:


But I'm not happy. Does anybody has an another solution?
The problem is that the [Bindable] doesn't have a bind bi-direcional, like 
Seam

Thanks



[flexcoders] Re: Web service, parameters, errors... Help please

2009-03-05 Thread Jim
Tracy,

> The value you want to pass needs to be in the text node, not in an
> attribute.  Something like:
> 
> X

The above line won't work; it gets the error message about 
"Initializer for 'Find__CompIntfc__DL_TREE_IB_CI'; values of type 
com.draper.Find__CompIntfc__DL_TREE_IB_CITypeShape cannot be represented as 
text." with or without quotes.

I wonder if you would be willing to help me flesh out the function path (As I 
said, I'm pretty new to this, both Flex and ActionScript).

private function betterway (): void
{
var myService:GetInfo = new GetInfo();(is that right for myService?)  
var sValue:String = "something";
var oRequest:Object ={ Find__CompIntfc__DL_TREE_IB_CI : sValue };

 myService.send();

If I try this, I get an error that there is no send() method for GetInfo.  If I 
switch it to 
 myService.findID(oRequest)
I get an error that type Object is being coerced to "possibly unrelated type 
com.draper:Find__CompIntfc__DL_TREE_IB_CITypeShape."

Thanks for any light you can shed.

> 
> 
> 
>  
> 
> Also, this declarative syntax is hard to debug.  I suggest invoking your
> call in an as function:
> 
> var sValue:String = "X":
> 
> var oRequest:Object ={ Find__CompIntfc__DL_TREE_IB_CI : sValue };
> 
> myService.send(oRequest);
> 
>  
> 
> Tracy
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Jim
> Sent: Thursday, March 05, 2009 8:57 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Web service, parameters, errors... Help please
> 
>  
> 
> I'm new to Flex and web services. I've created a web service in PeopleSoft
> and successfully imported the WSDL into Flex so that it has contacted the PS
> server and returned data (using mx:WebService and mx:Operation code I found
> examples of). However, I have been unable to pass a parameter to the service
> from Flex using that code. I then discovered and followed the sample code in
> the Flex-generated package, but no matter what I do I cannot successfully
> supply the "myValue" in the sample shown below. Here is Flex's own text in
> my GetInfo.as file built by Flex:
> 
> * MXML sample code:
> * First you need to map the package where the files were generated to a
> namespace, usually on the  tag, like this:
> xmlns:ws="com.draper.*"
> * Define the service and within its tags set the request wrapper for the
> desired operation
> * 
> *  Find__CompIntfc__DL_TREE_IB_CI=myValue/>
> * 
> * 
> * Then call the operation for which you have set the request wrapper value
> above, like this:
> *  click="myService.FindID_send()" />
> 
> My code is:
> 
>  Find__CompIntfc__DL_TREE_IB_CI="X"/>
> 
> 
> 
> When I try to run it, Flex is unhappy with the value I am assigning ("X"
> above) no matter what I put there. If I omit the double quotes and try to
> assign a text input field value (which is my goal here), it complains that
> it expects a double quote. If I put almost anything else there, it complains
> either:
> 
> Initializer for 'Find__CompIntfc__DL_TREE_IB_CI'; values of type
> com.draper.Find__CompIntfc__DL_TREE_IB_CITypeShape cannot be represented as
> text.
> 
> or, if I try this line, where I attempt to pass a text input field:
> 
> 
> 
> then I get:
> 
> 1067: Implicit coercion of a value of type String to an unrelated type
> com.draper:Find__CompIntfc__DL_TREE_IB_CITypeShape
> 
> Can anyone help with this please?
> 
> Thanks
> 
> Jim
>




Re: [flexcoders] adobe TV - QR code reader

2009-03-05 Thread Weyert de Boer
http://tv.adobe.com/#vi+f15384v1012




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



RE: [flexcoders] adobe TV - QR code reader

2009-03-05 Thread Kenneth Sutherland
Got it, eventually. 

If anyone is interested it's a presentation called 'here be pixels' and
was recorded at max 2008.

http://tv.adobe.com/#vi+f15384v1012

 

phew, that seems to take forever to find.

Thanks.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Kenneth Sutherland
Sent: 05 March 2009 16:20
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] adobe TV - QR code reader

 

Thanks that one step closer but the search on Adobe TV is quite rubbish.
Don't suppose you have a link. I found the guys blog site but searching
that didn't turn up a URL.

Cheers.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
Behalf Of Weyert de Boer
Sent: 05 March 2009 15:52
To: flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] adobe TV - QR code reader

It's the session by Mario Klinggemann. He did that session during Aral's

online conference.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-

1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
Links




Disclaimer 



This electronic message contains information which may be privileged and
confidential. The information is intended to be for the use of the
individual(s) or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited. If you have received
this electronic message in error, please notify us by telephone on 0131
476 6000 and delete the material from your computer.
Registered in Scotland number: SC 172507.
Registered office address: Quay House 142 Commercial Street Edinburgh
EH6 6LB.

This email message has been scanned for viruses by Mimecast.





Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---

re: [flexcoders] mx:MenuBar - How to choose or trigger on click - Never Mind

2009-03-05 Thread Wally Kolcz
Never mind. Found it


From: "Wally Kolcz" 
Sent: Thursday, March 05, 2009 7:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mx:MenuBar - How to choose or trigger on click 

I am working on a couple AIR apps that would best be served with a menu bar. 
Problem is, as where I do understand how to make menu items, I cannot figure 
out how to trigger a function or switch a viewstack  when a menu item is 
clicked. 

Lets say I have this:









I want to trigger a function when either the load or cancel is selected. How?




RE: [flexcoders] adobe TV - QR code reader

2009-03-05 Thread Kenneth Sutherland
Thanks that one step closer but the search on Adobe TV is quite rubbish.
Don't suppose you have a link. I found the guys blog site but searching
that didn't turn up a URL.

Cheers.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Weyert de Boer
Sent: 05 March 2009 15:52
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] adobe TV - QR code reader

It's the session by Mario Klinggemann. He did that session during Aral's

online conference.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links



Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---

Re: [flexcoders] Preventing HSlider from moving forward

2009-03-05 Thread Tom Chiverton
On Friday 27 Feb 2009, Daman Dogra wrote:
> I have this requirement in a project where I need to block a slider
> from moving forward after it reaches a certain value. The user should
> still be able to move the slider backwards though.

Just set the maximum property ?

-- 
Tom Chiverton
Helping to economically utilize dynamic intuitive interactive niches
as part of the IT team of the year, '09 and '08



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

[flexcoders] Re: Adding verticalaxis(es) via actionscript

2009-03-05 Thread Amy
--- In flexcoders@yahoogroups.com, "Trefalgar Bain"  wrote:
>
> --- In flexcoders@yahoogroups.com, "Amy"  wrote:
> >
> > --- In flexcoders@yahoogroups.com, "Trefalgar Bain"  wrote:
> > >
> > > --- In flexcoders@yahoogroups.com, "Amy"  wrote:
> > > > I think you just need to play with the dataFunctions and/or 
> > > > labelfunctions on the axes until you get what you want.
> > > 
> > > 
> > > DataFunction sets the data up to be graphed on the line (sets the
> > > yField and xField). The lines are graphing fine, just not on the right
> > > axis.
> > 
> > Do you have a dataFunction on the axes?
> >
> 
> Negative. The xField and yField are defined globally within the data returned 
> to the flex application:

There you go.  Try using matching data functions on your axes and serieses.



[flexcoders] HTTPService vs URLRequest

2009-03-05 Thread Osman Ullah
Surprisingly, I am having a very difficult time finding any discussion on the 
advantages of using HTTPService instead of URLRequest. I've always used 
URLRequest to handle my web API calls. What are some of the benefits of using 
the HTTPService instead? I like URLLoader because my network libraries aren't 
dependant on flex, but I don't quite understand why Adobe makes very little 
mention of URLLoader in their Flex documentation, and also doesn't have any 
articles comparing HTTPService to URLLoader.



[flexcoders] mx:MenuBar - How to choose or trigger on click

2009-03-05 Thread Wally Kolcz
I am working on a couple AIR apps that would best be served with a menu bar. 
Problem is, as where I do understand how to make menu items, I cannot figure 
out how to trigger a function or switch a viewstack  when a menu item is 
clicked. 

Lets say I have this:









I want to trigger a function when either the load or cancel is selected. How?



Re: [flexcoders] adobe TV - QR code reader

2009-03-05 Thread Weyert de Boer
It's the session by Mario Klinggemann. He did that session during Aral's 
online conference.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



Re: [flexcoders] Preventing HSlider from moving forward

2009-03-05 Thread Tom Chiverton
On Friday 27 Feb 2009, Daman Dogra wrote:
> I have this requirement in a project where I need to block a slider
> from moving forward after it reaches a certain value. The user should
> still be able to move the slider backwards though.

Just set the maximum property ?

-- 
Tom Chiverton
Helping to economically utilize dynamic intuitive interactive niches
as part of the IT team of the year, '09 and '08



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

[flexcoders] Re: amfphp problem - Client.Error.DeliveryInDoubt - when trying to export image

2009-03-05 Thread valdhor
I had the same problem with "Client.Error.DeliveryInDoubt" with AMFPHP. I tried 
everything I could find but could not find a solution. Finally, I tried WebORB 
and all my problems disappeared. I now use WebORB exclusively and have not had 
a problem.


--- In flexcoders@yahoogroups.com, Rico Leuthold  wrote:
>
> Hi,
> 
> I have a really annoying, randomly occuring, problem with amfphp when  
> I want to export an image file.
> 
> The application is sending a byteArray (png encoded) to php over  
> amfphp, where the png file is created and the image file is served for  
> download. Sometimes that works perfect, but the suddenly I get the  
> error Message: "Client.Error.DeliveryInDoubt" - "Channel disconnected".
> 
> When I debug the data flow with Charles I get:
> The class {Amf3Broker} could not be found under the class path {[...]/ 
> amfphp/services/amfphp/Amf3Broker.php
> 
> I searched through the web to find a solution to this and tried out  
> every thing I could find.
> 
> A huge problem is, that this happens just from time to time. Usually I  
> can just reload my app to get rid of th problem.
> 
> Did somebody have the same problem and found a solution to this, or  
> can you give me hint on how to go on?
> 
> Thank's
> rico
>




[flexcoders] how to close a titlewindow that was not created as a popup

2009-03-05 Thread stinasius
hi how can one how to close a titlewindow that was not created as a popup?



RE: [flexcoders] Location of datavisualization_3.3.0.4589.swz?

2009-03-05 Thread Battershall, Jeff
I see the new SDK release on adobe.com - thanks.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Battershall, Jeff
Sent: Thursday, March 05, 2009 9:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Location of datavisualization_3.3.0.4589.swz?


Anyone know where this can be found on opensource.adobe.com - or if it
exists?

I'm hoping that this build addresses a particular font rendering issue.

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





[flexcoders] Cannot upload files using Filereference /PHP returns

2009-03-05 Thread William Paulton

I am trying to create a very simple flex/Air app that can load content such as 
small jpg or text file from a local directory to a content server (ISP using 
Apache) using the file refernce Class. I am using a simple php script to handle 
the server side processing, and which is referenced in the url of the 
URLRequest object.

However when ran  an IOErrorEvent is fired generated with the code #2038 - 
stream error. 

Inspection of responserHeaders provided by the the 
StatusEvent.HTTP_RESPONSE_STATUS object returns a http status code of 403 (403 
Forbidden)and the message "You don't have permission to access 
/MyCMS/uploader.php on this server". 

I have tested the php script and server directory paths which appears to be 
correct. 

Do you have any ideas?



[flexcoders] Re: Images

2009-03-05 Thread app.developer
You have the three images you mentioned earlier, let's name them imgLogoLeft, 
imgCenter, imgLogoRight.

Take an HBox, (imagine a table in HTML that has 3 columns) placing the 
imgLogoLeft first, a Spacer to "push" the logo images apart from one another, 
and imgLogoRight.

With each logo image, you may wish to set the attribute "scaleContent" to false 
so the image doesn't scale to the size of the  container.

The  container's background is set to your small 1 pixel image and 
then set the backgroundSize attribute to 100% to stretch it to the size of the 
HBox.









--- In flexcoders@yahoogroups.com, Darrin Kay  wrote:
>
> I tried that, and it did not stretch it out, the img is 1px wide and  
> just puts blank space
> 
> 
> On Mar 5, 2009, at 2:47 PM, Fotis Chatzinikos wrote:
> 
> > width = "100%" ?
> >
> >
> > On Thu, Mar 5, 2009 at 4:45 PM, Darrin Kay   
> > wrote:
> >
> > Ok I was given a jpg image to use as the header, and I broke to 3  
> > images, the left logo and right logo.  Now in the original image  
> > there was a bar that connected the two to make it look like one.   
> > But I want the image to move with the size of the screen so the left  
> > and right are on the edges.  So I cut a slice of the bar and what it  
> > to stretch to breach the distance.  so it will look like one image  
> > no matter what the screen res.
> >
> > Does that make it clearer?
> >
> >
> > On Mar 5, 2009, at 2:33 PM, Fotis Chatzinikos wrote:
> >
> >> for your first question  try horizontalGap="0" property on the hbox
> >>
> >> I do not understand your second question...
> >>
> >>
> >> On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay   
> >> wrote:
> >> Ok I am stuck and I am sure it is simple. I have a HBox and I am I
> >> have a image in there, now I want to put another image in there and
> >> have it butt up against the first so it will look like one, but it
> >> puts a space between the images?
> >>
> >> Also how can I take a slice of a image (say a bar) and have it  
> >> stretch
> >> to a certain width?
> >>
> >> thanks
> >>
> >>
> >>
> >> -- 
> >> Fotis Chatzinikos, Ph.D.
> >> Founder,
> >> Phinnovation
> >> fotis.chatzini...@...,
> >>
> >
> >
> >
> >
> > -- 
> > Fotis Chatzinikos, Ph.D.
> > Founder,
> > Phinnovation
> > fotis.chatzini...@...,
> >
> >
>




[flexcoders] adobe TV - QR code reader

2009-03-05 Thread Kenneth Sutherland
I'm trying to track down an episode describing how to create a QR code
reader with a web cam (the little square barcodes).  I know I've watched
a video tutorial on this in adobe TV, but I can't find it.  Tried
multiple searches in Adobe TV and using Google but nothing.

Has anyone got a link to the tutorial.

Cheers.

 



realise

.


Kenneth Sutherland

Technical Developer

Realise Ltd
Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB
Tel 0131 476 7432
www.realise.com  

Check out some of our recent flex work:
* Focus on funds UK  
* Focus on funds Europe
 
* Fund selector
 

* Video view
 
Realise are sponsors of the Marketing Society Scotland.
Realise Limited is registered in Scotland, SC172507.

 

 

Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---

Re: [flexcoders] try, catch, finally ...

2009-03-05 Thread Alan K
This sounds like the try-catch is not being used as ( how I see ) intended.
As Alex mentioned, they are costly so unless you need it, skip it.

I suggest just adding an IOErrorEvent listener/handler to the caller, and
if/when the call is complete then remove the listener(s) for GC. In the
Œtry, catch¹ scenario,  your code is always Œchecking¹ for the error.

Alan

>Try-Catch blocks are an absolute necessity as without them,
> you are putting the operation of your software into the hands of user input
errors, 
>http errors, unintended consequences as well as the myriad of things that exist
outside the ³Happy Path².





[flexcoders] Re: Selected item/index in ComboBox

2009-03-05 Thread twcrone70
Thanks Tim!

callLater() is the solution.

- Todd

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Hi Todd,
> 
> Sounds like a timing issue.  The popup is instantiated first, then the
> ComboBox's dataProvider is being set.
> 
> 1) Best practice would be to use a getter/setter for the ComboBox's
> dataProvider.  In the setter, invalidateProperties().  Then in
> commitProperties(), run the code that sets the selectedItem.
> 
> 2) If you just want to use a public var, you can listen for the
> ArrayCollection's collectionChange event.
> 
> 3) Try using callLater()
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "twcrone70"  wrote:
> >
> > I recently moved a form into a pop up window. One of the form items is
> a ComboBox of countries. If you are 'editing' and existing record I
> preselect (selectedItem) the one associated with the record already.
> This worked before but now since the form is being populated with
> countries (bindable ArrayCollection) as the form is created, the
> selectedItem no longer seems to select anything.
> >
> > Is there some event I can listen to so I know the ComboBox's
> selectedItem property can be set and show visually. If I run the logic
> for preselecting manually after the pop up is there, the item is
> selected. But even if I put the code in 'creationComplete' it still does
> not select anything visually.
> >
> > - Todd
> >
>




[flexcoders] Re: Newbie : Video Capture and Streaming Questions

2009-03-05 Thread gilbert_mizrahi
You need FMS or other Flash Media Server, like RED5 (open source) 
http://osflash.org/red5 or Wowsa http://www.wowzamedia.com/.
 

--- In flexcoders@yahoogroups.com, "toejamnyc"  wrote:
>
> Good Day.
> 
> I hope you'll forgive my very basic questions. I've googled, read FAQ's, and 
> built a few tutorials, and have a very basic app that displays video. But I 
> still have a very basic question.
> 
> Must I have Flash Media Server in order to capture and save video from a 
> webcam to a server? Is there *any* way I can build a small development, 
> recording app on my existing http://domain?
> 
> I am a PHP / MySQL developer, so this is all very new to me. Like I said, I 
> can display video, but I'm having a hard time figuring out 
> NetStream.connect() -- unless it's indeed true I need FMS.
> 
> Thank you in advance for your time and any pointers.
>




[flexcoders] Re: Images

2009-03-05 Thread ppongtong
Try using style... 

   
.testImage
{
background-image: Embed("assets/images/testBg.png");
background-size: "100%";
}










RE: [flexcoders] Problem in sorting XMLList collection as a dataProvider for the list

2009-03-05 Thread Tracy Spratt
I would use a sort function, so I could debug any problems.

 

I'd also suggest an e4x expression instead of the loop.

 

Tracy

 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of anuj181
Sent: Wednesday, March 04, 2009 6:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem in sorting XMLList collection as a
dataProvider for the list

 

Hi Guys
I am trying to sort the xmllist collection which is the dataprovider for the
list. As the implementation of name-value pairs, i am displaying the entries
in form of string in List and would like to sort all the data displayed in
the List alphabetically, I am making a call through amfphp call to grab data
from backend and populate XMLListCollection but now I need to sort the data
in the list. Below is the code,Can anyone please help me where I am messing
things up. Also please let me know if there is any question regarding the
code and if there is better way of doing it.

Thanks

/**CODE/

 
 


[Bindable] private var entriesXmlListFull:XMLList;
[Bindable] private var entriesXmlCollection:XMLListCollection;


public function getListHandler(event:ResultEvent):void
{ 

entriesXmlListFull = XML(event.result).device;
populateEntries();
}
private function getListFault(event:FaultEvent):void
{
Alert.Show("Error retreiving Data");
}

//Displaying names need to be displayed in the List box
private function entriesLabelFunc(item:Object):String
{
var xmlItem:XML = item as XML;

return xmlItem..attribute.(@name=="friendlyname");
}

//Populating List with XML Objects
private function populateEntries():void
{
entriesXmlCollection = new XMLListCollection(); 

for each(var item:XML in entriesXmlListFull)
{

var friendlyName:String = item..attribute.(@name=="friendlyname");
//Only add camera type
if ( !recordValue && hasFriendlyName && (itemType.toUpperCase() == "CAMERA")
)
{
entriesXmlCollection.addItem(item);
}
}

//Calling Sort on XMLList collection 
entriesXmlCollection.sort = sortList;
entriesXmlCollection.refresh(); 


}














Re: [flexcoders] Using sessions in flex

2009-03-05 Thread Jeffry Houser


Flex doesn't have the concept of pages the same way that an HTML 
application does. 

Store your session state as part of the Flex App (AKA in the client).  
And you can hide/unhide sections of the app based on the login 
credentials. 


kotha poornima wrote:

Hi All,
Iam getting some issues in Flex. I have two pages in my project one is 
for non-admin and another for admin users.
A link will be shown for non-admin users and not for admin users. 
While the user is logging in, if the username and password are wrong 
then it will automatically redirected to non-admin page and a link is 
showing up there. This is the actual scenario.


This working fine when we are executing admin or non-admin at a single 
time. If in Mozilla if i first execute non-admin page in the first tab 
so a link will come for me. And in the other tab i am executing admin 
page. Now the link will not be shown in admin page. So its not showing 
any link in the admin page but its also not showing in non-admin page 
also. Non-admin page is affecting by admin page data.


Admin and non-admin pages are identified based on Admin flag coming 
from the database. For admin page admin flag is 1 and non-admin page 
admin flag is 0. If admin flag is 0 only that link ll be shown. So at 
the first time if the user execute non-admin page admin flag is 0 and 
link ll be shown. If the user execute admin page admin flag is 1 and 
link ll not be shown. So the admin flag is changing to 1 and the link 
is also not showing in non-admin page also..


So here the problem is how can i save the admin flag value according 
to the session. Are we able to use sessions in Flex so that i can save 
the admin flag in the session and i access it based on the session id.


Hope u got my problem!! Plzzz help me if anyone faced this issue before..

Thanks in Advance,
poornima






--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Images

2009-03-05 Thread Fotis Chatzinikos
To set an explicit height or width for an imported image, set its height and
width properties of the
Imagecontrol.
Setting the
height or width property prevents the parent from resizing it. The
scaleContent property has a default value of true, therefore, Flex scales
the image as it resizes it to fit the specified height and width. The aspect
ratio is maintained by default, so the image may not completely fill the
designated space. Set the scaleContent property to false to disable scaling.
Set the maintainAspectRatio property to false to allow an image to fill all
available space regardless of its dimensions. For more information about
image aspect ratios, see Maintaining aspect ratio when
sizing
.

Maybe try maintainAspectRatio = false? or explicitly set its width to what
you want...

On Thu, Mar 5, 2009 at 4:51 PM, Darrin Kay  wrote:

>   I tried that, and it did not stretch it out, the img is 1px wide and
> just puts blank space
>
>
> On Mar 5, 2009, at 2:47 PM, Fotis Chatzinikos wrote:
>
>  width = "100%" ?
>
> On Thu, Mar 5, 2009 at 4:45 PM, Darrin Kay  wrote:
>
>>
>> Ok I was given a jpg image to use as the header, and I broke to 3 images,
>> the left logo and right logo.  Now in the original image there was a bar
>> that connected the two to make it look like one.  But I want the image to
>> move with the size of the screen so the left and right are on the edges.  So
>> I cut a slice of the bar and what it to stretch to breach the distance.  so
>> it will look like one image no matter what the screen res.
>>
>> Does that make it clearer?
>>
>>
>> On Mar 5, 2009, at 2:33 PM, Fotis Chatzinikos wrote:
>>
>>  for your first question  try horizontalGap="0" property on the hbox
>>
>> I do not understand your second question...
>>
>> On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay  wrote:
>>
>>>   Ok I am stuck and I am sure it is simple. I have a HBox and I am I
>>> have a image in there, now I want to put another image in there and
>>> have it butt up against the first so it will look like one, but it
>>> puts a space between the images?
>>>
>>> Also how can I take a slice of a image (say a bar) and have it stretch
>>> to a certain width?
>>>
>>> thanks
>>>
>>
>>
>>
>> --
>> Fotis Chatzinikos, Ph.D.
>> Founder,
>> Phinnovation
>> fotis.chatzini...@gmail.com,
>>
>>
>>
>
>
> --
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> fotis.chatzini...@gmail.com,
>
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] URLStream readObject error 2006 when trying to read larger amounts of data

2009-03-05 Thread eak0703
I was wondering if anyone could help me fill in some of the details about how 
URLStreamer works.

Here's what im trying to do: I have a Java back end server that establishes a 
long lived connection to my Flex front end. I am using URLStreamer to do this. 
I am then serializing Java objects into AMF and sending these down to the Flex 
client.

Once the data gets to the Flex client I am getting a progressEvent. I then use 
the readObject method if there are bytes available to be read.

This works absolutely fine from "small" objects, but when I try to send down 
any object with some actual data in it (probably more than 65535 bytes) i get 
this "Error:#2006 Range Error". Also I get array index out of bounds. Both of 
these I get on the actual: urlStreamer.readObject() call!

My theory is that my message is actually too big and is being split among 
several different firings of the progressEvent.

Here's where I need help: 
Is my theory correct? 
If so, how am I supposed to know when I should actually be trying to 
"readObject()"?
If readObject() is supposed to "read the object from the stream"...shouldn't it 
handle these larger objects for me? IE: shouldnt urlStreamer "buffer" the 
partial data for me...and only let me "readObject" when there's a complete 
object to be read? or should I be "buffering" the binary that comes in...trying 
to read object each time there are "bytesAvailable" and if there are 
errorsjust swallow them and wait for more bytes?

Any help would be appreciated. I've searched these forums, but it seems like no 
one has been running into things like this. 

Thanks in advance



RE: [flexcoders] Web service, parameters, errors... Help please

2009-03-05 Thread Tracy Spratt
The value you want to pass needs to be in the text node, not in an
attribute.  Something like:

X



 

Also, this declarative syntax is hard to debug.  I suggest invoking your
call in an as function:

var sValue:String = "X":

var oRequest:Object ={ Find__CompIntfc__DL_TREE_IB_CI : sValue };

myService.send(oRequest);

 

Tracy

 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim
Sent: Thursday, March 05, 2009 8:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Web service, parameters, errors... Help please

 

I'm new to Flex and web services. I've created a web service in PeopleSoft
and successfully imported the WSDL into Flex so that it has contacted the PS
server and returned data (using mx:WebService and mx:Operation code I found
examples of). However, I have been unable to pass a parameter to the service
from Flex using that code. I then discovered and followed the sample code in
the Flex-generated package, but no matter what I do I cannot successfully
supply the "myValue" in the sample shown below. Here is Flex's own text in
my GetInfo.as file built by Flex:

* MXML sample code:
* First you need to map the package where the files were generated to a
namespace, usually on the  tag, like this:
xmlns:ws="com.draper.*"
* Define the service and within its tags set the request wrapper for the
desired operation
* 
* 
* 
* 
* Then call the operation for which you have set the request wrapper value
above, like this:
* 

My code is:





When I try to run it, Flex is unhappy with the value I am assigning ("X"
above) no matter what I put there. If I omit the double quotes and try to
assign a text input field value (which is my goal here), it complains that
it expects a double quote. If I put almost anything else there, it complains
either:

Initializer for 'Find__CompIntfc__DL_TREE_IB_CI'; values of type
com.draper.Find__CompIntfc__DL_TREE_IB_CITypeShape cannot be represented as
text.

or, if I try this line, where I attempt to pass a text input field:



then I get:

1067: Implicit coercion of a value of type String to an unrelated type
com.draper:Find__CompIntfc__DL_TREE_IB_CITypeShape

Can anyone help with this please?

Thanks

Jim 





Re: [flexcoders] Newbie : Video Capture and Streaming Questions

2009-03-05 Thread p...@vin Uttarwar
Hi,

Yes you need Streaming server like FMS or Red 5 to use NetStream.connect()
method.
Netconnection Creates a bidirectional connection between a Flash Player or
AIR application and a Flash Media Server application.


Regards,
Pravin


2009/3/5 toejamnyc 

>   Good Day.
>
> I hope you'll forgive my very basic questions. I've googled, read FAQ's,
> and built a few tutorials, and have a very basic app that displays video.
> But I still have a very basic question.
>
> Must I have Flash Media Server in order to capture and save video from a
> webcam to a server? Is there *any* way I can build a small development,
> recording app on my existing http://domain?
>
> I am a PHP / MySQL developer, so this is all very new to me. Like I said, I
> can display video, but I'm having a hard time figuring out
> NetStream.connect() -- unless it's indeed true I need FMS.
>
> Thank you in advance for your time and any pointers.
>
>  
>


Re: [flexcoders] Images

2009-03-05 Thread Darrin Kay
I tried that, and it did not stretch it out, the img is 1px wide and  
just puts blank space



On Mar 5, 2009, at 2:47 PM, Fotis Chatzinikos wrote:


width = "100%" ?


On Thu, Mar 5, 2009 at 4:45 PM, Darrin Kay   
wrote:


Ok I was given a jpg image to use as the header, and I broke to 3  
images, the left logo and right logo.  Now in the original image  
there was a bar that connected the two to make it look like one.   
But I want the image to move with the size of the screen so the left  
and right are on the edges.  So I cut a slice of the bar and what it  
to stretch to breach the distance.  so it will look like one image  
no matter what the screen res.


Does that make it clearer?


On Mar 5, 2009, at 2:33 PM, Fotis Chatzinikos wrote:


for your first question  try horizontalGap="0" property on the hbox

I do not understand your second question...


On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay   
wrote:

Ok I am stuck and I am sure it is simple. I have a HBox and I am I
have a image in there, now I want to put another image in there and
have it butt up against the first so it will look like one, but it
puts a space between the images?

Also how can I take a slice of a image (say a bar) and have it  
stretch

to a certain width?

thanks



--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,






--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,






Re: [flexcoders] Images

2009-03-05 Thread Fotis Chatzinikos
width = "100%" ?

On Thu, Mar 5, 2009 at 4:45 PM, Darrin Kay  wrote:

>   Ok I was given a jpg image to use as the header, and I broke to 3
> images, the left logo and right logo.  Now in the original image there was a
> bar that connected the two to make it look like one.  But I want the image
> to move with the size of the screen so the left and right are on the edges.
>  So I cut a slice of the bar and what it to stretch to breach the distance.
>  so it will look like one image no matter what the screen res.
>
> Does that make it clearer?
>
>
> On Mar 5, 2009, at 2:33 PM, Fotis Chatzinikos wrote:
>
>  for your first question  try horizontalGap="0" property on the hbox
>
> I do not understand your second question...
>
> On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay  wrote:
>
>>   Ok I am stuck and I am sure it is simple. I have a HBox and I am I
>> have a image in there, now I want to put another image in there and
>> have it butt up against the first so it will look like one, but it
>> puts a space between the images?
>>
>> Also how can I take a slice of a image (say a bar) and have it stretch
>> to a certain width?
>>
>> thanks
>>
>
>
>
> --
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> fotis.chatzini...@gmail.com,
>
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


Re: [flexcoders] Images

2009-03-05 Thread Darrin Kay
Ok I was given a jpg image to use as the header, and I broke to 3  
images, the left logo and right logo.  Now in the original image there  
was a bar that connected the two to make it look like one.  But I want  
the image to move with the size of the screen so the left and right  
are on the edges.  So I cut a slice of the bar and what it to stretch  
to breach the distance.  so it will look like one image no matter what  
the screen res.


Does that make it clearer?


On Mar 5, 2009, at 2:33 PM, Fotis Chatzinikos wrote:


for your first question  try horizontalGap="0" property on the hbox

I do not understand your second question...


On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay   
wrote:

Ok I am stuck and I am sure it is simple. I have a HBox and I am I
have a image in there, now I want to put another image in there and
have it butt up against the first so it will look like one, but it
puts a space between the images?

Also how can I take a slice of a image (say a bar) and have it stretch
to a certain width?

thanks



--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,






  1   2   >