Archive for Examples

05 Sep 2008

Exporting PDFs in Flex using AlivePDF

38 Comments Examples, Flex/Flash

I was doing some research in PDF exporting yesterday which gave me the opportunity to mess around with AlivePDF . This is a library was built by Thibault Imbert to enable Flex to generate PDF and is based on FPDF, a php library.

As a proof of concept i grabbed a quick drawing app to see if i could print out what ever i draw to a PDF. By the looks of the library this test only scratches the surface of its functionality, but it serves my needs at the moment.
Read more

Popularity: 100% [?]

26 Aug 2008

Twitter Text with link hover for Flex

4 Comments Examples, Flex/Flash

I’ve been messing around with the twitter API and have noticed that there where no text components that where Twitter enabled. So I decided to extend Text to be twitter friendly. There are probably a million different ways of doing this but this worked for me the best.


Read more

Popularity: 3% [?]

20 Aug 2008

Change Twitter Status in Flex

No Comments Examples, Flex/Flash, Social Media

I’ve been spending a lot of time using twitter, so thought i may as well create a quick little app for changing my status. I’ll be implementing this in a couple experiments that i am going to be working on in the near future. For now, here is a quick little interface for you to tweet me or anyone else.

Unfortunately my company will not allow be release this source yet… :(

Popularity: 1% [?]

20 Aug 2008

Using Bit.ly for short URL’s in Flex

2 Comments Examples, Flex/Flash

When character counts are critical as in building a twitter or SMS app you could use services such at tinyurl.com and bit.ly to help save text real-estate. I prefer bit.ly since it’s domain has less characters then tinyurl’s

The code is really quite simple. All that you need to do is communicate with bit.ly ‘s API and it returns the new shortened URL via its API. Check out http://bit.ly/docs for full API.

original call
http://bit.ly/api?url=URL (Example: http://bit.ly/api?url=http://twitabit.com)

bit.ly response:

http://bit.ly/2oCfqc

Seems easy enough, but the problem comes when doing this with in Flex. You will quickly see once you test on your server Flex will alert you that there is a Sandbox violation. This simply means that bit.ly does not have a crossdomain.xml file that grants you permission to receive data from them.
Read more

Popularity: 2% [?]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes