Other Websites

  • SeaCloud9 Interactive
  • SeaCloud9 Commercial Development
  • i-os
  • stArcade9

Brendon Smith Social Networks

  • On Linkedin
  • Bookmarks
  • On Twitter
  • On Facebook
Open ↓ Close ↑
  • Home
  • Subscribe
Browse: Home / Ubuntu
i-create | therefore-i am
i-create | therefore i-am | a blog about opensource technology and rich internet applications

Ubuntu

FlashDevelop Quick Start

By Brendon Smith on April 22, 2008

What is Flashdevelop and why should I care? FlashDevelop is an opensource integrated development environment (IDE). It was created using C# on the .net 2.0 so it runs on any windows box that has .net 2.0 or higher and Java 1.6 runtime. .Net 2.0 and Java 1.6 are already on most windows computers. The user also needs to have the Flex SDK to install FlashDevelop IDE properly. You can use this IDE to write action script 2/3, flex MXML, and HAXE. You can actually pick from several compilers. It is a wonderful open source program and if in the right hands can be utilized to write ActionScript quickly.

The people of Adobe have all been working hard on improving the features of ActionScript and they have a lots of open source libraries that allow developers to rapidly create highly functioning and quick rich internet applications (RIA). This example is only a beginner example note this is just suposed to be informative and quick. In regards to use the FlashDevelop IDE and it is based off of Mike Chambers example.

Step 1: Install the FlashDevelop IDE from their site here. Also make sure you follow the requirements found here.

Step 2: install the Flex SDK here.

Step 3: Insert the Flex SDK location here by selecting Tools from the drop down then go to Program Settings navigate to the AS3 Context panel and insert your Flex SDK location as shown below (click to enlarge):

Step 4: Create a new ActionScript 3 Flex 3 project name it and then hit OK as shown below:

Step 5: Minimize your FlashDevelop IDE. For this you will also have to download and install 2 ActionScript libraries written by the Adobe Developers and located on Google Code here: CoreLib , XMLsyndication Lib. Download the code extract and place the code on your computer. You will need the path so do not place it in a temporary location place it ether in its actual program directory or a place of your own choice. Once you have done that open FlashDevelop again. To your new Flex 3 project. Navigate to tools and drop down to Global Class paths. Place the paths to the code you just download and installed in the dialog window as shown below:

Step 6: Navigate to the SWC files right click on them and select add to library as shown below:

Step 7: Once you have done that you need to create your RSSExample.mxml document. To do this right click on your project drop down to add, select the new .MXML file name it RSSExample.mxml. Then right click on the project again add new ActionScript class name it RSSExampleClass.as.

Step 8: Now Place this code into the RSSExample.mxml file:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

<mx:Script source="RSSExampleClass.as" />

<mx:TextArea left="20" top="10" bottom="40" right="10" id="outputField"/>
<mx:Button label="Load RSS" right="10" bottom="10" click="onLoadPress()"/>

</mx:Application>

Step 9: Now Place this code into the RSSExampleClass.as file:

import com.adobe.utils.XMLUtil;
import com.adobe.xml.syndication.rss.Item20;
import com.adobe.xml.syndication.rss.RSS20;

import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.SecurityErrorEvent;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequestMethod;

private var loader:URLLoader;

//url of rss 2.0 feed
private static const RSS_URL:String = "http://i-create.org/node/feed";

//called when user presses the button to load feed
private function onLoadPress():void
{
loader = new URLLoader();

//request pointing to feed
var request:URLRequest = new URLRequest(RSS_URL);
request.method = URLRequestMethod.GET;

//listen for when the data loads
loader.addEventListener(Event.COMPLETE, onDataLoad);

//listen for error events
loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError);

//load the feed data
loader.load(request);
}

//called once the data has loaded from the feed
private function onDataLoad(e:Event):void
{
//get the raw string data from the feed
var rawRSS:String = URLLoader(e.target).data;

//parse it as RSS
parseRSS(rawRSS);

}

