MSDN Flash

If you go to download Microsoft Expression Interactive Designer beta (shorten that name plz !), you will probably stumble at the “MSDN Flash” banner. Actually the full banner text is “Register for MSDN Flash eNewsletter.

MSDN Flash

So, did MS also discovered the Flash platform, and she is so excited, that she’s publishing an electronic-newsletter about it ? Or maybe it’s an upcoming merger between MS and Adobe ?! Or maybe a world peace ?. After clicking on the banner it all become clear “All of Microsoft’s Developer News in One E-mail”. Oh, so you meant News-Flash, you funny little Microsoft ;) , are you tring to fool us there, you crazy you.

IMHO this is no coincidence. I’m not sure what’s MS want to achieve here, might be just to irritate Adobe or may be she wants that people that will search for “the new Flash” will find her Sparkle, hence also the url is – msdn.microsoft.com/flash. Well your Sparkle is very nice but it isn’t Flash.

Why can’t people understand when I tell ‘em the future ?!

I remember about 13 years ago I’ve told a friend of mine, who is an airbrush artist and a photographer, that untill 2005 all photos will be digital. He didn’t belive it. Today, even Canon stoped manufacturing film cameras. And how I told everybody that the y2k bug will be, much ado about nothing, they didn’t belive me, and spent billions on fixing this ghosty bug :) (ok, ok, you knew it too..). Now, why can’t my superiors understand when I tell ‘em that it’ll take some time, few years IMHO, untill we can develop in WPF/E and get reasonable compatibility ?. They, my superiors, don’t even want to upgrade to Flash 8 cuz they think they gonna jump straight to Microsoft Expression. That’s just aint gonna heppen that instantly if at all it will. Even if you’ll decide on totally switching to Microsoft WPF/E over Adobe Flash it’ll be a gradational process. Some of our clients will still demand that we’ll use the Flash platform. Either because of compatibility or due to a design issue. Designers will be the last to make the switch. No matter what I say, they can’t understand it, with their zombie hollow eyes they persist to recite “Mmmiiiicccroossoofftt….”

Don’t get me wrong – being a geek I’m excited by any new technology, all the more so about something as cool as the Microsoft Expression Interactive Designer (that’s a long name :) ). However we’ve got to be patient and not jump to any fanatical conclusions.

It’s slightly beyond my grasp to predict the far future of what I call the “RIA Wars”. But, I’m pretty sure about the near future or round-one as we might call it. After round-one Macromedia, hmm.., Adobe will retain it’s web dominance with it’s Flash platform. But, Microsoft will make wonders for Windows Desktop Application with it’s WPF where Adobe Apollo will hardly touch it.

And don’t give me that Microsoft number 3 bs (pro-Microsoftians says it always strike gold on the third version). Thats just your human nature, the need to format everything into a similar patterns. Lots of things can happen until MS ver 3, Flash-12 for instance. You know Adobe always strike gold with version 12 :D .

That’s mostly my opinion, you should have your own opinion, Just don’t numbly recite one or the other.

Haha…
Just before I went to change this post status from Draft to Published, Lately, another one of my Flash related prediction to my direct superior/boss came out true. :D . Which gave me that annoying, I told you so.., smile:
We use an Active-x on most of our websites. One purpose of this Active-x is to save photos on the user’s local machine and then integrate it into the Flash gui. When the new Flash 8 security model showed up, the option of loading local files (image, text, xml, etc) into a Flash file running from a server, was removed completely. That caused portions of our websites to not function properly. The idea we came up with was to load these local images into html divs, and to integrate it seamlessly into the whole website. While it was tiresome work, the result is good, the user won’t notice the fancy Flash gui he’s using is partially html. The new Flash 8 security caused some serious debate between me and my boss. He said that this Flash technology is not stable and we can’t trust macromedia for not making such future changes and break our code again. I, for my part, said that: While this update might be annoying, it was a necessary update, Macromedia have reached a satisfactory level of security and that kind of updates won’t be repeated. The whole idea of integrating with user local photos that way is problematic. And also, it’s reasonable to belive that Microsoft will implement some similar securities into their next Internet Explorer 7.
Indeed, in the latest IE7 release the same security of, no access to local files from a server page, new sandboxes and cross-domain, and much more, has arrived to IE7. So we gonna have to put all of the user’s photos on the server from now. But we’re aint the only ones who gonna suffer, tones of websites will resist to function properly. Now, who can you trust ?!

Just another “I told you so…” to the fanatic pro-microsoftians.

This old dog never cease to amaze me.

Macromedia Director has been declared dead and mourned over long before most of us switched to consuming solid food, but he always retained his strength as a fearsome hound. Even today, with the rising of Apollo and WPF this old dog doesn’t cease to amaze me. After we saw this amazing photo gallery, it is time to get amazed by this new (at least for me) shockwave 3D website: the Roland Garros PointTracker. This beautiful app let you follow the 2006 French Open in realtime-3D and in real time.

Check it out.

Life’s a bitch

