javascript: {try modestMaps.copyright(
javascript: {try modestMaps.copyright(
this is sent to IE when in standalone or in Test Movie mode.
Internet Explorer returns one or several errors on start and then everytime I clic in the map
however everything work's (except for the constant dialogue box with the error)
what is happening???
Regards!
this is sent to IE when in standalone or in Test Movie mode.
Internet Explorer returns one or several errors on start and then everytime I clic in the map
however everything work's (except for the constant dialogue box with the error)
what is happening???
Regards!
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Due to historical and boring reasons, MapCopyright.as uses javascript and ExternalInterface to get copyright strings.
As a short-term fix, try disabling MapCopyright.
A long term fix will involve porting the javascript code to actionscript, and/or moving copyright strings to map providers or creating a separate copyright provider interface... probably an exercise for another time. -
Inappropriate?I'm rather freshman at this, normally I program C#.
So... how can I do that?
What are these copyright strings that it uses? Why don't they work on executable flash?
Thanks for your fast answer RandomEtc.
Regards.
I’m thankful
-
Inappropriate?ExternalInterface is a built in class for talking to scripts in the host environment of the swf, which is most often a web browser. The MapCopyright class expects the swf to be running in a browser, it wasn't ever tested or written for executable Flash.
-
Inappropriate?Do I have to modify the copyright.js file? It's the only one I find with reference to the class!
-
Inappropriate?Sorry, it seems like the download version on modestmaps.com is out of date, and I'm talking about the version in source control. The MapCopyright class is new and only available in source control right now. Sorry for the confusion.
For the version of Modest Maps downloaded from modestmaps.com you are correct: the copyright functions require the copyright.js file. These functions are called directly by Map.as, e.g. in the callCopyright function. If you comment out that function and all references to it, that should stop your error.
We haven't been testing with the standalone Flash Player, so that's why these things haven't been a problem before.
I’m confused
-
Inappropriate?Great! It works like a charm!
Finally I get no errors and my app is working fine, I made an executable file wich gets positions from a .mdb with Zinc.
steps:
-file Map.as, in the function
private function callCopyright():Void
-commented the line
//getURL('javascript:try{modestMaps.copyright("'+.........
it's perfect now. thanks.
I’m happy
Loading Profile...



EMPLOYEE