Saturday, December 30, 2006

My first desktop widget!



Some time ago I asked the guys at the Widgipedia to open a section for web widgets but as the Widgipedia is still in beta, they told me:
Flash widgets are coming soon, as part of our goal to host "the best widgets and gadgets across any platform"
so I continue with my web widgets and put them in Widgetbox.
On the last day at Flash on The Beach I was the lucky winner of a MDM Zinc copy which allows you to create desktop applications from flash including screensavers and WIDGETS!
So I did my very first desktop widget today, after few days trying to understand the tool that for any strange reason doesn't like vector images... and uploaded it to the Widgipedia!

It is a very simple Skype Analogue Clock but I think is cool, specially because is my first desktop widget :)

Salut!

Thursday, December 28, 2006

in the top 5!

Alex Iskold from AdaptiveBlue, has posted on his blog the top 5 widgets every blogger must have and to my supprise, one of my widgets is in the list!
The post R/WW Christmas - Widgets, not Cheese is mainly a tutorial on how to install and use widgets from widgetbox but has as well many interesting points about the importance and use of web widgets.
I know I promissed not to write about my widgets on this blog, but hey! I'm really exited to know that my Flash mini Digg viewer is a must have!
I'm already working on a 2007 version of it, so if you have any suggestion, I'm all ears (well, eyes...)





salut!

Monday, December 25, 2006

Barcelona


PICT0046, originally uploaded by ernesto.quezada.

Last week, Ewa (my partner) and me went to Barcelona for a week. It was just great!
Eventhough it was a bit cold but the beauty of the city let us walk through all the streets we could.
It was so cool that I even want to move over there!
we will see...

Salut!

Saturday, December 09, 2006

my widgets on widgetbox



I've decided to stop posting about my little experiments -widgets, eventhough I think is important for me too keep a record of what I was experimenting with and when... as for instance playing with php to get rid of the XML crossDomain policies was a good fun and for sure something new will come accross when continuing experimenting with flash and other technologies; I might post something about the solutions if any.
So, if anyone is looking for my widgets, they are available at Widgetbox, although the ones I've released here will continue working as usual.
You can see my widgets from this link.
I hope you like them and if you have any comments or suggestions, I will be very happy to read them ;)

Salut!

Sunday, December 03, 2006

Off to Flash on the Beach!



In few hours I will be heading to Victoria Station in Central London to get a train to Brighton, where Flash on the Beach will take place.
For those of you who don't know what Flash on the Beach is, quoted from their website:
Flash on the Beach conference is the first major Flash conference in the UK for over 6 years! Over 40 of the world's most talented Flash designers, developers and artists presenting on 3 tracks over 3 full days with mixer get togethers each morning and evening for essential networking opportunities.
For the next three days I will be attending different sessions related to new media and specially flash!
CamCorder ready, some miniDV tapes on my bag, off I go...

Saturday, December 02, 2006

LFPUG November Meeting



6:30pm, Daniel Todd and me said goodbye to all our colleagues at work as both of us were heading to the London Flash Platform Users Group November edition and after a long weekend we both are heading to the Flash On The Beach conference so we won't be at the office for almost a week!
No Flash Developers in the office for almost a week? oh Jesus!
well, is for the good of the company that we are going to all these events as we can apply all our knowledge to the applications we make!
Anyway, we got to Play, the usual pub in Old Street, when the first conference had already started. A great presentation from Adam Robertson on Linux and Flash, where he showed us all the power of the open source technologies and how we can create flash applications, including flex-MXML, using only free open source tools.
After the presentation he gave us a copy of UBUNTU, the most human friendly Linux distribution so far.
A couple of beers later, Stefan Richter gave us a presentation on the new fullScreen features introduced on the new Flash Player 9. Showing us nice examples and good practices on how to use this feature, Stefan closed the November sesion and as usual, all the troop headed to the nearest pub to continue the chat mostly about the big event Flash On The Beach.
Was nice to see you guys and hopefully we will have a great time next week!
I can't wait! :)

salut

Friday, November 24, 2006

Flash Firefox Downloads counter widget

For a flash web counter, please follow this link.

