Re: LoadMovie from a website
thanks Availor,for the remark on my,not yet,completed site
If you use the method of loading one swf into another
the second becomes a part of the first one
therefor you can put some scripting in swf 1 and have it do something in the second(when loading into sprite/mc)
Gr.Hans
Re: LoadMovie from a website
I’ve just done it using the following code which is pretty much the same as you tryed, I did notice a typo error in your first post Availor, you put “ “around the target MC, I know this might be stating the obvious but have you also given your target MC an instance name
loadMovie("http://www.adomain.co.uk/pic1.swf",my_MC);
manny2k
Re: LoadMovie from a website
Sorry Availor I wasn't with you in the first post. In the Blank swf place the following code on frame1:
Code:
loadMovieNum("http://www.availor.com/flash/target.swf",1);
You can then just change target.swf on your server to have it show the new file. (Unless it's been cached on the viewers computer)
I've just tried it here by loading a swf to the forum with a link back to a swf on my site and it loaded fine. I took it down after as I just wanted to test it. If you PM me i'll give you a url so you can test it yourself.
Cautionary note: Allowing swf files that you have no control over nor any knowledge of their contents is a security risk for your sites server.
Although this article is about clickTags it holds equaly true here as you've no idea whether the click is being directed to an http site or elsewhere.
Here's the relevant text from the link below:
Quote:
Note: The ActionScript in this Flash advertisement is verifying that the clickTAG URL begins with "http:". This is an important security measure. If you do not take this precaution, a malicious HTML page could source your SWF and pass a clickTAG URL that begins with "javascript:" or another scripting pseudo-protocol. If your ActionScript code were to call getURL with a maliciously crafted JavaScript URL, it would be possible for the site serving the malicious HTML page to obtain the contents of your HTTP cookies or perform other actions on your site's behalf.
http://www.adobe.com/resources/richm...signers_guide/