From paul at mediactief.nl Wed Jul 2 00:10:34 2008 From: paul at mediactief.nl (Mediactief - Paul de Raaij) Date: Wed, 2 Jul 2008 09:10:34 +0200 Subject: [swx] Character encoding Message-ID: <017d01c8dc12$b86a5ec0$293f1c40$@nl> Hello All, I have a problem with the character encoding on a flash website. In site special characters won?t be shown and only their HTML equivalent is shown. For example the ? is show as á and ? as $euml; I?ve made everything UTF-8. In the flash the systemcode is false. The characters are included. In the php service everything is utf-8 encode thru utf8_encode. So I?m a bit lost what the problem can be. SWS is UTF-8 right? Thanks in advance! Met vriendelijke groet, Mediactief Paul de Raaij Moddermanplein 10 2675 CT Honselersdijk T: 0174-642451 M: 06-55797329 E: paul at mediactief.nl W: www.mediactief.nl W: www.mediactief.eu The information in this e-mail message (including any information contained in attachments hereto) is intended only for use of the addressee. This e-mail message contains confidential or privileged information. If you receive this e-mail message unintentionally, please notify the sender immediately and then delete this message. E-mail transmission is not guaranteed to be secured or error free. The sender is in no way liable for any errors or omissions in the content of this e-mail message, which may arise as a result of e-mail transmission -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080702/d2c5a60f/attachment.html From paul at mediactief.nl Wed Jul 2 00:19:57 2008 From: paul at mediactief.nl (Mediactief - Paul de Raaij) Date: Wed, 2 Jul 2008 09:19:57 +0200 Subject: [swx] Character encoding In-Reply-To: <017d01c8dc12$b86a5ec0$293f1c40$@nl> References: <017d01c8dc12$b86a5ec0$293f1c40$@nl> Message-ID: <018d01c8dc14$08152800$183f7800$@nl> Forget it! I forgot one thing and that was the tinyMCE editor. It converted everything into the HTML entities. Thanks anyway Met vriendelijke groet, Mediactief Paul de Raaij Moddermanplein 10 2675 CT Honselersdijk T: 0174-642451 M: 06-55797329 E: paul at mediactief.nl W: www.mediactief.nl W: www.mediactief.eu The information in this e-mail message (including any information contained in attachments hereto) is intended only for use of the addressee. This e-mail message contains confidential or privileged information. If you receive this e-mail message unintentionally, please notify the sender immediately and then delete this message. E-mail transmission is not guaranteed to be secured or error free. The sender is in no way liable for any errors or omissions in the content of this e-mail message, which may arise as a result of e-mail transmission Van: swx-bounces at osflash.org [mailto:swx-bounces at osflash.org] Namens Mediactief - Paul de Raaij Verzonden: woensdag 2 juli 2008 9:11 Aan: swx at osflash.org Onderwerp: [swx] Character encoding Hello All, I have a problem with the character encoding on a flash website. In site special characters won?t be shown and only their HTML equivalent is shown. For example the ? is show as á and ? as $euml; I?ve made everything UTF-8. In the flash the systemcode is false. The characters are included. In the php service everything is utf-8 encode thru utf8_encode. So I?m a bit lost what the problem can be. SWS is UTF-8 right? Thanks in advance! Met vriendelijke groet, Mediactief Paul de Raaij Moddermanplein 10 2675 CT Honselersdijk T: 0174-642451 M: 06-55797329 E: paul at mediactief.nl W: www.mediactief.nl W: www.mediactief.eu The information in this e-mail message (including any information contained in attachments hereto) is intended only for use of the addressee. This e-mail message contains confidential or privileged information. If you receive this e-mail message unintentionally, please notify the sender immediately and then delete this message. E-mail transmission is not guaranteed to be secured or error free. The sender is in no way liable for any errors or omissions in the content of this e-mail message, which may arise as a result of e-mail transmission -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080702/461c6ec7/attachment.html From shabith.ishan at gmail.com Sun Jul 13 22:48:07 2008 From: shabith.ishan at gmail.com (Shabith Ishan) Date: Mon, 14 Jul 2008 11:18:07 +0530 Subject: [swx] Best way to pass the args In-Reply-To: References: Message-ID: Hi all, Well Im new to swx. And my question is what is the best way to pass args. I mean if args are empty, which mean if we dont wont to pass args at all. And i have test 2 way for it as arg : [] arg : null both ways are work perfectly upto now. but dont know what is the best way. thanks. Shabith Ishan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080714/f25a038b/attachment.html From ben.lagoutte at gozer.com.au Sun Jul 13 22:57:27 2008 From: ben.lagoutte at gozer.com.au (Ben Lagoutte) Date: Mon, 14 Jul 2008 15:57:27 +1000 Subject: [swx] Best way to pass the args In-Reply-To: References: Message-ID: <487AEAC7.9060604@gozer.com.au> Hi, Welcome. Well if you do not have any arguments you can simply omit the args declaration entirely. Ben Shabith Ishan wrote: > Hi all, > > Well Im new to swx. And my question is what is the best way to pass args. > I mean if args are empty, which mean if we dont wont to pass args at all. > And i have test 2 way for it as > > arg : [] > arg : null > > both ways are work perfectly upto now. but dont know what is the best way. > > thanks. > > Shabith Ishan > > > > ------------------------------------------------------------------------ > > _______________________________________________ > swx mailing list > swx at osflash.org > http://osflash.org/mailman/listinfo/swx_osflash.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080714/ea81a02f/attachment.html From shabith.ishan at gmail.com Tue Jul 15 00:28:05 2008 From: shabith.ishan at gmail.com (Shabith Ishan) Date: Tue, 15 Jul 2008 12:58:05 +0530 Subject: [swx] swx Digest, Vol 13, Issue 2 In-Reply-To: References: Message-ID: hi, yes, it works great. Thanks for your help. Shabith Ishan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080715/d5d7064a/attachment.html From grahama1970 at gmail.com Mon Jul 21 12:38:45 2008 From: grahama1970 at gmail.com (Graham Anderson) Date: Mon, 21 Jul 2008 12:38:45 -0700 Subject: [swx] AS3 Compatbility Message-ID: <64D56E30-CABA-4D46-BE4B-7D5DBBDBCA98@gmail.com> Hi I am considering SWX for an upcoming Flash/PHP/MYSQL project. Two questions: 1) Is SWX still being developed/maintained? 2) Is SWX now AS3 compatible? Many thanks in advance Graham From seanlail at hotmail.com Mon Jul 21 13:01:31 2008 From: seanlail at hotmail.com (Sean Lailvaux) Date: Mon, 21 Jul 2008 21:01:31 +0100 Subject: [swx] AS3 Compatbility In-Reply-To: <64D56E30-CABA-4D46-BE4B-7D5DBBDBCA98@gmail.com> References: <64D56E30-CABA-4D46-BE4B-7D5DBBDBCA98@gmail.com> Message-ID: Hey Graham, 1. I have no idea, I just subscribed to this list the other day. 2. Nolan Butcher posted a solution on his blog: http://flexgraphix.com/blog/?p=34 Cheers Sean > From: grahama1970 at gmail.com > To: swx at osflash.org > Date: Mon, 21 Jul 2008 12:38:45 -0700 > Subject: [swx] AS3 Compatbility > > Hi > I am considering SWX for an upcoming Flash/PHP/MYSQL project. > > Two questions: > 1) Is SWX still being developed/maintained? > 2) Is SWX now AS3 compatible? > > Many thanks in advance > Graham > > _______________________________________________ > swx mailing list > swx at osflash.org > http://osflash.org/mailman/listinfo/swx_osflash.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080721/e25c0a70/attachment.html From ben_da_dog at yahoo.co.uk Mon Jul 21 14:46:55 2008 From: ben_da_dog at yahoo.co.uk (ben) Date: Tue, 22 Jul 2008 07:46:55 +1000 Subject: [swx] AS3 Compatbility In-Reply-To: <64D56E30-CABA-4D46-BE4B-7D5DBBDBCA98@gmail.com> References: <64D56E30-CABA-4D46-BE4B-7D5DBBDBCA98@gmail.com> Message-ID: <488503CF.1050203@yahoo.co.uk> Hi Graham, 1) Technically yes I think, I hope... but I haven't seen much movement in a while on the swx website. 2) Sean's suggested option is the only one i've seen to "support" AS3. There's been talk about it but I guess it goes back to answer 1. Swx's great otherwise, love it. Real shame about that missing AS3 version though, there's going to be an increasing demand for it. Ben Graham Anderson wrote: > Hi > I am considering SWX for an upcoming Flash/PHP/MYSQL project. > > Two questions: > 1) Is SWX still being developed/maintained? > 2) Is SWX now AS3 compatible? > > Many thanks in advance > Graham > > _______________________________________________ > swx mailing list > swx at osflash.org > http://osflash.org/mailman/listinfo/swx_osflash.org > > From dulldusk at gmail.com Tue Jul 22 11:02:02 2008 From: dulldusk at gmail.com (=?ISO-8859-1?Q?Fabr=EDcio_Seger_Kolling_-_Dulldusk?=) Date: Tue, 22 Jul 2008 15:02:02 -0300 Subject: [swx] AS3 Compatbility In-Reply-To: <488503CF.1050203@yahoo.co.uk> References: <64D56E30-CABA-4D46-BE4B-7D5DBBDBCA98@gmail.com> <488503CF.1050203@yahoo.co.uk> Message-ID: <4886209A.8030904@gmail.com> 1) I've done several modifications on swx. The main feature i added is better error handling, so you can see what's happening on the backend. http://osflash.org/pipermail/swx_osflash.org/2007-September/000041.html I've also done some modifications to support foreign characters. http://osflash.org/pipermail/swx_osflash.org/2007-December/000096.html But i don't know how is the development going. There where no other releases after v1.0.1 I can't access the svn because it asks for a password. http://svn1.cvsdude.com/osflash/swx > A username and password are being requested by http://svn1.cvsdude.com. The site says: "Subversion login (osflash)" I assumed that it was a hint and tried all combinantions, nothing. 2) I've already used SWX on AS3 thru LocalConnection between the two ASVM, works perfectly. The last thing i know about AS3 PHP Compiler development is on this Aral's post. http://osflash.org/pipermail/swx_osflash.org/2008-May/000245.html And he refers to a code from Richard Lord that's available here. http://www.bigroom.co.uk/blog/if-you-want-to-create-avm2-swfs-from-php The code can create the number formats used in AVM2 swfs. I read his code, but i've not even tested it yet, to see what i could do with it. There's other work with source available for the job. If you know MTASC, then you know HAXE and should know it can compile Flash9 movies. hxasm: haXe Flash9 Assembler Library http://haxe.org/com/libs/hxasm source code: http://lib.haxe.org/p/hxasm My guess is that we could use Richard's code as a base, compare it to SWX v1.01 compiler and add what's lacking from hxasm source. Cheers! Fabr?cio Seger Kolling ben wrote: > Hi Graham, > > 1) Technically yes I think, I hope... but I haven't seen much movement > in a while on the swx website. > 2) Sean's suggested option is the only one i've seen to "support" AS3. > There's been talk about it but I guess it goes back to answer 1. > > Swx's great otherwise, love it. Real shame about that missing AS3 > version though, there's going to be an increasing demand for it. > > Ben > > Graham Anderson wrote: > >> Hi >> I am considering SWX for an upcoming Flash/PHP/MYSQL project. >> >> Two questions: >> 1) Is SWX still being developed/maintained? >> 2) Is SWX now AS3 compatible? >> >> Many thanks in advance >> Graham >> >> _______________________________________________ >> swx mailing list >> swx at osflash.org >> http://osflash.org/mailman/listinfo/swx_osflash.org >> >> >> > > > _______________________________________________ > swx mailing list > swx at osflash.org > http://osflash.org/mailman/listinfo/swx_osflash.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080722/c8ef9d26/attachment.html From omi at mangosix.co.uk Sun Jul 27 19:51:05 2008 From: omi at mangosix.co.uk (Omi Chowdhury) Date: Mon, 28 Jul 2008 03:51:05 +0100 Subject: [swx] So I made an SWX AS3 Connecter Message-ID: <8dfef8860807271951i5ca86af8s17954df6fd25f778@mail.gmail.com> Hi, I wanted to use SWX for an upcoming Flex project so I spent yesterday knocking up this AS3 SWX Connecter that currently works, mostly. More info here: http://omi.mango6.com/2008/07/28/introducing-the-as3-swx-connecter/ It's nearly finished but there are a few bugs that I wanted some help with: [from blog] - Setting debug: true breaks it - having looked through the SWX code, I still can't figure out why - Does not work in Flex because the LocalConnection does not connect when the connecter is loaded via a Loader. Only way currently is to use a SWFLoader Component (creating a SWFLoader instance in AS does not work) but nobody wants SWFLoader MXML in their source code, defeats the point of abstracting everything to a library - maybe make a SWX component. I've still to find a LocalConnection used in Flex that doesn't use a SWFLoader Component, so there probably is a reason - I just don't know what it is. Anyone have any ideas? Regards Omi -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080728/5358721c/attachment.html From ben.lagoutte at gozer.com.au Sun Jul 27 20:14:38 2008 From: ben.lagoutte at gozer.com.au (Ben Lagoutte) Date: Mon, 28 Jul 2008 13:14:38 +1000 Subject: [swx] So I made an SWX AS3 Connecter In-Reply-To: <8dfef8860807271951i5ca86af8s17954df6fd25f778@mail.gmail.com> References: <8dfef8860807271951i5ca86af8s17954df6fd25f778@mail.gmail.com> Message-ID: <488D399E.70800@gozer.com.au> That's awesome Omi, thanks for the contribution. Ben Omi Chowdhury wrote: > Hi, > > I wanted to use SWX for an upcoming Flex project so I spent yesterday > knocking up this AS3 SWX Connecter that currently works, mostly. > More info here: > http://omi.mango6.com/2008/07/28/introducing-the-as3-swx-connecter/ > > It's nearly finished but there are a few bugs that I wanted some help > with: > [from blog] > > * Setting debug: true breaks it - having looked through the SWX > code, I still can't figure out why > * Does not work in Flex because the LocalConnection does not > connect when the connecter is loaded via a Loader. Only way > currently is to use a SWFLoader Component (creating a SWFLoader > instance in AS does not work) but nobody wants SWFLoader MXML in > their source code, defeats the point of abstracting everything > to a library - maybe make a SWX component. > > I've still to find a LocalConnection used in Flex that doesn't use a > SWFLoader Component, so there probably is a reason - I just don't know > what it is. > Anyone have any ideas? > > Regards > Omi > ------------------------------------------------------------------------ > > _______________________________________________ > swx mailing list > swx at osflash.org > http://osflash.org/mailman/listinfo/swx_osflash.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080728/6fa64e67/attachment.html From dulldusk at gmail.com Mon Jul 28 07:01:58 2008 From: dulldusk at gmail.com (=?ISO-8859-1?Q?Fabr=EDcio_Seger_Kolling_-_Dulldusk?=) Date: Mon, 28 Jul 2008 11:01:58 -0300 Subject: [swx] So I made an SWX AS3 Connecter In-Reply-To: <8dfef8860807271951i5ca86af8s17954df6fd25f778@mail.gmail.com> References: <8dfef8860807271951i5ca86af8s17954df6fd25f778@mail.gmail.com> Message-ID: <488DD156.9070007@gmail.com> Great job! Until we have an AVM2 swf Compiler, this is the only way. Just remind there is a 40Kb limit for LocalConnection.send(). On a website I developed, i had to create a procedure to transfer the data on multiple calls. About the bugs you mentioned, i don't have any ideas. Fabr?cio Seger Kolling Omi Chowdhury wrote: > Hi, > > I wanted to use SWX for an upcoming Flex project so I spent yesterday > knocking up this AS3 SWX Connecter that currently works, mostly. > More info here: > http://omi.mango6.com/2008/07/28/introducing-the-as3-swx-connecter/ > > It's nearly finished but there are a few bugs that I wanted some help > with: > [from blog] > > * Setting debug: true breaks it - having looked through the SWX > code, I still can't figure out why > * Does not work in Flex because the LocalConnection does not > connect when the connecter is loaded via a Loader. Only way > currently is to use a SWFLoader Component (creating a SWFLoader > instance in AS does not work) but nobody wants SWFLoader MXML in > their source code, defeats the point of abstracting everything > to a library - maybe make a SWX component. > > I've still to find a LocalConnection used in Flex that doesn't use a > SWFLoader Component, so there probably is a reason - I just don't know > what it is. > Anyone have any ideas? > > Regards > Omi > ------------------------------------------------------------------------ > > _______________________________________________ > swx mailing list > swx at osflash.org > http://osflash.org/mailman/listinfo/swx_osflash.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080728/9ce9ae1b/attachment.html From peter at wizk.it Thu Jul 31 05:14:36 2008 From: peter at wizk.it (wizkit) Date: Thu, 31 Jul 2008 14:14:36 +0200 Subject: [swx] SWX and MySQL Message-ID: <4891ACAC.5020203@wizk.it> Hello, I recently upgraded to a newer version of Flash and lost my Remoting components and could not work with AMFPHP in Flash anymore. Before searching for the remoting components I thought to try out SWX as an alternative since it doesn't require these components. But I stumbled upon a problem when trying to work with a MySQL resultset. In the Service Explorer the resultset is shown nicely (because it uses AMFPHP I guess?), but when I test it in Flash the Data Analyzer returns Value = Error 256: Unhandled data type (resource) in D:\xampp\htdocs\swx\php\SwxAssembler.php, line 145. Do I have to turn my resultset into an array? The code I am trying to get to work is below. If I could get this to work, I could use my AMFPHP services without modification in SWX, that would be great. Looking forward to your replies. Peter ------------------------------------------------------------------------ *the SWX Service Method:* function getMenu() { include_once "connect.php"; // some script to connect to your database $sql="SELECT * FROM sometable"; $rs1 = mysql_query($sql); return $rs1; } *Actionscript:* import org.swxformat.SWX; var swx:SWX = new SWX(); swx.gateway = "http://localhost/swx/php/swx.php"; swx.debug = true; var callParameters:Object = { serviceClass: "menubar", method: "getMenu", result: [this, resultHandler], args: "" } swx.call(callParameters); function resultHandler(event:Object) { this.myDatagrid.dataProvider = event.result; } -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080731/d7b71907/attachment.html From ben_da_dog at yahoo.co.uk Thu Jul 31 06:08:16 2008 From: ben_da_dog at yahoo.co.uk (ben) Date: Thu, 31 Jul 2008 23:08:16 +1000 Subject: [swx] SWX and MySQL In-Reply-To: <4891ACAC.5020203@wizk.it> References: <4891ACAC.5020203@wizk.it> Message-ID: <4891B940.3000706@yahoo.co.uk> Hi Peter, Yes, I think mysql_query return a resource type (http://au2.php.net/manual/en/function.mysql-query.php) and resource type isn't handled by SWX in the conversion. So yes, you'll need to do a mysql_fetch_assoc or something similar to return a format that's recognised, in this case an array. And yes, I do believe the Service Explorer uses amfphp. Vaguely remember a previous post about this. Hope that helps. Ben wizkit wrote: > Hello, > > I recently upgraded to a newer version of Flash and lost my Remoting > components and could not work with AMFPHP in Flash anymore. Before > searching for the remoting components I thought to try out SWX as an > alternative since it doesn't require these components. But I stumbled > upon a problem when trying to work with a MySQL resultset. In the > Service Explorer the resultset is shown nicely (because it uses AMFPHP > I guess?), but when I test it in Flash the Data Analyzer returns > > Value = Error 256: Unhandled data type (resource) in > D:\xampp\htdocs\swx\php\SwxAssembler.php, line 145. > > Do I have to turn my resultset into an array? The code I am trying to > get to work is below. If I could get this to work, I could use my > AMFPHP services without modification in SWX, that would be great. > > Looking forward to your replies. > > Peter > ------------------------------------------------------------------------ > > *the SWX Service Method:* > > function getMenu() > { > include_once "connect.php"; // some script to connect to > your database > $sql="SELECT * FROM sometable"; > $rs1 = mysql_query($sql); > return $rs1; > } > > > *Actionscript:* > > import org.swxformat.SWX; > > var swx:SWX = new SWX(); > swx.gateway = "http://localhost/swx/php/swx.php"; > swx.debug = true; > > var callParameters:Object = > { > serviceClass: "menubar", > method: "getMenu", > result: [this, resultHandler], > args: "" > } > swx.call(callParameters); > > function resultHandler(event:Object) > { > this.myDatagrid.dataProvider = event.result; > } > > ------------------------------------------------------------------------ > > _______________________________________________ > swx mailing list > swx at osflash.org > http://osflash.org/mailman/listinfo/swx_osflash.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080731/1d0779c6/attachment.html