By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,384 Members | 1,886 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,384 IT Pros & Developers. It's quick & easy.

Flash listener + JavaScript GUI

P: n/a
I'm a programmer but I have never programmed in Action Script or very
advanced JavaScript. So, please be gentle :-)

I'm looking to develop a simple ( or is it? ) system with 2 parts to
it:

Part I: I would have an invisible Flash running on the client side (
browser ) for the only sake of being able to "listen" to a Perl script
on the server that'll push the information to it as it becomes
available. I'd like this Flash app to be able to push information back
to the server ( like AJAX ).

Part II: I'd like to be able to have the Flash app to communicate with
the web-based user interface through JavaScript/DHTML

I see some packaged scripts that do one or another but they are
extremely overcomplicated. I'd like to write a simple script on my own.

Please help!
Alex

Sep 7 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
kidalex wrote:
I'm a programmer but I have never programmed in Action Script or very
advanced JavaScript. So, please be gentle :-)

I'm looking to develop a simple ( or is it? ) system with 2 parts to
it:

Part I: I would have an invisible Flash running on the client side (
browser ) for the only sake of being able to "listen" to a Perl script
on the server that'll push the information to it as it becomes
available. I'd like this Flash app to be able to push information back
to the server ( like AJAX ).

Part II: I'd like to be able to have the Flash app to communicate with
the web-based user interface through JavaScript/DHTML

I see some packaged scripts that do one or another but they are
extremely overcomplicated. I'd like to write a simple script on my own.

Please help!
Alex
If you modify the output of your perl program,
to represent the information as javascript
then you could use document.createElement("script") and such
to read in new information without reloading the page
and with but simple javascript

By adding some sort of function call at the end of the output
you could be notified when the data was ready.

The setInterval() function could be used to pump the request
and monitor the process.


Sep 7 '06 #2

P: n/a
I understand, but how do I make that SWF file that won't display
anything but will have the functionality?

Sep 7 '06 #3

P: n/a
How is the data coming out of the perl script formatted?

Sep 8 '06 #4

P: n/a

mo********@gmail.com wrote:
How is the data coming out of the perl script formatted?
I can get the Perl script push whatever into whatever format I want to
the Flash app.

Sep 9 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.