<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Stretch Media - Adobe Flex RIA Blog - Flex 3</title>
			<link>http://www.stretchmedia.ca/blog/index.cfm</link>
			<description>Stretch Media Group&apos;s blog for the RIA community!</description>
			<language>en-us</language>
			<pubDate>Tue, 07 Sep 2010 13:33:06 -0500</pubDate>
			<lastBuildDate>Wed, 23 Sep 2009 12:38:00 -0500</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>partners@stretchmedia.ca</managingEditor>
			<webMaster>partners@stretchmedia.ca</webMaster>
			
			<item>
				<title>What happened to drag in 3.4?</title>
				<link>http://www.stretchmedia.ca/blog/index.cfm/2009/9/23/What-happened-to-drag-in-34</link>
				<description>
				
				The major app i&apos;ve been working on for the past 2 years has been happily progressing through the iterations of the 3.x framework in Flex, until 3.4.  All of a sudden my drag operations stopped functioning correctly.  To be specific, any doDrag() operation has died and my eventListeners for MOUSE_MOVE don&apos;t seem to be getting dispatched when a component is dragging.

I have deadlines, which means I&apos;ve just moved back to 3.3 and won&apos;t have time to look into this right now.... as is usual...

But has anyone else had this issue? 
				</description>
				
				<category>Flex 3</category>				
				
				<pubDate>Wed, 23 Sep 2009 12:38:00 -0500</pubDate>
				<guid>http://www.stretchmedia.ca/blog/index.cfm/2009/9/23/What-happened-to-drag-in-34</guid>
				
			</item>
			
			<item>
				<title>trace() output stops working with -optimize=true</title>
				<link>http://www.stretchmedia.ca/blog/index.cfm/2009/8/31/trace-output-stops-working-with-optimizetrue</link>
				<description>
				
				I guess this one could be filed under the &apos;guess that makes sense&apos; category, but none the less was a bit of a head-scratcher to figure out.

Basically, I have a couple of external libraries which I&apos;m using in my current Flex project.  I was trying to use the global trace() function within these libraries, but there was nothing getting output.  Wha?  I was in debug mode... I have the debug player... this has worked before... wtf?

Skip back... about a month ago my Subversion provider did a major migration which caused me massive headaches, and basically, I had to wipe out all my projects, and check them out fresh from the new svn repository locations, instead of just updating the repo address.  In doing this, I thought I got all my settings correct, but alas...

One particular Library project (the project in question above) had -optimize=true as compiler argument.  I saw this and didn&apos;t figure it for the issue as you have the -debug argument, and -debug-verbose which deal with output stuff.

Finally, after googling/flexcodering/blog searching/etc... along with confirming my mm.cfg file and flashlog.txt setup was correct, I began trying stuff willy-nilly to get this fixed.  That&apos;s when I discovered that -optimize=true does indeed prevent any trace outputs.

And that&apos;s the morale of this blog post :-) 
				</description>
				
				<category>Flex 3</category>				
				
				<pubDate>Mon, 31 Aug 2009 21:39:00 -0500</pubDate>
				<guid>http://www.stretchmedia.ca/blog/index.cfm/2009/8/31/trace-output-stops-working-with-optimizetrue</guid>
				
			</item>
			
			<item>
				<title>Cool New Flex App</title>
				<link>http://www.stretchmedia.ca/blog/index.cfm/2008/12/1/Cool-New-Flex-App</link>
				<description>
				
				Check out this new cool new Flex app: Rombla.

Rombla is an online &quot;no programming&quot; site builder that enables designers to create fully-editable websites using simple visual editing tools and then share them with their clients to edit and maintain. 

I was able to design and build a basic template in about 5 minutes and a full site in about 25. Some cool features but my favorite has to be the color scheme mixer where you can create your own palettes in Kuler then import them into Rombla. Then you can really experiment by changing layouts and navigation. You can literally change the entire look and feel of your site in seconds.

It&apos;s addictive for a designer and super easy and fast for clients to do their own edits - great for people who don&apos;t like getting caught up with endless text edits.

Check it out at: http://www.rombla.com/ 
				</description>
				
				<category>Flex 3</category>				
				
				<pubDate>Mon, 01 Dec 2008 22:55:00 -0500</pubDate>
				<guid>http://www.stretchmedia.ca/blog/index.cfm/2008/12/1/Cool-New-Flex-App</guid>
				
			</item>
			
			<item>
				<title>Double click to edit DataGrid/List</title>
				<link>http://www.stretchmedia.ca/blog/index.cfm/2008/9/20/Double-click-to-edit-DataGridList</link>
				<description>
				
				After some brief searching on this topic I pulled up an entry from FlexCoders back in August of 2007 where &lt;a href=&quot;http://www.huyler.net&quot; target=&quot;_blank&quot;&gt;Chris Huyler&lt;/a&gt; had figured out and put together a custom DataGrid to listen for a double click event rather than the default single click for itemEditor instances.

