<?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>FLEX{er} &#187; Debug</title>
	<atom:link href="http://www.flexer.info/category/debug/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexer.info</link>
	<description>flex developers web corner</description>
	<lastBuildDate>Tue, 04 Oct 2011 16:23:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
  <link>http://www.flexer.info</link>
  <url>http://www.flexer.info/favicon.ico</url>
  <title>FLEX{er}</title>
</image>
		<item>
		<title>Webseminar &#8211; Debugging Flex and PHP Projects</title>
		<link>http://www.flexer.info/2010/03/21/webseminar-debugging-flex-and-php-projects/</link>
		<comments>http://www.flexer.info/2010/03/21/webseminar-debugging-flex-and-php-projects/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 19:02:29 +0000</pubDate>
		<dc:creator>Stelian Crisan</dc:creator>
				<category><![CDATA[Conferences, Meetings & Events]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[Flash Builder 4]]></category>
		<category><![CDATA[Flex 4 SDK]]></category>
		<category><![CDATA[Flex IDE]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Eclipse PDT]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[webdeminar]]></category>
		<category><![CDATA[Xdebug]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=1503</guid>
		<description><![CDATA[Wednesday, March 24, 2010 from 12:00 AM &#8211; 1:00 PM (GMT+0200) join our friend Mihai Corlan (Platform Evangelist for Adobe) while he goes through the basics of debugging a Flex and PHP application.
See how to work with: Flash Builder 4,  Xdebug and Eclipse PDT to ensure a bug free project.
The presentation will take about 45 [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2010%2F03%2F21%2Fwebseminar-debugging-flex-and-php-projects%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2010%2F03%2F21%2Fwebseminar-debugging-flex-and-php-projects%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2010/03/21/webseminar-debugging-flex-and-php-projects/&title=Webseminar+&#8211;+Debugging+Flex+and+PHP+Projects&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>Wednesday, March 24, 2010 from 12:00 AM &#8211; 1:00 PM (GMT+0200) join our friend <a target="_blank" href="http://www.corlan.org">Mihai Corlan</a> (Platform Evangelist for Adobe) while he goes through the basics of debugging a Flex and PHP application.</p>
<p>See how to work with: Flash Builder 4,  Xdebug and Eclipse PDT to ensure a bug free project.</p>
<p>The presentation will take about 45 minutes, leaving 15 minutes to answer any questions you might have on this subject.</p>
<p>For registration go to <a target="_blank" href="http://flexphpdebug.eventbrite.com">http://flexphpdebug.eventbrite.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2010/03/21/webseminar-debugging-flex-and-php-projects/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Undefined Error in Debug Session Because of Sequence</title>
		<link>http://www.flexer.info/2009/10/13/undefined-error-in-debug-session-because-of-sequence/</link>
		<comments>http://www.flexer.info/2009/10/13/undefined-error-in-debug-session-because-of-sequence/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 15:10:41 +0000</pubDate>
		<dc:creator>Andrei Ionescu</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Flex 3 SDK]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[undefined]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=1215</guid>
		<description><![CDATA[If you ever got into the following error (see bellow after this paragraph) you must know how you can overcome it. 
The error is triggered only in debugging. No trace of it in the normal run. But if you need to debug and get this error it will pause the debug session and even after [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2009%2F10%2F13%2Fundefined-error-in-debug-session-because-of-sequence%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2009%2F10%2F13%2Fundefined-error-in-debug-session-because-of-sequence%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2009/10/13/undefined-error-in-debug-session-because-of-sequence/&title=Undefined+Error+in+Debug+Session+Because+of+Sequence&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>If you ever got into the following error (see bellow after this paragraph) you must know how you can overcome it. </p>
<p>The error is triggered only in debugging. No trace of it in the normal run. But if you need to debug and get this error it will pause the debug session and even after lots of resume pressed you&#8217;ll won&#8217;t get over it because is a cyclic error.</p>
<pre>undefined
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.effects::Effect/effectStartHandler()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\Effect.as:1310]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.effects::EffectInstance/play()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:580]
	at mx.effects.effectClasses::CompositeEffectInstance/play()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\effectClasses\CompositeEffectInstance.as:172]
	at mx.effects.effectClasses::SequenceInstance/play()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\effectClasses\SequenceInstance.as:150]
	at mx.effects::EffectInstance/finishRepeat()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:685]
	at mx.effects.effectClasses::SequenceInstance/play()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\effectClasses\SequenceInstance.as:156]
	at mx.effects::EffectInstance/finishRepeat()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:685]
	at mx.effects.effectClasses::SequenceInstance/play()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\effectClasses\SequenceInstance.as:156]
	at mx.effects::EffectInstance/finishRepeat()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:685]
	at mx.effects.effectClasses::SequenceInstance/play()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\effectClasses\SequenceInstance.as:156]
	at mx.effects::EffectInstance/finishRepeat()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:685]
	at mx.effects.effectClasses::SequenceInstance/play()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\effectClasses\SequenceInstance.as:156]
	at mx.effects::EffectInstance/finishRepeat()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:685]
	at mx.effects.effectClasses::SequenceInstance/play()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\effectClasses\SequenceInstance.as:156]
	at mx.effects::EffectInstance/finishRepeat()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\EffectInstance.as:685]
	at mx.effects.effectClasses::SequenceInstance/play()
	[C:\autobuild\3.x\frameworks\projects\framework\src\mx\effects\effectClasses\SequenceInstance.as:156]</pre>
