473,799 Members | 2,711 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1611
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?forum id=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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1725
by: Colin Walls | last post by:
I have been asked to produce a web catalogue of services and associated options, this eventually will be used for ordering the services. My initial thought was to use a set of cascading drop downs, select an option from the first fills the available options for the second and so on. Given the current buzz about Ajax this would seem an opportunity to try out some of its features. Could anyone point me at an example of what I am trying...
3
5914
by: petermichaux | last post by:
Hi, I am trying to put together the last major pieces of my project's puzzle. This is more website/client-side architecture than JavaScript syntax but I hope this is a good place to ask. I'm a little stumped with which direction to take and advice would be greatly appreciated. I think this is a generally interesting problem but I haven't seen a post this long here before :S I have developed half of the admin interface for an e-commerce
1
1289
by: a | last post by:
what do you guys prefer for ajax? dojo mochikit prototype or somehting else/
3
1710
by: mentos07 | last post by:
Hello, I have embedded a Flash Movie in an AJAX HTML page which is created by JSF and ICEfaces. When the page loads for the first time everything works fine. The gallery shows up and displayes all the pictures. Now we use ICEfaces AJAX components to change some text on the page. And when this happens the Flash Movie disapears (unloads(?)) from the page. The space where the Flash Movie should be is just blank and Flash is not present...
0
7192
by: Tarik Monem | last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along the way. First, deep linking is not something that a completely AJAX web site should be able to do by it's very nature of everything being on one page basically. So how can a person deep link to something that is on one page? This question...
4
2330
by: recordlovelife | last post by:
Hello all, thanks in advance - I want to put a music player on a site, I will make it in flash. The site is in a LAMP environment. I want to have the music player in the main navigation section. My issue, I do not want to have the music player be reloaded everytime you click a new link. And I don't want to use frames in the site, and i don't want to use flash anything other than the actual music player (no flash made website) I was...
1
1620
by: nicky77 | last post by:
Hi, i'm completely new to AJAX - but i'd like to get started with it. I'm starting development work on a small website which will have a flash menu. I'd like to emulate a frame-based layout by keeping the menu fixed and only changing content in one section of the page (enclosed in a <div>), according to the page the user is on. Is this straightforward to integrate using Flash and AJAX? I'm a little unsure if i can add javascript function calls...
4
1590
by: lak | last post by:
Hi friends, I have to parse a XML file and when it is changed I need to change in the front end. If I use the settimeout() then it is working. But I don't what to use the settimeout() function. Is there any other way to do that?
4
1405
by: FutureShock | last post by:
This is not a PHP related question, but a question focused to PHP developers. Sadly enough I just started looking at the functionality using AJAX procedures. All my sites have been 100% PHP with the only javascript being used for user chosen hint boxes and date choices using a pop-up calendar. I was taught early on not to develop any site that requires javascript for its basic operation. I think from most posts that most PHP coders
0
9689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10495
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10032
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4148
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2942
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.