Blogadda

Blogadda
Visit BlogAdda.com to discover Indian blogs

Thursday, July 30, 2009

Adobe Stratus

What is Adobe Stratus?

With Flash Player 10, Adobe brought in enhancements that make writing P2P applications a reality. Flash Player 10 provides support now for a new protocol called Real Time Message Flow Protocol (RTMFP). This protocol is well suited to creating applications that need to communicate to each other directly. This communication is facilitated via the Adobe Stratus Service which supports the RTMFP protocol and is a rendezvous Hosted Service that facilitates connection between two Flash Player 10 instances.

Once the Flash Player 10 instances are connected to each other, the two applications can continue to talk to each other without going through an intermediate server side.

Adobe has had Flash Media Server (FMS) over the years and recently they have also introduced Adobe Flash Collaboration Services (AFCS), formerly known as Cocomo. FMS currently does not support the RTMFP protocol but future versions of it could. On the other hand, Adobe Stratus in conjunction with the Flash Player 10 APIs does not provide support for full P2P capabilities like relay, shared data models, etc. but depending on the kind of application that you may require, it might just about the fit the requirements of your P2P Application without requiring additional server side architecture.

Plz refer

http://www.linkedin.com/news?viewArticle=&articleID=54537631&gid=113435&articleURL=http%3A%2F%2Fwww.insideria.com%2F2009%2F07%2Fgetting-started-with-adobe-str.html&urlhash=LoE9&trk=news_discuss

Wednesday, July 29, 2009

Skinnign FLV Component

Skinning FLV Playback Custom UI components individually

The FLV Playback Custom UI components allow you to customize the appearance of the FLVPlayback controls within your FLA file and allow you to see the results when you preview your web page. These components are not designed to be scaled, however. You should edit a movie clip and its contents to be a specific size. For this reason, it is generally best to have the FLVPlayback component on the Stage at the desired size, with the scaleMode set to exactFit.

To begin, simply drag the FLV Playback Custom UI components that you want from the Components panel, place them where you want them on the Stage and give them instance names.

These components can work without any ActionScript. If you put them on the same timeline and frame as the FLVPlayback component and there is no skin set in the component, the FLVPlayback component will connect automatically to them. If you have multiple FLVPlayback components on Stage, or if the custom control and the FLVPlayback instance are not on the same Timeline, then Action is needed.

After your components are on the Stage, you edit them as you would any other symbol. After you open the components, you can see that each one is set up a little differently from the others.

Tuesday, July 28, 2009

Send and Load Example


  1. package {
  2. import flash.events.*
  3. import flash.net.*;
  4. public class SendAndLoadExample {
  5. public function SendAndLoadExample() {}
  6. public function sendData(url:String, _vars:URLVariables):void {
  7. var request:URLRequest = new URLRequest(url);
  8. var loader:URLLoader = new URLLoader();
  9. loader.dataFormat = URLLoaderDataFormat.VARIABLES;
  10. request.data = _vars;
  11. request.method = URLRequestMethod.POST;
  12. loader.addEventListener(Event.COMPLETE, handleComplete);
  13. loader.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
  14. loader.load(request);
  15. }
  16. private function handleComplete(event:Event):void {
  17. var loader:URLLoader = URLLoader(event.target);
  18. trace("Par: " + loader.data.par);
  19. trace("Message: " + loader.data.msg);
  20. }
  21. private function onIOError(event:IOErrorEvent):void {
  22. trace("Error loading URL.");
  23. }
  24. }
  25. }

Sunday, July 19, 2009

Dost!!

Dost to rukhsat ho jaate hain,
par kuch yaadon ke dayre ban jaate hain…
Bhool jaana to insaan ki fitrat hai,

par kuch acche dost yaadon mein bas jaate hain..

Friday, July 17, 2009

More AS questions

1. How do you call a static method without using the "Class Name." method name.
2. How would the for in and for each loop give the output tracing values in object.
3. How can you add video cue-point so that u can execute any action upon or middle of video.
4. Skinning of Flv component.
5. How you load one XML and read all the attributes of a node in E4X.
6. How u deal in a situation if your team member is not good @ work.
7. How would u response to a client mail when he has just bashed your project and there is no senior member present in the office.
8. Suppose in 10 hrs of learning...2 days before delivery u come to know that. The product designed is not as per client requirement. The prototype version has many changes suggested by client. How will u deal with this situation.
10. Give example of method overloading and overriding in code.
11. How u access your linked classes to other class in shared library architecture. Syntax
12. How you handle depth in AS3.0
13. 3 ways to execute Java-script from Flash.
14. Why we should prefer FSCOMMAND than GetURL in AS2.0.
15. MVC architecture and implementation.
16. Will u do a copy paste work if required for a project
17. Differences between AS2.0 - 3.0

Sunday, July 12, 2009

The Song of the Free

The wounded snake its hood unfurls,
The flame stirred up doth blaze,
The desert air resounds the calls
Of heart-struck lion's rage.

The cloud puts forth it deluge strength
When lightning cleaves its breast,
When the soul is stirred to its in most depth
Great ones unfold their best.

Let eyes grow dim and heart grow faint,
And friendship fail and love betray,
Let Fate its hundred horrors send,
And clotted darkness block the way.

All nature wear one angry frown,
To crush you out - still know, my soul,
You are Divine. March on and on,
Nor right nor left but to the goal.

