troubleshooting Question

An https: link does not work in flash when uploaded but ok on my desktop

Avatar of tomdenton
tomdenton asked on
Web DevelopmentAdobe FlashMultimedia Programming
14 Comments1 Solution550 ViewsLast Modified:
Hi, thanks to help already from some of you guys I have a nice Google translate option built into a flash file. But I have one major issue - it works fine when run the swf on my desktop but not when uploaded to my website (1and1 host). This full version has many other features and links built in that work ok but the Google V2 translate part does not.

I have pasted the code for a simple version without any other clutter. This has the same issue as the full version ie it works ok locally but not online at:
it has one button for the code and one textbox for text purpose. I have left my Google key in for test purpose and will change this later.

The google link is https and all my others are http - not sure if that is an issue?

Suggestions appreciated (oh I have wrapped the swf in html and uploaded /Scripts as created by Dreamweaver)
on (release) {
	var result_lv:LoadVars = new LoadVars();
	result_lv.onData = function(str:String) {
		var lines:Array = str.split('\n');
		for(var l:Number = 0; l < lines.length; l++){
			var line:Array = lines[l].split('"translatedText": "');
			if(line.length == 2){
				var translatedText:String = line[1].substring(0, line[1].length - 1); // remove last "
				txtContent.text = translatedText.split('\\r').join('\n').split('\\"').join("'"); 
	var lorem_lv:LoadVars = new LoadVars();
	lorem_lv.key = "AIzaSyAwg6uekHRiwxjj62NNUtmBkRzTkfgKDB8";
	lorem_lv.prettyprint = true;
	lorem_lv.source = "en"; = "es";
	lorem_lv.q = txtContent.text;
	lorem_lv.format = "text";
	lorem_lv.sendAndLoad("", result_lv, "GET");
Join our community to see this answer!
Unlock 1 Answer and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros