Author Archive: Amir Memon

Flash on multiple screens

This is an excellent example of Flash running on multiple screens, including of course the iOS.

Comb Over Charlie

 

 

 

Auto Update for Mac

I came in this morning and realized that the feature I had been working on for several months and had shipped in the previous release (Flash Player 10.2) finally saw the light of day. Now that Flash Player 10.3 was just released, Mac users that had 10.2 installed saw an update dialog. That was me, on like 80 million Macs in the world **teary eyed**

It’s so great working at Adobe! It’s very humbling to think that my team and I write code that executes on over a Billion computers world-wide.

People are tweeting about it: http://twitter.com/#!/search/flash%20update%20ma

 

We’re hiring by the way! http://www.adobe.com/aboutadobe/careeropp/

AMP: Adobe’s Desktop FLV player

If you google “FLV Player” you get several different FLV players that the community has made. A friend of mine recently asked me if there are any that I have had a good experience with, and I was surprised that he was even asking me this given that there is the Adobe Media Player (AMP).

But yeah, I just wanted to point out to people out there that AMP (Adobe Media Player) can play FLVs!!!

I’ve tried it on only Windows so far, but I’d think it can play FLVs on all three major platforms (win/mac/lnx) since there is an AMP available on each.

1. Install Adobe Media Player from here: http://get.adobe.com/amp/ (click at the bottom of that flash box)

2. On Windows, right-click an FLV file, hover over “Open With..” then select Adobe Media Player.

3. And bada bing, you’ve got your FLV playing.

I can’t remember, but there was a specific reason (having to do with CS4 compatibility or something) that they didn’t register .FLV’s default player to be AMP, but I’d imagine you can do that manually if you don’t want to do the right-click->open with… thing.

Developers: If you don’t like the idea that you have to install AMP (which serves many purposes other than just playing FLVs), you can probably make your own lean FLV player using AIR. If you do, it’d be super cool if you open sourced it, and shared bins. Just a thought.

Keyboard usage while in full screen mode with Flash

http://labs.adobe.com/technologies/flashplayer10/releasenotes.html#features_ocre See “Limited Fullscreen Keyboard Access”

I’ve been wanting this feature in for the longest time… and now it’s in the flash player (currently in beta).

Basically now you can create Flash games that go in full screen mode and be able to use certain keys that are often used by games. We had initially prevented keyboard access altogether for security reasons… like phishing… but i guess you can’t really phish too much out of arrow keys, space bar, enter, etc…. but you can make some great games this way.

Hope you guys like this new feature :-)

Tech’s all-time top 25 flops, by InfoWorld

http://www.infoworld.com/archives/emailPrint.jsp?R=printThis&A=/article/08/01/21/03FE-25-tech-failures_1.html

Interesting list. Ipod imitators, vista, 64-bit PCs, Netscape 6, and DRM are all on there.

I don’t agree with all of it though, for example, the concept of a paperless environment. At Adobe (and at old school macromedia for that matter), we REALLY do have a paperless environment. I mean of course we have a standard laser printer / fax machine like any other office environ, but the vast majority of our communication is paperless. We use wikis heavily and (of course) pdfs. In college i remember reading about “The Paper Paradox” which basically said that computers and networking are supposed to reduce paper, but because of the ease of printing, paper consumption has actually increased. To that I say that it takes not just the technology needed to go paperless, but also a generation that grew up paperlessly. If students were to turn in their essays via PDF and/or Word docs, they’ll grow up doing the same. And besides, look at what craigslist has done to the newspaper industry. But yeah, it’s still debatable.

Also, I use vista at work, and it works fairly well if you disable UAC. My computer is freakin’ fast though (at the time of this writing). Vista does make HW installation smoother (even though the article says the opposite), and trouble shooting works pretty well too. I used to use google desktop, now i use vista’s native searching, which i like a little better since its native. The task bar is a little less buggy. I don’t like the new start menu (even though a good friend of mine worked on the usability research for it)… too much clicking. But yeah, i could have lived with XP. I can’t wait until like Ubuntu or some other Linux becomes a lot more user friendly (and Adobe AIR could be the answer to this when we release a Linux version by the way).

Earthmine, the next generation map built on Papervision 3D and Flash

This is some crazy awesome stuff, it’s a Google Street View on steroids. They turn the world into a virtual reality 3D game, and make it possible to collect all kinds of data in the map… this is truely next-gen stuff. And guess what, it’s made in flash and Papervision 3D. Papervision 3D is a set of 3D libraries for flash written in AS3.

Check out the video:

Line Rider : share your track with your friends

http://www.linerider.com

Ever make a really awesome Line Rider track, and wanted to share it with your friend so that they could not only view it, but can also work on it themselves?

well you can, it’s really easy, and here’s how…

Continue reading…

Image Resizing by Seam Carving

that’s some crazy stuff. And we hired one of the researchers, Shai Avidan, to be part of our special research group:

http://news.com.com/8301-13580_3-9768707-39.html

And I guess somebody implemented the algorithm in flash as well:
http://www.quasimondo.com/archives/000651.php

good stuff.

Adding an Intermediate Cert to FMS

Ever try adding an Intermediate CA Cert to FMS ( Flash Media Server )?

well i did, and it was a real pain to figure this out, but in reality is pretty easy. Here’s how (starting from the beginning):

1. you generate a private key, lets call it privkey.pem … you’ll probably do this with OpenSSL like i did

2. from that with OpenSSL you generate a request, CSR or whatever

3. submit that to “the authorities” whoever that may be in your case, if intranet, maybe your “IS” or “IT” dept… if public, then maybe somebody like godaddy.com

4. they give you “the cert”

5. now you’re like, “yipeee!!! i got a cert, but what do i do with it? how do i install it?”

6. go here: (your FMS installation directory)\conf\_defaultRoot_\Adaptor.xml

7. Scroll down or Ctrl+F “SSL” and you should see a SSLCertificateFile tag, this is where you specify the full path of the cert file like this:

8. You also need to point to the .pem file, for that, specify the SSLCertificateKeyFile like this:

Simple as that, now restart FMS and you should be set.

BUT WAIT!! what about the intermediate cert… all you do is open up your .cer file in a text editor, and paste the intermediate cert below the actual cert. If u dont know where to get the intermediate cert, ask the admins that issued you the cert in the first place.

hope that helps.

How to use Flashvars with AS3

remember flashvars from AS2? its still there in AS3 but you access it differently.

in the HTML ActiveContent Javascript code add the flashvars parameter:


AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '490',
'height', '490',
'src', 'ColorGen',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'ColorGen',
'bgcolor', '#ffffff',
'name', 'ColorGen',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'ColorGen',
'salign', '',
'flashvars', 'boxColor=0x0000FF'
); //end AC code

(see the second last line)

And you should throw the same flashvars parameter in the object tag in the noscript for those who have JS disabled like this:

… now when you want to access it, instead of doing a _level0.boxColor like in AS2, you simply do a:

loaderInfo.parameters.boxColor

and bada-bing.

And of course you could add more flashvars name-value pairs separated by &’s… kinda like URL parameters

why a whole blog post on this? cuz i didn’t see it in AS3 LR on livedocs, and i could imagine wasting a lot of time on this if i didn’t work at adobe and didn’t have access to our massive testing library.

thought i’d share.

And by the way, here’s some more information from livedocs:

http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001005.html#166514

http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001585.html#171273

And here’s an URL if you want to use flashvars with Flex:
http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001004.html