problem link to an android app url
good morning. i use this code for a mc to link me to a given url. When I test it in animate (test movie) it works perfectly, but when I upload the aab file to android and test it in my movie it doesn't let me access the url...
I don't know if it will be some Google limitation.
I send the code:
package com.kglad {
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.net.URLRequest;
import flash.net.navigateToURL;
public class PieHome extends MovieClip {
private var url:String = "https://www.google.es/";
private var request:URLRequest = new URLRequest(url);
public function PieHome() {
this.addEventListener(Event.ADDED,addedH);
}
private function addedH(e:Event):void{
market_mc.addEventListener(MouseEvent.CLICK, buy);
}
function buy(e:MouseEvent) {
try {
navigateToURL(request);
}
catch (e:Error) {
}
}
}
}Thanks for the help
