Category Archives: flash

WebOSS 07: The Event

On 13th October Teknowledge Software conducted the first “Free for All” Open Source Web Technology conference called WebOSS ’07.

The event was the first of its kind to be held in Kolkata. Teknowledge Software, a software house based in Kolkata hosted the event along with WBUT as the venue sponsor.

Volunteers dressed in white T-shirts with WebOSS ’07 logo worked hard to put the event together.

The event started at around 11:30. I was the first one to speak and spoke on RIA: Which technology one should choose? Slides can be found here

I attended the next session by Pradeep on how to build application with AJAX. Pradeep’s presentation can be found here

There was a lunch break after this which contained burgers, cakes, ladoo! and Frooti!

The next session was of Shabbir’s on Speeding up your websites. A great session which included tips and tricks to speed up the sites from network and client browser point of view. Shabbir’s content can be found here

The next session was of Naveen. He really went dirty into the code like Pradeep. It was really a good session and I have started respecting Perl (i’m more a PHP Guy!)

It was a good conference, the jam packed audience was eager to know more and more!

Overall, a fun event like barcamps! Its great to see such events happening in Kolkata! Go ahead Kol!

You can find ALL pictures here:

Hussain on RIA

Pradeed, Naveen and Shabbir

Jam Packed Audience

Pradeep, Naveen and Shabbir again.

Flash and JavaScript Integration

Flash and JavaScript Integration

Follow these easy steps to make flash communicate with JavaScript code and vice versa.

a) Flash to JavaScript: Making Flash call a JavaScript function

JavaScript Function Code. To be put in the HTML

<script language=”JavaScript”>
function alertMe(){
alert(“Hello, world”);

Flash Code. To be put in any event of button, frame, where ever required:

import flash.external.ExternalInterface;
function callJavaScript(){“alertMe”);

Please note that due to default security these codes will not work if the flash is loaded locally.
To test this, you will either need to upload your .swf and .html to a server and request the files from the server.
OR you will need to set the global security settings( Google it to know how!)

b) JavaScript to Flash : Making JavaScript call a Flash Function.

Flash function code that needs to be called:

import flash.external.ExternalInterface;
function startPlaying(){
ExternalInterface.addCallback(“startPlaying”, this, startPlaying);

Java Script code to call the method in the flash:

<script language=”JavaScript”>
var myflashref;
function getReference(){
if (navigator.appName.indexOf(“Microsoft”) != -1 )
myflashref = window.flashObject;
myflashref = window.document.flashObject;
function playFlash(){
getReference(); //getting the flash reference.
myflashref.startPlaying(); //call the method in the flash

Well, I leave it up to you now to do some R&D and make data pass through flash and JavaScript and vice-versa!

Feel free to leave clarification requests.