<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Through The Eyes Of A Dreamer &#187; Flash</title>
	<atom:link href="http://heidibrebels.be/blog/archives/tag/flash/feed" rel="self" type="application/rss+xml" />
	<link>http://heidibrebels.be</link>
	<description>home of heidi brebels</description>
	<lastBuildDate>Thu, 10 May 2012 08:25:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>IE double click to activate flash</title>
		<link>http://heidibrebels.be/blog/archives/2006/ie-double-click-to-activate-flash</link>
		<comments>http://heidibrebels.be/blog/archives/2006/ie-double-click-to-activate-flash#comments</comments>
		<pubDate>Sat, 16 Dec 2006 18:15:15 +0000</pubDate>
		<dc:creator>heidi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.heidibrebels.be/blog/archives/2006/ie-double-click-to-activate-flash/</guid>
		<description><![CDATA[Microsoft released an update for Internet Explorer that changed the way the browser displays and runs ActiveX components, flash movies and Java applets. Because of security issues the browser asks you to activate these controls by clicking on them. Meaning that to actually &#8220;browse&#8221; through the flash site, you need to double click it the [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft released an update for Internet Explorer that changed the way the browser<br />
displays and runs ActiveX components, flash movies and Java applets.<br />
Because of security issues the browser asks you to activate these controls by clicking on them. Meaning that to actually &#8220;browse&#8221; through the flash site, you need to double click it the first time.<br />
Read more about it here: Flash Player Technote: Internet Explorer displays a box around flash content</p>
<p>A way to prevent this is by including your swf file with an external javascript file. More information on how to do this you find here: Active content update article</p>
<p>And for the lazy ones among us, this should be a free program that solves it for you (didn&#8217;t try it myself): <a title="Flash Release" href="http://www.flashrelease.com/" target="_blank">Flash Release</a>.</p>
<p>A nice video on it, you can find here: <a title="Flash Active Content Update" href="http://www.youtube.com/watch?v=6Jtz5SGtc4k" target="_blank">YouTube Video</a></p>
]]></content:encoded>
			<wfw:commentRss>http://heidibrebels.be/blog/archives/2006/ie-double-click-to-activate-flash/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash embed font bold</title>
		<link>http://heidibrebels.be/blog/archives/2006/flash-embed-font-bold</link>
		<comments>http://heidibrebels.be/blog/archives/2006/flash-embed-font-bold#comments</comments>
		<pubDate>Sat, 16 Dec 2006 17:43:13 +0000</pubDate>
		<dc:creator>heidi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[bold]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.heidibrebels.be/blog/archives/2006/flash-embed-font-bold/</guid>
		<description><![CDATA[I use a lot of font types that people don&#8217;t normally have installed, so I embed the fonts in Flash. Only, now I tried with actionscript and CSS to make part of a dynamic text field bold. Only, the bold part of the text field wouldn&#8217;t show, the text would just not be there. So, [...]]]></description>
			<content:encoded><![CDATA[<p>I use a lot of font types that people don&#8217;t normally have installed, so I embed the fonts in Flash. Only, now I tried with actionscript and CSS to make part of a dynamic text field bold. Only, the bold part of the text field wouldn&#8217;t show, the text would just not be there.</p>
<p>So, then I found out that when you embed a font in Flash, flash doesn&#8217;t include the whole font family automatically. Meaning, that by embedding a regular font, the bold and italic aren&#8217;t included.</p>
<p>A workaround for this, is to just add another text field to your stage, somewhere out of sight (or not), and embed the same font type but with bold activated. Run your flash file again and you&#8217;ll see that the bold in your other text field is now visible too.</p>
<p>See also: Flash Technote: HTML text fields do not display formatted text</p>
]]></content:encoded>
			<wfw:commentRss>http://heidibrebels.be/blog/archives/2006/flash-embed-font-bold/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Sockets vs AMFPHP</title>
		<link>http://heidibrebels.be/blog/archives/2006/sockets-vs-amfphp</link>
		<comments>http://heidibrebels.be/blog/archives/2006/sockets-vs-amfphp#comments</comments>
		<pubDate>Tue, 25 Jul 2006 08:54:00 +0000</pubDate>
		<dc:creator>heidi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[AMFPHP]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[sockets]]></category>

		<guid isPermaLink="false">http://www.heidibrebels.be/blog/archives/2006/sockets-vs-amfphp/</guid>
		<description><![CDATA[Today I did some research on whether the flash project I&#8217;m working on would be better of using sockets or AMFPHP. Turns out the biggest difference between the two of them is that sockets can push and pull and AMFPHP can only pull. Push meaning that the server can send data back to my flash [...]]]></description>
			<content:encoded><![CDATA[<p>Today I did some research on whether the flash project I&#8217;m working on would be better of using sockets or <a href="http://amfphp.org/" target="_blank">AMFPHP</a>.</p>
<p>Turns out the biggest difference between the two of them is that sockets can push and pull and <a href="http://amfphp.org/" target="_blank">AMFPHP</a> can only pull.<br />
Push meaning that the server can send data back to my flash client when a change occurs.<br />
Pull meaning that the client can ask the server for data on a certain event.</p>
<p>Of course the biggest advantage of <a href="http://amfphp.org/" target="_blank">AMFPHP</a> is that it&#8217;s free. There are also free socket server scripts available, but then you have to be willing to host the server yourself.</p>
<p>This link was a very big help to me:<br />
<a href="http://www.flashfocus.nl/forum/archive/index.php/t-15139.html" target="_blank">Flashfocus link</a> (Dutch site)</p>
<p>In my case, sockets are the way to go &#8230; the main idea was to limit the bandwith that the client is using, so <a href="http://amfphp.org/" target="_blank">AMFPHP</a> wouldn&#8217;t be a solution to my problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://heidibrebels.be/blog/archives/2006/sockets-vs-amfphp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apply textformat to input text</title>
		<link>http://heidibrebels.be/blog/archives/2006/apply-textformat-to-input-text</link>
		<comments>http://heidibrebels.be/blog/archives/2006/apply-textformat-to-input-text#comments</comments>
		<pubDate>Sat, 24 Jun 2006 22:18:32 +0000</pubDate>
		<dc:creator>heidi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[input text]]></category>
		<category><![CDATA[textformat]]></category>

		<guid isPermaLink="false">http://www.heidibrebels.be/blog/archives/2006/apply-textformat-to-input-text/</guid>
		<description><![CDATA[Today I encountered a weird little problem. I created an input textfield with actionscript and wanted to apply a textformat to it. The following code created the desired textfield: this.createTextField(&#8220;name_txt&#8221;, this.getNextHighestDepth(), 10, 20, this._width &#8211; 20, 15); this.name_txt.border = true; this.name_txt.borderColor = color1; this.name_txt.text = &#8220;Name&#8221;; this.name_txt.type = &#8220;input&#8221;; this.name_txt.maxChars = 20; Textformat: //&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; // [...]]]></description>
			<content:encoded><![CDATA[<p>Today I encountered a weird little problem.</p>
<p>I created an input textfield with actionscript and wanted to apply a textformat to it.</p>
<p>The following code created the desired textfield:<br />
this.createTextField(&#8220;name_txt&#8221;, this.getNextHighestDepth(), 10, 20, this._width &#8211; 20, 15);<br />
this.name_txt.border = true;<br />
this.name_txt.borderColor = color1;<br />
this.name_txt.text = &#8220;Name&#8221;;<br />
this.name_txt.type = &#8220;input&#8221;;<br />
this.name_txt.maxChars = 20;</p>
<p>Textformat:</p>
<p>//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
// SET TEXTFORMAT<br />
//        &#8211; color -&gt; color of the text<br />
//        &#8211; align -&gt; &#8220;left&#8221;, &#8220;center&#8221; or &#8220;right&#8221; (&#8220;justify&#8221; in flash 8 )<br />
//        &#8211; bold -&gt; true or false<br />
//&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
public function setTextFormatOptions(color:Number, align:String, bold:Boolean):Void {<br />
my_fmt = new TextFormat();<br />
my_fmt.font = &#8220;Verdana&#8221;;<br />
my_fmt.color = color;<br />
my_fmt.align = align;<br />
my_fmt.size = 10;<br />
my_fmt.bold = bold;<br />
}<br />
To set and apply this textformat:</p>
<p>setTextFormatOptions(0&#215;999999, &#8220;left&#8221;, true);<br />
this.name_txt.setTextFormat(my_fmt);</p>
<p>Now, this worked perfectly for the text that I put into the textfield initially, so by code &#8230; but as soon as I started inputting my own text, the textformat was gone &#8230;</p>
<p>Now, what&#8217;s the solution, just put this line under it:</p>
<p>this.name_txt.setNewTextFormat(my_fmt);</p>
<p>And all the text you input in the field will look like the textformat too.</p>
<p>To sum it up, the setTextFormat seems to be only for text that is hard coded into the textfield and the setNewTextFormat property seems to be only for the new user inputted text. So if you want to put both an initial text in the textfield and being able to have user input in that textfield, you have to put both lines in your code &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://heidibrebels.be/blog/archives/2006/apply-textformat-to-input-text/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flash and Ajax together</title>
		<link>http://heidibrebels.be/blog/archives/2006/flash-and-ajax</link>
		<comments>http://heidibrebels.be/blog/archives/2006/flash-and-ajax#comments</comments>
		<pubDate>Mon, 10 Apr 2006 10:46:29 +0000</pubDate>
		<dc:creator>heidi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.heidibrebels.be/blog/archives/2006/flash-and-ajax-together/</guid>
		<description><![CDATA[Many people talk about Flash and Ajax like they&#8217;re competitors, both being rich internet applications (RIAs). After doing some research on them, I beg the difference though. Of course, you shouldn&#8217;t use them just to use them, but either have their own strengths. First, though, let&#8217;s start with the beginning &#8230; Flash Flash applications Flash [...]]]></description>
			<content:encoded><![CDATA[<p><span lang="EN-GB">Many people talk about Flash and Ajax like they&#8217;re competitors, both being rich internet applications (RIAs). After doing some research on them, I beg the difference though. Of course, you shouldn&#8217;t use them just to use them, but either have their own strengths.</span></p>
<p><span lang="EN-GB">First, though, let&#8217;s start with the beginning &#8230;</span></p>
<p><span lang="EN-GB"><span id="more-17"></span><br />
</span><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600"  o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f"  stroked="f"> <v:stroke joinstyle="miter" /> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0" /> <v:f eqn="sum @0 1 0" /> <v:f eqn="sum 0 0 @1" /> <v:f eqn="prod @2 1 2" /> <v:f eqn="prod @3 21600 pixelWidth" /> <v:f eqn="prod @3 21600 pixelHeight" /> <v:f eqn="sum @0 0 1" /> <v:f eqn="prod @6 1 2" /> <v:f eqn="prod @7 21600 pixelWidth" /> <v:f eqn="sum @8 21600 0" /> <v:f eqn="prod @7 21600 pixelHeight" /> <v:f eqn="sum @10 21600 0" /> </v:formulas> <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" /> <o:lock v:ext="edit" aspectratio="t" /> </v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" alt="More..."  style='width:.75pt;height:.75pt'> <v:imagedata xsrc="file:///C:DOCUME~1HeidiLOCALS~1Tempmsohtml1 1clip_image001.gif" mce_src="file:///C:DOCUME~1HeidiLOCALS~1Tempmsohtml1 1clip_image001.gif"         o:href="http://www.heidibrebels.be/blog/wp-includes/js/tinymce/themes/advanced/images/spacer.gif" mce_href="http://www.heidibrebels.be/blog/wp-includes/js/tinymce/themes/advanced/images/spacer.gif"      /> </v:shape><![endif]--><!--[if !vml]--><img src="file:///C:/DOCUME%7E1/Heidi/LOCALS%7E1/Temp/msohtml1/01/clip_image001.gif" alt="More..." width="1" height="1" /><!--[endif]--><span lang="EN-GB"> </span></p>
<h2><span lang="EN-GB">Flash</span></h2>
<h3><span lang="EN-GB">Flash applications</span></h3>
<p><span lang="EN-GB">Flash applications, to me, are .swf files. These RIAs can be made with Macromedia Flash or tools like Swish and Laszlo. The programming language of Flash is actionscript.</span></p>
<h3><span lang="EN-GB">Examples</span></h3>
<p><span lang="EN-GB">Examples can be found at the showcase of the Macromedia website: </span><a href="http://www.macromedia.com/" target="_blank"><span lang="EN-GB">http://www.macromedia.com</span></a><span lang="EN-GB"> </span></p>
<h2><span lang="EN-GB">Ajax</span><span lang="EN-GB"> </span></h2>
<h3><span lang="EN-GB">Ajax</span><span lang="EN-GB"> applications</span></h3>
<p><span lang="EN-GB">Ajax</span><span lang="EN-GB">, which stands for Asynchronous Javascript and XML, is also a kind of RIA. These applications not only make a website more attractive, but also reduce the waiting for it to a minimum by it&#8217;s dynamic communication with the server.</span></p>
<h3><span lang="EN-GB">Technologies</span></h3>
<p><span lang="EN-GB">Ajax</span><span lang="EN-GB"> on itself isn&#8217;t a technology, but uses several different technologies:</span></p>
<ul type="disc">
<li class="MsoNormal"><span lang="EN-GB">XHTML and CSS for the standard      presentation</span></li>
<li class="MsoNormal"><span lang="EN-GB">Document Object Model (DOM) for dynamical      reproduction and interaction</span></li>
<li class="MsoNormal"><span lang="EN-GB">XML and/or XSLT for exchanging of data      and/or manipulation of it</span></li>
<li class="MsoNormal">XMLHttpRequest for      asynchronical data exchange</li>
<li class="MsoNormal"><span lang="EN-GB">Javascript to link them all together</span></li>
</ul>
<h3><span lang="EN-GB">Model</span></h3>
<p><span lang="EN-GB">Most user interfaces of the classical web application model send an http request to the server. This server will then process the request, when done it&#8217;ll send an html page back to the user. While the server is doing all of this, the user of course has nothing else to do but wait.<br />
Like you can already guess, this is not very ideal.</span></p>
<p><span lang="EN-GB">The Ajax web application model, however, provides an Ajax engine between the user interface and the server. This engine is responsible for both the user interface and the communication with the server. It will make sure that the interaction between the user and the application happens asynchronical, independent of the communication with the server. Because of this, the user will never have to wait again for the server to respond.</span></p>
<h3>Examples</h3>
<ul type="disc">
<li class="MsoNormal"><span lang="EN-GB">LinkedFeed: </span><a href="http://www.linkedfeed.com/" target="_blank"><span lang="EN-GB">http://www.linkedfeed.com</span></a><span lang="EN-GB"><br />
Dragging and dropping of objects made possible. You can also change the      layout and titles of the different subjects to your own liking.</span></li>
<li class="MsoNormal"><span lang="EN-GB">PHP Free Chat: </span><a href="http://www.phpfreechat.net/overview.en.html" target="_blank"><span lang="EN-GB">http://www.phpfreechat.net/overview.en.html</span></a><span lang="EN-GB"><br />
The chat and nickname zone are kept up to date without flickering. Another      advantage of Ajax      here is that there is less bandwith used since only new messages are sent      to the server.</span></li>
<li class="MsoNormal"><span lang="EN-GB">Google Suggests: </span><a href="http://www.google.com/webhp?complete=1&amp;hl=en" target="_blank"><span lang="EN-GB">http://www.google.com/webhp?complete=1&amp;hl=en</span></a><span lang="EN-GB"><br />
Instantly after typing in letters, possibilities of words are suggested.      These words change automatically without any form of waiting as soon as      the letters typed in change.</span></li>
<li class="MsoNormal"><span lang="EN-GB">Google Maps: </span><a href="http://maps.google.com/" target="_blank"><span lang="EN-GB">http://maps.google.com/</span></a><span lang="EN-GB"><br />
The possibility to look at maps and move them to your own liking without      having to wait for the page to refresh.</span></li>
</ul>
<h2><span lang="EN-GB">In which cases is Flash better?</span></h2>
<h3><span lang="EN-GB">Media Handling</span></h3>
<p><span lang="EN-GB">Flash is much better with sound and graphics than regular HTML. This is one of the major reasons why the top 40 websites of these days contain Flash.</span></p>
<h3><span lang="EN-GB">Compatibility</span></h3>
<p><span lang="EN-GB">There is only one Flash player, the Macromedia Flash player. Because of this you&#8217;ll save a lot of time, since your application will look the same in all the different browsers.</span></p>
<h3><span lang="EN-GB">Vector graphics</span></h3>
<p><span lang="EN-GB">With Flash, it&#8217;s easy to build, use and animate vector graphics. Of course, vector graphics are also available for most browsers, think about SVG (standard for Mozilla 1.5 and available as plug-in for other browsers) and the Canvas element (Safari and Mozilla 1.5). But, the possibilities are far from universal and you practically always need a plug-in.</span></p>
<h3><span lang="EN-GB">Machine access</span></h3>
<p><span lang="EN-GB">A Flash application can easily access webcams and other peripherals. This is something regular web applications can&#8217;t do.</span></p>
<h2><span lang="EN-GB">In which cases is Ajax better?</span></h2>
<h3><span lang="EN-GB">Searchability</span></h3>
<p><span lang="EN-GB">In general, web pages are found a lot easier by search engines than Flash pages. These search engines still play a very important role in the number of visitors that find their way to your website. Some search engines today can already index swf files, but in general they still remain less visible.</span></p>
<h3><span lang="EN-GB">Openness</span></h3>
<p><span lang="EN-GB">There is an open source community, but there is no such thing as an open source Flash player. This can be a personal reason why you would avoid using Flash. The same goes for companies who wouldn&#8217;t want to be dependent of another company or even a potential rival.</span></p>
<h3><span lang="EN-GB">Accessibility</span></h3>
<p><span lang="EN-GB">Ajax</span><span lang="EN-GB"> applications automatically follow the font and color settings of their environment, while Flash applications use those specified by their designer. This could cause problems for disabled users. Also tools like screen readers and acceleration keys aren&#8217;t always available in Flash applications.</span></p>
<h3><span lang="EN-GB">Security</span></h3>
<p><span lang="EN-GB">Flash applications are sometimes distrusted because:</span></p>
<ul type="disc">
<li class="MsoNormal"><span lang="EN-GB">it&#8217;s very often used for visual attractive      ads</span></li>
<li class="MsoNormal"><span lang="EN-GB">it&#8217;s used to fool pop-up blockers</span></li>
<li class="MsoNormal"><span lang="EN-GB">it can be used to create cookies the user      can&#8217;t easily delete</span></li>
</ul>
<p><span lang="EN-GB">Because of these things some people install Flash blockers or look at Flash websites with prejudices.</span></p>
<h3><span lang="EN-GB">Ease of development</span></h3>
<p><span lang="EN-GB">People who write complex Ajax or Flash applications mostly use advanced tools for this. In general, the tools needed for Ajax applications are both easier to use and cheaper than those needed for Flash applications.</span></p>
<h2><span lang="EN-GB">Flash and Ajax brought together: Photographer&#8217;s Showcase</span></h2>
<h3><span lang="EN-GB">Intention</span></h3>
<p><span lang="EN-GB">By building an application finding out for myself if there really is use in combing the two of them.</span></p>
<h3><span lang="EN-GB">Description</span></h3>
<p><span lang="EN-GB">A list of photographers appears on the left. Of each of these photographers you can see an example of their work, shown in Flash. Of each photograph you can obtain more information by clicking on it. At the bottom of the page there you can read a general description of the photographer.</span></p>
<p>Example: (I no longer have this as a working version online, but you can still download the source code at the bottom of this article.)</p>
<p><!--[if gte vml 1]><v:shape id="_x0000_i1026" type="#_x0000_t75" alt="Photographer's Showcase"  style='width:300pt;height:291.75pt'> <v:imagedata xsrc="file:///C:DOCUME~1HeidiLOCALS~1Tempmsohtml1 1clip_image002.jpg" mce_src="file:///C:DOCUME~1HeidiLOCALS~1Tempmsohtml1 1clip_image002.jpg"         o:href="http://www.heidibrebels.be/blog/images/showcase.jpg" mce_href="http://www.heidibrebels.be/blog/images/showcase.jpg"      /> </v:shape><![endif]--><!--[if !vml]--><img title="Photographer's Showcase" src="http://www.heidibrebels.be/wp-content/uploads/showcase.jpg" alt="Photographer's Showcase" /><br />
<!--[endif]--></p>
<h3>Technologies</h3>
<ul type="disc">
<li class="MsoNormal"><span lang="EN-GB">xHTML (Strict): reproduction of the data</span></li>
<li class="MsoNormal">CSS: lay-out</li>
<li class="MsoNormal"><span lang="EN-GB">XML: the actual data of the pages</span></li>
<li class="MsoNormal"><span lang="EN-GB">Ajax</span><span lang="EN-GB"> (javascript): the list of      photographers and the description of the chosen photographer</span></li>
<li class="MsoNormal">Flash: reproduction of the      photographs</li>
<li class="MsoNormal"><span lang="EN-GB">Ajax-Flash communication: the interaction      between the photographs and the photographer</span></li>
</ul>
<h3>xHTML (Strict)</h3>
<p><span lang="EN-GB">This technology is used to show the content of the site.<br />
The data itself isn&#8217;t directly put on these pages, but tags are provided to tell javascript where to put this data.<br />
The javascript and css files used for this project are loaded here.</span></p>
<h3><span lang="EN-GB">CSS</span></h3>
<p><span lang="EN-GB">This technology is used to determine the lay-out of the site.</span></p>
<h3>XML</h3>
<p><span lang="EN-GB">This technology is used contain the actual data shown in the site. This data will be loaded in the xHTML page by javascript.</span></p>
<h3>Ajax (javascript)</h3>
<p><span lang="EN-GB">This technology is used to list the photographers and the information about each photographer.<br />
The xHTML page uses javascript to adjust the data. This javascript uses the XMLHttpRequest to acquire the data asynchronically.</span></p>
<h3><span lang="EN-GB">Flash</span></h3>
<p><span lang="EN-GB">This technology is used to visualize the photographs of a chosen photographer.</span></p>
<p>advantages of Flash/actionscript:</p>
<ul type="disc">
<li class="MsoNormal"><span lang="EN-GB">Zoom function:<br />
with actionscript is fairly easy to create a zoom function for the      photographs.</span></li>
<li class="MsoNormal"><span lang="EN-GB">Shared Object:<br />
in this application it&#8217;s possible to change the colors. To make sure that      a user will see the colors he/she chose last time at their next visit, you      can use a shared object.<br />
With xHTML there is the possibility to work with cookies, but these are      very easily deleted.</span></li>
</ul>
<h3><span lang="EN-GB">Ajax-Flash</span></h3>
<p><span lang="EN-GB">I have found 2 ways to combine the both of them:</span></p>
<ol type="1">
<li class="MsoNormal">Aflax</li>
<li class="MsoNormal"><span lang="EN-GB">Flash/Javascript Integration Kit of      Macromedia</span></li>
</ol>
<p><strong>1. Aflax</strong></p>
<ul type="disc">
<li class="MsoNormal"><span lang="EN-GB">Description<br />
The gid of Aflax is that all the Flash development is done with      Javascript. There is no use of actionscript here at all. The Aflax library      can call flash functionality with javascript.<br />
</span>You can download Aflax at <a href="http://www.aflax.org/" target="_blank">http://www.aflax.org</a></li>
<li class="MsoNormal">Advantages
<ul type="circle">
<li class="MsoNormal"><span lang="EN-GB">Only one programming language to combine       both.</span></li>
<li class="MsoNormal"><span lang="EN-GB">You don&#8217;t have to recompile the Flash file       after each change anymore.</span></li>
</ul>
</li>
<li class="MsoNormal">Disadvantages
<ul type="circle">
<li class="MsoNormal"><span lang="EN-GB">To develop the Flash side of your       application, you use the API of Aflax. This API isn&#8217;t as extensive as the       functions, methods and attributes available in Flash itself with       actionscript.</span></li>
<li class="MsoNormal"><span lang="EN-GB">Aflax can only be used with Flash 8.       Because of this it won&#8217;t run in Opera or Linux. Opera does not yet       support the Flash 8 External Interface and there isn&#8217;t a Flash 8 Player       available for Linux yet.</span></li>
</ul>
</li>
</ul>
<p><strong><span lang="EN-GB">2. Flash/Javascript Integration Kit of Macromedia</span></strong><span lang="EN-GB"> </span></p>
<ul type="disc">
<li class="MsoNormal"><span lang="EN-GB">Description<br />
The Flash/Javascript Integration Kit of Macromedia makes it possible to      seamlessly communicate between Flash (actionscript) and Javascript through      functions.<br />
There already is a way to communicate with javascript in Flash. The most      important difference between that and this kit is that with this kit it&#8217;s      not just possible to send strings, but also objects, arrays, numbers,      booleans, dates, null and undefined values.<br />
You can download this kit at </span><span lang="EN-GB">http://weblogs.macromedia.com/flashjavascript/</span><span lang="EN-GB"> </span></li>
<li class="MsoNormal">Advantages
<ul type="circle">
<li class="MsoNormal"><span lang="EN-GB">You can use all the advantages of       actionscript and very easily transfer data from Flash to javascript.</span></li>
<li class="MsoNormal"><span lang="EN-GB">It&#8217;s tested with several different       browsers: Windows IE 6.0, Windows Firefox 1.0, Windows Opera 8.0,       Macintosh Opera 8.0, Macintosh Firefox 1.0, Safari 1.2.4 and 2.0 en Linux       Firefox 1.0.4.</span></li>
</ul>
</li>
<li class="MsoNormal">Disadvantages
<ul type="circle">
<li class="MsoNormal"><span lang="EN-GB">This kit can be used for Flash Players       6,0,65,0 through 7. Meaning it&#8217;s not yet available for Flash 8. This is       because Flash 8 uses External Interface.<br />
This kit, though, is still an ongoing project, so there is a possibility       that in future version of it, Flash 8 will be supported.</span></li>
</ul>
</li>
</ul>
<p><strong>Conclusion:</strong></p>
<ul type="disc">
<li class="MsoNormal"><span lang="EN-GB">Since Flash 8 is relatively new and not      yet every user has updated to the Flash 8 player, I personally didn&#8217;t choose      for a technology that can only be seen with this player. Even if you      suggest people should download this version of the player, it still isn&#8217;t      even available for Opera and Linux users.</span></li>
<li class="MsoNormal"><span lang="EN-GB">I do believe that if you&#8217;re very good with      javascript and not actionscript, Aflax would still be worth considering.      But, since I prefer actionscript over javascript any day, I don&#8217;t see the      point in learning a new API.</span></li>
</ul>
<p><span lang="EN-GB">In my own application, Photographer&#8217;s Showcase, I decided to use the Flash/Javascript Integration Kit of Macromedia, because of these reasons.</span></p>
<h2><span lang="EN-GB">Conclusion</span></h2>
<p><span lang="EN-GB">Like I said in the beginning, when you use research these technologies and you use either for what they&#8217;re best at, I do believe that letting them work together will work in your own advantage. Moreover, it&#8217;s not even very difficult to let them work together.</span></p>
<h3><span lang="EN-GB">Examples of Flash and Ajax working together</span></h3>
<ul type="disc">
<li class="MsoNormal"><a href="http://www.measuremap.com/developer/slider/" target="_blank"><span lang="EN-GB">http://www.measuremap.com/developer/slider/</span></a><span lang="EN-GB"><br />
A Flash/Javascript date slider. </span>This application also uses the      Flash/Javascript Integeration Kit.</li>
<li class="MsoNormal"><a href="http://www.measuremap.com/" target="_blank"><span lang="EN-GB">http://www.measuremap.com/</span></a><span lang="EN-GB"><br />
Google&#8217;s way to keep statistics for your blog site.</span></li>
<li class="MsoNormal"><a href="http://www.flickr.com/" target="_blank"><span lang="EN-GB">http://www.flickr.com/</span></a><span lang="EN-GB"><br />
Reproduction of pictures.</span></li>
</ul>
<h2><a href="http://www.heidibrebels.be/wp-content/uploads/showcase.zip" target="_blank">Download the Photographer&#8217;s Showcase here</a></h2>
]]></content:encoded>
			<wfw:commentRss>http://heidibrebels.be/blog/archives/2006/flash-and-ajax/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash &amp; Ajax</title>
		<link>http://heidibrebels.be/blog/archives/2006/flash-ajax</link>
		<comments>http://heidibrebels.be/blog/archives/2006/flash-ajax#comments</comments>
		<pubDate>Mon, 06 Mar 2006 23:14:21 +0000</pubDate>
		<dc:creator>heidi</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.heidibrebels.be/blog/?p=13</guid>
		<description><![CDATA[Many ppl compare Flash with Ajax, they would never even dream about actually letting them work together. My latest project for school is to investigate the two of them and see to what degree they can work together and whether it&#8217;s actually a wise thing to do so &#8230; On Thursday I have to present [...]]]></description>
			<content:encoded><![CDATA[<p>Many ppl compare Flash with Ajax, they would never even dream about actually letting them work together. My latest project for school is to investigate the two of them and see to what degree they can work together and whether it&#8217;s actually a wise thing to do so &#8230;</p>
<p>On Thursday I have to present this project in front of a &#8220;jury&#8221;. So until then &#8230; my findings are safely stored away on my laptop <img src='http://heidibrebels.be/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://heidibrebels.be/blog/archives/2006/flash-ajax/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

