[flexcoders] Can't get focusRoundedCorners to work on ButtonBar

2006-12-02 Thread Patrick Mineault
I'm trying to accomplish the following: have a ButtonBar in which each of the buttons has rounded corners (unlike the default where only the left most and right most buttons have some rounded corners). I've been playing with this for a while now, and I can't get it to work. Here's some minimal

[flexcoders] Re: printf similar function

2006-12-02 Thread Patrick Mineault
There is a Sprintf class for AS2, available here: http://natecook.com/downloads/sprintf.html You can try running it through my AS2 to AS3 converter here: http://www.5etdemi.com/convert/ Good luck, Patrick --- In flexcoders@yahoogroups.com, Lachlan Cotter [EMAIL PROTECTED] wrote: Hi

Re: [flexcoders] printf similar function

2006-12-03 Thread Patrick Mineault
You can also use the mx.utils.StringUtil class, which has the substitute method. Patrick Lachlan Cotter a écrit : Hi Misael, That would be useful as ActionScript string concatenation operations are fairly clumsy with more than a few pieces. Unfortunately the AS String class doesn't seem

Re: [flexcoders] Function Error

2006-12-05 Thread Patrick Mineault
You forgot new ArrayCollection somewhere. Patrick jmfillman a écrit : When I click on the Submit button, I get the following error: TypeError: Error #1009: Cannot acces a property or method of a null object reference. at main/validateForm( ) at main/__btnFormSign_ click() What am I

Re: [flexcoders] AMFPHP / databinding nested arrays

2006-12-05 Thread Patrick Mineault
Hmmm, why exactly are you sending nested arrays from amfphp? Why can't you just send a flat array? Patrick carkraus a écrit : Hi there, I guess this is a typical newbie question, maybe someone could kindly direct me to a tutorial or sample: I try to bind e.g. using a charts control to

Re: [flexcoders] UITextField - width anti-alias type - FEATURE REQUEST: more examples in documentation

2006-12-06 Thread Patrick Mineault
Have you tried using getUITextFormat and then calling measureText on that? Patrick {reduxdj} a écrit : Flexmasters: I've tried this a dozen ways, what's the best way to get the width of a UITextField and I've brought it up a few times. I won't stop asking till somebody can help me then

Re: [flexcoders] Flex eye candy and memory consumption

2006-12-06 Thread Patrick Mineault
From what I understand, what Ted means is that the player asks for such and such amount of memory when it requires some, and may or may not give it back when it doesn't need it anymore. So the worst case scenario is that the memory consumed by the player is the maximum amount of memory since

Re: [flexcoders] vertically centering text

2006-12-06 Thread Patrick Mineault
If your item renderer was a VBox you could set verticalAlign to middle. That might slow your app down if you have a lot of rows with VBoxes versus just plain Components. Patrick Pan Troglodytes a écrit : Is there any way to vertically center text? Specifically, I have a datagrid column

Re: [flexcoders] Loader + RemoteObject's

2006-12-07 Thread Patrick Mineault
The NetConnection class doesn't receive progress information from the player, unfortunately, so it would be impossible AFAIK to get progress information from it. The only way you could attempt to achieve this is using the Socket class and manually encoding and decoding the AMF3 packets while

Re: [flexcoders] webservices and Flex 2

2006-12-08 Thread Patrick Mineault
Hi Robin, Whether you're using RemoteObject or WebService, the point of using either is _not_ to have to do that kind of serializing/deserializing. So it's all built-in, and it's all done behind the scenes, at the player level in the RemoteObject case and at the ActionScript level in the

Re: [flexcoders] Re: SOLUTION: Unable to bind Warning

2006-12-08 Thread Patrick Mineault
As long as we're on that subject... I've added a new setting to amfphp, which is: $gateway-setAmf3RecordSetFormat(Array); Which can also be set to ArrayCollection. I have yet to implement it, but does this sound like something useful to you? Patrick lostinrecursion a écrit : It's

[flexcoders] Amfphp with AMF3 support: testers wanted

2006-12-11 Thread Patrick Mineault
Hi all, I've finally gotten around to add AMF3 support to amfphp, so you can finally use Flex 2's RemoteObject with it. To test the new features, I've created a new Service Browser in Flex 2 which allows you to introspect services and test methods on the fly. I need people to test out the new

Re: [flexcoders] Re: Flex and .net webservices

