469,908 Members | 2,213 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,908 developers. It's quick & easy.

Can AJAX be used with Flash?

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

Jan 23 '07 #1
3 1466
bizt wrote:
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

Jan 23 '07 #2
Hi,

bizt wrote:
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
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Jan 23 '07 #3
Peter Michaux wrote:
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.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Jan 23 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Colin Walls | last post: by
1 post views Thread by a | last post: by
3 posts views Thread by mentos07 | last post: by
4 posts views Thread by lak | last post: by
4 posts views Thread by FutureShock | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.