+1

Code View

I tried to get my code view working for my Twitter Pod but it seams there is a bug in Flex 3 that wont let me specify the code view source.  Every time I change it Flexbuilder changes it back when it exports the release build.

Here is the code in code block:

CF:

 

<cfcomponent output="false">
	<!--- Get Data --->
	<cffunction name="getData" output="false" access="remote" returntype="query">
		<cfset var local=StructNew()>
		
		<cffeed source="http://twitter.com/statuses/user_timeline/15001308.rss" 
				action="read" query="local.result" />
		
		<cfreturn local.result>
	</cffunction>
</cfcomponent>

AS:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="180" height="194"
	creationComplete="remoteObject.getData()"  cornerRadius="16" 
	viewSourceURL="srcview/index.html" color="#000">
	<mx:RemoteObject id="remoteObject" destination="ColdFusion" source="paulcfc.Twitter" showBusyCursor="true">
		<mx:method name="getData" result="getDataSuccess(event)" />
	</mx:RemoteObject>
	<mx:Script>
		<![CDATA[
			import mx.formatters.DateFormatter;
			import mx.rpc.events.ResultEvent;
			import mx.collections.ArrayCollection;
			
			private var resultData:ArrayCollection;
			
			private function getDataSuccess(e:ResultEvent):void{
				resultData = e.result as ArrayCollection;
				for( var i:int = 0; i < 5; ++i){
					ta.text += niceDateFormatter.format(resultData.getItemAt(i).PUBLISHEDDATE) + 
					": " + resultData.getItemAt(i).CONTENT.replace("paulkukiel: ", "") + "\n\n";
				}
			}
			
		]]>
	</mx:Script>
			
			<mx:DateFormatter id="niceDateFormatter" formatString="DD MMM" />
			<mx:LinkButton label="Twitter" textAlign="left" 
				click="navigateToURL(new URLRequest('http://twitter.com/paulkukiel'))" 
				y="0" x="10"/>
			<mx:TextArea id="ta" width="160" height="163" editable="false" y="21" x="10"/>
	
</mx:Application>

And here is the bug report at Adobe.  It was already entered but I put my vote forward hopefully they fix it.

bugs.adobe.com/jira/browse/FB-13194

+2

Twitter, Flex and Coldfusion

Well I have been playing with a new homepage and wrote a small section of code to display my twitter feeds using CFFEED.  This is a great tag and I was able to in 4 lines of code read my feed and loop over it displaying it nicely. 

It was only a small step to port it into a flex widget which you can see on the side of my blog.  I'll post up the code shortly.

+1

CFEclipse

I've been using CFEclipse for a while now and for CF code I have been noticing some of the helper errors are not quite accurate.  I guess I just don't like seeing errors/warnings in the Problems tab.  Turns out this is really easy to fix here is my example.

I keep getting report is a required attribute warning where its only required for crystal reports ( I'm using ColdFusion reports ).

To fix this goto installpath\plugins\org.cfeclipse.cfml_1.3.1.6\dictionary open the CF8.xml find the node for cfreport and change.  Close and reopen Flexbuilder/Exclipse.

No more errors. :)

+1

Coldfusion Forums

I don't mind browsing an online forum now and then and I really like to have a place I can go to ask questions.  Mailing lists are great but often I tend to skip over alot of emails.  So I did some searching and found the following Coldfusion forums.

DigitalPoint CF Forum

DreaminCode CF Forum

Sitepoint CF Forum

Adobe CF Forum

+1

Subeclipse in Flexbuilder

I wanted to intergrate SVN into Flexbuilder.  As flexbuilder doesn't include all the java plugins installing SubEclipse took 1 or 2 extra steps.  I found this blog post which worked for me without issue:

http://www.flexer.info/2008/04/30/how-to-install-subclipse-on-flex-builder-3/

It's working great. Now to find a MS SQL explorer plugin so I don't need Enterprise manager open as well.

+1

Adobe Air Camp

I recently attended Adobe's Air Camp ( Melbourne Australia ).  There was quite a large turn out and a surprising amount of interest.  I spoke with a few people and, as noted by Adobe, one of the key points is due to Adobes push for cross platform frameworks.

I'd say 70% of laptops I saw there were Macs and 100% of the Adobe staff were on Macs.  I sat with a few guys who basically said if this didnt run on Linux then they wouldn't have been there that day.  I think this is a good thing for Adobe.  I have personally been using Flexbuilder in OSX, Windows and I played with it in Linux all with great success.

One of the nice things Adobe is doing is working hard to integrate its products and although I don't use CS3, others at work do and now they can design UI in Flash and Fireworks then pass that onto a developer to implement the logic.

The presenters and their blogs were:

 

Andrew Spaulding - http://www.flexdaddy.com/

Mark Blair - http://www.blairsblog.com/

Matt Voerman - http://blog.schematic.com.au/


Search