Can AJAX be used with Flash?

B

bizt

Hi,

I have just started learning AJAX and need to learn a method where I
can do the same to what AJAX does for HTML to Flash. Can this be done?
Is there maybe a better way of allowing Flash to integrate with server
side scripts? Thanks

Burnsy
 
P

Peter Michaux

bizt said:
Hi,

I have just started learning AJAX and need to learn a method where I
can do the same to what AJAX does for HTML to Flash. Can this be done?
Is there maybe a better way of allowing Flash to integrate with server
side scripts? Thanks

I don't know the workings but apparently Flash has full blown sockets.
You can open a connection with the server and keep it open as long as
you want. This lets you have server push instead of just having the
browser poll the server. There is probably a great Adobe forum for this
kind of information.

<URL:
http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=15>

Peter
 
L

Laurent Bugnion [MVP]

Hi,
Hi,

I have just started learning AJAX and need to learn a method where I
can do the same to what AJAX does for HTML to Flash. Can this be done?
Is there maybe a better way of allowing Flash to integrate with server
side scripts? Thanks

Burnsy

IIRC (last time I worked with Flash and ActionScript was years ago) and
in addition to what Peter said, ActionScript can communicate with the
browser's JavaScript engine. So in fact, you can use the browser's
XmlHttpRequest to send AJAX requests (in case you can't do it from
ActionScript itself).

Greetings,
Laurent
 
T

Toby Inkster

Peter said:
This lets you have server push instead of just having the
browser poll the server.

Server push can be done with AJAX using Server-Sent Events, where events
that occur on the server can trigger an event to client-side ECMAScript.
This is part of the WHATWG working draft for HTML 5 and is already
supported by Opera 9. I wouldn't be surprised if Mozilla rolled it out
in the not too distant future too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top