I was surprised to find that http://weblogs.macromedia.com/mxna/ was blocked from my work computer. After some research I found that my system admin installed a new product from esafe. This product uses a ridiculous dictionary with thousands of words you never even heard of. Any site containing one or more of the words get blocked immediately. After some more research I found that the word getting blocked on the MXNA is ‘bitch’ , obviously, it’s the bitchwhocodes blog. A fine and decent piece of internet ;) . After some convincing I got my admin to remove the ‘bitch’ word from the list. So now I can access the MXNA but still not the bitchwhocodes site. How many more dirt and malicious stuff you got in there girl? ;) . Anyhow this is a real pain in the a$$ (hope I won’t get blocked for that one) I’m currently thinking of a solution. Surfing through a proxy won’t help cause the d@mn thing sits on the winsock and analyze everything that enters the computer. A proxy that encrypts the data won’t help either cause any kind of encrypted data get blocked. I came with the idea of useing a proxy that has the same word dictonary and knows to change the words to a non offending kind. I “only” need to find one that do this or install one myself.

Anyhow, what kept me connected to the flash world is this fine tool by flashMattic. named: MXNA posts feeder. This tool uses the MXNA webservice and somehow only the offending posts got blocked as opposed to the browser that was blocked completely.
Check it out (requires latest flash player 8.5 / 9)

If anyone knows how to overcome the esafe problem, please let me know.

New Kimili Flash Embed

If you read my last post you know by now what is the Easiest way to embed Flash inside WordPress, you do that using the KFE plugin. There’s a new version that address the issue described at the end of the last post And more, mainly compatibility with other wp plugins and RSS validity. If you’re using WordPress or Textpattern and you want to embbed flash in your posts you need this plug.

KFE ver 1.1 April 03 2006 

setTimeout in flash 7

As you might know Flash 8 was reinforced with the setTimeout functionality. You can now tell flash 8 player to run a function once after a given milliseconds/interval:

setTimeout(trace, 1000, “string to trace”);

will trace the string “string to trace” after 1 second.

But what if you’re like me, and still need to use flash 7 or even 6, and you also want to enjoy the simplicity of setTimeout. Well I was using my own implementation of setTimeout since flash 6, first with a function and when AS2 came out, I’ve rewriten it into a simple class you can download here.
To use it unzip the ‘net’ folder into your flash classpath if you don’t sure about the classpath just search for it in the flash help or put it in the same directory as your fla. Now you can use it in your flash 7 or above as follows:

import net.guya.Timeout;

Timeout.set(trace, 1000, “string to trace”);

this will do the same as the above function and willl trace the string “string to trace” after 1 second. As with the flash 8 ‘setTimeout’ in the flash 7 ‘Timeout.set’ you can send as many variables as you like after the interval. The trace function only expects one string variable so thats what she gets.

Here is another example:

[kml_flashembed movie="http://www.guya.net/blogstuff/Timeout/TimeoutSet.swf" height="400" width="340" /]

You can also pass an object reference to Timeout.set

Timeout.set(this, someFunction, 1000, variabl1, varible2, …variableN);

for example:

import net.guya.Timeout;

var nX:Number = 100;
var nY:Number = 50;
Timeout.set(this, drawLine, 500, nX, nY);

function drawLine(x:Number, y:Number){
   this.lineStyle (2, 0×000000, 100);
   this.moveTo (0, 0);
   this.lineTo (x, y)
}

This program, after 0.5 second will draw a line from the top left to point(100, 50). Here you must send a reference to the object you want the ‘this’ inside the drawLine function to refer to. In this case it’s the MovieClip where the line will be drawn. If no object reference is sent in this case the ‘this’ inside the drawLine will refer to the Timeout object and so no line will be drawn.

A Timeout can be deleted before its function was called with the ‘clear’ method:

var nTimeout1:Number = Timeout.set(trace, 2000, “I will never show”);

Timeout.clear(nTimeout1);

Nothing will be tarced because the Timeout is deleted before it has a chance to run the trace function.

Download the Timeout Class.

< update >

setTimeout in flash 6

After some feedback I realized I should have written this function also, you only need to copy and paste it in your flash 6 files:

_global.setTimeout = function (o, func, ms){
   var a = new Array();
   for(var i = 3; i < arguments.length; i++) a.push(arguments[i]);
   var n = setInterval(function(){func.apply(o, a); clearInterval(n);}, ms)
   return n;
}

and use it like this:

setTimeout(this, trace, 1000 , “string to trace”);

Download the setTimeout for Flash 6 function.

< /update >

Just Do It

I want a blog, but why?
What will I write about?
Macromedia Flash is one of my main interests these days, so should I make another flash blog?! there are already like a billion out there and some of it are unbelievably interesting. These questions and more, I wont tire you with, are flooding my mind as I come to write my first blog post. I thought that the WordPress installation will take some significant time and so I’ll have time to think about what to post, but after a minute I was staring at my fully functional blog. It’s still in its default design and that’s also an excuse, first I’ll finish my original design and then I’ll start posting…
Then I came to my sensses and I indulged myself with one of the greatest marketing phrases of all time. Whenever someone come to me and say she whants to do something but she first need to: lose some weight, get an haircut, finish school, finish college, get married, find a job, lose the job, get a cat, just sleep for a while, wait for the kids to leave the house, wait for the born baby, etc. whenever it’s obvious there is not a rational reason to not do it beside our hesitant human nature. I tell her to cut the cr*p and “just do it”. As you know advices are much easier to give then to take. But this time I managed to take my own advice and I “just did it”. So here it is, my first blog post. hopefuly more will come.

I always give credit to Nike for the phrase, like someone don’t know it’s theirs. These days, thanks to the mighty google I can give credit to the individual who claimed it, his name is Dan Wieden.

I also came across this amazing “Just Do It” commercial it’s from last year but I never saw it before.