Perl and Flash

They have: 601 posts

Joined: Nov 2001

Has anyone got any experience with Perl and Flash? More specifically, taking a form input, passing the paramaters into a Perl script and then back into a Flash movie?

Or PHP if I become desperare. Wink

- wil

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

I don't know if you can push data into flash, but I've pulled it from flash. Meaning, I've had Flash request a url which did some processing, then returned data for it to parse.

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 218 posts

Joined: Apr 2001

Yes, you can send and receive data from the server to the .swf file, Perl, PHP, ASP, JSP, .net, ColdFusion etc, or even setup a real time java socket connection.

TonyMontana

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

I have very little experience with Flash. I know you can send a HTTP Request, then receive and parse the HTTP Response (with their ActionScript or whatever it's called). But I cannot see how it is even possible to push data to a flash script (i.e. - send data that was not requested).

Can really you put Java in a Flash file?

Mark Hensler
If there is no answer on Google, then there is no question.

He has: 1,016 posts

Joined: May 2002

Mark,

I haven't used Flash in a long time, but I know you can't send data to Flash (using a backend script) if your Flash movie has not requested it. Maybe you can do it with Java or JavaScript, I'm not sure.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Sounds more like writting an applet, but with better GUI capabilities. (goodie goodie)

They have: 218 posts

Joined: Apr 2001

Flash has an XML socket object, you can establish a real time connection to a java socket and send and receive video, chat, online gaming etc. Flash Communications Server is being used for a bunch of stuff, probably along those lines also.

TonyMontana

They have: 601 posts

Joined: Nov 2001

Well I managed to figure this out after a serious amount of RedBull -- check out the results. An e-card for a client. I think the ecards are really funny and we had a right good laugh taking the photos:

http://www.rachelsorganic.co.uk/ecards/

- wil

They have: 218 posts

Joined: Apr 2001

I read yesterday that the XMLSocket is indeed the method Flash 5 and MX uses to push unrequested data to the user without refreshing.

TonyMontana
electricmountain.com

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.