Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to Communicate with JavaScript?

Answers were Sorted based on User's Feedback



How to Communicate with JavaScript?..

Answer / murali

yes, it's possible to communicate with java script.

how,

there three methods

using getURL("javascript:name of th url,width, hight");

fscommand

ExternelInterface

Is This Answer Correct ?    16 Yes 3 No

How to Communicate with JavaScript?..

Answer / satyendra dewangan

Using getURL method in AS 2.0..we can possibly call
javascript function..

Syntax:-

getURL("javascript:weightMIN('"+argument+"');");


If you want to call javascript function:-

function weightMIN(val){

alert(val);
}


OR

You can use also ExternalInterface class in flash AS 2.0..
import flash.external.*;

var methodName:String = "goHome";
var instance:Object = null;
var method:Function = goToAdobe;
var wasSuccessful:Boolean =
ExternalInterface.addCallback(methodName, instance, method);

var txtField:TextField = this.createTextField("txtField",
this.getNextHighestDepth(), 0, 0, 200, 50);
txtField.border = true;
txtField.text = wasSuccessful.toString();

function goToAdobe() {
txtField.text = "http://www.adobe.com";
getURL("http://www.adobe.com", "_self");
}

Is This Answer Correct ?    5 Yes 3 No

How to Communicate with JavaScript?..

Answer / madhusudhan

To call javascript using flash

getURL("javascript:name of the function");

but better to call with ExternalInterface it supports all is
6 firefox also ...

import flash.external.ExternalInterface;
ExternalInterface.call("name of the function with out round
brackets")

Is This Answer Correct ?    2 Yes 0 No

How to Communicate with JavaScript?..

Answer / sankar farshore

var retval:int =
ExternalInterface.call("some_js_function()", "the-argument");
if u want to pass the arguement and if function return
anything u capture using above method

Is This Answer Correct ?    2 Yes 1 No

How to Communicate with JavaScript?..

Answer / satyendra dewangan

Using getURL method in AS 2.0..we can possibly call
javascript function..

Syntax:-

getURL("javascript:weightMIN('"+argument+"');");


If you want to call javascript function:-

function weightMIN(val){

alert(val);
}


OR

You can use also ExternalInterface class in flash AS 2.0..
import flash.external.*;

var methodName:String = "goHome";
var instance:Object = null;
var method:Function = goToAdobe;
var wasSuccessful:Boolean =
ExternalInterface.addCallback(methodName, instance, method);

var txtField:TextField = this.createTextField("txtField",
this.getNextHighestDepth(), 0, 0, 200, 50);
txtField.border = true;
txtField.text = wasSuccessful.toString();

function goToAdobe() {
txtField.text = "http://www.adobe.com";
getURL("http://www.adobe.com", "_self");
}

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Flash Action Scripting Interview Questions

what are the different design patterns available in flash?

3 Answers  


which actionscript method should be used to bring a component from the library to the stage? : Adobe flash

0 Answers  


How to create a logo using pen tool?

0 Answers  


who can create flash movies? : Adobe flash

0 Answers  


Tell me what are the functions used with flash media?

0 Answers  


which statement best describes what the #initclip num and #endinitclip commands indicate? : Adobe flash

0 Answers  


it seems that most recommendations for using fill flash talk about using -1.3 to -1.7 stops of flash compensation. This seems like very little flash (compared to the ambient exposure). Would not -.5 or -1 stop be better? : Adobe flash

0 Answers  


at which point can you start usability testing? : Adobe flash

0 Answers  


what is the key advantage of flash being a true clientside application? : Adobe flash

0 Answers  


Explain what are the differences between javascript and actionscript?

0 Answers  


Write a function that responds to a click anywhere on the page by displaying an alert dialog. Display the event name if the user held Shift during the mouse click. Display the element name that triggered the event if the user held Ctrl during the mouse click.

2 Answers  


tell the difference between indexed array and associative array? : Adobe flash

0 Answers  


Categories