New Google Analytics Mixes up Flash and Ajax
Just checked my sites stats and noticed that Google, the Ajax kings, have added some Flash spice to Google Analytics. Each technology handling what it does best, Flash as the presentation layer and Ajax as the data workhorse.
More on the analytics blog.
Flash/Flex has been blowing up lately, it’s faster growing book category for O’Reilly (via Ryan Stewart), and every Flex developer I know has projects flying at them left and right. Come on you Ajax folk you know you want some AS.
This entry was written by
Alastair, posted on
May 11, 2007 at 12:17 am, filed under
ActionScript,
JavaScript. Bookmark the
permalink. Follow any comments here with the
RSS feed for this post.
or leave a trackback:
Trackback URL.
© Copyright 2006 - 2012 Alastair Dawson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
4 Comments
I’m curious about your assertion that Ajax is better than Flash as the “data workhorse.” Flash is also capable of transferring data remotely to a server and has good XML features. Why do you think that Ajax (Javascript) is better for that?
Yes that was a bit of blanket statement.
In this case Ajax is the best way to send data back and forth because there are multiple Flash components on a page. I’ve had cases where I had three or more Flash components on a page that tried to load data all at once and it was quicker to get the data via Ajax and have it passed to the components. That said 99% of the time I use Flash Remoting or XML straight to Flash.
Can you give more explanations on your observation?
Is that because you have ajax as a centralized hub for data communication or ajax itself talks faster? Is there a way for flash component to communicate with each other? thanks
If you have multiple flash components embeded on a HTML page then yes I would use ajax as a hub/queue for data transfer. If you want two seperate flash components to talk to each other you can use flash’s ‘ExternalInterface’ to send data down to JavaScript which would then pass the data to the other flash movie again with ExternalInterface http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15683
If you don’t need flash to talk to the page Flash Remoting or Flash’s built in XML commands are a better bet.