2006-12-12 Thread Patrick Mineault
Try ObjectUtil.toString(myObject) Patrick Robin Burrer a écrit : Thanks Ben, I tried that. It still does not work ..:-(. I got rid of everything which could cause errors. … Here’s the code. I reckon this is as basic as it gets … public function onMyResult(event: ResultEvent) :void {

Re: [flexcoders] NetConnection.Call.BadVersion

2006-12-15 Thread Patrick Mineault
That's because you're getting a fatal error from PHP, and therefore the output from php is not valid amf. You can either point to debuggateway.php instead (if you're using amfphp 1.2), or you can install Charles debugging proxy or ServiceCapture to read the error, or you can call your service

Re: [flexcoders] Flex using Actionscript 2.0

2006-12-15 Thread Patrick Mineault
You can convert AS2 to AS3 (gets it about halfway there) using my converter here: http://www.5etdemi.com/blog/archives/2006/11/as2-to-as3-converter-createtextfield-geturl-handling/ Patrick Tom Chiverton a écrit : On Friday 15 December 2006 15:01, Giles Roadnight wrote: No, I don't think

Re: [flexcoders] Re: SEO Compatibility

2006-12-15 Thread Patrick Mineault
Saying you shouldn't use Flex for content-focused website is going a little bit over the edge IMHO. I think we all definitely agree that for 100% content-focused sites, you should use HTML, and for 100% data-focused sites, you should use Flex. However in between those extremes, you can still

Re: [flexcoders] Spell Checker

2006-12-15 Thread Patrick Mineault
As far as the PHP side of things goes, there are functions already built-in for that. You can read about it here: http://www.zend.com/zend/spotlight/spellchecking.php You could call php to do the spell check every so and so seconds or after every space or with a button... Really depends on

Re: [flexcoders] Using an ID String as an Object Reference

2006-12-18 Thread Patrick Mineault
this[componentIdName].reload(), although I think sending component names from ColdFusion is a terrible idea. Patrick 2006/12/18, Paul Whitelock [EMAIL PROTECTED]: I have a ColdFusion component that passes a string with the id of an Flex component to a Flex application (the component is

Re: [flexcoders] Re: Amfphp with AMF3 support: testers wanted

2006-12-18 Thread Patrick Mineault
as the endpoint URL would be exposed. Renaud's examples don't seem to include cairngorm-ified versions as was the case in the past and I haven't managed to crack this nut. Thx, Jamie --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Patrick Mineault [EMAIL PROTECTED] wrote: Hi all, I've

Re: [flexcoders] Re: Amfphp with AMF3 support: testers wanted

2006-12-18 Thread Patrick Mineault
, Patrick Mineault [EMAIL PROTECTED] wrote: Could you post the services_config.xml file you have? Patrick 2006/12/18, Jamie O [EMAIL PROTECTED]: Hello, I am able to do a stand-alone .mxml project using the samples you have provided and connect well to my php methods / backend database

Re: [flexcoders] Re: Amfphp with AMF3 support: testers wanted

2006-12-19 Thread Patrick Mineault
Awesome. Could you post your findings on a blog or something for future reference? Patrick Jamie O a écrit : I've never been so happy to realize I made such a stupid mistake! The subsequent error was related to a web service that I had somehow put an 'endpointdestinatio n' reference instead

Re: [flexcoders] Question for all you SQL Query experts

2006-12-20 Thread Patrick Mineault
I would suggest looking at what google does. It allows and/or searches in a completely unobstrusive manner. I would use only one search field, with the following algo: 1. split on 'OR' 2. split on words 3. join on words with AND 4. join on words with OR I would definitely search on all fields

Re: [flexcoders] Problem with FileReference.upload()

2006-12-21 Thread Patrick Mineault
You can read this post documenting the bug and its workarounds here: http://www.5etdemi.com/blog/archives/2006/10/php-filereference-and-sessions-a-bug-from-hell/ Patrick Dimitrios Gianninas a écrit : Its a bug, thats the way the Flash Player works, its not a Flex thing. I've submitted this

Re: [flexcoders] Flex Accessing HTTP Session

2006-12-27 Thread Patrick Mineault
No, HTTP sessions are stored on the server-side, so you can't access them from just the client side. The only thing you CAN access on the client side is cookies, which may contain the session id, but the actual data is stored on the server-side, indexed by that key. Patrick 2006/12/27, Ryan

Re: [flexcoders] RPC Pro's and Cons

2007-01-05 Thread Patrick Mineault
Basically you want to use RPC when you are going to consume and send data on initialization and based on user interaction (ie: pull). You want to use FDS when you need to notify a client to update its data based on a server event, or keep data synchronized between clients (ie: push). There are

Re: [flexcoders] Re: RPC Pro's and Cons

2007-01-05 Thread Patrick Mineault
over magic... LMAO. Patrick Tom Chiverton a écrit : On Thursday 04 January 2007 21:45, Jamie O wrote: -You need FDS over HTTP or Web when the security of the URL is important. Without FDS (or WebOrb or equivelent layer of server-side technology) the URL of the service is exposed in the

Re: [flexcoders] CRUD in XML

2007-01-06 Thread Patrick Mineault
You'd probably be better off to use Remoting to implement CRUD in Flex. Search for RemoteObject on Google and you should find a variety of resources. Patrick greg h a écrit : devis, Could you please provide a bit more detail about what you are trying to do? CRUD is an acronym usually

[flexcoders] AS3 decompiler

2007-01-08 Thread Patrick Mineault
If you guys haven't seen this yet: http://www.5etdemi.com/blog/archives/2007/01/as3-decompiler/ Patrick

Re: [flexcoders] Datagrid Scrolling -- Is it really this complicated?

2007-01-10 Thread Patrick Mineault
Granted, the behaviour of the datagrid is not optimal, but then again, why would you want to show 68 columns simultaneously? Even if the scrolling did work as you expect it to, that doesn't sound very user-friendly. I'd suggest thinking of another interface instead. For instance, you could

Re: [flexcoders] Re: Datagrid Scrolling -- Is it really this complicated?

2007-01-10 Thread Patrick Mineault
fields rendered into a drop down list for filtering (which is what Excel does when you apply the 'list')? I saw a sample online but it was developed in Flex 1.5 and couldn't get it to work. --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, Patrick Mineault

Re: [flexcoders] hostmysite, mySQL5, CF7, WebService, and Flex2 problems...

2007-01-11 Thread Patrick Mineault
You should try using ServiceCapture or Charles debugging proxy to inspect the data being sent over the wire when an error occurs. Patrick qnotemedia a écrit : I have two Flex apps using all of the above that perform flawlessly on my localhost, but after moving them to hostmysite.com, they

Re: [flexcoders] Re: hostmysite, mySQL5, CF7, WebService, and Flex2 problems...

2007-01-11 Thread Patrick Mineault
nature of the errors, is it possible that the problem here is that simple? Thanks, - Chris --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, Patrick Mineault patrick.mineault@ ... wrote: You should try using ServiceCapture or Charles debugging proxy to inspect

Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Patrick Mineault
It's your services-config.xml that is off. Try using this: ?xml version=1.0 encoding=UTF-8? services-config services service id=amfphp-flashremoting-service class=flex.messaging.services.RemotingService

Re: [flexcoders] AMFPHP, Cairngorm VO

2007-01-15 Thread Patrick Mineault
Sure thing. If you want to return an array of com.one.of.my.customVO, then say the php class is: ?php class customVO { //Declare variables below var $_explicitType = com.one.of.my.customVO; } ? PHP doesn't support packages, so to send the full package name to Flash you have to set the

Re: [flexcoders] AMFPHP, Cairngorm VO

2007-01-15 Thread Patrick Mineault
, at 6:09 PM, Patrick Mineault wrote: Sure thing. If you want to return an array of com.one.of.my. customVO, then say the php class is: ?php class customVO { //Declare variables below var $_explicitType = com.one.of. my.customVO ; } ? PHP doesn't support packages, so to send the full package

Re: [flexcoders] AMFPHP Security

2007-01-17 Thread Patrick Mineault
Amfphp is not inherently less secure than FDS. Anybody who wants to can spoof requests to FDS or amfphp, just like they can for HTTP POST. As a side-note, users don't have to bother to decompile your SWF; they can just sniff packets coming in or out of your movie using ServiceCapture or

Re: [flexcoders] AMFPHP Security

2007-01-17 Thread Patrick Mineault
and it's pretty sweet. Doesn't handle associations or anything but it's still cool. There's also Propel/Creole. Kevin a écrit : On Jan 17, 2007, at 10:27 AM, Patrick Mineault wrote: So you either have to make sure you do receive the VO type you expect, using instanceof or is_a, or you should

Re: [flexcoders] AMFPHP Security

2007-01-18 Thread Patrick Mineault
Wouldn't Fluorine and OpenAMF throw a type-coercion error, given that the first argument is typed? Of course, the code in the constructor would be called anyways. Patrick Zoltan Csibi a écrit : Hi, I would like to underline that somebody with good AMF knowledge can craft strongly typed

Re: [flexcoders] Re: AMFPHP Security

2007-01-18 Thread Patrick Mineault
%40yahoogroups.com [mailto:[EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Patrick Mineault Sent: Thursday, January 18, 2007 6:29 PM To: [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] AMFPHP Security Wouldn't Fluorine

Re: [flexcoders] HTTPService Vs PHP

2007-01-20 Thread Patrick Mineault
You should look into amfphp for this kind of thing. Basically instead of using HTTPService, you use RemoteObject, and you don't have to worry at all about serializing your data on the PHP side. You should read this tutorial here: http://sephiroth.it/tutorials/flashPHP/flex_remoteobject/

Re: [flexcoders] AMFPHP Service Browser SVN

2007-01-20 Thread Patrick Mineault
Could you expand on what your setup is like? The Apache htdocs folder vs. the SVN location (on the same machine? elsewhere?) vs. the service browser being loaded locally or from the server, etc. Patrick Kevin a écrit : I am trying to figure out how to use the AMFPHP service browser with my

Re: [flexcoders] Displaying Mathematical Formulas in Flex

2007-02-02 Thread Patrick Mineault
You could use a LaTeX renderer to do this, which would be located on the server. I've used MimeTex and it's worked great for me. If you wanted, you could eventually port that C code to AS3 and do the rendering in Flex itself. That would be a major, major undertaking IMHO though. Patrick

Re: [flexcoders] How to save an ArrayCollection to php via HTTPService

2007-02-21 Thread Patrick Mineault
Using amfphp would definitely be the easiest. Then you would just need to set up a RemoteObject tag and call ro.saveArrayCollection(arr_collection) and be done with it. You would receive the ArrayCollection as a PHP array on the other side. Patrick rkrater a écrit : Can someone give me an

Re: [flexcoders] Re: amfphp + codeigniter

2007-02-21 Thread Patrick Mineault
You have a few options here. The first is to call flickr directly through XML-RPC using Flex. You could use plain old E4X for that, or you could use a wrapper library for it. Try it here: http://www.hrum.org/people/debedb/pro/blog/2006/12/xmlrpc_in_flex_2actionscript_3_1.html As Renaun

Re: [flexcoders] Re: AMFPHP 1.9, class mapping not working, advancedsettings.php question

2007-02-21 Thread Patrick Mineault
:( In one of the messages that Patrick Mineault wrote I read that for class mapping I should put [RemoteClass( alias=com. virtualro. shell.vo. LoginVO) ] in Flex LoginVO.as (just like in amfphp 1.2) and public $_explicitType = com.virtualro. shell.vo. LoginVO; //in LoginVO.php

Re: [flexcoders] Are other developers hesitant to extend existing classes in Flex?

2007-02-21 Thread Patrick Mineault
I've had a lot of issues as well with private functions. I would have suggested to use protected basically everywhere since you can't really plan for where developers will want to modify the components. As far as composition vs. inheritance, well, composition doesn't solve every problem. I had

Re: [flexcoders] amfPHP 1.9 beta 2, malformed amf object question

2007-02-23 Thread Patrick Mineault
Try adding this in gateway.php: $gateway-setLooseMode(true); It was an oversight on my part, will be fixed in next version. Patrick Kun Janos a écrit : Hi all I updatet amfphp 1.2 to amfPHP 1.9 beta 2. In the old services/dao 's I had some echo/print commands for debugging and amfphp

Re: [flexcoders] New Project: FlexCRUD -- Create Update Delete for Flex/amfphp/cairngorm

2007-02-26 Thread Patrick Mineault
Sounds awesome. URL doesn't work though. Patrick Mike Crowe a écrit : Hi folks, I'm in the process of releasing my system generation utility via riaforge. Essentially, I'm using about 15 templates to generate 100 files. From a 1' perspective, I have created a generic template based

Re: [flexcoders] Announcing FlexLib - open source flex component library

2007-03-01 Thread Patrick Mineault
Awesome stuff! Maybe I'll add a WrappingLinkBar component once I get that working for the amfphp service browser. Patrick Doug McCune a écrit : I'm pleased to announce FlexLib: a new open-source project for Flex 2 components. This project is a Google Code hosted project, released under the

Re: [flexcoders] Storing VO in Sessions AMFPHP?

2007-03-04 Thread Patrick Mineault
It's been mentioned and solved here: http://nothinghappens.net/?p=127 Patrick Kevin a écrit : looks like my problem is: __PHP_Incomplete _Class_Name __PHP_Incomplete_ Class Object from PHP.net: 'If you have saved an object in session, you must define the class of the object before

Re: [flexcoders] cacheAsBitmap - does anyone know?

2007-03-06 Thread Patrick Mineault
You should only use cacheAsBitmap if you plan on modifying x, y, and alpha properties of a sprite. Changing rotation or scale means that the cache will be reset, so you will have worse performance. Adding a filter to anything sets cacheAsBitmap to true on it, but not on any of its children.

Re: [flexcoders] Re: WebORB or AMFPHP for big Application

2007-04-10 Thread Patrick Mineault
Keep in mind that AMFPHP may go under the radar (or drop off it completely) as the lead developer has decided to pursue another career and I have not seen any announcement of anybody else taking over for him. I'll be releasing amfphp 2 before I retire, and I have someone here that is interested