The next one of my flash web widgets series is a Firefox 2 Downloads Counter with an analogue clock.
Again, I had to deal with CrossDomain policies as flash cannot load any XML if the domain where the swf lives is not allowed to.
Instead of writing to the mozilla fundation and asking them to either host my swf or to allow my domain to get the XML data from them, I tricked these policies getting the data on a php and loading this php onto my flash file as I did with my Skype Status Flash Button.
Well, to the point...
For those of you who want to use this widget, just copy and paste this code onto your html page:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="firefox_clock" width="120" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="240" align="middle">

<
param value="always" name="allowScriptAccess"/>
<
param value="http://overloadstudios.co.uk/ewa/firefox_clock.swf" name="movie"/><param value="high" name="quality"/><param value="transparent" name="wmode"/><embed pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" allowscriptaccess="always" align="middle" type="application/x-shockwave-flash" height="240" src="http://overloadstudios.co.uk/ewa/firefox_clock.swf" width="120" wmode="transparent" name="firefox_clock"/>
<
/embed></object>


Example:






hope you like it.
salut!

Wednesday, November 22, 2006

Flash Skype Analogue Clock

From the Skype Status Flash Button came the idea of having your Skype status shown on an analogue clock. So there it is, your skype status shown in the middle of this Skype Clock.
If you click on it, your Skype application will open giving you the option to start a conversation with me (or the person hosting the clock...)
Feel free to put it on your website, just copy and paste the following code on your html:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="skype_clock" width="96" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="96" align="middle">

<
param value="always" name="allowScriptAccess"/>
<
param value="http://overloadstudios.co.uk/ewa/skype_clock.swf?myID=yourSkypeID" name="movie"/><param value="high" name="quality"/><param value="transparent" name="wmode"/><embed pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" allowscriptaccess="always" align="middle" type="application/x-shockwave-flash" height="96" src="http://overloadstudios.co.uk/ewa/skype_clock.swf?myID=yourSkypeID" width="96" wmode="transparent" name="skype_clock"/>
<
/embed></object>

As the previous Skype Status Flash Button, the only change you will need to do is to replace "yourSkypeID" for your skype user name or ID (allowing before your status to be shown)
Preview:




Enjoy!

Tuesday, November 21, 2006

Add to Bloglines Flash button


Even though I personally preffer netvibes as RSS agregator, Bloglines is one of the most popular ones out there and to give the option to the readers to add RSS content from your website to their bloglines account, I've done this "add to Bloglines Flash button"

Feel free to use it. As usual just copy and paste the following code on your HTML page:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="bloglines" width="100" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="30" align="middle">

<
param value="always" name="allowScriptAccess"/>
<
param value="http://overloadstudios.co.uk/ewa/bloglines.swf" name="movie"/><param value="high" name="quality"/><param value="transparent" name="wmode"/><embed pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" allowscriptaccess="always" align="middle" type="application/x-shockwave-flash" height="30" src="http://overloadstudios.co.uk/ewa/bloglines.swf" width="100" wmode="transparent" name="bloglines"/>
<
/embed></object>

This is the first one with a different look and feel, and as soon as I have some spare time, I will change the design of the other ones.

Salut!

Wednesday, November 15, 2006

Free Skype Status Flash button

Celebrating the recent release of Skype 3.0 beta and following my "flash skype status part 1, part 2 and part 3" previous posts, there it is my latest widget: a free Skype Status flash button.
The flash movie has two functionalities:
- shows your skype status
- it opens skype to start a conversation with you
If you want to use it, just copy and paste the following code onto your html page:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="skype_me" width="130" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="40" align="middle">

<
param value="always" name="allowScriptAccess"/>
<
param value="http://overloadstudios.co.uk/ewa/skype_me.swf?myID=yourSkypeID" name="movie"/><param value="high" name="quality"/><param value="transparent" name="wmode"/><embed pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" allowscriptaccess="always" align="middle" type="application/x-shockwave-flash" height="40" src="http://overloadstudios.co.uk/ewa/skype_me.swf?myID=yourSkypeID" width="130" wmode="transparent" name="skype_me"/>
<
/embed></object>

The only change you will need to do is to replace "yourSkypeID" for your skype user name or ID (and of course, allow your status to be shown)



Any feedback is very welcomed.

-- IMPORTANT UPDATE --