I needed both DataGrid and List support using this feature, so using Chris&apos; example for DG, I modified for List as well.

All credit goes to Chris for figuring this out, and my thanks... here&apos;s an example of each below:

&lt;b&gt;DataGrid&lt;/b&gt;

&lt;pre&gt;
package com.bm.custom_components&lt;br&gt;
{&lt;br&gt;
import flash.events.MouseEvent;&lt;br&gt;
import flash.geom.Point;&lt;br&gt;
&lt;br&gt;
import mx.controls.DataGrid;&lt;br&gt;
import mx.controls.listClasses.IListItemRenderer;&lt;br&gt;
import mx.events.DataGridEvent;&lt;br&gt;
&lt;br&gt;
public class DoubleClickEditDataGrid extends DataGrid&lt;br&gt;
{&lt;br&gt;
public function DoubleClickEditDataGrid() {&lt;br&gt;
	super();&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
private var triggeredEditable:Boolean = false;&lt;br&gt;
&lt;br&gt;
public function triggerItemEditor(event:MouseEvent):void&lt;br&gt;
{&lt;br&gt;
	var r:IListItemRenderer = mouseEventToItemRenderer(event);&lt;br&gt;
	var p:Point = itemRendererToIndices(r);&lt;br&gt;
	if ( columns[p.x].editable != false )&lt;br&gt;
	{&lt;br&gt;
		if (!editable)&lt;br&gt;
		{&lt;br&gt;
			editable=true;&lt;br&gt;
			triggeredEditable = true;&lt;br&gt;
			addEventListener(DataGridEvent.ITEM_EDIT_END,&lt;br&gt; triggeredEditorEnd);&lt;br&gt;
		}&lt;br&gt;
		var dEvent:DataGridEvent = new DataGridEvent(DataGridEvent.ITEM_EDIT_BEGINNING, &lt;br&gt;false, &lt;br&gt;false, &lt;br&gt;p.x, &lt;br&gt;null, &lt;br&gt;p.y, &lt;br&gt;null, &lt;br&gt;r, &lt;br&gt;p.y);&lt;br&gt;
		dispatchEvent(dEvent);&lt;br&gt;
	}&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
private function triggeredEditorEnd(event:DataGridEvent):void&lt;br&gt;
{&lt;br&gt;
	if ( triggeredEditable )&lt;br&gt;
	{&lt;br&gt;
		editable = false;&lt;br&gt;
		triggeredEditable = false;&lt;br&gt;
		removeEventListener( DataGridEvent.ITEM_EDIT_END, triggeredEditorEnd);&lt;br&gt;
	}&lt;br&gt;
}&lt;br&gt;
}&lt;br&gt;
}&lt;br&gt;
&lt;/pre&gt;


&lt;b&gt;List&lt;/b&gt;

&lt;pre&gt;
package com.bm.custom_components&lt;br&gt;
{&lt;br&gt;
import flash.events.MouseEvent;&lt;br&gt;
import flash.geom.Point;&lt;br&gt;
	
import mx.controls.List;&lt;br&gt;
import mx.controls.listClasses.IListItemRenderer;&lt;br&gt;
import mx.events.ListEvent;&lt;br&gt;
	
public class DoubleClickEnabledList extends List&lt;br&gt;
{&lt;br&gt;
	public function DoubleClickEnabledList(){}&lt;br&gt;
		&lt;br&gt;
	private var triggeredEditable:Boolean = false;&lt;br&gt;
&lt;br&gt;
	public function triggerItemEditor(event:MouseEvent):void&lt;br&gt;
	{&lt;br&gt;
		var r:IListItemRenderer = mouseEventToItemRenderer(event);&lt;br&gt;
		var p:Point = itemRendererToIndices(r);&lt;br&gt;
		if (!editable)&lt;br&gt;
		{&lt;br&gt;
			editable=true;&lt;br&gt;
			triggeredEditable = true;&lt;br&gt;
			addEventListener(ListEvent.ITEM_EDIT_END, triggeredEditorEnd);&lt;br&gt;
		}&lt;br&gt;
		var dEvent:ListEvent = new ListEvent(ListEvent.ITEM_EDIT_BEGINNING,&lt;br&gt;false,&lt;br&gt; false, &lt;br&gt;-1, &lt;br&gt;p.y, &lt;br&gt;null, &lt;br&gt;null);
		dispatchEvent(dEvent);&lt;br&gt;
	}&lt;br&gt;
		&lt;br&gt;
	private function triggeredEditorEnd(event:ListEvent):void&lt;br&gt;
	{&lt;br&gt;
		if ( triggeredEditable )&lt;br&gt;
		{&lt;br&gt;
			editable = false;&lt;br&gt;
			triggeredEditable = false;&lt;br&gt;
			removeEventListener( ListEvent.ITEM_EDIT_END, triggeredEditorEnd);&lt;br&gt;
		}&lt;br&gt;
	}&lt;br&gt;
}&lt;br&gt;
}
&lt;/pre&gt; 
				</description>
				
				<category>Flex 3</category>				
				
				<category>Code Snippets</category>				
				
				<pubDate>Sat, 20 Sep 2008 16:10:00 -0500</pubDate>
				<guid>http://www.stretchmedia.ca/blog/index.cfm/2008/9/20/Double-click-to-edit-DataGridList</guid>
				
			</item>
			
			<item>
				<title>Using external services-config.xml files and setting up on Mac</title>
				<link>http://www.stretchmedia.ca/blog/index.cfm/2008/9/14/Using-external-servicesconfigxml-files-and-setting-up-on-Mac</link>
				<description>
				
				Problem: 

I want to reference a remote instance of the services-config.xml file for a project I&apos;m working on.  I&apos;m now developing on the mac platform (which I love) and need to figure out how to reference it.

Solution:

1) Connect to and &quot;mount&quot; the external drive on which the services-config.xml file resides.

Connecting to the remote drive via Finder by choosing Go -&gt; Connect to Server or Cmd+K will give you access to the networked drive, but doesn&apos;t help you when you need to reference that drive (mapping in Windows) within the compiler settings in FlexBuilder.  So...

Fire up Terminal and navigate to the root of your system, and then into your Volumes directory.  Create a new directory here as follows:

&lt;pre&gt;mkdir [new_name]&lt;/pre&gt;

Choose something relevant as the name as you&apos;ll be referencing it in a second.

Next, use the following command to &quot;mount&quot; your remote network drive to this new drive you&apos;ve just created.

&lt;pre&gt;mount_smbfs //[userame]:[password]@[remote_server_url]/[drive]/ /Volumes/[new_name]&lt;/pre&gt;

Each of the vars used here is pretty straight forward, but make sure you use the same &lt;new_name&gt; when you reference the &quot;mounting&quot; location in /Volumes

You won&apos;t be returned with any confirmation of success, but if you don&apos;t get any error, then it&apos;s setup successfully.

Now, go back into FlexBuilder, and setup your services pointer to:

&lt;pre&gt;-services &apos;/Volumes/[new_name]/ColdFusion8/wwwroot/WEB-INF/flex/services-config.xml&apos;&lt;/pre&gt;

or whatever your path may be. 
				</description>
				
				<category>Flex 2</category>				
				
				<category>Flex Development</category>				
				
				<category>Flex 3</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Sun, 14 Sep 2008 03:18:00 -0500</pubDate>
				<guid>http://www.stretchmedia.ca/blog/index.cfm/2008/9/14/Using-external-servicesconfigxml-files-and-setting-up-on-Mac</guid>
				
			</item>
			
			<item>
				<title>A Persistent/Interactive Tooltip in Flex</title>
				<link>http://www.stretchmedia.ca/blog/index.cfm/2008/2/20/A-PersistentInteractive-Tooltip-in-Flex</link>
				<description>
				
				I came across a requirement at work a few weeks back which involved an &quot;interactive&quot; tooltip... We needed to provide a summary of information in the tooltip, but then provide a link button to a more detailed document.

I came up with the following example by creating some functionality around the DataGrid mouse movements to display a &quot;tooltip&quot; (in reality a Menu instance) at the mouse position.  Rather than digging into the framework to try and extend the ToolTip class to make it &quot;stick&quot; when moused over, I realized we&apos;ve got popup menu functionality like that already.  Slap a custom menu item renderer in there, skin it, and you&apos;ve got a mousable, interactive tooltip instance.

I could have gone the extra mile and created a custom DataGrid instance using this new functionality, but I&apos;m lazy so I&apos;m just going to post the instance I implemented and let you figure out how to implement it for yourself :-)  The idea being that it could be just as easily implemented on any List based control, and even with a bit of work any component in the Flex framework.  Just modify the renderer to fit the content you need!