//parses RSS 2.0 feed and prints out the feed titles into
//the text area
private function parseRSS(data:String):void
{

//XMLSyndicationLibrary does not validate that the data contains valid
//XML, so you need to validate that the data is valid XML.
//We use the XMLUtil.isValidXML API from the corelib library.
if(!XMLUtil.isValidXML(data))
{
writeOutput("Feed does not contain valid XML.");
return;
}

//create RSS20 instance
var rss:RSS20 = new RSS20();

//parse the raw rss data
rss.parse(data);

//get all of the items within the feed
var items:Array = rss.items;

//loop through each item in the feed
for each(var item:Item20 in items)
{
//print out the title of each item
writeOutput(item.title);
}
}

private function writeOutput(data:String):void
{
outputField.text += data + "\n";
}

private function onIOError(e:IOErrorEvent):void
{
writeOutput("IOError : " + e.text);
}

private function onSecurityError(e:SecurityErrorEvent):void
{
writeOutput("SecurityError : " + e.text);
}

Step 10: Now run a test as show below:

Step 11: If successful should look like below:

Wow now that was cool. Now think about what you can do with that tool their lots of open source libraries to play with so get started. One thing I would like to do is play with the source and see if it could be ported to the Mono platform and make it run on Linux or Windows. Any way hope you had fun.

Posted in ActionScript, Flash, Open Source, Ubuntu | Tagged ActionScript, Flash, Flex | Leave a response

Let Your Creativity Fly

By on May 14, 2007

Well it is finally out. I have been working on upgrading my Ubuntu box. I am now using ubuntu to run my home network :) I set up Samba and a 400GB share so the four other home computers can link to it. I have also been working on Amaork to setup all my audio files as a iTunes share for the network and I have also been pondering setting up a shortwave radio station so I can transmit my signals to other people (near future). Right now though I have started working on my own customized version of UbuntuStudio that will be on a thumb / dvd live cd! I will include wine, Flash 9, Java, Eclipse, Tomcat, Apache, and Ruby on Rails. I will also be using wine to run some Action Script editors that are tied into Motion Twin. I will also be placing some of my personal files on the OS so other people can examine my code snippets. For all of the video game fans I will also be installing emulators to run PlayStation, N64, SuperNintendo, NES, Sega Master and Genesis! So I will be looking forward to placing it as a download once it is complete I believe it will take me a couple of months to configure it properly :) I highly recomend the Ubuntu Studio it is by far the slickest distro built yet.

Posted in Ubuntu | Tagged Linux | Leave a response

Ubuntu Fiesty Fawn

By Brendon Smith on April 19, 2007

The latest release of Ubuntu was released today Fiesty Fawn 7.04! Ubuntu has also been creating a studio addition of it operating system. It will be perfect for creative professionals (should be out in a few days)! The latest version will come complete with Video, Audio, Image, Vector, Print, and 3d editing and designing tools. I am especially looking forward to it being released. I have been working on my Ubuntu box diligently. I have been adding all the essential web developer tools. Also it should be noted Ubuntu now has a partnership with sun. I would like to customize the Studio addition upon release. I plan on adding creating my own customized distro based on Studio Ubuntu. I will be adding built in Apache, Tomcat, Eclipse, Webalizer, Zenoss, and many other web developer features. I also plan on adding a great deal of addons for firefox right off the bat with support for flash 9 etc.. I also plan on integrating WINE into the studio cd allowing people to use free tools like SE|PY Editior and Flash Develop. I will also be adding built in support for games who would like to play classic Sega, Nintendo, PlayStation, and Dos classic games. Ubuntu has been growing and Intel has plans to integrate ubuntu into some of its ultra mobile pcs! I am developing this as a DVD / Flash Drive customized distro and will make it available for download. I will also be using it as a piece for my portfolio it will also include some of my personal files for use and observation.

YouTube Videos Ubuntu + Beryl

Where the Real WOW is:


Side Note on FireFox:

People do work for free and it does benefit us all. Firefox three will set the standard for browsers. Firefox three will pass acid test two and it will implement many new features placing it years ahead of IE one of those features will be the use of SQLite. SQLite will be integrated into the browser it will make it easier to manage bookmarks. Etc..

SQLite what is that good for? Well it for starters wouldn’t it be nice to actually search your favorites. It will make organizing your favorites easier. Firefox will also save some web pages for offline browsing. I would imagine you would be able to use SQLite for a number of other purposes as well.

Firefox 3 will also have many features for offline users. I guess what I am getting at is firefox is building their own runtime and it will be able to sync online applications:)

FireFox Runtime Enviorment:

Well ok Sounds nice what does that mean for me?

Well imagine you are using Google office and you are off line? What happened to all your presentations, spreadsheets, and documents? Will they disappear? No. That’s the point FireFox is preparing to help manage applications that exist both on the web and on the desktop (or Mobile Device). Microsoft and Adobe are preparing to do the same with their runtime environments namely M$’s SilverLight and Adobe’s Apollo.

FireFox will also be standards compliant it will pass Acid Test 2 and follow in the footsteps of Knoqueror, Safari, and Opera. Firefox 3 is also expanding its supports for addons and plugins.

Features
Review

Posted in Linux, Open Source, Ubuntu | Tagged Linux | Leave a response

Run XP in Linux

By Brendon Smith on June 19, 2006

Yep, you can just check it out for your self. I highly recommend checking out Ubuntu Linux it is by far the best Linux Distro I have seen in a long time and if you read dig.com you know how much it is like my the community! Today even Jonathan Schwartz had to praises Ubuntu Linux! Ubuntu is also highly customizable you can literally skin it to look like OS X if you want too! Ubuntu is based off of the Debian! So you can use the apt-get feature! The apt-get feature makes installing software a cinch!

Posted in Linux, Ubuntu | Tagged Linux | Leave a response

Viva la Revolution

By Brendon Smith on June 17, 2006

Let me begin with Moore's Law "is the empirical observation that the complexity of integrated circuits, with respect to minimum component cost, doubles every 24 months[1]. It is attributed to Gordon E. Moore[2], a co-founder of Intel." So what exactly does that mean? Well let me relate it to my life personally; When I was between 8-9 I can specifically remember wondering through my great grand ma's cabin. I ran across some extremely old Dick Tracy Comic books that were very, very, old. I was immediately intrigued by the vision of the writers and contributing artist vision. A cell phone watch and TV? I received my first computer at the age of 13. I can remember my Aunt Mary giving me my first BBS Yellow Page Book at the age of 14! I can remember using the web well before Al Gore took credit for creating it.

Posted in Linux, Ubuntu | Tagged Games | Leave a response

 
 

3d ActionScript Adobe Air Android Apollo Apple art as3 ASP.NET Blend C# CakePHP CSS Experiment Flash Flash Develop Flex Games Generative Design Google Informatics JavaScript Joshua Davis JSON Life Lingo Linux MashUp Open Source OpenSource PaperVision3D PC History Processing quick tip RIA Silverlight Technology/Internet travel twitter Web Web 3.0 Webware XML Yahoo Pipes

WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

  • Monthly
  • Yearly
  • Links
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • agit8
  • Bit-101
  • D.I.Y.
  • draw.logic
  • Flight404
  • Flong
  • generatorX
  • haXe
  • Jonathan Snook
  • Joshua Davis
  • Jot
  • Kirupa
  • LifeHacker
  • Make
  • NurseOnTheRun
  • octane42
  • PV3D
  • Senocular
  • Sephiroth
  • ShineDraw
  • SWX
  • Tech News
  • Toxi
  • ZeusLabs

Brendon's Photos

IMG_0242.jpg

Recent Comments

  • morganae23 on Processing JS
  • morganae23 on Processing JS

RSS LifeStream

  • WePad is yet another Android tablet that will be supporting Flash 10.1
  • Highly Interactive Software with Java and Flex
  • Using SketchFlow to Prototype for Windows Phone #silverlight