+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


Search