&lt;img src=&quot;http://meutzner.com/blog/attachments/menu_tooltip/menu_tooltip.png&quot; /&gt;

&lt;a href=&quot;http://www.meutzner.com/blog/attachments/menu_tooltip/&quot; target=&quot;_blank&quot;&gt;Example Here&lt;/a&gt;

&lt;a href=&quot;http://www.meutzner.com/blog/attachments/menu_tooltip/srcview/index.html&quot; target=&quot;_blank&quot;&gt;Source Here&lt;/a&gt; 
				</description>
				
				<category>Flex 2</category>				
				
				<category>Flex 2 Components</category>				
				
				<category>Flex Development</category>				
				
				<category>General</category>				
				
				<category>Flex 3</category>				
				
				<pubDate>Wed, 20 Feb 2008 12:12:00 -0500</pubDate>
				<guid>http://www.stretchmedia.ca/blog/index.cfm/2008/2/20/A-PersistentInteractive-Tooltip-in-Flex</guid>
				
			</item>
			
			<item>
				<title>Copy from DataGrid to Clipboard/Excel in Flex</title>
				<link>http://www.stretchmedia.ca/blog/index.cfm/2008/2/20/Copy-from-DataGrid-to-ClipboardExcel-in-Flex</link>
				<description>
				
				A really simple example today for a pretty useful feature... being able to copy contents from a datagrid (or any structure which uses a dataProvider for that matter) onto the system clipboard, and into an application like Excel.