<p>The error is triggered by Sequence and the code looks like this&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>mx:Sequence id=<span style="color: #ff0000;">&quot;movement&quot;</span> repeatCount=<span style="color: #ff0000;">&quot;0&quot;</span> startDelay=<span style="color: #ff0000;">&quot;{delay}&quot;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:Move id=<span style="color: #ff0000;">&quot;movementUp&quot;</span> <span style="color: #0066CC;">target</span>=<span style="color: #ff0000;">&quot;{this}&quot;</span> <span style="color: #0066CC;">duration</span>=<span style="color: #ff0000;">&quot;{interval}&quot;</span> 
        yTo=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:Move id=<span style="color: #ff0000;">&quot;movementDown&quot;</span> <span style="color: #0066CC;">target</span>=<span style="color: #ff0000;">&quot;{this}&quot;</span> <span style="color: #0066CC;">duration</span>=<span style="color: #ff0000;">&quot;{interval}&quot;</span> 
        yTo=<span style="color: #ff0000;">&quot;{_startYPos}&quot;</span> <span style="color: #66cc66;">/&gt;</span>
<span style="color: #66cc66;">&lt;/</span>mx:Sequence<span style="color: #66cc66;">&gt;</span></pre></div></div>

<p>What&#8217;s the problem? After trying different things on the code I noticed that instead of setting the <strong>target</strong> property of the <strong>Sequence</strong> I did set up the <strong>target</strong> of each <strong>Move</strong> item. So by removing the target from each <strong>Move</strong> and adding one to <strong>Sequence</strong> may fix the problem.</p>
<p>Another thing to check is that the sequence is called only once for the target object. If the same effect is called twice or more on the same object and the previous effect did not finished their job a conflict appears. That means that starting the effect on a event that triggers more than once (ex: <strong>updateComplete</strong>, <strong>addedToStage</strong>) will end in this error also. Try use <strong>creationComplete</strong> event instead.</p>
<p>It is important to tell you that the Flex SDK I used to test this are 3.4 and 3.5 from <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3" target="_blank">Adobe Nightly Builds</a>.</p>
<p>Hope this helps you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2009/10/13/undefined-error-in-debug-session-because-of-sequence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Filters Not Applied When The Image Size is Big</title>
		<link>http://www.flexer.info/2009/02/24/filters-not-applied-when-the-image-size-is-big/</link>
		<comments>http://www.flexer.info/2009/02/24/filters-not-applied-when-the-image-size-is-big/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 19:55:07 +0000</pubDate>
		<dc:creator>Andrei Ionescu</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[filters]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=577</guid>
		<description><![CDATA[In a current project I run on the following problem: didn&#8217;t see a blur filter applied on a background. Started debugging and even though was no error neither compile errors nor runtime. But a the Flex Builder console panel, where traces appear, a special output text warning appeared:
Warning: Filter will not render. The DisplayObject&#8217;s filtered [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2009%2F02%2F24%2Ffilters-not-applied-when-the-image-size-is-big%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2009%2F02%2F24%2Ffilters-not-applied-when-the-image-size-is-big%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2009/02/24/filters-not-applied-when-the-image-size-is-big/&title=Filters+Not+Applied+When+The+Image+Size+is+Big&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>In a current project I run on the following problem: didn&#8217;t see a blur filter applied on a background. Started debugging and even though was no error neither compile errors nor runtime. But a the Flex Builder console panel, where traces appear, a special output text warning appeared:</p>
<blockquote><p>Warning: Filter will not render. The DisplayObject&#8217;s filtered dimensions ([width], [height]) are too large to be drawn.</p></blockquote>
<p>This text appears only when you are debugging. Tried to find where it resides but ended in <strong>playerglobal.swc</strong>.</p>
<p>Then searched on the internet but didn&#8217;t find anything. But found an old bug on Adobe Jira bug base and found a bug on this issue: <a href="https://bugs.adobe.com/jira/browse/SDK-775" target="_blank">https://bugs.adobe.com/jira/browse/SDK-775</a>. It says is old and closed but I&#8217;m still having it, although now it is not appearing at 1000 pixels.</p>
<p>By trial and error I found that the maximum allowed width and height to be able to apply the filter on a display object is 2875 pixels. So the filter will be applied on display objects with widths and heights like these: <strong>2000 x 2875</strong>, <strong>100 x 2875</strong>, <strong>W x 2875</strong>. But if you&#8217;ll try <strong>W x 2876</strong> the filter will not be applied. Also applying a filter on a <strong>2875 x 2875</strong> pixels object will not work. It seams that the product of the width and height of the object must not be over an arbitrary value that depends on the filter&#8217;s parameters. </p>
<p>All these were tried using the bellow application I created especially for this problem. To use it&#8230; first create the background with different widths and heights than apply the filter on it.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_bigimagefilterapplyproblem_244964666"
			class="flashmovie"
			width="600"
			height="680">
	<param name="movie" value="/wp-content/uploads/2009/02/bigimagefilterapplyproblem.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/wp-content/uploads/2009/02/bigimagefilterapplyproblem.swf"
			name="fm_bigimagefilterapplyproblem_244964666"
			width="600"
			height="680">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>If any of you got into this error also please comment or contact us&#8230; maybe we will find a way to overcome the problem or to set some limits that everyone will know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2009/02/24/filters-not-applied-when-the-image-size-is-big/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Flash Player 10 Debug Version</title>
		<link>http://www.flexer.info/2008/10/24/flash-player-10-debug-version/</link>
		<comments>http://www.flexer.info/2008/10/24/flash-player-10-debug-version/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 14:57:30 +0000</pubDate>
		<dc:creator>Andrei Ionescu</dc:creator>
				<category><![CDATA[Debug]]></category>
		<category><![CDATA[Flash Player]]></category>
		<category><![CDATA[Flash Player 10]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=278</guid>
		<description><![CDATA[I think many of you want to develop applications for Flash Player 10 using Flex but without a debugger this is almost impossible. So if you want the Flash Player 10 Debug version directly download this archive from Adobe.
More about this on this page where you can find many other versions of flash player: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266&#038;sliceId=1.
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F10%2F24%2Fflash-player-10-debug-version%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F10%2F24%2Fflash-player-10-debug-version%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2008/10/24/flash-player-10-debug-version/&title=Flash+Player+10+Debug+Version&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>I think many of you want to develop applications for Flash Player 10 using Flex but without a debugger this is almost impossible. So if you want the Flash Player 10 Debug version directly download <a href="http://fpdownload.macromedia.com/get/flashplayer/installers/archive/fp10_debug_archive.zip">this archive</a> from Adobe.</p>
<p>More about this on this page where you can find many other versions of flash player: <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266&#038;sliceId=1" target="_blank">http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266&#038;sliceId=1</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2008/10/24/flash-player-10-debug-version/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Image Events Dispatch Order</title>
		<link>http://www.flexer.info/2008/09/12/image-events-dispatch-order/</link>
		<comments>http://www.flexer.info/2008/09/12/image-events-dispatch-order/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 10:20:31 +0000</pubDate>
		<dc:creator>Andrei Ionescu</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[MXML]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=254</guid>
		<description><![CDATA[Yesterday I&#8217;ve been working with images: loading, resizing, removing, etc. I got into a challenging issue: I had to vertically position a label after an image resize &#8211; but a resize that is triggered by setting maxWidth and maxHeight keeping also the aspect ratio.
I tried to get the new width and height after the resize [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F09%2F12%2Fimage-events-dispatch-order%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F09%2F12%2Fimage-events-dispatch-order%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2008/09/12/image-events-dispatch-order/&title=Image+Events+Dispatch+Order&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>Yesterday I&#8217;ve been working with images: loading, resizing, removing, etc. I got into a challenging issue: I had to vertically position a label after an image resize &#8211; but a resize that is triggered by setting <strong>maxWidth </strong>and <strong>maxHeight</strong> keeping also the aspect ratio.</p>
<p>I tried to get the new width and height after the resize event was triggered but no luck. I&#8217;ve been debugging a while and seen that the new width and the new height are in <strong>$height</strong> and <strong>$width</strong> internal variables. I had no luck getting the new width and the new height in this method triggered by the resize event.</p>
<p>So I started to investigate to see which event triggers the last that way making it sure all properties are updated. I created a simple application that will load an arbitrary image in mean time displaying the events triggered. There is also a button that moves the image horizontally by 50 pixels also showing the triggered events.<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_imageeventstest_1712435880"
			class="flashmovie"
			width="600"
			height="615">
	<param name="movie" value="/wp-content/uploads/2008/09/imageeventstest.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/wp-content/uploads/2008/09/imageeventstest.swf"
			name="fm_imageeventstest_1712435880"
			width="600"
			height="615">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object><br />
I found that after resize event update complete event triggers which contains the needed width and height in <strong>contentWidth </strong>and <strong>contentHeight </strong>properties.</p>
<p>I hope this will help you in different scenarios you&#8217;ll encounter in development.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> 
    layout=<span style="color: #ff0000;">&quot;absolute&quot;</span>
    applicationComplete=<span style="color: #ff0000;">&quot;start()&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;615&quot;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:TextInput id=<span style="color: #ff0000;">&quot;imageUrl&quot;</span> x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;383&quot;</span> 
        <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;http://www.flexer.info/wp-content/gallery/wallpapers/fxr_1600x1200.png&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Button</span> x=<span style="color: #ff0000;">&quot;401&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span>  label=<span style="color: #ff0000;">&quot;Start&quot;</span> 
        click=<span style="color: #ff0000;">&quot;handleButtonClick(event)&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Button</span> x=<span style="color: #ff0000;">&quot;464&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span>  label=<span style="color: #ff0000;">&quot;Move it&quot;</span> 
        click=<span style="color: #ff0000;">&quot;handleMoveButtonClick(event)&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:Image id=<span style="color: #ff0000;">&quot;testImage&quot;</span> maxWidth=<span style="color: #ff0000;">&quot;250&quot;</span> maxHeight=<span style="color: #ff0000;">&quot;250&quot;</span> 
        x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;40&quot;</span>
        addedToStage=<span style="color: #ff0000;">&quot;handleAddedToStage(event)&quot;</span>
        complete=<span style="color: #ff0000;">&quot;handleComplete(event)&quot;</span>
        creationComplete=<span style="color: #ff0000;">&quot;handleCreationComplete(event)&quot;</span>
        currentStateChange=<span style="color: #ff0000;">&quot;handleCurrentStateChange(event)&quot;</span>
        init=<span style="color: #ff0000;">&quot;handleInit(event)&quot;</span>
        initialize=<span style="color: #ff0000;">&quot;handleInitialize(event)&quot;</span>
        open=<span style="color: #ff0000;">&quot;handleOpen(event)&quot;</span>
        preinitialize=<span style="color: #ff0000;">&quot;handlePreinitialize(event)&quot;</span>
        progress=<span style="color: #ff0000;">&quot;handleProgress(event)&quot;</span>
        removed=<span style="color: #ff0000;">&quot;handleRemoved(event)&quot;</span>
        render=<span style="color: #ff0000;">&quot;handleRender(event)&quot;</span>
        resize=<span style="color: #ff0000;">&quot;handleResize(event)&quot;</span>
        <span style="color: #0066CC;">show</span>=<span style="color: #ff0000;">&quot;handleShow(event)&quot;</span>
        unload=<span style="color: #ff0000;">&quot;handleUnload(event)&quot;</span>
        updateComplete=<span style="color: #ff0000;">&quot;handleUpdateComplete(event)&quot;</span>
        valid=<span style="color: #ff0000;">&quot;handleValid(event)&quot;</span>
        valueCommit=<span style="color: #ff0000;">&quot;handleValueCommit(event)&quot;</span>
        <span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:TextArea x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;300&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;580&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;305&quot;</span> 
        <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;{_debug}&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
        <span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">ResizeEvent</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">StateChangeEvent</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">events</span>.<span style="color: #006600;">FlexEvent</span>;
&nbsp;
            <span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _debug:<span style="color: #0066CC;">String</span>;
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug = <span style="color: #ff0000;">&quot;---&gt; application started!!!<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleButtonClick<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                testImage.<span style="color: #006600;">source</span> = imageUrl.<span style="color: #0066CC;">text</span>;
                _debug += <span style="color: #ff0000;">&quot;---&gt; handleButtonClick<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleMoveButtonClick<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                testImage.<span style="color: #006600;">x</span> += <span style="color: #cc66cc;">50</span>;
                _debug += <span style="color: #ff0000;">&quot;---&gt; handleMoveButtonClick<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleAddedToStage<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleAddedToStage<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleComplete<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> 
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;adddedToStage<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleCreationComplete<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:FlexEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleCreationComplete<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleCurrentStateChange<span style="color: #66cc66;">&#40;</span>
                <span style="color: #0066CC;">e</span>:StateChangeEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleCurrentStateChange<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleInit<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleInit<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleInitialize<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:FlexEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleInitialize<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleOpen<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleOpen<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handlePreinitialize<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:FlexEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handlePreinitialize<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleProgress<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:ProgressEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleProgress<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleRemoved<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleRemoved<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleRender<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleRender<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleResize<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:ResizeEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleResize<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleShow<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:FlexEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleShow<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleUnload<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleUnload<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleUpdateComplete<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleUpdateComplete<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
                _debug += <span style="color: #ff0000;">&quot;     contentHeight: &quot;</span> + 
                    <span style="color: #0066CC;">e</span>.<span style="color: #006600;">currentTarget</span>.<span style="color: #006600;">contentHeight</span> + <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
                _debug += <span style="color: #ff0000;">&quot;     x: &quot;</span> + <span style="color: #0066CC;">e</span>.<span style="color: #006600;">currentTarget</span>.<span style="color: #006600;">x</span> + <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleValid<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:FlexEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleValid<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleValueCommit<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:FlexEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                _debug += <span style="color: #ff0000;">&quot;handleValueCommit<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
            <span style="color: #66cc66;">&#125;</span>
        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;/</span>mx:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div>

<p>I hope you won&#8217;t be offended by the fact that I created one event method for each event type instead of having just one method and &#8220;switching&#8221; for the type inside it. <img src='http://www.flexer.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2008/09/12/image-events-dispatch-order/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HTTPService Requesting XML from FeedBurner Gets Parsed with XSL in IE Browser</title>
		<link>http://www.flexer.info/2008/09/10/httpservice-requesting-xml-from-feedburner-gets-parsed-with-xsl-in-ie-browser/</link>
		<comments>http://www.flexer.info/2008/09/10/httpservice-requesting-xml-from-feedburner-gets-parsed-with-xsl-in-ie-browser/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 15:32:10 +0000</pubDate>
		<dc:creator>Andrei Ionescu</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[MXML]]></category>
		<category><![CDATA[Web Service]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[xsl]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=252</guid>
		<description><![CDATA[These day I&#8217;ve been fighting with this issue: trying to get the Flexer XML feed from FeedBurner into a Flex application. As many of you may know FeedBurner serves the XML with an XSL and browsers that know XSL will parse it and display it in a nicer way that a simple xml.
The problem is [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F09%2F10%2Fhttpservice-requesting-xml-from-feedburner-gets-parsed-with-xsl-in-ie-browser%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F09%2F10%2Fhttpservice-requesting-xml-from-feedburner-gets-parsed-with-xsl-in-ie-browser%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2008/09/10/httpservice-requesting-xml-from-feedburner-gets-parsed-with-xsl-in-ie-browser/&title=HTTPService+Requesting+XML+from+FeedBurner+Gets+Parsed+with+XSL+in+IE+Browser&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>These day I&#8217;ve been fighting with this issue: trying to get the <a href="http://feeds.feedburner.com/flexer/" target="_blank">Flexer XML feed</a> from FeedBurner into a Flex application. As many of you may know FeedBurner serves the XML with an XSL and browsers that know XSL will parse it and display it in a nicer way that a simple xml.</p>
<p>The problem is that I use IE 7 for development and debugging which is not the best thing to do. So I did a small application to read a feed from an specified URL.<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_test_feedburner_1129030471"
			class="flashmovie"
			width="370"
			height="310">
	<param name="movie" value="/wp-content/uploads/2008/09/test_feedburner.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/wp-content/uploads/2008/09/test_feedburner.swf"
			name="fm_test_feedburner_1129030471"
			width="370"
			height="310">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object><br />
At run-time in IE I always got this error (is displayed after clicking on <strong>Get HTTPService</strong> button with <strong>format=&#8221;xml&#8221;</strong> unchecked &#8211; <strong style="color:red">ONLY IN IE</strong>) : </p>
<blockquote style="color:red"><p>Error #1085: The element type &#8220;link&#8221; must be terminated by the matching end-tag &#8220;&lt;/link&gt;&#8221;.</p></blockquote>
<p>When I did look in the <strong>message.body</strong> property of the fault event I was shocked to see that what I get is a HTML page &#8211; NOT an XML one. HTML pages do have tags that do not close like &#8220;link&#8221; tag used to add CSS to the page.</p>
<p>I tried every property of HTTP service, some headers and content types, I also made a URLRequest approach but the same thing.</p>
<p>In the other browser the things were different. Everything was OK. I was requesting for an XML I got an XML. That is great! But I still need to make it work in IE.</p>
<p>It seems that IE is different&#8230; It parses everything before sending it to the flash player. I&#8217;m not a hundred percent sure if is correct what I am saying but that is how I explained it. Then a <a href="http://www.flexer.info/author/qbic/" target="_blank">&#8220;brilliant&#8221; colleague of mine</a> found the needed thing &#8211; in the request add <strong>format = &#8220;xml&#8221;</strong> as request. It seems that when <strong>format = &#8220;xml&#8221;</strong> is set FeedBurner sends another header back to IE browser which will tell the browser not to parse the XML with XSL. So, I did it like below (starting with line 11 in the whole code):</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">testGetUrl.<span style="color: #0066CC;">send</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>useFormat.<span style="color: #006600;">selected</span> ? <span style="color: #66cc66;">&#123;</span>format:<span style="color: #ff0000;">'xml'</span><span style="color: #66cc66;">&#125;</span> : <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>Notice <strong>{format:&#8221;xml&#8221;</strong>} object which holds our request parameter.</p>
<p>Here is the whole code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> 
    layout=<span style="color: #ff0000;">&quot;absolute&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;370&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;310&quot;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:HTTPService id=<span style="color: #ff0000;">&quot;testGetUrl&quot;</span> 
        fault=<span style="color: #ff0000;">&quot;handleFault(event)&quot;</span>
        result=<span style="color: #ff0000;">&quot;handleResult(event)&quot;</span>
        resultFormat=<span style="color: #ff0000;">&quot;e4x&quot;</span>
        <span style="color: #0066CC;">url</span>=<span style="color: #ff0000;">&quot;{geturl.text}&quot;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;/</span>mx:HTTPService<span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Button</span> x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;40&quot;</span> label=<span style="color: #ff0000;">&quot;Get HTTPService&quot;</span> 
        click=<span style="color: #ff0000;">&quot;testGetUrl.send(
            (useFormat.selected ? {format:'xml'} : {})
        )&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Button</span> x=<span style="color: #ff0000;">&quot;137&quot;</span> y=<span style="color: #ff0000;">&quot;40&quot;</span> label=<span style="color: #ff0000;">&quot;Get URLRequest&quot;</span> 
        click=<span style="color: #ff0000;">&quot;handleGetUrlRequest(event)&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:CheckBox id=<span style="color: #ff0000;">&quot;useFormat&quot;</span> x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;70&quot;</span> 
        label=<span style="color: #ff0000;">&quot;Use format=&amp;quot;xml&amp;quot;&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:TextInput id=<span style="color: #ff0000;">&quot;geturl&quot;</span> x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span> 
        <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;350&quot;</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;http://feeds.feedburner.com/flexer/&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:TextArea id=<span style="color: #ff0000;">&quot;geturlresp&quot;</span> x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;96&quot;</span> 
        <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;350&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;204&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
        <span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">rpc</span>.<span style="color: #006600;">events</span>.<span style="color: #006600;">ResultEvent</span>;
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">rpc</span>.<span style="color: #006600;">events</span>.<span style="color: #006600;">FaultEvent</span>;
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleFault<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:FaultEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">var</span> temp:<span style="color: #0066CC;">String</span> = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">fault</span>.<span style="color: #006600;">faultString</span>.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> + 
                    <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> + <span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">message</span>.<span style="color: #006600;">body</span>.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
                geturlresp.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;HTTPSERVICE FAULT!<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> + temp;
            <span style="color: #66cc66;">&#125;</span>
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleResult<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:ResultEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">var</span> temp:<span style="color: #66cc66;">*</span> = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">result</span>;
                geturlresp.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;HTTPSERVICE RESULT!<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> + 
                    <span style="color: #0066CC;">e</span>.<span style="color: #006600;">result</span>.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #66cc66;">&#125;</span>
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleGetUrlRequest<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">var</span> urlReq:URLRequest = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">geturl</span>.<span style="color: #0066CC;">text</span> + 
                    <span style="color: #66cc66;">&#40;</span>useFormat.<span style="color: #006600;">selected</span> ? <span style="color: #ff0000;">&quot;/?format=xml&quot;</span> : <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
&nbsp;
&nbsp;
                urlReq.<span style="color: #006600;">method</span> = URLRequestMethod.<span style="color: #0066CC;">GET</span>;
                <span style="color: #000000; font-weight: bold;">var</span> urlLoader:URLLoader = <span style="color: #000000; font-weight: bold;">new</span> URLLoader<span style="color: #66cc66;">&#40;</span>urlReq<span style="color: #66cc66;">&#41;</span>;
                urlLoader.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>
                    Event.<span style="color: #006600;">COMPLETE</span>, handleUrlRequestComplete<span style="color: #66cc66;">&#41;</span>;
            <span style="color: #66cc66;">&#125;</span>
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleUrlRequestComplete<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">var</span> tmp:<span style="color: #66cc66;">*</span> = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">currentTarget</span>.<span style="color: #0066CC;">data</span>;
                geturlresp.<span style="color: #0066CC;">text</span> = <span style="color: #ff0000;">&quot;URLREQUEST COMPLETE!<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> + 
                    tmp.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #66cc66;">&#125;</span>
        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;/</span>mx:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div>

<p>I made also a <strong>URLRequest </strong>option so you can see that is something that is not happening only when using <strong>HTTPService</strong>.</p>
<p>Again&#8230; I want to specify that the error appears <strong>only on IE</strong>.</p>
<p>We may write new articles on this as we will found more about it. <img src='http://www.flexer.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  So keep reading us.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2008/09/10/httpservice-requesting-xml-from-feedburner-gets-parsed-with-xsl-in-ie-browser/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dump Debug Method (Like var_dump Function in PHP) and Debug Class</title>
		<link>http://www.flexer.info/2008/06/25/dump-debug-method-like-var_dump-function-in-php-and-debug-class/</link>
		<comments>http://www.flexer.info/2008/06/25/dump-debug-method-like-var_dump-function-in-php-and-debug-class/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 11:59:43 +0000</pubDate>
		<dc:creator>Andrei Ionescu</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://www.flexer.info/?p=212</guid>
		<description><![CDATA[Although Flex Builder and Eclipse do have nice debug utilities built in, today I needed a function/method in Actionscript to display into the current application some variables&#8217; content. So I started to implement a var_dump alike function (var_dump from PHP language).
So I started and I made the Debug class that will implement the static dump [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-right: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F06%2F25%2Fdump-debug-method-like-var_dump-function-in-php-and-debug-class%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.flexer.info%2F2008%2F06%2F25%2Fdump-debug-method-like-var_dump-function-in-php-and-debug-class%2F" height="61" width="51" /></a></div><div style="float: right; margin-right: 10px"><a class="google_buzz"  
href="http://www.google.com/reader/link?url=http://www.flexer.info/2008/06/25/dump-debug-method-like-var_dump-function-in-php-and-debug-class/&title=Dump+Debug+Method+(Like+var_dump+Function+in+PHP)+and+Debug+Class&srcURL=http://www.flexer.info" target="_blank" rel="nofollow"><img
src="http://www.flexer.info/wp-content/plugins/google-buzz-button-for-wordpress/images/google-buzz.png" alt="Google Buzz" /></a></div><p>Although Flex Builder and Eclipse do have nice debug utilities built in, today I needed a function/method in Actionscript to display into the current application some variables&#8217; content. So I started to implement a var_dump alike function (<a href="http://www.php.net/manual/en/function.var-dump.php" target="_blank">var_dump</a> from PHP language).</p>
<p>So I started and I made the <strong>Debug</strong> class that will implement the static <strong>dump</strong> function. Looking at the PHP var_dump function I noticed two, three main problems that will appear:</p>
<ol>
<li>data types &#8211; ex: array is displayed as object by <strong>typeof</strong> function/operator</li>
<li>length of objects and associative arrays &#8211; ex: length property for objects and associative arrays is undefined</li>
<li>behaviour of static methods and variables inside calsses &#8211; ex: a static variable will keep its content even new methods calls appear, so calling the static dump method will not reinitialize the static vars.</li>
</ol>
<p>For al these problems solutions are available:</p>
<ol>
<li>instead of using <strong>typeof</strong> we will use <a href="http://livedocs.adobe.com/flex/2/langref/flash/utils/package.html#getQualifiedClassName()" target="_blank">flash.utils.getQualifiedClassName</a> static method (see also <a href="http://www.flexer.info/2007/10/18/how-to-find-the-class-name-of-an-object-instance/" target="_blank">this old article</a>) &#8211; more about typeof operator and its return values <a href="http://livedocs.adobe.com/flex/2/langref/operators.html#typeof" target="_blank">here</a></li>
<li>we will implement a method to count the first children in an object</li>
<li>there will be an internal <strong>recursiveDump</strong> function and a generic public <strong>dump</strong> function</li>
</ol>
<p>Here is the application code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> 
    layout=<span style="color: #ff0000;">&quot;absolute&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;500&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;400&quot;</span>
    creationComplete=<span style="color: #ff0000;">&quot;start()&quot;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:TextArea id=<span style="color: #ff0000;">&quot;debugTA&quot;</span> x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span> 
        <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;480&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;380&quot;</span><span style="color: #66cc66;">/&gt;</span>
    <span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
        <span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
            <span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
            <span style="color: #0066CC;">import</span> com.<span style="color: #006600;">flexer</span>.<span style="color: #006600;">Debug</span>;
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> testdata:<span style="color: #0066CC;">Object</span>;
&nbsp;
            <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
            <span style="color: #66cc66;">&#123;</span>
                <span style="color: #808080; font-style: italic;">// even though the object is created like here</span>
                <span style="color: #808080; font-style: italic;">// the order does not reflect the order of</span>
                <span style="color: #808080; font-style: italic;">// creation - the order is somehow made internally </span>
                testdata = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
                testdata<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;row1&quot;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#123;</span>
                    <span style="color: #ff0000;">&quot;col1&quot;</span>:<span style="color: #ff0000;">&quot;a&quot;</span>,
                    <span style="color: #ff0000;">&quot;col2&quot;</span>:<span style="color: #66cc66;">&#123;</span>
                        <span style="color: #ff0000;">&quot;12&quot;</span>:<span style="color: #ff0000;">&quot;12&quot;</span>,
                        <span style="color: #ff0000;">&quot;13&quot;</span>:<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">4</span><span style="color: #66cc66;">&#93;</span>
                    <span style="color: #66cc66;">&#125;</span>,
                    <span style="color: #ff0000;">&quot;col3&quot;</span>:<span style="color: #ff0000;">&quot;c&quot;</span>,
                    <span style="color: #ff0000;">&quot;col4&quot;</span>:<span style="color: #ff0000;">&quot;d&quot;</span>
                <span style="color: #66cc66;">&#125;</span>;
                testdata<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;row2&quot;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">XML</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
                testdata<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;row2&quot;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&lt;</span>test<span style="color: #66cc66;">&gt;&lt;</span>tag1 att=<span style="color: #ff0000;">&quot;att&quot;</span><span style="color: #66cc66;">&gt;</span>val<span style="color: #66cc66;">&lt;/</span>tag1<span style="color: #66cc66;">&gt;&lt;/</span>test<span style="color: #66cc66;">&gt;</span>;
                testdata<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;row3&quot;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#123;</span><span style="color: #ff0000;">&quot;col1&quot;</span>:<span style="color: #ff0000;">&quot;a&quot;</span>,<span style="color: #ff0000;">&quot;col2&quot;</span>:<span style="color: #ff0000;">&quot;b&quot;</span>,<span style="color: #ff0000;">&quot;col3&quot;</span>:<span style="color: #ff0000;">&quot;c&quot;</span>,<span style="color: #ff0000;">&quot;col4&quot;</span>:<span style="color: #ff0000;">&quot;d&quot;</span><span style="color: #66cc66;">&#125;</span>;
                testdata<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;row4&quot;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#123;</span><span style="color: #ff0000;">&quot;col1&quot;</span>:<span style="color: #ff0000;">&quot;a&quot;</span>,<span style="color: #ff0000;">&quot;col2&quot;</span>:<span style="color: #ff0000;">&quot;b&quot;</span>,<span style="color: #ff0000;">&quot;col3&quot;</span>:<span style="color: #ff0000;">&quot;c&quot;</span>,<span style="color: #ff0000;">&quot;col4&quot;</span>:<span style="color: #ff0000;">&quot;d&quot;</span><span style="color: #66cc66;">&#125;</span>;
                testdata<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;row5&quot;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
                testdata<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;row5&quot;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;a&quot;</span>,<span style="color: #ff0000;">&quot;b&quot;</span>,<span style="color: #ff0000;">&quot;c&quot;</span>,<span style="color: #ff0000;">&quot;d&quot;</span><span style="color: #66cc66;">&#93;</span>;
                testdata<span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;row6&quot;</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #66cc66;">&#123;</span><span style="color: #ff0000;">&quot;col1&quot;</span>:<span style="color: #ff0000;">&quot;a&quot;</span>,<span style="color: #ff0000;">&quot;col2&quot;</span>:<span style="color: #ff0000;">&quot;b&quot;</span>,<span style="color: #ff0000;">&quot;col3&quot;</span>:<span style="color: #ff0000;">&quot;c&quot;</span>,<span style="color: #ff0000;">&quot;col4&quot;</span>:<span style="color: #ff0000;">&quot;d&quot;</span><span style="color: #66cc66;">&#125;</span>;
                <span style="color: #808080; font-style: italic;">// calling debug.dump</span>
                debugTA.<span style="color: #0066CC;">text</span> = Debug.<span style="color: #006600;">dump</span><span style="color: #66cc66;">&#40;</span>testdata,<span style="color: #cc66cc;">3</span>,<span style="color: #cc66cc;">5.5</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #66cc66;">&#125;</span>
        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
    <span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;/</span>mx:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div>

<p>The <strong>Debug</strong> class with its static methods can be downloaded at the end but now you can see the dump of the above flex code.<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_var_dump_app_1054118121"
			class="flashmovie"
			width="500"
			height="400">
	<param name="movie" value="/wp-content/uploads/2008/06/var_dump_app.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/wp-content/uploads/2008/06/var_dump_app.swf"
			name="fm_var_dump_app_1054118121"
			width="500"
			height="400">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.flexer.info/2008/06/25/dump-debug-method-like-var_dump-function-in-php-and-debug-class/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

