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 is generally considered the ideal group size for usability testing? : Adobe flash
Differentiate between as2 and as3.
What will replace flash in 2020?
what is the primary difference between the xml.sendandload method and the xml.load method? : Adobe flash
can any one tell good training center for adobe flex in chennnai?
Write a program use a text field and display it using the actionscript?
where to start the adobe flash? : Adobe flash
Explain what does the void function and object contain in actionscript?
What is the use of pre-loader?
How to add an effect to the movie clip?
when should one generally use the post method instead of the get method? : Adobe flash
the f601/n6006 had a special control to set the fill-flash option on the body; is there a similar way to set fill levels on the f90x/n90s and sb-28 combo? : Adobe flash
to what does object drawing model refer? : Adobe flash
you have a rectangle shape with rounded corners. You want to ensure that the corners do not distort when the rectangle is scaled. What should you do? : Adobe flash
which text anti-aliasing property setting will result in the smallest swf file size? : Adobe flash