I've changed the dimensions of the skype flash button.
If you are using it, please edit your page acordingly.
New dimensions: width="130" height="40".

I've uploaded two widgets to Widgetbox:
- Flash Skype Status
- Skype Analogue Clock (with Skype status)

Please use the ones at Widgetbox instead.
-------------------------------

Salut!

Monday, November 13, 2006

Photoshop: badge buttons tutorial

Some time ago I did a tutorial in Spanish on how to create a "badge like" button using photoshop.
As my friend Atash asked me to translate it for him into English and as I guess more people can find it useful, here it is:
- The final button will look similar to

so, let's start!
- open a new photoshop document of 100 by 100 pixels.
- you can put your logo or anything you want to have the "effect"; in this case, I put Neoflashers logo on an orange background

- right click on the layer where our image is and select blending options
- on the blending options window, select drop shadow and change the settings as in the image below



- without closing the blending options window, select inner shadow and change the settings as shown in the image below



- click ok to close the blending options window and from the tools, select the "eliptical marquee tool" (if you have the "rectangular marquee tool" selected by default, click on it to select the needed one)
- create a new layer on top of the one that contains our logo or image and on this new layer, create an eliptical shape as shown in the image below



- select the "Gradient Tool", if you have the "Paint bucket tool" selected, click on it to be able to select the "gradient tool", and create a gradation from the top of the elipse to its bottom by pressing the mouse left key and dragging the mouse where the elipse finishes. You will have something similar to:



- deselect and change the layers opacity to 70% and that's it!

you should have a button similar to:


salut!

Tuesday, October 31, 2006

Add RSS to Netvibes Flash button


One of my readers asked me to create a flash button to add the RSS feed from any blog to a personal page on Netvibes; so following my add to technorati and add to del.icio.us flash buttons, now we have this free add RSS to Netvibes flash button.
To use it just copy and paste the following code and place it on your blogs code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="netvibes" width="100" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="50" align="middle">

<
param value="always" name="allowScriptAccess"/>
<
param value="http://overloadstudios.co.uk/ewa/netvibes.swf" name="movie"/><param value="high" name="quality"/><param value="transparent" name="wmode"/><embed pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" allowscriptaccess="always" align="middle" type="application/x-shockwave-flash" height="50" src="http://overloadstudios.co.uk/ewa/netvibes.swf" width="100" wmode="transparent" name="netvibes"/>
<
/embed></object>

Thanks Gábor!
to be honest, I heard before about netvibes but never used it, thanks to you now I can take advantage on its great features :)

salut!

Sunday, October 29, 2006

LFPUG October meeting


"Waste your time, but don't waste your money"
2 or 3 am?
Elmer Zinkhan was telling me that when I was jumping on the bus that took me home from the Angel shoping center where Tink, Carolina, Elmer, Mike and me had the last beers of the night...

This time, for the London Flash Platform Users Group meeting, me and my colleague Simon Lebatteux took a bus from Holborn station and in 10 minutes or so, we were at the Bear, a pub close to farringdon station where Tink and Rob Bateman were getting ready for their presentations.

One beer later (about 20 minutes or so...), Rob started his great presentation about "Optimizing Visual Interfaces for the Human Brain"where he explained us the way that the brain understand what the eyes see and the way the eyes tend to see the things, ignoring things that don't find interesting and focusing on what it's important...
We are still talking about this presentation at work with the colleagues as we really enjoyed it.

Two beers later and after some funny exercises from Rob, Tink started his presentation on "Flex 2 for flash developers", showing us how easy is to do some of the things that in flash actionscript 3 would takes us good couple of hours to do. In a line of MXML code is possible to do something that in AS3 takes 15 or more lines, so less code, less time and very robust applications can be done using flex.
MXML seems to be a very easy language to learn as at the end of the day is only XML (but on esteroids), altough Tink told us that we would still need to know AS3 to do the things...
Maybe one of these days I will start playing a bit with this Flex 2 and MXML

After the presentations, two pubs, some beers, rain and a very nice chat with the guys, I went back home with a big smile on my face (without smoking anything special!)

Cheers mates! and see you next month ;)

Tuesday, October 17, 2006

Blogger bugs on IE?