Nor angel I, nor man, nor brute,
Nor body, mind, nor he nor she,
The books do stop in wonder mute
To tell my nature; I am He.

Before the sun, the moon, the earth,
Before the stars or comets free,
Before e'en time has had its birth,
I was, I am, and I will be.

The beauteous earth, the glorious sun,
The calm sweet moon, the spangled sky,
Causation's law do make them run;
They live in bonds, in bonds they die.

And mind its mantle dreamy net
Cast o'er them all and holds them fast.
In warp and woof of thought are set,
Earth, hells, and heavens, or worst or best.

Know these are but the outer crust -
All space and time, all effect, cause.
I am beyond all sense, all thoughts,
The witness of the universe.

Not two nor many, 'tis but one,
And thus in me all me's I have;
I cannot hate, I cannot shun
Myself from me, I can but love.

From dreams awake, from bonds be free,
Be not afraid. This mystery,
My shadow, cannot frighten me,
Know once for all that I am He.

By Swami Vivekanand-(1895)

Saturday, July 11, 2009

Top 20 Universities in USA by Happy Schools Blog

Top 20 Universities in USA by Happy Schools Blog

  1. Massachusetts Institute of Technology
  2. Stanford University
  3. University of California–Berkeley
  4. Carnegie Mellon University
  5. Cornell University
  6. Princeton University
  7. University of Illinois–Urbana-Champaign
  8. University of Washington
  9. Georgia Institute of Technology
  10. University of Texas–Austin
  11. University of Michigan–Ann Arbor
  12. University of Wisconsin–Madison
  13. California Institute of Technology
  14. University of Maryland–College Park
  15. University of California–Los Angeles
  16. Columbia University
  17. Harvard University
  18. University of California–San Diego
  19. Purdue University–West Lafayette
  20. Duke University

Friday, July 10, 2009

Tribute to Dinkar!!!

तुझको या तेरे नदीश, गिरि, वन को नमन करूँ, मैं ?
मेरे प्यारे देश ! देह या मन को नमन करूँ मैं ?
किसको नमन करूँ मैं भारत ! किसको नमन करूँ मैं ?

भू के मानचित्र पर अंकित त्रिभुज, यही क्या तू है ?
नर के नभश्चरण की दृढ़ कल्पना नहीं क्या तू है ?
भेदों का ज्ञाता, निगूढ़ताओं का चिर ज्ञानी है,
मेरे प्यारे देश ! नहीं तू पत्थर है, पानी है।
जड़ताओं में छिपे किसी चेतन को नमन करूँ मैं ?

भारत नहीं स्थान का वाचक, गुण विशेष नर का है,
एक देश का नहीं, शील यह भूमंडल भर का है ।
जहाँ कहीं एकता अखंडित, जहाँ प्रेम का स्वर है,
देश-देश में वहाँ खड़ा भारत जीवित भास्कर है ।
निखिल विश्व को जन्मभूमि-वंदन को नमन करूँ मैं ?

खंडित है यह मही शैल से, सरिता से सागर से,
पर, जब भी दो हाथ निकल मिलते आ द्वीपांतर से,
तब खाई को पाट शून्य में महामोद मचता है,
दो द्वीपों के बीच सेतु यह भारत ही रचता है।
मंगलमय यह महासेतु-बंधन को नमन करूँ मैं ?

दो हृदय के तार जहाँ भी जो जन जोड़ रहे हैं,
मित्र-भाव की ओर विश्व की गति को मोड़ रहे हैं,
घोल रहे हैं जो जीवन-सरिता में प्रेम-रसायन,
खोर रहे हैं देश-देश के बीच मुँदे वातायन।
आत्मबंधु कहकर ऐसे जन-जन को नमन करूँ मैं ?

उठे जहाँ भी घोष शांति का, भारत, स्वर तेरा है,
धर्म-दीप हो जिसके भी कर में वह नर तेरा है,
तेरा है वह वीर, सत्य पर जो अड़ने आता है,
किसी न्याय के लिए प्राण अर्पित करने जाता है।
मानवता के इस ललाट-वंदन को नमन करूँ मैं

Saturday, July 4, 2009

JUNIT

Go for the JUNIT for testing ur Java Classes..!

http://junit.sourceforge.net/doc/faq/faq.htm#tests_16

Thursday, July 2, 2009

Choosing Between Timer and Event.ENTER_FRAME

Choosing Between Timer and Event.ENTER_FRAME

As we’ve just seen, the Timer class and the Event.ENTER_FRAME event can both be used
to produce animation. So which one is right for your family? Here are the major factors
to consider:

1. Frame rate is subject to change

When a .swf file is loaded by another application, the frame rate of that application
might be vastly different than the .swf file’s designated frame rate, potentially
causing the .swf ’s animations to play too quickly or too slowly. The loaded
.swf file can, of course, set the frame rate, but that change in frame rate might
cause undesirable playback behavior in the parent application. The Timer class
offers some frame-rate independence (subject to the limitations discussed in the
earlier section “Frame Rate’s Effect on Timer”).

2. Using many Timer objects requires more memory

In decentralized animation management architectures, using a separate Timer to
control the animation of each object requires more memory than would be
required by the analogous Event.ENTER_FRAME implementation.

3. Using many Timer objects can cause excessive screen update requests

In decentralized animation management architectures, using a separate Timer in
conjunction with updateAfterEvent( ) to control the animation of each object
leads to multiple independent requests for screen updates, possibly leading to
performance problems.