Please, Please I need help

Thanks to whom answered my question
I know from applet you can use ShowDocument in the applet context to go to a different link, how can I grab a link/URL like www.whatever.com into a buffer in the applet, is that can be done, is that violate applet security.? i used DataInputStream and it works fine for links inside the server where the applet runs but anyone can help me to find a solution for downloading a URL source code inside an applet?
Tim

Taken from this site, i don't remmember the url:
What are applets prevented from doing?
In general, applets loaded over the net are prevented from reading and
writing files on the client file system, and from making network
connections except to the originating host. This mean you cannot let your applet connect to urls others than the machine where the .class file comes from. So, to answer your question, what you would like to do is violating applet security concept. The solution is to run another application on the server that does the job and talk with your applet.
If you're running on your computer, then you can change security restrictions to allow those actions. But in that case, i recommend you make an application instead of an applet.
Xe.

Similar Messages

  • Please I really need help with this video problem.

    Hi!
    Please I need help with this app I am trying to make for an Android cellphone and I've been struggling with this for a couple of months.
    I have a main flash file (video player.fla) that will load external swf files. This is the main screen.When I click the Sets Anteriores button I want to open another swf file called sets.swf.The app is freezing when I click Sets Anteriores button
    Here is the code for this fla file.
    import flash.events.MouseEvent;
    preloaderBar.visible = false;
    var loader:Loader = new Loader();
    btHome.enabled = false;
    var filme : String = "";
    carregaFilme("home.swf");
    function carregaFilme(filme : String ) :void
      var reqMovie:URLRequest = new URLRequest(filme);
      loader.load(reqMovie);
      loader.contentLoaderInfo.addEventListener(Event.OPEN,comeco);
      loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progresso);
      loader.contentLoaderInfo.addEventListener(Event.COMPLETE,completo);
      palco.addChild(loader); 
    function comeco(event:Event):void
              preloaderBar.visible = true;
              preloaderBar.barra.scaleX = 0;
    function progresso(e:ProgressEvent):void
              var perc:Number = e.bytesLoaded / e.bytesTotal;
              preloaderBar.percent.text = Math.ceil(perc*100).toString();
              preloaderBar.barra.scaleX =  perc;
    function completo(e:Event):void
              preloaderBar.percent.text = '';
              preloaderBar.visible = false;
    btHome.addEventListener(MouseEvent.MOUSE_DOWN,onHomeDown);
    btHome.addEventListener(MouseEvent.MOUSE_UP,onHomeUp);
    btSets.addEventListener(MouseEvent.MOUSE_DOWN,onSetsDown);
    btSets.addEventListener(MouseEvent.MOUSE_UP,onSetsUp);
    btVivo.addEventListener(MouseEvent.MOUSE_DOWN,onVivoDown);
    btVivo.addEventListener(MouseEvent.MOUSE_UP,onVivoUp);
    btHome.addEventListener(MouseEvent.CLICK,onHomeClick);
    btSets.addEventListener(MouseEvent.CLICK,onSetsClick);
    function onSetsClick(Event : MouseEvent) : void
              if (filme != "sets.swf")
                          filme = "sets.swf";
                          carregaFilme("sets.swf");
    function onHomeClick(Event : MouseEvent) : void
              if (filme != "home.swf")
                          filme = "home.swf";
                          carregaFilme("home.swf");
    function onHomeDown(Event : MouseEvent) : void
              btHome.y += 1;
    function onHomeUp(Event : MouseEvent) : void
              btHome.y -= 1;
    function onSetsDown(Event : MouseEvent) : void
              btSets.y += 1;
    function onSetsUp(Event : MouseEvent) : void
              btSets.y -= 1;
    function onVivoDown(Event : MouseEvent) : void
              btVivo.y += 1;
    function onVivoUp(Event : MouseEvent) : void
              btVivo.y -= 1;
    Now this is the sets.fla file:
    Here is the code for sets.fla
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    var video:Video;
    var nc:NetConnection;
    var ns:NetStream;
    var t : Timer = new Timer(1000,0);
    var meta:Object = new Object();
    this.addEventListener(Event.ADDED_TO_STAGE,init);
    function init(e:Event):void{
    video= new Video(320, 240);
    addChild(video);
    video.x = 80;
    video.y = 100;
    nc= new NetConnection();
    nc.connect(null);
    ns = new NetStream(nc);
    ns.addEventListener(NetStatusEvent.NET_STATUS, onStatusEvent);
    ns.bufferTime = 1;
    ns.client = meta;
    video.attachNetStream(ns);
    ns.play("http://www.djchambinho.com/videos/segundaquinta.flv");
    ns.pause();
    t.addEventListener(TimerEvent.TIMER,timeHandler);
    t.start();
    function onStatusEvent(stat:Object):void
              trace(stat.info.code);
    meta.onMetaData = function(meta:Object)
              trace(meta.duration);
    function timeHandler(event : TimerEvent) : void
      if (ns.bytesLoaded>0&&ns.bytesLoaded == ns.bytesTotal )
                ns.resume();
                t.removeEventListener(TimerEvent.TIMER,timeHandler);
                t.stop();
    The problem is when I test it on my computer it works but when I upload it to my phone it freezes when I click Sets Anteriores button.
    Please help me with this problem I dont know what else to do.
    thank you

    My first guess is you're simply generating an error. You'll always want to load this on your device in quick debugging over USB so you can see any errors you're generating.
    Outside that, if you plan on accessing anything inside the SWF you should be loading the SWF into the correct context. Relevant sample code:
    var context:LoaderContext = new LoaderContext();
    context.securityDomain = SecurityDomain.currentDomain;
    context.applicationDomain = ApplicationDomain.currentDomain;
    var urlReq:URLRequest = new URLRequest("http://www.[your_domain_here].com/library.swf");
    var ldr:Loader = new Loader();
    ldr.load(urlReq, context);
    More information:
    http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7de0.html
    If you're doing this on iOS you'll need to stripped SWFs if you plan on using any coding (ABC) inside the files. You mentioned iOS so I won't get into that here, but just incase, here's info on stripping external SWFs:
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/

  • Hi , please i seriously need help on my 4s

    Cos i have tried to download the latest ios using iTunes , icloud , settings and hard resets but still i cannot access my applications
    and when i try to log-in to my  store or iTunes from my phone it ask for the latest version of ios. m
    my phone's version is 6.0.1 (10A523)
    please am tired of the phone i need help..........
    thanks

    Make a backup to iTunes or iCloud.
    Restore your device to factory settings.
    Update to the newest iOS.
    Restore your backup to your device.
    How to back up - Apple Support - http://support.apple.com/kb/HT1766
    Update your iPhone, iPad, or iPod touch - Apple Support - http://support.apple.com/kb/ht4623

  • Zen MicroPhoto Problems! PLease,I Really Need Help!!

    hello everybody, i bought a zen microphoto 4GB in June and it worked perfectly until two days ago. I turned it on like i do everyday to listen to music on my way to school. i downloaded the newest version of firmware onto it'sthree days before. when i turned it on, it went into recovery mode. so i went to reboot, and it goes back into recovery mode. i tried about 3 times, then it disabled all the functions. i couldn't control anything. so i took out the battery, and left it until i came home. i come home, put in the battery, turn it on. i plug it in the computer, and the computer does not reconize that its docked and the screen goes white and then it shuts off by itself. then it just freezes, it refuses to turn on. i tell my friend?yesterday at school and he said the hard dri've crashed and now i have a brick the size of a zen microphoto. is this true, or?is something else wrong with it. please someone help if you can. Creative Zen MicroPhoto 4GBfirmware dowloaded 3 days before--ZENMicroPhoto_PCFW_6__30_04.exepurchased- June 0, 2006 with product replacement plan from best buy?Message Edited by barylakamil on -0-20062:23 PM

    If you cannot even reach recovery mode any more you will need to contact customer support. If you are in the USA you get a 3month parts and labour warranty and a year parts warrantyMessage Edited by ts on -0-20060:36 PM

  • Please i really need help with my i phone 4s it wont charge unless its shut down but also...

    So my i phone 4s wont charge unless its turned off but it will charge but it wont read on my laptop usb or any one elses  so no i tunes reset , its just been a hassle i dont have icare and the back glass panel has a thin singular crack and the lock buttons broke so my dad said sprint wont fix it On top of all this my lock button is broken so i can even do a hardware reset , an since this is a hammy down phone i dont know the security code to do the manual reset from the general settings so help please i have alot of stuff to do since im still having schooling and i need it fornot only social interactions but a organizer pleaseeee help me figure out what to do?!?!

    Sadly your iPhone sounds like it's not worth repairing.. I am sorry only a replacement phone will fill the bill...

  • SOS... PLEASE, I REALLY NEED HELP... MAC IS HAVING TROUBLE BURNING...

    Hey guys,
    I am burning from IDVD, but after burning 2-3 DVDs on Dual Layer DVD's, it KICKS me out of the program. When this happens, I have to go BACK again and start the long burning process of rendering the menus, etc, etc... I don't know what's happening. Is it that the Mac has a problem? Or is this normal to render and burn an hour long DVD? So far, it has taken me the whole afternoon to burn JUST 2 DVD's. Is that normal? Also, is there a way to tell the MAC to burn a certain amount of copies, just like the Adobe Premier gives us that option? I can't seem to find that option anywhere. I have to burn 100 DVD's for Monday... I REALLY need your help.
    Thanks,
    Claudia.

    If you've already created the disk image file (projectx.img), open disk utility (go 'utilities'>'disk utility').
    If the disk image file doesn't show on the left hand side, drag the .img file there then select it. Hit the burn icon on the top left hand side of the disk utility window, then put in the dvd and choose the burn speed - you get better player compatibility and burn reliability if you burn at a slower speed - e.g 4x.
    I've got 50 to do for Monday and so I feel your pain. The projects I'm burning are about 75 mins long and doing it this way, to burn at 1X takes about 1 hour, 4X takes about 20 mins.
    Like Zak, I've no experience of DL discs so you may want to post and/or search the iDVD forum.

  • SOS... PLEASE, I REALLY NEED HELP... IDVD IS HAVING TROUBLE BURNING...

    Hey guys,
    I am burning from IDVD, but after burning 2-3 DVDs on Dual Layer DVD's, it KICKS me out of the program. When this happens, I have to go BACK again and start the long burning process of rendering the menus, etc, etc... I don't know what's happening. Is it that the Mac has a problem? Or is this normal to render and burn an hour long DVD? So far, it has taken me the whole afternoon to burn JUST 2 DVD's. Is that normal? Also, is there a way to tell the MAC to burn a certain amount of copies, just like the Adobe Premier gives us that option? I can't seem to find that option anywhere.
    I've converted the project into disk image on the desktop but once it's as disk image and I try to open it, it displays a window which has several files but when I click on them nothing happens, they don't open. I don't know what why.
    I have to burn 100 DVD's for Monday... I REALLY need your help.
    Thanks,
    Claudia.

    Claudia
    You need to a make disc image from the file menu within iDVD6 ....can you do that?
    Click Here
    From the disc image you can make as many copies as you wish and you won't have to wait long hours for encoding the entire project all over again.
    Also I need you to tell us how much available hard drive space you currently have on the main HD / startup volume. You need at least 20GB's Do you have this kind of HD space or not?
    iDVD6 will start the whole process all over again each time you quit from the app itself....but it normally offers up the option to keep making additional copies without quitting. Apparently this feature either isn't working properly for you or perhaps you missed this particular dialog box.... I don't know.
    Nevertheless, keep in mind that iDVD6 is an authoring program and wasn't really written as a burn tool. That's not one of it's stronger points. Leave the burning to DVD-R media to either apple's disc utilities or roxio toast where you can also lower the burn speed to 4x or lower.
    Hope this Helps but if not just come on back.

  • PLEASE, I REALLY NEED HELP!

    Last week, my ipod starting doing something really wierd. It toggles back & forth from the apple logo, then it will suddenly cut off. It will do this about 5 more times, then it will say the battery is very low and to plug it in. After I plug it in, it will still do the same thing. I can't access anything. Not even a screen to restore the ipod back to factory settings. What else should I do?
    HELP!

    See if these help.
    iPod shows only an Apple logo and doesn't start up.
    Only the Apple logo appears when turned on.
    If none of the above help, then it may be an issue that requires service.
    You can arrange online service here.
    Service request.
    Or if an Apple store is near you, take it there and have them check your iPod.
    You can make an appointment by using this link.
    Genius Bar Appointments.

  • Please i really need help bad with installation

    I bought dreamweaver 8 long time ago worked on my other
    computer wit xp, i bought another computer vista in it and
    installed dreamweaver all it does is I see the logo and then it
    turns off the program, so i tried and downloaded a trial version of
    CS4, of course i uninstalled dreamweaver 8, cleaned my registry and
    hidden folders and installed it and the same deal i only see the
    logo and it shuts off the program, so i downloaded the CS3 same
    deal. could anybody plllleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeease help
    me out. whats going on?
    i hate frontpage.

    What version of Vista are you using?
    Also with CS4, if it is not working that is something that
    would be better suited for Adobe support since they do support CS4
    and Vista.

  • MOVED: URGENT, please I really need help :(((

    This topic has been moved to Intel Core-iX boards.
    https://forum-en.msi.com/index.php?topic=161285.0

    It's because you are trying to update the iPod with an older software version than that already installed.
    You may have some success with the suggestions here.
    iPod service error.

  • I can't open or uninstall or even touch firefox without being asked to restart my computer (and that dosen't help) after upgrading to FF 4, please someone I need help!

    somthing went wrong when I upgraded to firefox 4 and I bitterly regret it all now.

        Deauthorize all of your computers and authorize the computers you use.
        http://support.apple.com/en-us/HT6283
      A new Mac comes with 90 days of free tech support from AppleCare.
      AppleCare: 1-800-275-2273
    Best.

  • Please i really need help on this

    My ipod wont turn on and hold button is off and been plugged into wall charger since 8pm last night and still nothing. anyone have any ideas?

    Try these.
    My iPod won't turn on.
    My iPod has no power.
    My iPod won't wake up.
    iPod battery doesn't charge.

  • Please I really need help with this one.

    Ok I have this problem where I hook my ipod up and it works fine connects and is recognized. However, when i start trying to move music to it or transfer information using it like a jump drive it suddenly disconnects. At this point it is no longer recognized by my computer unless I restart my computer. In device manager it shows up as an unknown device and when i check the status of it, it says no device drivers installed for this device. What could be the problem here?

    http://docs.info.apple.com/article.html?artnum=93499

  • Bought a blocked iphone need help please?

    I bought a iphone 4 off gum tree and when I went to pick up the phone was dead, I took it home and charged it only to find out that the iphone is blocked and has a 4 digit pin that I can't unlock. How can I over come this issue and how much would it cost. I spent £130 on this for my girlfriend as a birthday gift, please I realy need help with this as I can't afford to buy another or pay to much to unlock it.

    Use iTunes to restore your iOS device to factory settings - http://support.apple.com/kb/HT1414  - "You can use iTunes to restore your iPhone, iPad, or iPod touch to factory settings and the latest version of iOS. Restoring iOS software deletes all your data and content from your device, including songs, videos, contacts, photos, and calendar info."
    You may encounter problems fully restoring if Activation Lock is active - http://support.apple.com/kb/HT5818

  • Need help about boot SUNFIRE V120

    Hi all....
    I need help about how to change boot from boot net to boot disk....
    after i installed sun solaris 10 at my sunfire v120, then reboot the machine ... this sunfire still boot from net not from disk...
    can i change it?
    please i really need help ....
    thanks

    If its booted, try "eeprom boot-device=disk"
    If your at the OBP, "setenv boot-device disk".
    If that doesnt work check the value of "diag-switch?".
    It could be booting off the the diag-device instead

  • Need help in Overwriting result in text file

    Sorry, im new to Labview.
    My situation is
    this.
    I can store the name and the result and i have the index.
    Now
    I'm having a problem on overwriting result i had in text file.
    I
    give you an example.
    Now in my text file i have a name of a
    student and the result.
    i wan to overwrite the result of the
    student.(this is just an example.)
    can someone guide me please?
    really
    need help as this is my school project.
    Thanks!
    i'll attach my program i have done soon.

    you got the wrong idea.
    i do not want to replace the file to a new file.
    what i want was to edit the exsiting file if the same name appear twice.
    Example:
    in my text file i have already had the name of example Tom and result 80
    and now i input the same name and diff result.
    i wan was to overwrite the result. 
    my project was similar to this here is my attachment of my project
    Attachments:
    LOCATOR.vi ‏19 KB
    TESTCAR.txt ‏1 KB

Maybe you are looking for