RSS
email
0

BlazeDS -Server BasedJava Remoting



Welcome to the BlazeDS beta release on Adobe Labs. BlazeDS is the server-based Java remoting and web messaging technology that enables developers to easily connect to back-end distributed data and push data in real-time to Adobe® Flex™ and Adobe AIR™ applications for more responsive rich Internet application (RIA) experiences.

The evolution to more engaging RIAs has created the need for better data connectivity options. Remoting simplifies the reuse of existing server logic automatically marshalling calls between the Flash client and the Java methods on the server. In addition, the use of a AMF binary data transfer format increases performance, allowing applications to load data up to 10 times faster than with text-based formats such as XML or SOAP.

Previously available only as part of Adobe LiveCycle® Data Services ES, Adobe is announcing its plans to contribute the proven BlazeDS technologies to the community under the LGPL v3. BlazeDS gives the rapidly growing Adobe developer community free access to the powerful remoting and messaging technologies developed by Adobe.


More..

Read more
0

Google-OpenSocial



The web is more interesting when you can build apps that easily interact with your friends and colleagues. But with the trend towards more social applications also comes a growing list of site-specific APIs that developers must learn.

OpenSocial provides a common set of APIs for social applications across multiple websites. With standard JavaScript and HTML, developers can create apps that access a social network's friends and update feeds.



Many sites, one API

Common APIs mean you have less to learn to build for multiple websites. OpenSocial is currently being developed by Google in conjunction with members of the web community. The ultimate goal is for any social website to be able to implement the APIs and host 3rd party social applications. There are many websites implementing OpenSocial, including Engage.com, Friendster, hi5, Hyves, imeem, LinkedIn, MySpace, Ning, Oracle, orkut, Plaxo, Salesforce.com, Six Apart, Tianji, Viadeo, and XING.

In order for developers to get started immediately, Orkut has opened a limited sandbox that you can use to start building apps using the OpenSocial APIs.


More..

Read more
0

Detecting MouseWheel in Flash8



Some time we need to scroll MovieClip using MouseWheel , here it is feel free to use ..

file structure(same location)

-MouseWheel.as

-TestmouseWheel.fla


Step1: open New ActionScript class file
Paste the code below

//////////code starts
/////////////////////////////////////////////
// http://sara-intop.blogspot.com //
/////////////////////////////////////////////


//importing the required class
import mx.utils.Delegate;
class MouseWheel extends MovieClip {
/////////////////////////////////////////////
// private variables
//
private var __target:MovieClip;
private var _mouseLis:Object;
/////////////////////////////////////////////
// Constructor function
//
public function MouseWheel(target:MovieClip) {
this.__target = target;
this._mouseLis = new Object();
Initiate();
}
/////////////////////////////////////////////
// private function
//
private function Initiate():Void {
//Using Delegate Class to create listener function, to get class scope to Listener function
_mouseLis.onMouseWheel = Delegate.create(this, DetectMouse);
//adding Listener to mouse
Mouse.addListener(this._mouseLis);
}
//@Param delta contains +3 to -3 depends on the mouse wheel direction
private function DetectMouse(delta):Void {
//Detecting Mouse is over the target MovieClip
if (this.__target.hitTest(_root._xmouse, _root._ymouse, true)) {
this.__target._y += delta;
}
}
//DisposeListener Method to remove listener Objects
public function DisposeListener(_object:MouseWheel):Void{
Mouse.removeListener(_object._mouseLis);
delete _object._mouseLis;
}
}

//////////code ends


Note: save file as MouseWheel.as

Step2: Open New Flash document , Save as TestmouseWheel.fla

Step3: Draw any Rectangular shapes and conver them to MovieClip

Step4: Give any istance name to the MovieClip

Step5: Add the code below in first frame

//////////code starts
var testMouse:MouseWheel = new MouseWheel(_mc);
//////////code ends

Note: _mc is the instance name given in Step4



Code Expanation:


class MouseWheel extends MovieClip {

MouseWheel is the Class name should be same as file name that inherits properties and methods
from MovieClip Class


public function MouseWheel(target:MovieClip) {
this.__target = target;
this._mouseLis = new Object();
Initiate();
}


A Constructor function Will have same name as Class name and File name, will be initiated
when an Object is instatiated from the Class
Here we are passing MovieClip for which we need scroll function
Also we associate the values with the Object
Here this means respective Object of MouseWheel Class


private function Initiate():Void {
//Using Delegate Class to create listener function, to get class scope to Listener function
_mouseLis.onMouseWheel = Delegate.create(this, DetectMouse);
//adding Listener to mouse
Mouse.addListener(this._mouseLis);
}


In Initiate Method we are addListener to Mouse trough Delegate Class
We are using Delegate class to make listener function to class scope means if we dont use Delegate Class
then the this inside listener function denotes listener function itself not the MouseWheel Object


//@Param delta contains +3 to -3 depends on the mouse wheel direction
private function DetectMouse(delta):Void {
//Detecting Mouse is over the target MovieClip
if (this.__target.hitTest(_root._xmouse, _root._ymouse, true)) {
this.__target._y += delta;
}
}

We ar checking If Mouse position is over the MovieClip we are going to scroll


public function DisposeListener(_object:MouseWheel):Void{
Mouse.removeListener(_object._mouseLis);
delete _object._mouseLis;
}

We can Call this Method once we dont need the Listener to listen mouse wheel
in fla

var testMouse:MouseWheel = new MouseWheel(_mc2);
_btn.onRelease = function() {
testMouse.DisposeListener(testMouse);
};

Here we are disposing any listener
Read more
 

Recent Posts

Recent Visitors

Donate Me

About Me

My photo
Chennai, Tamil nadu, India
Nothing more to say about me.. Just a Action Script programmer / Flex developer having 4.5 years of experience.