Youtube and Flex 3
A time ago google released an SWF/API to interact with the youtube player, and be able to embed it into your swf projects, the main problem is that it was for AS2, so when you try to do it on AS3 / Flex, you can run into problems.
I ran into this problem, so doing my research, I found a library written for AS, it uses a clever way to do it, it actually use a javascript bridge to communicate with the player inside your SWF.
It’s internals can be summarized in this way:
swf (external call) -> browser (js) -> swf (via javascript)
There are a lot of tricks that can help our life easier with this problems, but I will like to gave you a list:
- The main tricks in this library are done in javascript, so you have to pay a lot of attention of details like the id of the player in the HTML of the deploy (be sure to copy outside your working copy, because flex overwrites changes on it), check the ****YOUTUBE**** comments in the example.
- You can run into issues with the sandbox, be sure to test it on a webserver.
- Because you are running outside the flex ide, be sure to install flash tracer it will help you a lot
- When you add it to your project, and you can get the creation complete event you are ready to go !
This is the link of the library:
http://code.google.com/p/youtubechromelesswrapper-as3/
A live demo:
http://www.zerokernel.com/demos/flex/youtube/
Deployment files:
http://www.zerokernel.com/demos/flex/youtube/youtube-deploy.zip
Flex source:
http://www.zerokernel.com/demos/flex/youtube/YoutubeTest.zip
FlexPop Now in Air !!
A few months ago I put an example of the Degrafa framework, called FlexPop. A few coworkers point me that I should add the feature of saving the image.
Thinking about that, I realize that I was in need of a server technology to “resend” the image back to the client, so I decided to take another approach.
This gave me the first step into a bigger world, because I decided to re-write FlexPop in Air, no much changes, but at least in the webcam was a lot easier.
So I let you the link… please send me any comment you can find.
05.19.09Complaints about blocked pages
I was forced to block access to a few pages from my work, so I started to be hated, my good friend from “Full of caffeine” help me writing a little script to send me your comments.. source below:
complains_about_blocked_internet.sh
echo $1 > /dev/null
echo "Polo says: Thanks for your feedback!"
(this is supossed to be a joke, only runs on *nix compatible OS)
| Posted in featured, flex | No Comments »