Browse > Home / Archive by category 'API'

| Subcribe via RSS

Play youtube videos in flash tutorial

Like i promised many of you , here is a quick video tutorial on how to load youtube videos in flash , the only thing is im running out of time and i have many other projects to deal with so its a kinda fast so Listen and watch carefully , if you have a question regarding the tutorial you can always post a comment .

Things to remember :

  • AbdulQabiz youtube php engine that is downloadable with the example sourcecode ( Many thanks to him ) .
  • Dont forget to get your own developer ID since all the rest requests requiers the dev id e.g:
    http://www.youtube.com/api2_rest?method=youtube.users.get_profile&dev_id=YOUR_DEV_ID
    NOTE THAT YOU WONT NEED A DEV_ID IF YOU WILL MANUALLY ADD THE YOUTUBE VID LINKS .
  • Read the INTRODUCTION and the DOCUMENTATION .

Things to consider :
The application i built at http://www.zainals.com/xperments/youtube is reading the XML file from youtube , now i didnt explain much about that because its a different topic but if you would like , i can make another video about xml when im free , but for the time being google it , you can find many tutorials at kirupa gotoandlearn.com and tutorialvid.com

Unfortunatly youtube disabled or changed their crossdomain xml file as mentioned on abdulqabiz blog , and will have to use some sort of a proxy script e.g :

<?php
$dataURL = "http://www.youtube.com/api2_rest?method=youtube.videos.list_featured&dev_id=YOURDIV_ID";
//note that this will not follow redirects
readfile($dataURL);
?>

Enjoy the following vid … Enlarge the vid for a clearer preview …

Import,load and stream youtube videos in flash …

okay , first of all the reason why it has that title is for search engines so , drop it :)

Anyway here is my flash experiment with youtube API , i was able to retrieve information about the featured video and list their titles ,ohhh and play the video .

Youtube Flash experiment

Experiment: Yahoo Flash Search API …

YahooAPI in Action

As you can see in the example above i was able to build my own search service using Yahoo API .
Many other things can be achieved using Yahoo’s API including :

  • Build a Flickr Application.
  • Create a Yahoo! Messenger Plug-in.
  • Create a Trip Planner Search Application.
  • Perform a Yahoo! Search with ActionScript 2 and ActionScript 3.
  • Use the Yahoo! Maps Flash API.
  • Create a Yahoo! Music Jukebox plugin.
  • Mash up the Upcoming.org API.

More APIs on :

* Flickr API
* Upcoming API
* del.icio.us API
* MyWeb APIs
* Answers API

You can also check the other PL/Techs APIs like PHP , all can be found on Yahoo Developer 

Simply the best Bookmark !!

Every Developer/Designer should have this on the top of the their bookMarks !

the site includes :

  • Tutorials ( Everything  Flash , php , ajax , css etc )
  • Site reviews ( best sites ever)
  • free useful tools ( fonts , code snippets )
  • and much MORE !

I cant say more that You’ll have to see it  your self !!

http://www.smashingmagazine.com 

Getting Wordpress posts into Flash!

January 25th, 2007 | 12 Comments | Posted in API, Flash & As, PHP, PHP & MYSQL, actionscript, webdesign

flash worspress flashblog

After reading few documentation about some APIs & classes used with wordpress, i was able to get flash to read the titles and arrange them with their links .

not only that , its now possible to get the post title , post link , post entry(description) etc …
This will be one of the elements that i ‘ll be using in my ZAINALS ver 2 :)
lovely eyh ?