I was checking my blog statistics using Google Analytics and when checking the browser versions saw that as usual the browser that most of my visitors use is mozilla firefox what is actually logical if the main subject of my blog is digital media, so most of my visitors come here when searching for things related to technologies...
Just for curiosity, I wanted to know how some of my visitors, the ones using IExplorer (32.26% this week), where watching my blog finding out that not everything looks 100% what is in fact normal as all of us know, IExplorer doesn't support (yet!) many CSS features...
The eolas problem is ok, I actually don't mind if a person has to click first on a flash movie to activate it, but not showing some of the elements is a real problem, for instance my technorati's favourites widget, on IExplorer just doesn't show up. It can be a bug on blogger as for instance sometimes the navigation is missing (only if using IEexplorer) but anyway, is ok with me, there is nothing I can (nor want) to do about the 32.26% of visitors who use IExplorer, is not my fault if they are using a bad browser having so many options out there.



Salut!

Sunday, October 15, 2006

Digital video production - Juan in the city

When studying Digital Video Production at the University, I was asked to create a short film and in 1:30 minutes to present a story.
So this short is the result of my Adobe Premiere Pro studies:


was fun, filming and editing, even though at the begining I really hated Premiere Pro...

salut!

Thursday, October 05, 2006

off to Poland...

this weekend my partner and I are going to Poland, from friday afternoon till sunday night.
I can't wait!
although after watching all these documentaries and movies about 9/11, I'm not too happy about flying...
No Wallop for two days, no emails, forums, etc, don't know if is good or not! I'm so addicted to this virtual world and all this digital stuff, but anyway, I've got my gadgets ready! :)
time to pack...

salut!

Tuesday, October 03, 2006

Wallop - flash power on our hands

Wallop

first of, thanks Dan Todd for inviting me to wallop!
although, I don't know if is something good or if is the new devil's tool to keep me in front of the computer for longer...
Something odd is that this great Flash application is being developed by microsoft! and in some of their pages they are using php as a backend technology!
how come?
if they own asp!
if they don't like flash and they are creating a "flash rival"!
well, anyway, seems like Wallop is the new killer app that reunites your blog, your pictures, your friends, network, music and so many other things...
goodbye mySpace!
with its beautiful interface, nice animations, great features, Wallop is here to stay and we, flash developers, have to take advantage on the big chance we have as we can become mods creators and sell our flash applications to the Wallop users, that for sure, soon will be millions!
Well people, I'm off to continue playing with Wallop, and if anyone out there wants an invitation, just leave a comment here with your email address

Salut!

Monday, October 02, 2006

voIP phone & skype 2.5


Fantastic!
that's the only word in my mind now.
I just finished a phone conversation with my colleagues Carmen & Eric and before I talked to my mate Robinson and everything for free!
Yes, I know, these are old news but personally I never had the chance to actually phone anyone as I had no microphone but today arrived to my office my new voIP-USB phone.
As soon as I came home, I started playing with it, not before installing the brand new Skype 2.5 that was released just few days ago.
I can not wait to phone my friends and family from my country!
but now is midnight here and tomorrow I've got to go to work...

nite nite :)

Friday, September 29, 2006

LFPUG September meeting


Stephen Downs did it again!
thanks Tink! it was a great meeting last night.
Was great to catch up with the flash geeks, all these cool people who come every month or so to these presentations.
This time, Daniel and me took a bus from work and in less than 15 minutes we were at the place just on time for Rich's fabulous presentation on Flash Lite 2.
Couple of beers later we had another good presentation, Johannes Nel gave us an introduction on binding data on flex.
More beers later and under the lovely London's rain I got home at around 2am.
When I left the pub after 1am, the guys were still there...
oh God! these meetings are dangerous!

btw, I'm just testing Google Video; a new camcorder is arriving soon so hopefully the next meeting video will be much better.

Salut!

Skypeweb bug


Reading the SkypeWeb developer notes, I have confirmed that only and if only I have my computer on, the SkypeWeb server will be able to get my status and then will create the respective XML, image and text.
I think is a bug because from my point of view, my computer doesn't need to be on to allow the SkypeWeb servers to detect my status.
why?
well, the XML I'm using to get my online status and show it in a flash movie, is created "upon request" but if the computer is off, the SkypeWeb server can not create any XML as no data was collected from my computer, therefor it returns an old XML, the last one generated that might be wrong.
I'm wondering why is not created in such way that if no data is retrieved then generates an XML showing the "offline" option...

