[Flashcoders] SWX 2.00 Released

2008-12-24 Thread Fabrício Seger Kolling - Dulldusk

A new version of SWX has been released!

SWX is a Flash RPC that assembles the result on SWF format.
The project includes an AS2 and AS3 compiler, developed in pure PHP.
With a very simple usage, the same code works on AS2, AS3 and Flex.

Example:
// On the server we have a class /swx/services/Simple.php with an 
addNumbers method.
// Usage: swx.serviceClass.method(args:Array, [resultHandler:Function], 
[debug:Boolean])


import org.swxformat.*;
var swx:SWX = new SWX();
swx.gateway = http://www.swxformat.org/php/swx.php;;

swx.Simple.addNumbers([1,4], resultHandler);

function resultHandler(e:Object) : void {
   trace(The result is:  + e.result);
}

More Info:
http://code.google.com/p/swx-format/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Edit SWF file server side via PHP

2008-11-07 Thread Fabrício Seger Kolling - Dulldusk

Hi

You could call mtasc thru php and inject a dynamic generated code on 
your movie.

http://www.mtasc.org/

But why to you want to change variables inside a movie? Why don't just 
load the variables?


Fabrício

Ian Thomas wrote:

You could take a look at swfmill - I've done something similar before
using PHP to call it.

http://www.swfmill.org

HTH,
   Ian

On Thu, Nov 6, 2008 at 10:19 PM, Mick G [EMAIL PROTECTED] wrote:
  

I have a SWF that I want to be able to change a few variables server-side
via PHP. I know there is MING (libming.org) but would prefer not to have to
go to this much trouble and am hoping I can do this via PHP.

From a post here
http://board.flashkit.com/board/showpost.php?s=16555be9b9b1f6afc35f0dc2dccb07d8p=4016713postcount=1it
looks possible.
I also noticed sephiroth has done work editing SWF files server-side using
UNPACK in php - http://www.sephiroth.it/swfreader.php

Has anyone done anything like this before, got code or anything to share?

Thanks,
Mick
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Edit SWF file server side via PHP

2008-11-07 Thread Fabrício Seger Kolling - Dulldusk

Then MTASC is the best solution for you.
You can use PHP to generate the AS2 class with the dynamic data, and 
inject it on the SWF file using a PHP exec call to MTASC.


Fabrício S. Kolling - Dulldusk

Mick G wrote:
My users want to be able to download the SWFs to their computers so 
they can play them, and also upload these SWFs to other websites so 
they need to be stand-alone SWFs.



On Fri, Nov 7, 2008 at 3:40 AM, Fabrício Seger Kolling - Dulldusk 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:


Hi

You could call mtasc thru php and inject a dynamic generated code
on your movie.
http://www.mtasc.org/

But why to you want to change variables inside a movie? Why don't
just load the variables?

Fabrício



