Welcome to TalkGraphics.com
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Nov 2006
    Posts
    1,602

    Default 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
    IP

  2. #12
    Join Date
    Nov 2006
    Location
    Hertfordshire
    Posts
    123

    Default 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
    IP

  3. #13
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default 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:
    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/
    Last edited by Egg Bramhill; 08 January 2007 at 01:17 AM.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host
    IP

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •