|
Jan 22nd 2010
Please upgrade your Flash Player
This is the content that would be shown if the user does not have Flash Player 6.0.65 or higher installed. Drupal Jobs is a simple Air app that I did that retrieves the latest drupal job listings from drupal.org. It then displays them in a list, where you can click the title and go directly to the relative web link of that particular job. Drupal Jobs uses a simple RSS feed url as the data source, so it only retrieves the default RSS listing. I would like to add a custom itemRenderer to have a button for the link and also have that button display the job listing instead the Air app instead of opening up in the browser. I’ve also included the mxml file from Flash Builder so you can use to your hearts content, even though it would be great if you would give me some credit if you do use it. I know it’s nothing spectacular, but it's FREE and I believe a great example of a simple RSS powered app.
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" applicationComplete="init()"
width="300" height="464" showStatusBar="false">
<fx:Style source="styles.css"/>
<fx:Script>
<![CDATA[
import flash.events.Event;
import mx.collections.ArrayCollection;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import flash.net.navigateToURL;
import mx.controls.Alert;
import mx.events.CloseEvent;
[Bindable]
public var jobs:ArrayCollection = new ArrayCollection();
protected function init():void {
stage.nativeWindow.x = (Capabilities.screenResolutionX - stage.nativeWindow.width) / 2;
stage.nativeWindow.y = (Capabilities.screenResolutionY - stage.nativeWindow.height) / 2;
service.send();
trace("started service");
refresh.visible = false;
}
public function serviceResult(event:ResultEvent):void {
trace("trying to get results");
jobs = event.result.rss.channel.item as ArrayCollection;
trace(jobs);
refresh.visible = true;
}
public function serviceFault(event:FaultEvent):void {
Alert.show('Sorry, there was a problem connecting to the drupal jobs site.', 'Connection Error', 4, this);
refresh.visible = true;
}
public function serviceActive(event:Event):void {
trace("active service, getting Jobs");
}
public function getNewJobs():void {
service.send();
}
]]>
</fx:Script>
<fx:Declarations>
<s:HTTPService url="http://groups.drupal.org/jobs/feed/feedSubscribeHandler.writeContent();"
id="service"
activate="serviceActive(event)"
result="serviceResult(event)"
fault="serviceFault(event)"
showBusyCursor="true" />
</fx:Declarations>
<mx:List styleName="list" id="myList" dataProvider="{jobs}" verticalScrollPolicy="auto" horizontalScrollPolicy="off"
borderVisible="false" right="0" left="0" top="43" bottom="29" paddingBottom="0" paddingTop="0" paddingLeft="0">
<mx:itemRenderer>
<fx:Component>
<mx:VBox horizontalScrollPolicy="off" verticalScrollPolicy="off" paddingBottom="0" paddingTop="0">
<fx:Script>
<![CDATA[
import flash.net.navigateToURL;
public function getLink():void
{
trace(data.link);
var urlRequest:URLRequest = new URLRequest(data.link);
navigateToURL(urlRequest);
}
]]>
</fx:Script>
<s:Label styleName="titleHeader" text="{data.title}" click="getLink()" buttonMode="true" paddingLeft="15" paddingTop="10" fontSize="15" fontWeight="bold"/>
<s:Label text="{data.pubDate}" paddingLeft="15"/>
<mx:HRule width="100%" height="1" strokeColor="#BBBBBB" />
</mx:VBox>
</fx:Component>
</mx:itemRenderer>
</mx:List>
<s:Border backgroundColor="#000000" height="31" left="0" bottom="0" right="0">
<s:Button label="Refresh" id="refresh" click="getNewJobs();" width="70" height="21" left="8" bottom="6"/>
</s:Border>
<s:Label x="10" y="10" text="Drupal Jobs" fontSize="24"/>
</s:WindowedApplication>
And here is the Style.css file /* CSS file */ @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/halo"; s|Label { roll-over-color: red; mouseOver: red; selection-color: #C1FFC5; } Please let me know what you think, by following me on twitter, @gizmoko |
|
Jan 14th 2010
Overview The Quick Tabs module allows you to create blocks of tabbed content for views, blocks, nodes and other Quick Tabs. Clicking on the tab menu item makes the corresponding content display instantly, using ajax or you can opt for the non-ajax mode. Module Usage Installation/Dependencies Settings 1. Site Building Site Building 1. Set a block title Site Configuration 1. No style Documentation Community activity Developer friendly/Customization Theme-able Conclusion Cons: Well it's not all bad but I do wish they had more preset themes, one's that were more user friendly and easy on the eyes. For example there is an example photo of the Quick Tabs that is not included in the preset styles, which I feel should have been added because I think it more modern that the others that are included. |
|
Dec 12th 2009
This a banner and logo I did for my Cousin, Lloyd Conolly who fell ill last year with congestive heart failure. He is currently in Miami Florida receiving treatment and we hope that he can get a heart. My uncle needed a banner for the Fundraiser they had and will continue to have to raise funds for his medical bills. I think he might want a website, so I might have a design to show soon for that. Now if only they (the world) will get inline with this stem cell research, then everyone that needs a heart could get one. |
|
Nov 18th 2009
Here is an example of the latest work I've done at work in flash. It's nothing fancy, just some simple as3 functions on the timeline to control the pop-ups and movieClips for the turtle animations. http://www.constitution.gov.ky |
|
Nov 11th 2009
I released this game about a 2 month ago and man what an experience. This game was for me a test to see if I could do it. Check it out http://www.mochimedia.com/games/wubble/ The Basis Design Development But again I've got many things going on. I think one of the most interesting things I discovered was that creating functions for the handling the array and scrambling the words took much much longer than I expected. I also ported the game to facebook, but it was more or less an after thought late at night and to me not a great usage of the facebook api. Ads Conclusion |
About My Awesomeness
Needless to say my Awesomeness is well... Awesome. I'm a Graphic Designer turn Web Designer and Web Developer. My areas of focus are in Drupal and the Flash Platform.
Recent posts
Banners
Tweets
| funny how busy life can get all of a sudden. — 2 weeks 2 days ago |
| This has to be the coolest thing I've seen in awhile > http://bit.ly/ae8Zr9 — 2 weeks 5 days ago |
| @TheNameIsIsh Great song! Thanks for shooting it on our island. Big up! — 2 weeks 5 days ago |
| RT @TheNameIsIsh: shot in the beautiful Cayman Islands here is the official #PricelessVideo http://www.youtube.com/watch?v=n0LcflzC7VA — 2 weeks 5 days ago |
| I can build the service but payment gateways worldwide seem to think Cayman is toxic... How do I get around this? I don't know. #ecommerce — 3 weeks 1 day ago |
Categories
- Wubble (1)
- Web development (3)
- Web Design (4)
- Vacation (1)
- Traffic (1)
- SEO (1)
- Random (3)
- Programming (2)
- Lloyd Conolly (1)
- Interview (1)
- How to (1)
- Graphic Design (1)
- GIS (1)
- Game (2)
- Fundraiser (1)
- Freebie (1)
- Flash Builder (1)
- Flash (2)
- Drupal (5)
- Download (1)
- Development (1)
- Adobe Air (2)
Archives
- November 2009 (4)
- December 2009 (1)
- January 2010 (3)
- February 2010 (2)
- July 2010 (2)



