<?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>Luis F. Majano &#187; Flash Forms</title>
	<atom:link href="http://luismajano.com/category/Flash-Forms/feed/" rel="self" type="application/rss+xml" />
	<link>http://luismajano.com</link>
	<description>Computer Engineer</description>
	<lastBuildDate>Wed, 18 Jan 2012 06:17:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flash Forms Illegal usage of actionscript</title>
		<link>http://luismajano.com/2005/10/18/Illegalusageofactionscript/</link>
		<comments>http://luismajano.com/2005/10/18/Illegalusageofactionscript/#comments</comments>
		<pubDate>Tue, 18 Oct 2005 00:00:00 +0000</pubDate>
		<dc:creator>Luis Majano</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Flash Forms]]></category>

		<guid isPermaLink="false">http://www.luismajano.com/</guid>
		<description><![CDATA[This was strange, since the only thing I was doing was showing an alert. The following is a simple recreation of the code:

<div class="code"><FONT COLOR=MAROON>&#60;cfsavecontent variable=<FONT COLOR=BLUE>"ShowAlert"</FONT>&#62;</FONT><br /><FONT COLOR=GRAY><I>
//create the alert</I></FONT>
alert(<FONT COLOR=BLUE>"Do you wish to delete the selected file."</FONT>, <FONT COLOR=BLUE>"Warning"</FONT>, mx.controls.Alert.YES &#124; mx.controls.Alert.CANCEL, myClickHandler);<br />
<FONT COLOR=MAROON>&#60;/cfsavecontent&#62;</FONT><br />
<br />
<FONT COLOR=MAROON>&#60;cfform name=<FONT COLOR=BLUE>"myform"</FONT> height=<FONT COLOR=BLUE>"200"</FONT> width=<FONT COLOR=BLUE>"400"</FONT> format=<FONT COLOR=BLUE>"Flash"</FONT> timeout=<FONT COLOR=BLUE>"100"</FONT>&#62;</FONT><br />
&#160;&#160;&#160; <FONT COLOR=MAROON>&#60;cfformgroup type=<FONT COLOR=BLUE>"hbox"</FONT>&#62;</FONT><br />
   &#160;&#160;&#160;&#160;&#160;&#160; <FONT COLOR=MAROON>&#60;cfinput type=<FONT COLOR=BLUE>"Button"</FONT> name=<FONT COLOR=BLUE>"myBtn"</FONT> onClick=<FONT COLOR=BLUE>"#showAlert#"</FONT> value=<FONT COLOR=BLUE>"Show Alert"</FONT> /&#62;</FONT> &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />
&#160;&#160;&#160;<FONT COLOR=MAROON>&#60;/cfformgroup&#62;</FONT><br />
<FONT COLOR=MAROON>&#60;/cfform&#62;</FONT></div>

Simple.  However, no compilation, nothing, nada.  Well, since it was a parsing error and an invalid actionscript command. It got me thinking, hmmm, maybe the parser does not like the word: <b>Delete</b> in any string, not even commands.

TADAAAA!!! We see the light.  The parser doesn't even read actionscript commands, but the whole actionscript, parsing for these keywords and throws an error.  I was even getting errors by naming my button: <b>button_delete</b>

So there you go, when you receive this compilation errors, make sure that you check your "name" values and your actionscript for reserved words.]]></description>
			<content:encoded><![CDATA[<p>I have been recently using flash forms in several different locations of my new Textus Coldfusion framework which I have been developing for work.  I will soon be placing entries about Textus, to give you an insight into this simple but powerful coldfusion framework.</p>
<p>Anyways, I have been implementing a backup system on Textus and decided to use flash forms to populate a cftree with the backups directory contents. Then from here I can open/delete files.  What seemed strange was all these errors I kept receiving, that seemed totally out of place, since my code was straightforward. These were the errors:</p>
<blockquote><p>
Illegal usage of actionscript org.apache.oro.text.regex.Perl5Pattern@1e3621b.</p>
<p>The following actionscript commands are not allowed: &#8220;import, new, delete, createChild, loadmovie, duplicateMovieClip, AttachMovie, registerclass, createTextField, __proto__, uiobjectdescriptor, createclassobject, createemptyobject, createchildatdepth, createchildren, createclasschildatdepth, createobject, createchild, webservice, httpservice, remoteobject&#8221;.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://luismajano.com/2005/10/18/Illegalusageofactionscript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>NetDebugger and CF Flash Forms</title>
		<link>http://luismajano.com/2005/09/02/netdebuggercfflashforms/</link>
		<comments>http://luismajano.com/2005/09/02/netdebuggercfflashforms/#comments</comments>
		<pubDate>Fri, 02 Sep 2005 00:00:00 +0000</pubDate>
		<dc:creator>Luis Majano</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Flash Forms]]></category>
		<category><![CDATA[Flash Remoting]]></category>

		<guid isPermaLink="false">http://www.luismajano.com/</guid>
		<description><![CDATA[Restart CFMX and you are ready to debug.  This is tedious if you need to disable it again. So after a few hours of trial and error and digging through the Actionscript whitepapers, I finally came up with a "ONE LINER" to activate debugging.  Let's say for example you have a simple form calling a remote service and the button code is the following:

<div class="code"><FONT COLOR=MAROON>&#60;cfinput type=<FONT COLOR=BLUE>"button"</FONT> &#160;&#160;&#160;&#160;&#160;&#160;<br />
&#160;&#160;&#160;&#160;&#160;&#160; name=<FONT COLOR=BLUE>"button_hello"</FONT><br />
&#160;&#160;&#160;&#160;&#160;&#160; value=<FONT COLOR=BLUE>"Say Hello"</FONT> <br />
&#160;&#160;&#160;&#160;&#160;&#160; onclick=<FONT COLOR=BLUE>"#sayhello#"</FONT>&#62;</FONT></div>

The "sayhello" variable holds the remoting call:

<div class="code"><FONT COLOR=MAROON>&#60;cfsavecontent variable=<FONT COLOR=BLUE>"sayhello"</FONT>&#62;</FONT><br /><FONT COLOR=GRAY><I>
//NetDebuggin ON, That was simple</I></FONT>
var debug:Boolean = mx.remoting.debug.NetDebug.initialize();<br />
<br /><FONT COLOR=GRAY><I>
//create gateway connection    </I></FONT>
var connection:mx.remoting.Connection = mx.remoting.NetServices.createGatewayConnection(<FONT COLOR=BLUE>"<A TARGET="_blank" HREF="http://www.luismajano.com/flashservices/gateway/">http://www.luismajano.com/flashservices/gateway/</A>"</FONT>);<br /><FONT COLOR=GRAY><I>
//declare service    </I></FONT>
var myService:mx.remoting.NetServiceProxy;<br /><FONT COLOR=GRAY><I>
//Create response handler</I></FONT>
var responseHandler = {};<br />
<br />
responseHandler.onResult = function( results: Object ):Void {<br />
  alert(results);<br />
}<br />
<br /><FONT COLOR=GRAY><I>
//function that receives any error that may have occurred during the call</I></FONT>
responseHandler.onStatus = function( stat: Object ):Void {<br />
 <FONT COLOR=GRAY><I> //if there is any error, show an alert</I></FONT>
  alert(<FONT COLOR=BLUE>"Error while calling cfc:"</FONT> + stat.description);<br />
}<br />
      <br /><FONT COLOR=GRAY><I>
//get service</I></FONT>
myService = connection.getService(<FONT COLOR=BLUE>"utilities.hello"</FONT>, responseHandler );<br />
   <br /><FONT COLOR=GRAY><I>
//make call</I></FONT>
myService.sayHello();<br />
<FONT COLOR=MAROON>&#60;/cfsavecontent&#62;</FONT></div>

And there you go, the NetDebugger will now work.  That was a lot of research for one line. Please let me know if you have any other ways of enabling debugging.  

Thanks.]]></description>
			<content:encoded><![CDATA[<p>This entry is to enlighten those who need to enable the Flash Remoting NetDebugger using CF Flash Forms.  By default, coldfusion has the flex debuggin off, so you either have to tweak the flex settings or programmatically activate the debugging.</p>
<p>I would not recommend the first solution on a production environment, due to the nature of somebody peaking in to your requests and responses.  However, for development is fine. So to start, find the following file: <b>flex-config.xml</b> which can be found under the following directory:</p>
<p>{CF_ROOT}/WEB-INF/cfform/flex-config.xml</p>
<p>Open the xml file and locate the following section:
<div class="code">
<p>&lt;!&#8211; When production-mode=true, the debugging options are always<br />
    false and may not be set. &#8211;&gt;<br />
    <FONT COLOR=NAVY>&lt;debugging&gt;</FONT></p>
<p>&lt;!&#8211; allow override of values in debugging section via<br />
query parameter on a per-request basis, if applicable &#8211;&gt;<br />
        <FONT COLOR=NAVY>&lt;process-debug-query-params&gt;</FONT>true<FONT COLOR=NAVY>&lt;/process-debug-query-params&gt;</FONT><br />&#8230;&#8230;    <br />
  <FONT COLOR=NAVY>&lt;/debugging&gt;</FONT></p>
</p></div>
<p>This is the flex debuggin configuration.  So in order to activate the debugger change the following entries to true.</p>
<div class="code"><FONT COLOR=GRAY><I><FONT COLOR=GRAY><I>&lt;!&#8211; turn on debug to see the request and response on the server side as well<br />
             as debug information in client side tracing &#8211;&gt;</I></FONT></I></FONT><br />
        <FONT COLOR=NAVY>&lt;remote-objects-debug&gt;</FONT>false<FONT COLOR=NAVY>&lt;/remote-objects-debug&gt;</FONT></p>
<p>&lt;!&#8211; turn on debug to see the request and response on the server side as well<br />
             as debug information in client side tracing &#8211;&gt;<br />
        <FONT COLOR=NAVY>&lt;web-service-proxy-debug&gt;</FONT>false<FONT COLOR=NAVY>&lt;/web-service-proxy-debug&gt;</FONT></p>
<p>        <FONT COLOR=GRAY><I>&lt;!&#8211; turn on debug to see the request and response on the server side &#8211;&gt;</I></FONT><br />
        <FONT COLOR=NAVY>&lt;http-service-proxy-debug&gt;</FONT>false<FONT COLOR=NAVY>&lt;/http-service-proxy-debug&gt;</FONT></div>
]]></content:encoded>
			<wfw:commentRss>http://luismajano.com/2005/09/02/netdebuggercfflashforms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