On Thu, Nov 6, 2008 at 10:19 PM, Mick G [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
 


I have a SWF that I want to be able to change a few
variables server-side
via PHP. I know there is MING (libming.org
http://libming.org) but would prefer not to have to
go to this much trouble and am hoping I can do this via PHP.

From a post here

http://board.flashkit.com/board/showpost.php?s=16555be9b9b1f6afc35f0dc2dccb07d8p=4016713postcount=1it

http://board.flashkit.com/board/showpost.php?s=16555be9b9b1f6afc35f0dc2dccb07d8p=4016713postcount=1it
looks possible.
I also noticed sephiroth has done work editing SWF files
server-side using
UNPACK in php - http://www.sephiroth.it/swfreader.php

Has anyone done anything like this before, got code or
anything to share?

Thanks,
Mick



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] The current state of RPC

2008-11-03 Thread Fabrício Seger Kolling - Dulldusk

Hi Joel

XML is too much overhead.

BlaseDS is java only.
http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/

For the shared server, the best solutions are AMF and SWX.

AMF has PHP, ASP .NET and JAVA implementations, and maybe others.
I take it for the current opensource standart, but i use SWX because i 
like it better.

AMFPHP currently offers both AS2 and AS3 api.
It uses AMF for client-server and server-client comunication .
http://www.amfphp.org/
http://www.fluorinefx.com/
http://www.openamf.com/

SWX has PHP, ASP .NET and RUBY implementations.
I don't know about the current ASP and RUBY versions.
SWXPHP currently offers AS2 api only, but this is going to change soon.
It uses JSON for client-server and generates SWFs for server-client 
comunication.

SWX primes for simplicity.
It's main difference when compared to AMF, is that there is no 
deserialization of the response.
No matter how much data you send, when the client loads the file, the 
data is ready for use.
Example, my CMS creates a single file with all dynamic text content on 
the website, small and compressed.
This file is loaded only once when you enter the website and that makes 
everything simpler for coding, because all data is already there.
Of course, someone could cache an AMF response at server side to attain 
the same result without overloading the server.
But as soon as the response reached the client, it probably whould 
freeze for a moment just to deserialize all that data.
We are working on a new release that will include an AS3 api, and a AVM2 
PHP Assembler written from scratch.
Right now the only opensource project i know that is able to create AVM2 
SWFs is HAXE.

http://code.google.com/p/swx-format/
http://swxruby.org/
http://swxnet.tumblr.com/
http://haxe.org/doc/flash/0_start

--
Fabrício Seger Kolling - Dulldusk

Joel Stransky wrote:

Hello devs,
I'm brand new to the list but have read plenty of entries over the years.

I've been reading up on various solutions to RPC namely dealing with AMF and
I'm kinda lost on what the current standard solutions might be.
There's quite a bit of history between amfphp and swx, both of which have
there importance blurred by adobe's release of blazeds.

So my question is, what is the current preferred solution?
I'd be interested to hear from seasoned devs as far as what you're using,
your reasons (security, ease of use, supported platforms etc) for using it
and basic descriptions of your implamentations ie JSON, XML what have you.

Thanks for your time,
--Joel
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Debugger Text Field

2008-09-08 Thread Fabrício Seger Kolling - Dulldusk
   // update window after 1s without receiving data or case buffer 
exceds 100 chars

   function log(str) {
   buffer += str + chr(10);  
   if (buffer.length  100) {

   checkChange();
   } else {
   clearInterval(intervalCheckChange);
   intervalCheckChange = setInterval(this, checkChange, 1000);
   }
   }
   function checkChange() {
   clearInterval(intervalCheckChange);
   if (buffer.length  0) {
   TF_debug.text += buffer;
   buffer = ;
   if (TF_debug.text.length  (maxChars + 1000)) {
   TF_debug.text = 
TF_debug.text.substr(TF_debug.text.length - maxChars);
   TF_debug.text = 
TF_debug.text.substr(TF_debug.text.indexOf(chr(10)) + 1);

   }
   MC_scroll.gotoEnd();
   MC_scroll.checkChange();
   }
   }

Fabrício Seger Kolling - Dulldusk

Christoffer Enedahl wrote:
I do something like this, It can be optimized, Im moving all logs 
every time when you can have something like a ringbuffer instead:


   private var _log:Array = new Array(20);
   public function log(t:*)
   {
   for (var i:int = 0; i  _log.length-1; i++) {
   _log[i] = _log[i + 1];
   }
   _log[_log.length - 1] = t;
 output.text = _log.join(\n);
   }

HTH/Christoffer

eric e. dolecki skrev:

Hey all,
I have a class that serves as a debugger - containing a textfield 
that text
gets dumped into. Rather quickly. What might be the best way to 
simply limit
the number of lines in the field itself, as the appends after a while 
bog

the application down (understandable).

I have many ideas, but I don't want the mechanism to clean up add too 
much

overhead itself.

Thanks,
Eric
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ASCrypt Nowhere To Be Found?

2008-01-17 Thread Fabrício Seger Kolling - Dulldusk

As meychi.com is currently offline, you may found ASCrypt for AS2 here:

http://www.jek2k.com/wp/index.php/2007/05/22/cryptography-and-flash/

Download Link:

http://www.jek2k.com/wp/wp/wp-content/uploads/2007/05/ascrypt_sample.zip

And for AS3 here:

http://ascrypt3.riaforge.org/

Download Link:

http://ascrypt3.riaforge.org/index.cfm?event=action.download

Cheers
Fabrício Seger Kolling
mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
The original ASCrypt website seems to be down. Does anyone have the 
files?


Thanks
Elia
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ASCrypt Nowhere To Be Found?

2008-01-17 Thread Fabrício Seger Kolling - Dulldusk

As meychi.com is currently offline, you may found ASCrypt for AS2 here:

http://www.jek2k.com/wp/index.php/2007/05/22/cryptography-and-flash/

Download Link:

http://www.jek2k.com/wp/wp/wp-content/uploads/2007/05/ascrypt_sample.zip

And for AS3 here:

http://ascrypt3.riaforge.org/

Download Link:

http://ascrypt3.riaforge.org/index.cfm?event=action.download

Cheers
Fabrício Seger Kolling

[EMAIL PROTECTED] wrote:
The original ASCrypt website seems to be down. Does anyone have the 
files?


Thanks
Elia
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders