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 the advantage of progressive video download? : Adobe flash
which text anti-aliasing property setting will result in the smallest swf file size? : Adobe flash
Explain what does the void function and object contain in actionscript?
How many methods for depth are available?
what is generally considered the ideal group size for usability testing? : Adobe flash
you want to skin flash cs3 components. What should you do? : Adobe flash
what is the effect on the instances of a symbol if the symbol itself is changed? : Adobe flash
Can you explain what are the changes presented by actionscript?
Name the as3 components?
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
Write a program to create custom list in actionscript?
in which level does the original movie resides? : Adobe flash
what is the best reason for using the geturl command, instead of the fscommand, when communicating with the host application? : Adobe flash
which two are symbol options when converting an object into a symbol? : Adobe flash
which of the assumptions cannot be made when developing an application for intranet deployment? : Adobe flash