do you develop complex AS3 applications and wonder how people interact with them? You could build yourself a webservice to which you would send event details, but then how would you visualize the data?
The answer can be quite simple. Continue reading
A side-note to start, I have been developing software for over 12 years. I started in C, then came C++, Java (6 years), C#, PHP, the whole shabang. Overall, the best IDE I’ve ever used is Intellij Idea. It is simply brilliant, or used to be some 5 years ago. It introduced Refactoring before anyone else, cleaned up your code for you, removed excessive spaces, just made everything tidier.
Although I consider Eclipse to be a good choice, especially coupled with FDT from PowerFlasher, Eclipse is bloated. Intellij Idea used less than 30 mb of RAM way back then, and I consider an IDE should never use any more than 50 mb of RAM, even for the most complex projects.
FlashDevelop is a brilliant alternative. It has gotten significantly better this last year, with true AS3 support, incredible auto-complete, auto-import and now even setter/getter generation built-in. I has a RegEx panel too, I think that one is a plug-in tho.
Basically Mika & Philippe are doing an amazing job. Plus it’s FREE.
Click here to download!
Before I begin, these are past posts on the same subject:
and the API can be found here: http://code.google.com/p/as3-youtube-data-api/
Today I will describe what events are associated with each YouTubeClient function call. I will also describe which Feed / Data Object is passed inside the said event. Please note that :
- Events are in the ca.newcommerce.youtube.events package
- Feeds are in the ca.newcommerce.youtube.feeds package
- Data Obects are in ca.newcommerce.youtube.data package
In this tutorial I will demonstrate how to use the YouTube Data API AS3 Library to:
- search for videos using a keywords, categories and tags;
- demonstrate how to distinguish between feeds returned to you by the API by using the requestId;
- get information from the result feed, in this case a VideoFeed object. We will get the video, it’s main URL, then go through the different thumbnails available for a specific video.
I recently had to load images on from a website that doesn’t contain a crossdomain.xml file. Although it works fine in the authoring environment, it’s quite a pain in the butt when you put it live on a website, suddenly those images don’t show up, or you can’t manipulate them..
The problem arises when you try to access the “content” property of your “Loader” object. It throws a SecurityError.
The solution is quite simple.
I’ve gotten to a good level in my Youtube Data API. It’s now ready for use, I would recommend testing it a bit before putting into a production environment, but for experimenting and toying around, works good!
good news, Yahoo Maps has published an API in pure AS3! This is great news. Click here. The past answer was using the AS2 component with an AS3 wrapper, it didn’t appeal to me at all.
Here is a tutorial on how to use their new API inside of Flash CS3, cause apparently it’s mostly Flex oriented (like most things eh?).
A few months ago, while playing with my Live Discovery prototype, I decided to plug it onto Last.FM webservices in order to discover new music. It works awesome, with 5 minutes of using it I discovered about 10 new bands that I appreciate, some more than others, but still. In 5 minutes!
so after a little research I found mostly outdated YouTube API’s out there. Even the ones on Adobe Labs refers to the pre-Google version of the YouTube API, which required a Key which you can’t get anymore.
So I set on a journey, a journey to build the AS3 Client Library for the YouTube Data API. 13 hours and 37 classes later, I’m about 90% done. I hardtyped everthing to make it completely auto-complete friendly. You have data-specific Iterators which spit out specific data objects, you have feeds, events, everything is a bit overkill but it makes it so you can explore everything from the auto-complete.