[Flashjs] cannot load the javascriptproxy

xiao jie pamxhaha at yahoo.com
Sun Feb 4 12:51:22 EST 2007


hi:
I am developing  online application and I want to use the flash and javascript toolkit to generate dynamic charts/graphs.
 I was learning it using the material from this link http://www.communitymx.com/content/article.cfm?cid=D7491&print=true, hoever when I publish the souce fla file, I got error saying 
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 1: The class or interface 'com.macromedia.javascript.JavaScriptProxy' could not be loaded.
     import com.macromedia.javascript.JavaScriptProxy;
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 3: The class or interface 'JavaScriptProxy' could not be loaded.
     var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this); 
Total ActionScript Errors: 2   Reported Errors: 2
my Actionscript file :
import com.macromedia.javascript.JavaScriptProxy;
var proxy:JavaScriptProxy = new JavaScriptProxy(_root.lcId, this); 

function addItem(item:Object):Void {
  list.addItem(item);
}
function transferItemToJavaScript():Void {
  if(list.selectedItem != null) {
    proxy.call("addItem", list.selectedItem);
    list.removeItemAt(list.selectedIndex);
  }
}
transferButton.addEventListener("click", mx.utils.Delegate.create(this, this.transferItemToJavaScript)); 

 
I copied the com folder into my webcontent/example directory where I store all my jsp pages and the fla source files. 
but it seems that the AS file cannot load the JavascriptProxy file.
can any one help me on this issue please.


thanks a lot!
Isidore


 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/flashjs_osflash.org/attachments/20070204/373f258f/attachment.htm


More information about the Flashjs mailing list