flex

Drag Scrolling Canvas

Adding a DragScrollingCanvas

I've discovered the great flexlib library that adds a number of components to flex's already easy to use components. Here I have embedded an image inside of a DragScrollingCanvas. Try putting your cursor inside the image area and drag the image around. It will drag scroll any content contained within it, not just image data. I kept the example simple.

Below is the source

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flexlib="http://code.google.com/p/flexlib/" layout="absolute" width="500" height="400">
   <mx:Canvas x="0" y="0" width="500" height="400">
      <flexlib:DragScrollingCanvas x="25" y="25"
               borderStyle="inset" id="dragCanvas"
               width="450" height="350"
               childrenDoDrag="true" backgroundColor="#feefd3" backgroundAlpha=".65" cornerRadius="0">
               <mx:Image id="myLogo" source="@Embed('assets/snarl.jpg')"/>
      </flexlib:DragScrollingCanvas>
   </mx:Canvas>
</mx:Application>

FlashTracer Firefox addon great for developing in Flex

I was working on a straight Actionscript 3 application in Flex Builder and realized one thing I was missing was a way to do a trace. When I write actionscript I use trace all the time, much like I use the alert in javascript to check the value of variables or to see if I am executing a method when I think I am.

Read more

Adobe Flex and Soap Webservices

I have been trying to learn the Adobe Flex framework and Flex Builder. In order to use flex, you don't need Flex Builder, but it is a nice application built on top of the Eclipse IDE. It comes in the standalone version, or it can be a plug-in to Eclipse. Either way it is Eclipse re-purposed for writing flex and actionscript. I wanted to see how easily it was to connect to a webservice, so I found a nicely documented webservice to connect my application to.

Read more

Adobe Air SDK installation

adobe air
I downloaded the Adobe Air SDK so I could develop some Air applications, but once I downloaded it, I was at a loss of how to go about installing it. Adobe's instructions are missing from the package and nowhere to be found on their site. I have a PPC mac, so these instructions should work for those with that configuration. If you have an Intel mac, I am assuming this would work for that as well. It should also work for other *nix type operating systems.

Read more

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.
Permissions beyond the scope of this license may be available at www.bradrice.com.

RSS Feed  My RSS Feed