Loading External Websites

hey there guys,
   I am in a flash web design class and I am trying to use links to other websites from my swf file.  I have done on (release) {
    getURL("http://www.homestarrunner.com", "_self");} , but all it does is load the safari, but nothing else.  It does not go to the designated website?  Can you help.
Paul

You're using AS2 language. If you're in AS3 you need to use AS3 language.
var myLink:URLREquest = new URLRequest("http://www.whatever.com");
button_btn.addEventListener(MouseEvent.CLICK, goThere);
function goThere(event:MouseEvent):void {
     navigateToURL(myLink);

Similar Messages

  • Load External HTML/Website in Flash (urgent)

    Hi all,
    I've found the codes to load the external html and text in
    flash at run time, but I when I tested most of the html sites
    cannot show very well at all such as videos and swf advanced tag in
    html.So is there any way to load external website into flash at
    runtime?
    Thanks

    you can display it in a popup window or in the same window or in an iframe in the same html page that displays your swf.
    When you say this, do you mean I can create an iFrame on the same html page that displays my swf, and have it be dynamically populated by what the user clicks on the swf?
    yes, exactly.
    use getULR() (as2) or navigateToURL() (as3) with the 1st parameter being the html page you want to display and the 2nd parameter being the iframe "name" property.

  • Loading Images from external website using Applet...

    Hello,
    I want to load an Image from an external website (image hosting site) but I seem to get an error using the following code:
    images.add(ImageIO.read(urlsToGet.pop()));The error is get is something with security...
    Is there any "safe" and usefull way to load an Image from an external website?
    Thanks

    The_Pointer wrote:
    The error is get is something with security...
    Is there any "safe" and usefull way to load an Image from an external website?You need to sign the applet. An applet is normally only allowed to load resources from the host that it came from.
    Kaj

  • Loading external swf movie to website - AS3

    Hi, once again I am stuck because of AS3, it was sooo easy to load external swf in as2.
    I have a very simple website where HOME does not want the external swf to show but all other pages should have the swf running as a main banner on left hand side.
    My site is built with labels - if you click on any other page except "HOME" the swf should load and stay loaded while navigating on the "following pages",  and when you navigate back to "HOME"the banner should unload.
    Should be easy right? I browse the Internet for 2 days and find millions of code, but nothing that works.
    Do I need a Loader placed on the following pages or an empty movie clip (with an instance name?)
    I tried the below, but it only loads if you click on button "l'ambition" first, since this is the frame where the code is placed, and it is of course not unloading on "HOME. I have a keyframe on label "ambition" where I have a Loader box and the code (both running all over the following pages.
    var request:URLRequest = new URLRequest("main_movie_241x700.swf");
    var loader:Loader = new Loader()
    loader.load(request);
    addChild(loader);
    Do I need an EventListener?
    Anyone...? Please hand me complete code since that will help me a lot. You can see the test site here: http://www.gattadesign.fr/CSD/index.html
    Thanks in avance!
    Anna Gatta

    Thanks for taking your time! Much appreciated.
    I like not complicated :-)  So it is now loading from the start - stretching over the whole timeline. How do I controll the visibility during the "HOME" = that is invisible?
    This is the code I use to load the external swf:
    var Xpos:Number=0;
    var Ypos:Number=0;
    var swf:MovieClip;
    var loader:Loader=new Loader();
    var defaultSWF:URLRequest=new URLRequest("main_movie_241x700.swf");
    loader.load(defaultSWF);
    loader.x=Xpos;
    loader.x=Ypos;
    addChild(loader);

  • Host/ Load form to external website

    Hi. We are trying to find a solution to load an Eloqua form on our existing website. Is this possible? Would it be done through using an iFrame? Thanks in advance.

    Thanks for the reply. I have manually implemented jQuery in APEX and using it for other functionality e.g. validation, show/hide item etc. it works fine without any trouble, I am guessing it might be some sort of security issue or bug in APEX that blocking external website post. Not sure though.
    Ta,

  • I'm having problems loading web pages on a vmware workstation 6.05 guest OS using Firefox 3.5.9. I can ping external websites fine from the guest. No proxy. Any ideas?

    I'm having problems loading web pages on a vmware workstation 6.05 guest OS using Firefox 3.5.9. Also tried the latest 3.6 version. I can ping external websites fine from the guest. No proxy. Any ideas?
    == This happened ==
    Every time Firefox opened
    == I installed a guest OS

    I'm using the same swear words as you. There are several threads about this problem - no answers.
    I have a LaserJet 8100N and 8150DN, get the 79.01FE error on the 8150 from print outs from Safari, Firefox, and Preview, for only some sites/documents. CNN.com has become my test site, seems I can crash the printer 90% of the time with their home page at any given time in the day.
    A summary of what I have tried:
    - Upgraded the firmware to the latest for both the JetDirect card and the printer.
    - Swapped the JetDirect cards between the 8100 and 8150.
    - Swapped ram on the 8150 board.
    - Disconnected external trays, bins, and removed extra RAM and hard drives from the 8150.
    - Tried setting the JetDirect link and matching switch port link to 100FD, 10HD, 10FD, 100HD, as suggested by a poster.
    - Tried having client's print to the printer through a XServer Print Server.
    - Can consistently create the error from multiple systems running 10.3.9, 10.4.5, and 10.4.6 (didn't have an install base of 10.4 before 10.4.5).
    Someone in the 'know' (which means they're likely not), said 10.4.7 will likely fix this. Being Apple has not even addressed that the problem exists (that I could find), I doubt the magic fix is a release away.
    Apple's software is triggering something that Windows systems appears not to be, so one could say it's an Apple problem; but ulimately it's HP's software/hardware that is at fault in that it is allowing their system to crash from input alone.
    G4/G5 XServes    

  • Get a window with external website when loading iview

    Hi,
    i wrote a iView which calls a external website with a couple of computed parameters .
    The iview has the following JS code :
    function openSite(){
         var oChild = window.open("https://emea.website.com/login.jsp?un=usernameABC&pw=B0C328098DA439DEC12578B000407BED",  "website","width=768,height=1024");
         return false;
    I call the function in the body  using  onload and as a anchor with onclick.
    So far so good outside the portal. But when i call the iview in the portal nothing happens.
    When i click on the link, it brings me to the correct website.
    My Question : What do I have to do to get the window open within the portal?
    Regards,
    Kai

    Hi,
    i found a solution by myself:
    My body tag was not the only one within the HTML, hence no onload method was called.
    I added a javascript tag and called the javascript function there.
    Thanks for trying to help.
    Kai

  • Bring loaded external swf to the front

    Hi,
    I am now implementing to create a website using side scrolling platform game approach. Since the player/actor (character that moves according to keyborad events) should always be at the top layer, I am having difficulties to get my loaded swf on top of the player. I am currently using Flash cs6 (as3).
    Basically, in my main stage, there are 3 layers. 1 for actionscript, the scond one for player and lastly for background.
    Layer player contains player mc and background mc.
    Background mc contains visual and collisions layers.
    Anything that got to do with visual, i have to put it in visual layer.
    In visual layer i have backgroundcontainer mc
    So, as i put the button in the backgroundcontainer mc to call the external swf, the loaded external swf appears in the container.
    (I am using load/unload snippet code to call the external swf)
    I want the external swf to appear on top of the player.
    for (var fl_ChildIndex_2:int = 0;
            fl_ChildIndex_2 < this.numChildren;
            fl_ChildIndex_2++)
        this.getChildAt(fl_ChildIndex_2).addEventListener(MouseEvent.CLICK, fl_ClickToBringToFront_2);
    function fl_ClickToBringToFront_2(event:MouseEvent):void
        this.addChild(event.currentTarget as DisplayObject);
    Any help would greatly appreciated 

    If you want an object to move atop all others you can just use addChild(thatobject), where thatobject is the item you want to move atop anything else.  I don't know what object(s) your loop is attempting to act on, but it appears to be trying to change the index of all child objects rather than just one.

  • Loading external jpegs

    I have a page that loads external jpegs... however it seems
    totake longer to retireve and display/load the images going through
    flash than it does if i were to display them as html...why is
    this... or am I just wrong. thanks J.

    thanks kglad,...
    the website i have is purely in flash. It communicates with a
    mysql database using php. However as well as being slow at loading
    external jpegs it is also very slow at retrieving and loading data
    from the database.
    When I test the site locally it runs very fast.
    If this was a problem with my scripting (php) wouldn't i
    notice this slowdown when I tested locally?, therefore is the
    problem with my server opposed to my scripting.
    thanks J.

  • "3+40 - 146: failed to load external url adobe.form.embed.min.js"

    I am trying to embed the form into a google website: sites.google.com/site/pjdsptostern, on The PTO Dues tab.It is giving me the error message: 3+40 - 146: failed to load external url adobe.form.embed.min.js. Please help

    For background, start by taking a look at http://forums.adobe.com/docs/DOC-1991.
    It looks to me like google sites has encoded the form embedding inline script.  But I don't see a script include of adobe.form.embed.min.js.  I suspect that tool that you used in google sites does not allow including an external script.
    Also, did you type the script in yourself or did you use the 'Embed' button on the 'Distribute' tab to copy / paste the embed script?  The 'formId' property in your web page is incorrect.  It should be 'mNonzBdS0Ua7ymHHAyBuKw' but appears as 'fmNonzBdS0Ua7ymHHAyBuKw' in your web page -- note the initial 'f' is incorrect.
    The embed script for your form should look like this:
    <script type="text/javascript" src="http://formscentral.acrobat.com/Clients/Current/FormsCentral/htmlClient/scripts/adobe.form .embed.min.js"></script>
    <script type="text/javascript">
    var fmNonzBdS0Ua7ymHHAyBuKw = new ADOBEFORMS.EmbedForm({formId:"mNonzBdS0Ua7ymHHAyBuKw", width:700, transparent:true});
    fmNonzBdS0Ua7ymHHAyBuKw.display();
    </script>
    This script is designed to work from a web page that supports both external and inline script.  Some web page frameworks do not support external script because the external script can violate the design principles of a particular framework.
    -DevRandy

  • NaN with loading external flv

    Hi all
    I'm having some strange diffulties which I can't solve.
    I'm starting off with a website.swf which loads different
    external swf's depending on the button that has been pressed.
    One of those swf's is a file with different buttons to load
    different external flv's.
    While loading a flv a progressbar shows the percentage of the
    loaded part of the flv
    Now: If I play the first video file everything works fine
    While switching to another button to load another flv during
    the loading of the first flv, My percentage says NaN. and stops
    loading.
    On each button I say:
    on (press) {
    stream_ns.close();
    connection_nc.close();
    _parent.videoloader_mc.unloadMovie();
    on (release) {
    _parent.videoloader_mc.loadMovie("movies/binnenkomers01.swf");
    This is the part I use for loading a flv in f.ex
    binnenkomers01.swf.
    stop();
    delete _global.loaded_interval;
    delete _global.connection_nc;
    delete _global.stream_ns;
    delete _global.pctLoaded;
    // video URL
    video1_url = "movies/binnenkomer06_Floriane.flv";
    _global.connection_nc = new NetConnection();
    connection_nc.connect(null);
    _global.stream_ns = new NetStream(connection_nc);
    videoholder_mc.video.attachVideo(stream_ns);
    stream_ns.play(video1_url);
    stream_ns.seek(0);
    // Zet de video op stop om te wachten tot hij volledig is
    ingeladen
    stream_ns.pause();
    _global.playstatus = "pauze";
    play_pauze_mc.gotoAndStop("pauze_lb");
    this.createEmptyMovieClip("progressBar_mc",
    this.getNextHighestDepth());
    progressBar_mc.createEmptyMovieClip("bar_mc",
    progressBar_mc.getNextHighestDepth());
    with (progressBar_mc.bar_mc) {
    beginFill(0xCCE6FF);
    moveTo(0, 0);
    lineTo(300, 0);
    lineTo(300, 23);
    lineTo(0, 23);
    lineTo(0, 0);
    endFill();
    _xscale = 0;
    progressBar_mc.createEmptyMovieClip("stroke_mc",
    progressBar_mc.getNextHighestDepth());
    with (progressBar_mc.stroke_mc) {
    lineStyle(0, 0xCCE6FF);
    moveTo(0, 0);
    lineTo(300, 0);
    lineTo(300, 23);
    lineTo(0, 23);
    lineTo(0, 0);
    progressBar_mc._x = 640;
    progressBar_mc._y = 400;
    this.createTextField("loaded_txt",
    this.getNextHighestDepth(), 0, 0, 200, 22);
    loaded_txt._x = 645;
    loaded_txt._y = 405;
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.color = 0x333333;
    my_fmt.font = "Verdana";
    my_fmt.size = 9;
    my_fmt.align = "left";
    _global.loaded_interval = setInterval(checkBytesLoaded, 500,
    stream_ns);
    function checkBytesLoaded(stream_ns) {
    trace("my_ns.bytesLoaded: "+stream_ns.bytesLoaded);
    trace("my_ns.bytesTotal: "+stream_ns.bytesTotal);
    _global.pctLoaded =
    Math.round(stream_ns.bytesLoaded/stream_ns.bytesTotal*100);
    trace("_global.pctLoaded: "+_global.pctLoaded);
    loaded_txt.text = "loading... "+pctLoaded+"%";
    loaded_txt.setTextFormat(my_fmt);
    progressBar_mc.bar_mc._xscale = pctLoaded;
    if (isNaN(pctLoaded)) {
    clearInterval(loaded_interval);
    } else {
    trace("OK");
    if (pctLoaded>=100) {
    clearInterval(loaded_interval);
    Hope you guys can help me....

    Maybe they have hotlink protection enabled
    "indierockmedia" <[email protected]> wrote
    in message
    news:f3c4mo$ddn$[email protected]..
    > Hi, I am having trouble with some loading issues. I
    design ecards for
    > bands and
    > their tour dates, bio, and video files all load external
    files (text files
    > for
    > bio/tour, flv files for the video, and an swf skin file
    for the video).
    > Its
    > only a problem when I have to embed those ecards into
    sites that don't
    > host the
    > ecard. I have used crossdomain.xml and every fix ive
    read about, and still
    > have
    > issues. Let me detail below:
    >
    > For example, I have an ecard for a band at
    >
    http://bandwebsite.com/ecard/ecard.swf
    > The tour and bio and video files load simply "tour.txt,
    bio.txt,
    > video.flv,
    > skin.swf"). Works great because no external servers are
    being called.
    >
    >
    But when I want to embed the file elsewhere, or use different
    domains,
    > I
    > have issues:
    > I want to embed the ecard on to
    http://www.otherwebsite.com,
    so I can't
    > have
    > it simply call "tour.txt" for example, the ecard will
    think the tour file
    > comes
    > from www.otherwebsite.com/tour.txt. So I call the full
    path
    >
    http://bandwebsite.com/ecard/tour.txt
    > I go to the ecard and click the button to load the tour
    dates. The text
    > box
    > that worked before says "undefined". So I put a cross
    domain file at the
    > root
    > of
    http://bandwebsite.com that
    allows access to files from
    > www.otherwebsite.com. Still getting undefined. I go to
    the embed code for
    > flashobject and have allowscript access to "always".
    Still undefined. I go
    > and
    > add System.security.allowDomain to my timeline and
    specify
    > www.otherwebsite.com. Still undefined. Still won't load
    my video or video
    > skin
    > and text files.
    >
    > Am I missing something?
    >
    > mikey
    >

  • Existing 'load external .flv' code?

    Recently, I found a great little Flash  project that acts like a jukebox for external mp3 song files, and am using it on my website to play my song demos.
    I'm now trying to find if there is an existing solution like that for video.  I just need some way to progressively download video files from my webspace when the thumbnail is clicked... and am now looking into some sort of Flash jukebox.
    I've tried just embedding the video files into HTML, but they don't progressively download for some reason (even though they are saved as Progressive With Compressed Header).  I've even tried using prettyPhoto (...a script that mimics a Lightbox like feature, where the whole page dims, and a floating window appears over your site, displaying any media, and allowing you to move back/forth through your list of media)..... works great, but again, not a progressive download, so you stare at a blank screen for a while.
    Seems the only way it works is if I have the file on YouTube or some other site, then embed it or use the prettyPhoto app.
    So, can someone either tell me how to make the embedded file download (OT, but I figured I'd ask), or point at some existing Flash file that serves as a video jukebox, showing all media on a common window?

    Hi,
    You can load external .flv files which is placed on your web server. You have to add a small amount of AS3 code into your flash document. Please click on the below link
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/media/Video.html
    Please use the sample code which is provided in the bottom of the page. In the code, you will find a line
    private var videoURL:String = "Video.flv";
    In the above line, instead of "Video.flv", you have to give your webserver path like http://www.domainname.com/foldername/videofilename.flv
    (The above code does the progressive download of an video)
    You can play the video through progressive download, by click on an image. To achieve that, you need to place the above code inside the mouse click function of an image.
    Thanks

  • Follow up - DNS (internal domain has same name as external website)

    Hi,
    I am following up with on previous blog entry about resolving an domain internal name to an external website found here:
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/4d97325b-ff3a-4f46-ba6e-dc3f4ff978e1/dns-internal-domain-has-same-name-as-external-website
    On October 30, 2014
    HayashiTech provided a response suggesting the use of netsh interface portproxy on the DC's to resolve this issue. There has been no feedback to this suggestion and I am very curious what opinions are out there for this suggestion as it appears to be the
    best option provided yet.
    Thank you in advance as well for all the great guidance I have found provided by Ace and his followers.

    Interesting question. I've not seen that solution before, but having done a test on my lab setup it certainly seems to work as expected. Eg, using :
    netsh interface portproxy add v4tov4 listenport=80 listenaddress=dc1.abc.com connectport=80 connectaddress=www.abc.com
    on my DC where I've setup a working external domain name with the www record pointing to the website, and the non-www record pointing to the DC, requests to the non-www address are successfully being redirected to the www address (after confirming it didn't
    happen prior to adding the portproxy).
    So on the face of it that does look like a workable solution. I haven't used it myself in anger obviously, but the two downsides I can think of immediately to this solution are :
    1) This operates as a proxy, so unlike the IIS method that Ace mentioned where it would tell the client to go to the www address instead (so the client connects direct), this method keeps your DC acting as a middle man, eg all communications to that address
    go through your DC rather than direct from the client to the website. Depending on what they're doing on the website this may or may not be an issue for you.
    2) Since the client is continuing to connect to the DC throughout, if you ever did need the have something on the DC responding to port 80 then you could have issues. That said, according to
    https://technet.microsoft.com/en-us/library/cc731068(v=ws.10).aspx the portproxy listenaddress can be a FQDN rather than IP, so that could mitigate any issues there.

  • SSO to external website from portal

    We want to do a single sign on to an external website (non-sap). I know for SAP we can do a logontickets. But for non-sap external websites are there ways to do a SSO? Please help.

    please don't cross-post, see SSO to external website from portal
    kr, achim

  • I am trying to edit my website which was composed in iweb. I have my website saved on my hard drive. When I open iweb, I can't seem to load the website folder into iweb for editing purposes. Anyone know a quick solution to this?

    I am trying to edit my website which, was composed on iweb about 2 years ago. I have the website stored on my hard drive. When I open iweb, I can't figure out how to load the website into iweb for editing purposes. Any help would be greatly appreciated! Thanks

    You need to migrate to a modern, supported webpage development application and leave iWeb behind.  It hasn't been supported for 2 years now and was behind the curve feature wise when it was dropped by Apple.
    One app that many have migrated to because it is very similar to iWeb in the GUI and features is Everweb.  It has a demo version that you can try.  Text and photos from you current published site can be copied and pasted into Everweb to help the migration over.
    There are other possible candidates.  Just search the iWeb forum for "iWeb alternative" or "iWeb replacement" to get a list of topics discussing them.

Maybe you are looking for