Archive for July, 2007

ArrayCollection DataGrid filter Example update

Jul
28

**UPDATE**

Thanks to the help of Nolan I was able to get it to:

  1. works with case-sensitivity
  2. and resets data as you type.

————————————-
I redid the ArrayCollection example so take a look at this example:

[as]
< ?xml version="1.0" encoding="utf-8"?>

< ![CDATA[
import mx.collections.*;

private var collectionArray:Array;
[Bindable]
private var collectionData:ArrayCollection;

private function init():void
{
collectionArray = [{first: 'Dave', last: 'Matthews'},
{first: 'Dave', last: 'Chappelle'},
{first: 'Amy', last: 'Grant'},
{first: 'Bilbo', last: 'Baggins'},
{first: 'Jessica', last: 'Tandy'},
{first: 'Jessica', last: 'Simpson'},
{first: 'Paris', last: 'Hilton'}];
collectionData = new ArrayCollection(collectionArray);
}

public function filter():void {

collectionData.filterFunction = filterFirst;
collectionData.refresh();

}

public function filterReset():void {

collectionData.filterFunction = null;
collectionData.refresh();

}

private function filterFirst(item:Object):Boolean
{

return item.first.match(new RegExp(searchField.text, 'i'))

//return( item['first'].indexOf( searchField.text ) > -1 );
//return item['first'].match(new RegExp(string, “i�))

}

private function search():void
{
if(searchField.text !=”)
{
filter()
}
else
{
filterReset()
}
}
]]>

[/as]

Dreamweaver SWFObject extension

Jul
25

And from the heavens it descended. I saw on Metah Blog a Dreamweaver SWFObject extension. It is very nice. It doesn’t add the js and express swf into your project or have browse buttons but it sure will help you make less mistakes when adding in flash through this wonderful detection kit. download .mxp

Josh and Comedy central

Jul
19

I’ll be in Austin in a week to compete for the semi-finals for Comedy Central’s Open-Mic fight. I’m very excited and hope I get to advance. I’d love a vaction to L.A. to compete again. I get 7min and I’m going to a set as solid as I can in that time. If your a Austin citizen come out.

Cap City Comedy Club

8pm

Thurs, July 26th 2007

OnAir Bus Tour – Dallas

Jul
19

Adobe spared no expense on the Tour. I came in to the Angelica Movie Theater to a sea of people and a bunch of food. All FREE! I saw a guy get a beer and a weird thing happened…he didn’t pay. I watched two more and decided to try it for myself. “Heineken please,” I said. He handed me a Heineken and I kept my wallet in my pocket.

Next, I went upstairs and got some shwag.
The Bag Shwag Back of onAir T-shirt

Then, the classes started.

I can’t remember what everyone presented but,

  1. Kevin Hoyt I feel bad cause when I talk to him I thought he was ,Danny Dura, who also presented
  2. Mike Downey
  3. Mike Chambers
  4. Lee Brimelow – was awesome a great presenter, inspiring as always and very funny.

The best thing I saw was that w/ Javascript you can call flash, even custom Actionscript classes. All you have to do is do add a swf through image source
then called “runtime.com.joshspoon.bitmap.etc”. You could process a image in your HTML w/ AS then put it back in the DOM. The possibilities are endless. (Thanks Kevin)
That’s the skinny on that. I learned about what I can achieve w/ Flex/Flash/HTML editor/AIR. Check out AIR(Adobe Intergrated Runtime)

If you were a javascript and/or flash developer you missed out on info and networking. Sad face.

Flash CS3 and the TileList

Jul
15

**UPDATE July 19th**
This code uses FlashVars and SWFObject. I ran into a problem, as we continued to build, w/ getting data to show in the swf.
To fix this error switch out[as]
so.addParam(“wmode”, “transparent”);
[/as]with[as]
so.addParam(“wmode”, “opaque”);
[/as]or delete it all together

**UPDATE July 19th**

I’m working on a TileList for work for a peek at our Portfolios. Right now I’m trying to adapt the TileList to my liking with back and forth button instead of the scrollpanel. But I wanted to share the wealth w/ what I’ve dug up on this Flash CS3 component. I find most of what’s online to be really crappy and not too robust.

I’ve provided a zip to my work: titelist.zip

[as]

import fl.controls.ScrollBarDirection;
import fl.events.ListEvent;
import fl.controls.listClasses.*;
import flash.net.*;
import flash.events.*;
import fl.data.*;

var xml:XML;
// this set a var for parameter xmlData that is set in the
// SWFObject
var _xmlData:* = root.loaderInfo.parameters.xmlData;

// if someone for got to set the xmlData parameter
// load default xml
if(_xmlData == undefined)
{
_xmlData = “xml/default.xml”
}

trace(root.loaderInfo.parameters.xmlData);
// request xml file
var requester:URLRequest = new URLRequest(_xmlData as String);
//load xml file
var loader:URLLoader = new URLLoader(requester);

//set dataprovider to the loaded xml
function setItems(evt:Event):void
{
xml = XML(evt.target.data);
trace(xml);
list.dataProvider = new DataProvider(xml);
}

loader.addEventListener(Event.COMPLETE, setItems);

//on click of item go to data/url
function onItemClick(e:ListEvent):void
{
navigateToURL(new URLRequest(e.item.data),”_self”);

}

list.addEventListener(ListEvent.ITEM_CLICK, onItemClick);

// Set scroll bar direction
list.direction = ScrollBarDirection.HORIZONTAL;

// position TileList and set column and row values
list.move(0,0);
list.columnWidth = 122;
list.rowHeight = 112;

list.width = 366;
list.height = 112;
list.columnCount = 3;
list.rowCount = 1;
[/as]

Pownce invites

Jul
6

I’m in on Pownce. I have invites if anyone wants one. Leave a comment

If you don’t know what Pownce is here is the definition from the site:

Pownce is a way to send messages, files, links, and events to your friends.
You’ll create a network of the people you know and then you can share stuff with all of them,
just a few of them, or even just one other person really fast.