Answer Posted / 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 View All Answers
What are the different primitive data types used in actionscript?
what is the key advantage of using loadvars instead of loadvariables? : Adobe flash
what is the key advantage of flash being a true clientside application? : Adobe flash
what is the downside of macromedia ui components making extensive use of ingeritance and encapsulation? : Adobe flash
which methods is most likely an event handler? : Adobe flash
which two statements about device fonts are true? : Adobe flash
tell the difference between indexed array and associative array? : Adobe flash
what are the properties can be used to control the order in which the user can tab through the elements in a flash movie? : Adobe flash
Write a program to create custom list in actionscript?
you are creating a project for the flashlite player. You are concerned with the processor capabilities of the device. Which graphic asset would require the most processing power on the player? : Adobe flash
which two textfield events can be captured to trigger scripts to run? : Adobe flash
to what does object drawing model refer? : Adobe flash
can any one tell good training center for adobe flex in chennnai?
you understand from the sb-25 manual that the built-in, retractable bounce card is meant for use with the flash head in a vertical position? : Adobe flash
where is the data pulled by a load variables function stored? : Adobe flash