02.20Youtube Data API AS3 - YouTubeClient functions & associated events.
Hi Everyone,
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
YouTubeClient.getStandardFeed(…)
- Event: StandardVideoFeedEvent.STANDARD_VIDEO_DATA_RECEIVED
- .feed: VideoFeed
YouTubeClient.getVideos(…)
- Event: VideoFeedEvent.VIDEO_DATA_RECEIVED
- .feed: VideoFeed
YouTubeClient.getUserProfile(…)
- Event: ProfileEvent.PROFILE_DATA_RECEIVED
- .profile: ProfileData
YouTubeClient.getUserFavorites(…)
- Event: VideoFeedEvent.USER_FAVORITES_DATA_RECEIVED
- .feed: VideoFeed
YouTubeClient.getUserSubscriptions(…)
- Event: SubscriptionFeedEvent.SUBSCRIPTION_DATA_RECEIVED
- .feed: SubscriptionFeed
YouTubeClient.getUserPlaylists(…)
- Event: PlaylistFeedEvent.PLAYLIST_DATA_RECEIVED
- .feed: PlaylistFeed
YouTubeClient.getUserContacts(…)
- Event: ContactFeedEvent.USER_DATA_RECEIVED
- .feed: ContactFeed
YouTubeClient.getRelatedVideos(…)
- Event: VideoFeedEvent.RELATED_VIDEOS_DATA_RECEIVED
- .feed: VideoFeed
YouTubeClient.getVideoComments(…)
- Event: CommentFeedEvent.COMMENT_DATA_RECEIVED
- .feed: CommentFeed
YouTubeClient.getVideoResponses(…)
- Event: ResponseFeedEvent.RESPONSES_DATA_RECEIVED
- .feed: VideoFeed
YouTubeClient.getPlaylist(…)
- Event: VideoFeedEvent.VIDEO_PLAYLIST_DATA_RECEIVED
- .feed: VideoFeed
Ok I think that’s it.. I will do another tutorial in a few days.
Cheers,
Martin
Related posts (automatically generated):
- YouTube Data API ActionScript 3
- Youtube Data API in AS3 is ready!
- Youtube Data API AS3 - First Tutorial
- YouTube Data API - new rollout
- Sample Code - Using the YouTube AS3 API with the YouTube Player API

Hello
I am using this AS3 class library load youtube thumbnail images into my flash interface. Now everything is working fine If I am running this on my computer locally but once I upload it to a live webserver it doesnot load the thumbnail images.
Any idea of why this is not working is this something to do with AS3 security sandbox or other security related isseues?
Thanks for your help in advance
November 5th, 2008 at 3:19 pm
Thank you for such a great video. I have learned a lot by reading on this website and great information.
February 16th, 2009 at 11:52 pm
Hey, Is there a function to get a specific users Channel? thanks
July 20th, 2009 at 10:17 pm
Any plans to extend the library to handle adding videos to YouTube via upload? Is this even possible from Flash/Flex?
September 14th, 2009 at 11:38 am
Hi,
i’m tring to use your as3 library, and in general works fine.
But i can’t use getUserProfile method. I recive this error
ReferenceError: Error #1069: Impossibile trovare la proprietà $t su Number e nessun valore predefinito presente.
at ca.newcommerce.youtube.data::AbstractData/fromObj()
at ca.newcommerce.youtube.data::FeedLinkData/get countHint()
at ca.newcommerce.youtube::DataTracer$/traceFeedLink()
at ca.newcommerce.youtube::DataTracer$/traceFeedLinks()
at ca.newcommerce.youtube::DataTracer$/traceProfile()
at ca.newcommerce.youtube::Test/doProfileReady()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ca.newcommerce.youtube.webservice::YouTubeFeedClient/doProfileLoaded()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
I’m not very skilled in as3 like you and a don’t understand what is $t property.
Can you halp me?
Thanks a lot.
February 8th, 2010 at 6:58 am