Thanks to altrove and chespi for their feedback and help on this matter.
And please guys at the Skype forums, do you mind confirming this issue?
Is Skypeweb still beta?

salut!

Sunday, September 24, 2006

Flash is following me!


call it paranoia, coincidence or big brothers eye!
The other day my partner and me went for a walk and just down the road we found this lovely pub. What do you think was the first thing in my mind?
oh God! so many years in love with this tool and I can still remember when the pink colour was associated with flash, 4 and 5...
So, for me, that's the flash logo and is staring at me!

Friday, September 22, 2006

Connecting two Flash Movies

The idea of this post is to explain the basic on how to use the class LocalConnection that helps us to communicate two different flash movies on the same html page.
Steps:
- Create a new flash movie and call it "my_sender"
- Create a button on the stage with instance name "my_btn"
- First frame actionscript:

function my_function(my_parameter:String):Void {
var my_lC:LocalConnection = new LocalConnection();
my_lC.send("test_LC", "change_copy", my_parameter);
delete my_lC;
}
my_btn.onRollOver = function() {
my_function("You are rolling over a button on another SWF!")
};
my_btn.onRollOut = function() {
my_function("Rolled Out");
};

I have a function with a string as a parameter and inside I'm declaring my localConnection and sending three parameters:
- the name of my localConnection (test_LC)
- a method name
- the name of my parameter
I'm calling my_function when rolling over and out my_btn but my_function can be called in any other event.
That's it! save, publish and put on an html page.

Next steps:
- Create another flash movie and call it "receiver"
- Create a dynamic text field with instance name "my_copy"
- Add the following actionscript on the first frame of the main timeline:

my_copy.text = "This is a dynamic text box"
var my_lC:LocalConnection = new LocalConnection();
my_lC.change_copy = function(my_parameter:String) {
my_copy.text = my_parameter
};
my_lC.connect("test_LC");


Put a string to show on my text field on load so we know where the text box is;
Add an instance of the localConnection class with the variable "my_LC".
Then I use the parameters sent by my first movie to give a new value to my_copy;
And connect to the "localConnection" created.

That's it!
See the example below:







Second Movie





The localConnection class can be very useful and can help us for instance with the flow when loading different flash movies on the same html page, we can start loading another movie as soon as the first one has finished loading.

Salut!

Tuesday, September 19, 2006

Add to Technorati favourites Flash button


Playing again a bit with flash and after my "add to del.icio.us" flash button I've done an "add to my Technorati favourites" flash button.
It can be used on any website, you just need to put the following script where you want the button to be shown:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="technorati" width="100" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="50" align="middle">

<
param value="always" name="allowScriptAccess"/>
<
param value="http://overloadstudios.co.uk/ewa/technorati.swf" name="movie"/><param value="high" name="quality"/><param value="transparent" name="wmode"/><embed pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" allowscriptaccess="always" align="middle" type="application/x-shockwave-flash" height="50" src="http://overloadstudios.co.uk/ewa/technorati.swf" width="100" wmode="transparent" name="technorati"/>
<
/embed></object>

The only thing I don't like about these "add to my favourites" buttons from Technorati is that they open the link on the same page and if you don't want to add the blog, you don't come back to the blog itself but to your technorati account.
Anyway, I might change the graphics later.

Salut

Friday, September 15, 2006

Flash Skype Status - Part III


My friend Sebastian Recabarren pointed me out a little problem about my Skype Status flash widget. He asked me who was lying or his Skype or my blog.
Browser's cache memory!
I though this problem was only when the user goes online through a proxy server, which keeps everything in its cache, but seems like flash always takes the image from the browsers cache even if there is no proxy server in between.
To avoid this problem, we can use an XML provided by SkypeWeb instead of loading the image.
The XML is available from:
http://mystatus.skype.com/userID.xml

That data is easy to pull from flash and then show the right status attaching the right movieclip.
What I did is, instead of

image01.loadMovie("http://mystatus.skype.com/smallclassic/yourID");

