NYCPHP Meetup

NYPHP.org

[nycphp-talk] Best recommendations for SWF -> PHP -> SWF

corey szopinski corey at domanistudios.com
Tue Sep 7 17:37:09 EDT 2004


Phil-

I think you¹re best bet is to have your SWF¹s pull content in at runtime
using XML or loadVars (urlencoded name/value pairs). Putting PHP into a SWF
doesn't make much sense since the server won¹t parse PHP unless it¹s a text
file with a .php extension.

I also think you¹ll find that decompiling .swfs is not an exact science. In
fact, I¹d be surprised if anyone has decompiled a swf into a usable FLA. You
might get away with pulling AS out as Yury suggested, but the simplest
answer is to get the original FLA¹s, tweak them to pull in content at
runtime, then output clean swfs.

We use this architecture quite a bit (look at the Whitney.org homepage for
an example). You¹ll see that most of the content is held in external text or
xml docs. The ³shell² has the loader and the graphics, but the dynamic
content is loaded separately.

Hope that helps.

-corey


On 9/7/04 5:32 PM, "Phillip Powell" <phillip.powell at adnet-sys.com> wrote:

> Yury Rush wrote:
> 
>> You need something to rip the AS out -- yes possible.
>> http://www.sothink.com/flashdecompiler/
>> 
>> You can edit it ( add the php right inside it ) then publish to swf.
>>  
>> 
> 
> Would I actually publish back to swf?  That would be very impractical
> since the customer wants the ability to edit and delete text on the fly,
> in short, a CMA.  He wants to edit things like news, events, etc. and be
> able to see the changes immediately upon his Flash-encoded website pages.
> 
> That's why I wanted to ask first before going down the wrong direction.
> 
> Phil


DOMANI STUDIOS

Corey Szopinski
Technology Director
   
corey at domanistudios.com
55 Washington St. Suite 822
Brooklyn, NY 11201
212.920.8135  x116 






More information about the talk mailing list
Automatic Email Organization without missing anything!