Tuesday, July 31, 2007

Communicate Swf to Swf using Local Connection

here comes the easy way to commnuicate the between swf to swf in the Html
Page.
Add following codes in the Frame Action
reciever.fla
sender.fla
//code for sender
var sender = new LocalConnection();
sendTextToMovieB_btn.onPress=function(){
sender.send('connectionID_movieA_to_movieB','executeOnReceive',input_text.text);
};

/*
Here we sending data action on button named 'sendTextToMovieB_btn' from
the input box value named 'input_text' using local connection 'sender'
*/
//code for receiver
stop();
var receiver = new LocalConnection();
receiver.executeOnReceive = function(receiveText){
display_text.text = receiveText;
};
receiver.connect('connectionID_movieB_to_movieA');
/*
Using the local connection 'receiver' receives the sender data by
executeOnReceive function and assign the receiveText to the dynamic text
named the instance 'display_text'
*/

Saturday, July 21, 2007

Communicate external source ActiveX from Flash [Security]

By default Flash disables external source ActiveX for security reason, to activate the domain list to allow the flash communicate with external ActiveX in the project.
 
System.security.allowDomain(domainName);

Sunday, July 15, 2007

To rid the border style of scrollpane in flash

To rid the border style of scrollpane in flash use the script

this.scroll.setStyle("borderStyle", "none");

Adobe News