Excel is able to recognize an HTML table format and pastes the structure into appropriate cells.  The following example is tailored to that type of structure, but can really be formatted to whatever needs you have by modifying the createHTML() (or more appropriately named) method.

View example here : &lt;a href=&quot;http://www.meutzner.com/blog/attachments/flex_copy_to_clipboard/&quot; target=&quot;_blank&quot;&gt;Example&lt;/a&gt;


And source here : &lt;a href=&quot;http://www.meutzner.com/blog/attachments/flex_copy_to_clipboard/srcview/index.html&quot; target=&quot;_blank&quot;&gt;Source Code&lt;/a&gt; 
				</description>
				
				<category>Flex 2</category>				
				
				<category>Flex Development</category>				
				
				<category>General</category>				
				
				<category>Flex 3</category>				
				
				<pubDate>Wed, 20 Feb 2008 12:00:00 -0500</pubDate>
				<guid>http://www.stretchmedia.ca/blog/index.cfm/2008/2/20/Copy-from-DataGrid-to-ClipboardExcel-in-Flex</guid>
				
			</item>
			
			<item>
				<title>Disable single button in ToggleButtonBar</title>
				<link>http://www.stretchmedia.ca/blog/index.cfm/2007/11/21/Disable-single-button-in-ToggleButtonBar</link>
				<description>
				
				So after a short period of searching, there doesn&apos;t seem to be a straight-forward way to disable a single ToggleButtonBar button instance... here&apos;s what I found worked:


UIComponent(tBBInstance.rawChildren.getChildAt(X)).enabled/disabled


Anyone find a clearer way? 
				</description>
				
				<category>Flex 2</category>				
				
				<category>Flex 3</category>				
				
				<pubDate>Wed, 21 Nov 2007 22:51:00 -0500</pubDate>
				<guid>http://www.stretchmedia.ca/blog/index.cfm/2007/11/21/Disable-single-button-in-ToggleButtonBar</guid>
				
			</item>
			
			<item>
				<title>Installing CFEclipse/Subclipse plugins on FlexBuilder 3</title>
				<link>http://www.stretchmedia.ca/blog/index.cfm/2007/10/12/Installing-CFEclipseSubclipse-plugins-on-FlexBuilder-3</link>
				<description>
				
				A co-worker sent me this post for installing things through software updates.  Issue is, trying to install through update sites would result in error: 

Eclipse Modeling Framework (EMF) - org.eclipse.emf.codegen.ecore.ui (2.3.0.v200706262000) requires plug-in &quot;org.eclipse.jdt.core&quot;.

Joao (Fernandes?) has posted the solution over on his blog:

&lt;a href=&quot;http://www.onflexwithcf.org/index.cfm/2007/10/5/Where-did-the-orgeclipsejdtcore-go-in-Flex-Builder-3-Beta-2-standalone&quot; target=&quot;_blank&quot;&gt;Link Here&lt;/a&gt;

Note the comment I added about having to check a second option labeled: 

&apos;Eclipse Java Development Tools 3.3.1.r331_......&apos; as well to get it to work.

Thanks Joao! 
				</description>
				
				<category>Flex Development</category>				
				
				<category>Flex 3</category>				
				
				<category>Coldfusion and Flex</category>				
				
				<pubDate>Fri, 12 Oct 2007 23:07:00 -0500</pubDate>
				<guid>http://www.stretchmedia.ca/blog/index.cfm/2007/10/12/Installing-CFEclipseSubclipse-plugins-on-FlexBuilder-3</guid>
				
			</item>
			</channel></rss>