Copy link to clipboard
Copied
Hi,
the problem resolved, turns out fail on test movie but it works on the real swf.
second problem "load link image into movieclip problem"
I have these code, what it does is ask user input text to the 'input text' field, it must be a link to an image from somewhere, and then it will load that link(image) into a movieclip on stage.
button1.onPress = function() { <<button1
var linktext = inputText.text; <<inputText is the input text field
trace (linktext);
loadImage(linktext);
}
function loadImage(imageName) {
avatarContainer.avatarHeadOuter.avatarHead.loadMovie(imageName); << avatarContainer is a mc on stage
overlayContainer.overlayHeadOuter.overlayHead.loadMovie(imageName); <<overlayContainer is another mc on stage
overlayContainer.overlayHeadOuter._alpha = 15;
stats.text = imageName; }
when i run on test Movie (ctrl-enter), loadMovie does work.
when I run on actual html after publish, loadMovie does NOTHING. it say something like Flash Player stopped a insecure operation.
My wild guess is problem html file?? is there anything I can do to bypass that secure bs
problem resolved, turns out some pics work and some doesn't, probably some server did something to protect their hosted images.
Copy link to clipboard
Copied
problem resolved, turns out some pics work and some doesn't, probably some server did something to protect their hosted images.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now