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 ? | 5 Yes | 3 No |
Post New Answer View All Answers
if we set slow sync as you suggest in answers on the many online forums you visit, would not we be opening ourselves up to blurred shots when the shutter speed gets significantly below 1/60? : Adobe flash
which of the external actionscript files must you #include in your movie in order to use flash remoting? : Adobe flash
which statement best describes what the #initclip num and #endinitclip commands indicate? : Adobe flash
in general, non-mp3 digital audio destined to be imported into the flash mx authoring environment should first be compressed how much? : Adobe flash
which of the following is not a guideline for conducting effective usability testing? : Adobe flash
What are the features provided by actionscript 3.0?
Hi All, I am new in flash so please help me, When I make a website on Flash & when we wright code on buttons in AS2[CODE: on(release) gotoAndStop ()], we found when we click twice on a button the page automatically switch. (means, code do not work properly). Thanks,
what is the purpose of the break statement? : Adobe flash
Give an example that illustrates polymorphism in flash script.
explain the flash vs. Animated images and java applets? : Adobe flash
Why is flash being discontinued?
which text anti-aliasing property setting will result in the smallest swf file size? : Adobe flash
can any one tell good training center for adobe flex in chennnai?
what is the downside of macromedia ui components making extensive use of ingeritance and encapsulation? : 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