I'm loading the XML as follows:

function loadXML(loaded:Boolean):Void {
if (loaded) {
xmlNode =
this.firstChild;
my_status = xmlNode.childNodes[0].childNodes[2].childNodes;
attachStatus();
}
else {
trace("XML not loaded!");
}
}
xmlData =
new XML();
xmlData.ignoreWhite =
true;
xmlData.onLoad = loadXML;
xmlData.load("http://mystatus.skype.com/myID.xml");
function attachStatus():Void {
image01.loader_mc.attachMovie(my_status,"status",1)
}

I have added 6 movieclips showing the different possible status, each of them have a linkage identifier name depending on the status. To add an identifier to a movieclip just right click on it (in the library) and select "linkage properties", tick the "Export for actionscript" option and change the identifier to its equivalent skype status, ie: Not Available
Voila!
Testing locally everything works fine.
But, as usual when debugging, there is a new problem: cross domain policies.
Due to security reasons, any online flash application cannot load data from a different server and my experiment doesn't work online.
My mate Stephen Downs (Tink) pointed me out the solution:

It is possible to get round the sandbox by loading the XML into some PHP or something on your server and then loading it into Flash from there. Tricks the player into thinking your serving it


and my colleague Thomas Van Steenwinckel gave me a hand with the php and together we put the following script on my server:

<?
header("Content-type: text/xml; charset=utf-8");
$filename = "http://mystatus.skype.com/myID.xml" ;
$dataFile = fopen($filename, "r" );
if ( $dataFile )
{
while (!feof($dataFile))
{
$buffer = fgets($dataFile, 4096);
echo $buffer;
}
fclose($dataFile);
}
else
{
die( "fopen failed for $filename" ) ;
}
?>

Now on flash I'm loading the XML created by this php instead of the one provided by skypeWeb and my blog shows the right status of my Skype account.
Nice way to get rid of the cross domain issues.

PD: Just in case, remember to update to the latest Skype.

Salut!

-- IMPORTANT UPDATE --
Part I
Part II
Free Skype Status Flash Button

and the latest one of this series:
Easy Skype status in Flash
---------

Thursday, September 14, 2006

Free add to del.icio.us Flash button

I've changed the actionscript on my "add to del.icio.us" flash movie so now it takes the title and the web address from where the flash movie is embedded into.
For example, if you go to http://tinosrestaurant.co.uk you can see that they have embedded my "add to del.icio.us" flash button and when clicking it, it opens the usual "tag this page" pop-up window from del.icio.us...
If you want to put it on any of your websites, just add the following script where you want the button to be shown:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="delicious" width="100" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="50" align="middle">

<
param value="always" name="allowScriptAccess"/>
<
param value="http://overloadstudios.co.uk/ewa/delicious.swf" name="movie"/><param value="high" name="quality"/><param value="transparent" name="wmode"/><embed pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" allowscriptaccess="always" align="middle" type="application/x-shockwave-flash" height="50" src="http://overloadstudios.co.uk/ewa/delicious.swf" width="100" wmode="transparent" name="delicious"/>
<
/embed></object>

If in case you want to create your own flash del.icio.us button, follow the instructions on my previous post.

Monday, September 11, 2006

Flash add to del.icio.us


The usual way to have the "add to del.icio.us" option on a website is using html calling a pop-up window with the "post" page from del.icio.us passing a couple of variables to help filling in the form.

Using flash is the same, is just a matter of calling a pop-up and passing the value of the variables...
As you can see on the example on the right side of my blog, when pressing the del.icio.us flash button, it opens the "post" page with two text boxes already filled.

What I did is:
- Created a button on the stage with instance name "add2delicious" and on another layer put the following actionscript:

add2delicious.onPress = function() {
getURL("javascript:void(window.open
('http://del.icio.us/post?url=http://overloadstudios.blogspot.com
&title=Ernesto Quezada s Blog','popup','toolbar=no,
location=no,status=no,menubar=no, scrollbars=no,resizable=no,
width=700,height=400'))");
};

- Publish your swf for flash player 7 as for flash player 8 the pop-up just doesn't work;
and that's it!
I had to take out the single quote in "Ernesto Quezada's Blog" as the single quote is a restricted character on this script.

Salut!