Flash Widget Tutorial

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

3 comments

Comments 1 - 3 of 3 previous next Post a comment

  • + guestbdbe30 guestbdbe30 2 years ago
    Good work!
  • + jza Alexandro Colorado 3 years ago
    Is an OOo template you can get it from my presentations on OOo. Althought they are a bit missleading since well it shows the OOo Wireframe Gulls.

  • + guest892a27 guest892a27 3 years ago
    i want a slide show background for IMF
Post a comment
Embed Video
Edit your comment Cancel

11 Favorites & 3 Groups

Flash Widget Tutorial - Presentation Transcript

  1. Flash Widgets Hussain Fakhruddin http://hussulinux.blogspot.com hussulinux@gmail.com
  2. Widgets : Window Gadgets ➔ Can be embedded on ➔ Websites, ➔ Blogs, ➔ Desktops, ➔ Social networking sites ... ➔ Really easy to develop ➔ Many Frameworks ➔ 2
  3. Widgets widgets widgets 3
  4. What are we waiting for? What we're going to do is this: Retrieve data from a database. Print it somewhere using scripting language. Import this in the flash. What we need? Adobe Flash( I'll show all demos using Flash 8) PHP/ASP/JSP/CGI/RoR any scripting language. I'll use PHP Database if any. 4
  5. Lets get started On the server. Step 1: (Without XML) Create a script which will throw out the data to you in a GET variable form Example author=Hussain&desc=I+am+a+stupid+programmer&picu rl=me.jpg Also create a database create table barcamp ( uid int(10) primary key auto_increment, author varchar(50), desciption text, picurl varchar(60) ); 5
  6. PHP Script for the widget <?php $uid = $_GET['uid']; // I will receive this from the flash include ('db.php'); //Contains my Database Connectivity code. $rs = mysql_query(\"select * from barcamp where uid=$uid\"); // I'm being lazy to check for errors here $arr = mysql_fetch_array($rs); //Output format, I am using URL encode method, One may also use XML echo \"author=\".$arr['author']; echo \"&desc=\".$arr['desciption']; echo \"&picurl=\".$arr['picurl']; ?> 6
  7. Flash Design Our flash widget design 7
  8. Flash ActionScript Now to get this data into our flash widget function LoadData() { myvar=new LoadVars(); //Create a New LoadVars object //Load our created URL myvar.load(\"http://www.mywidgets.com/widget/getWidgetInfo.php?uid=\" + this.uid); //I'll explain where this.uid comes from later. myvar.onLoad = function( ){ /* Our PHP variables are available inside flash as myvar.author; myvar.desc; myvar.picurl; */ author = myvar.author; desc = myvar.desc; LoadMovie(pic,picurl); } } //Call the above function LoadData(); 8
  9. Embed this <embed allownetworking=\"all\" pluginspage=\"http://www.macromedia.com/go/ getflashplayer\" quality=\"high\" allowscriptaccess=\"always\" align=\"middle\" flashvars=\"uid=1\" src=\"http://www.mywidgets.com/widget/mywidg et.swf\" height=\"230\" type=\"application/x- shockwave-flash\" bgcolor=\"#ffffff\" width=\"194\" name=\"mywidget\" /> </embed> 9

+ hussulinuxhussulinux, 3 years ago

custom

14555 views, 11 favs, 7 embeds more stats

This is a flash widget tutorial which I presented a more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 14555
    • 14533 on SlideShare
    • 22 from embeds
  • Comments 3
  • Favorites 11
  • Downloads 554
Most viewed embeds
  • 13 views on http://hussulinux.blogspot.com
  • 3 views on http://localhost
  • 2 views on http://www.kaneva.com
  • 1 views on http://feeds.feedburner.com
  • 1 views on file://

more

All embeds
  • 13 views on http://hussulinux.blogspot.com
  • 3 views on http://localhost
  • 2 views on http://www.kaneva.com
  • 1 views on http://feeds.feedburner.com
  • 1 views on file://
  • 1 views on http://wildfire.gigya.com
  • 1 views on http://www.peharec.com

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories