Problems with URL in CS5

Hello, all.  I'm having a simple but very frustrating problem in Flash CS5 with Actionscript 3.  I'm trying to set up a link in an image, when you mouseover the image, it says video and I want to be able to click on it and have it lead to a new URL.  I've gotten the swinging right and have tried (what seems like) every actionscript code out there.  Currently I have:
/* Click to Go to Web Page
Clicking on the specified symbol instance loads the URL in a new browser window.
Instructions:
1. Replace http://www.adobe.com with the desired URL address.
Keep the quotation marks ("").
help_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage);
function fl_ClickToGoToWebPage(event:MouseEvent):void
navigateToURL(new URLRequest("http://www.adobe.com"),
"_blank");
Which is the basic code snippet, but it won't load adobe.com or any other site and doesn't show any error messages.  Might anyone have any thoughts or suggestions?
Thank you in advance,
Katie

You could look in the help, as you need to learn to use trace - it's very useful for debugging. That being said - you just do like:
function fl_ClickToGoToWebPage(event:MouseEvent):void
     trace("fl_Click was called successfully");
     navigateToURL(new URLRequest("http://www.adobe.com"), "_blank");
If the function is called, you will see the text appear in the Output window.

Similar Messages

  • Problem with URL File download

    Hi every one i am facing a problem with URL File read Technique
    import java.awt.Color;
    import java.io.DataOutputStream;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.net.URL;
    import java.net.URLConnection;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JProgressBar;
    public class JarDownloader
         boolean isSuccess = false;
         public JarDownloader(String url)
              downloadJar(url);          
         public boolean isDownloadingSuccess()
              return isSuccess;
         private File deleteExistingFile(String filename)
              File jarf = new File(filename);
              if(jarf.exists())
                   jarf.delete();
              return jarf;
         public static void main(String args[]){
              new JarDownloader("url/filename.extension");
         private void downloadJar(String url)
              try
                   URL jarurl = new URL(url);
                   URLConnection urlc = jarurl.openConnection();
                   urlc.setUseCaches(false);
                   urlc.setDefaultUseCaches(false);
                   InputStream inst = urlc.getInputStream();
                   int totlength = urlc.getContentLength();
                   System.out.println("Total length "+totlength);
                   // If the size is less than 10 kb that means the linkis wrong
                   if(totlength<=10*1024)throw new Exception("Wrong Link");
                   JFrame jw =new JFrame("Livehelp-Download");
                   JPanel jp =new JPanel();
                   jp.setLayout(null);
                   JLabel jl = new JLabel("Downloading required file(s)...",JLabel.CENTER);
                   jl.setBounds(10,10,200,50);
                   jp.add(jl);
                   JProgressBar jpbar = new JProgressBar(0,totlength);
                   jpbar.setBorderPainted(true);
                   jpbar.setStringPainted(true);
                   jpbar.setBounds(10,70,200,30);
                   jpbar.setBackground(Color.BLUE);
                   jp.add(jpbar);
                   jw.setContentPane(jp);
                   jw.pack();
                   jw.setResizable(false);
                   jw.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
                   jw.setLocationRelativeTo(null);
                   jw.setSize(220,150);
                   jw.setVisible(true);
                   int readlngth=0;
                   int position=0;
                   byte[] readbytes = new byte[totlength];
                   while(totlength-position > 0)
                        readlngth = inst.read(readbytes,position,totlength-position);
                        position+=readlngth;
                        jpbar.setValue(position);
                   File jarf = deleteExistingFile(filename);
                   jarf.createNewFile();
                   //FileWriter fwriter=new FileWriter(jarf,true);
                   FileOutputStream fout = new FileOutputStream(jarf,true);
                   DataOutputStream dout = new DataOutputStream(fout);
                   dout.write(readbytes);
                   dout.flush();
                   dout.close();
                   inst.close();
                   jw.setVisible(false);
                   jw.dispose();
                   isSuccess=true;
              }catch(Exception ex)
                   isSuccess=false;
    }From the above code i received the total length of the PAGE content (i.e here url is a file) when i tried to find the size of that file it return -1.
    please help me

    I think the real problem is that you don't check the return value from read (it's probably less than data.length indicating an incomplete read). Isn't there a readFully somewhere?

  • Problem with URL:s containing scandinavian characters (Office 2013 / Firefox / SP 2010)

    We are encountering problems with document opening when URL contains scandinavian characters (ä,ö). This issue occurs only with Office 2013 when using Firefox. With IE it works just fine. And Office 2010 works nicely as well.
    Error message: "We can't connect to 'https://intra.../Test powerpoint.pptx' Please make sure you're using the correct web address".
    This issue only occurs when document or document set name contains scandinavian characters. If I rename it, document opens without any problems. 
    Any idea how I could fix this?

    Hi Law, try changing the settings in the library to "open in client application." You should also read the following links for solutions:
    http://sharepoint.stackexchange.com/questions/16938/why-is-word-document-created-from-template-saved-locally-instead-of-to-the-docu
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/ec048a1f-e6cc-481d-8f46-308823568b56/cannot-save-documents-to-sharepoint?forum=sharepointadminprevious
    cameron rautmann

  • Problem with Pen Tool CS5

    Hi,
    I just got Photoshop CS5 and I'm having a bit of trouble with the pen tool - namely, I can't see the path I'm creating.  In CS3 I could clearly see the line between two points but in the new program the line is nearly invisible making it very difficult to create the path.  Is this a setting I can fix?
    thanks

    I was having 32 bit while I upgraded from CS3 to  CS4. The only problem with CS4 that time was with pen tool.Though I cannot precisely recall , I can say it t was very lazy and very frustrating and this was resolved totally after shifting to 64 bit.--If urs existing system is 32 bit try with 64 bit

  • Problem With Brushes Pressure CS5

    Hello all.
    I'm using a Photoshop Cs5 with a Wacom Cintiq 12wx Tablet (I'm using PC with WinXP).
    I'm having some problems withe the pressure, it doesn't work on Photoshop, (I tried it on CS3 & CS5), and I did clicked on the Tablet options in PS.
    The pressure just don't responds.
    I Think its becuse I can't change the Minimum Diameter in any Brush.
    Plus when I change the Control part to Pen Pressure, a little warning sign is appering ( a triangel with an exclamation mark insaid ), how ever when I click on it [to see what the problem is ,nothing happens].
    I have to point out that in the Cintiq Tablet Properties it's all fine, the pressure respond(in the meter)
    I tried making a different settings for Photoshop, it didn't help. Can any one Pleas help me?

    Usually, this is an issue with the wacom driver needing to be updated.
    A few people have also found that the Windows tablet settings can also mess things up.

  • Problem with Zoom in CS5

    Hi, I've been having a problem with the zoom in CS5. I've looked around the web for a solution but no luck.
    Basically when I zoom out the image becomes pixelated unless its at 50% zoom. The same image with the exact same zoom will look absolutely fine in CS4.
    Example:
    http://img691.imageshack.us/img691/3761/46991735.jpg

    People sometimes report that the OpenGL based zoom in Photoshop CS5 makes their images seem soft.  Your observation seems to be the opposite.
    It sounds as if you're not actually getting font rendering in OpenGL, and maybe you need to update your video drivers (or maybe your video card just won't do that function).
    Are you seeing the same behavior if you change the Advanced settings for OpenGL in Edit - Preferences - Performance?  FYI, I just tried it and I see the same jaggies on huge fonts reduced to 66.67% with OpenGL off, which is to be expected.
    However, with OpenGL on, I see this:
    -Noel

  • Problem with reset in cs5

    with ctrl alt shift to reset, i noticed this created problem with normal setup.
    things i noticed are that you can't open new file, it returns error message and you have to go to prefence and off open gl drawing to fix them.
    and other thing if the mask black/white erasing doesn't work so well.
    seems the hardness for brushes whether its 100 or 25, looks the same, i don't remember seeing this before in cs5, should reflect strenght between stronger /weaker erasing.

    things i noticed are that you can't open new file, it returns error message and you have to go to prefence and off open gl drawing to fix them.
    That just means that your video card driver has some bugs, and needs to be updated.
    The error messages tell you that there is a problem with your video card driver.

  • Problem with MathType and CS5 due to InDesign

    We publish Math and Science curriculum and we run into the problem below.
    the second bullets is imported wrong in CS5. Is there a work around? (I also emailed Design Science). We'd rather use CS5 since all our other subjects are done in CS5 and we want to be able to use spanning across columns which does not exist in CS4.
    The same happens when using MT Extra instead of Euclid Extra.

    BTW, Jongware, I was a bit unfair about the fonts. You can sign up for the 30-day free trial of Mathtype and then you get the fonts. Furthermore, the strong implication is that you need not delete them after the trial period is over, and therefore you also can extract them from the installer for use like this with no compunctions (which is what I did). Source: MathType: Font Installers.
    redesign: Moving right along, just like Jongware, when I open your CS4 document in CS4, I see the same behavior Jongware saw and the same behavior you saw in CS5 (which I also see in CS5), namely the goofy circle glyph (seems to be GID 64 and U+F069):
    I did have to turn on high-resolution previews, though otherwise I got something else entirely.
    I notice, however, that you seem to have authored this file using some 3rd party plugins:
    Since that seems to be a math-related plugin, it doesn't seem inconceivable that it is part of the issue.
    I suggest you disable it and re-test in CS4.
    The font does seem a bit goofy...The goofy circle glyph appears in FontForge, as a ccwcontourcircle, but not in
    standard Mac font apps, like TextEdit. It's also the 'i' position in the font.
    I don't know enough about fonts to dig and really figure out why you get one character when it is first and another when it is second, but I really don't think this is InDesign. Oh, right, let's look at the EPS file in another program...
    Curiously, Preview.app indeed shows the bullet glyph in the first position (and in the second).
    Adobe Illustrator, which I opened by accident (ha!), shows ccwcontourcircles.
    So it seems that Apple and Adobe's EPS renderers treat this font differently.
    I suppose it might be an Adobe bug, but I'm more inclined to suspect its ambiguous... The way the ccwcontourcircle is encoded seems strange to me.
    Well, I think that's enough for me. Basically, Jongware and I see consistent behavior with CS4 and CS5 — oh, actually. Are you using CS4 and CS5 on the same machine? Or on different machines? Because...I suspect this is handled by the AGM library, and it may well be that using CS4 on a machine with CS5 makes it use CS5's AGM library. But that might not be true at all, just speculation.
    Anyhow, I'm not sure what Jongware's newfound Adobe Support optimism is based on. I suspect you'll hear from Design Science in the next day or two, and maybe from Adobe by September. But perhaps I am too pessimistic on Adobe Support right now.
    I suppose making it consistently ccwcountour doesn't help you overmuch though. Hrmm.

  • Problems with URLs in flash launching in IE/XP

    I am unable to launh URL imbedded in html with flash on IE
    under XP. All other platforms work fine.
    sample below;
    onClipEvent (enterFrame) {
    this.text5="<p>Lorem ipsum</p><p>Visit the
    <a href='
    http://www.url.com'
    target='_blank'><u>Link</u></a></p>";
    Scrattching my hair out on this one.
    Michael

    Are you trying to upload from individual Domain.sites files? It looks as if the redirects aren't working, and that's due to problems with index.html files--a common issue in '08 if you are trying to publish individual sites from separate/individual Domain.sites files. Moreover, the site(s) you are looking for may not show up because they may not even be on the server anymore. Domain.sites2 files, (iWeb2.0.1) will erase previously published sites on the iDisk when published.
    Your username url wants to go to a site that doesn't seem to exist anymore on the server: HerringMemorabilia.
    Best thing to do at this point is to have a look at the server itself. Use the Go menu in the Finder to navigate directly to the iDisk sites files, and see what is and what is not actually on the server:
    Go/iDisk/My iDisk/Web/Sites/SitesShouldBeHere/
    Also, while you are there, take a look at the directory that 1.1.2 used:
    Go/iDisk/My iDisk/Web/Sites/iWeb/SitesShouldBeHere/
    Once you see what is there you will be in a better position to diagnose the problem, e.g., issues with index.html files.

  • Programming Web Item. Problem with URL creating

    Hi,
    I am trying to programm a own Web Item.
    I derived from the class CL_RSR_WWW_ITEM_VIEW.
    Everything is worken fine. I just have a problem with
    the creation of links.
    In the WAD there is the very nice way of using SAP BW URLs
    like:
    <SAP_BW_URL cmd="PROCESS_HELP_WINDOW"
    help_service="ZPRINTING"
    item="TABLE_1"
    suppress_repetition_texts=""
    P_PREVIEW_MODE=" ">
    Is the a method or something similar to do the same with abap?
    Greetings
    Mike

    I found  out mayself!
    You just have to use the object CL_RSR_PARAMETER.
    There you can add parameters.
    Then use the method get_url of the object CL_RSR_WWW_PAGE to make a URL string out of it.
    Mike

  • Problems with Playback in CS5, CS4 (gotoAndPlay command)

    I've encountered a really frustrating issue a couple times now throughout the past year, both in CS5 and CS4.  I get to a certain point in a project where it just seems Flash does not want to cooperate anymore.  It's difficult to even explain what the issue is because it doesn't seem to  be triggered by one thing in particular, and often produces different results.  It's almost as if the file becomes corrupted. 
    Here's what will happen:
    *I will create symbols and place each one in its own frame on the main timeline, so that I can see them easily.  The assets will usually contain animation inside the symbol. When I'm working on a particular symbol, I will put a gotoAndStop command on the first frame of the main timeline, pointing it to the symbol I want to test.  So if I'm making a tea kettle, and have placed it on frame 4, I will put a "gotoAndStop(4);" command on the first frame.
    *At a certain point, I will start having problems with test movies using this gotoAndStop method, even if I don't change any the scripting.  Sometimes it will turn off layers that aren't supposed to be guides.  Other times it will show me a blank frame.  If I replace the gotoAndStop command with a  stop command on the particular frame I want, my project will display correctly. 
    If it were a relatively small project, I would deal with it and test everything with the Stop command.  However, this is a fairly big, complex project, and in my experience, this issue seems to contaminate other files that these assets are copied to.
    *I've double checked the scripts inside of the symbol, which are all simple "stop();" or "gotoAndPlay("label");" commands, and there's no error showing up in the Output window.
    *The most random things will trigger this problem.  Sometimes, it's adding a shape tween to the symbol.  Other times, I could turn off the background layer in the main timeline by making it a guide, and all my other layers would show up.  But this background layer shouldn't affect anything, as it only has a "stop();" command inside.  I was able to fix the problem once by saving the FLA as an Uncompressed Flash Document (xlf).  When I opened the new file, it would play back correctly, but eventually, it'd break again. 
    I was having similar problems in CS4 on another project.  In one case, we discovered we could fix the problem temporarily by deleting a single tiny line in one of the symbols.  Eventually, it would pop up again, though.  Another time, I could fix it by blowing away all the linkage identifiers, but that doesn't seem to be working this time. 
    It's very odd.  Anyone have any ideas?

    She didn't export it for CS4. If she had it wouldn't be an INDD file. She needs to export to IDML and you need to realize that this document may not look like it does in CS5.
    You do need to upgrade if you want to work successfully with this other designer. Worth noting, in case you don't, is that you cannot upgrade individual components of the suite. Personally, I recommend Design Premium as the best bang for the buck.
    Here's why: http://www.theindesignguy.com/purchase-advice.shtml
    You find a link a Amazon on that page, which as far as I can tell is the best place to buy with free shipping and for the most part no sales tax.
    Bob

  • Problems with URLs generated for My/BEx Portfolio in a FPN

    Has andone successfully configured a FPN that uses My/BEx Porfolio?
    We are facing a problem with the URLs generated when launching a BEx web query stored in either My Portfolio or BEx Portfolio after it has been saved from the BEx Web Analyzer.  After saving the KM document in My/BEx Portfolio in BEx Analyzer attempts to execute the link from the Portfolio IView result in "Page not found or not avaialble".  The KM document appears to be correct as it can be opened correctly from the BEx Analyzer template.
    Current Setup:
    Consumer Portal:  EP 7 (SP17)
    Producer Portal: EP 7 (SP17 patch 11)
    BW System: BI 7 (SPS16, BW SP18)
    SSO and Trusts are configured and working.
    WebDav is configured to store BEx Portfolio entries on the Consumer
    Currently RSPOR_T_PORTAL is configured with hostname of Producer, however it was initially configured with Consumer host, resulting in the same problem, though this should not matter, as the RDL IView is used regardless of the setup.
    Scenario:
    Existing Roles have been imported from BW System into Producer Portal, the roles are not used, only the imported IViews
    IViews of the Queries have been included in Consumer Roles using RDL
    IView has been added to this role to display local BEx Portfolio links
    RDL IView has been added to this role to display Producer My Portfolio links
    1. Launch IView of Query included in Role
    2. Use Save As functionality to store KM document in My Portfolio or Bex Portfolio
    3. Open the cooresponding Portfolio IView and click on the link
    Here's an example URL resulting from launching the link
    http://pportal.lhoist.com:50000/irj/servlet/prt/portal/prteventname/navigate/prtroot/pcd!3aportal_content!2fevery_user!2fgeneral!2fdefaultDesktop!2fframeworkPages!2fframeworkpage!2fcom.sap.portal.innerpage?BOOKMARK=D4UE3NQC7T5MUXILOGH6GV7LC&BI_TARGET_IVIEW=fpn%3AEP%2Fpcd%3Aportal_content%2FLhoist_BI%2FRoles%2FLhoist.MyReporting%2FStandardReports_2%2FSales%2FProfitability%2FSales_Quantity%2FMPXXSAP103_00000071%3AhRPQZv3B9%252BE66ckUgr9%252Fcg%253D%253D%3A1%3A&NavigationContext=fpn:EP/pcd:portal_content/Lhoist_BI/Roles/Lhoist.MyReporting/StandardReports_2/Sales/Profitability/Sales_Quantity/MPXXSAP103_00000071:hRPQZv3B9%2BE66ckUgr9%2Fcg%3D%3D:1:&windowId=WID1231315538117
    Thank you.

    In fact I have exported a master file and I have brought it into Compressor.
    Master file exported from Final Cut:
    Transcoded file:
    Compressor is not able to open the file it has just transcoded:

  • Problem with URL - Applet

    hi, i have a little problem running my applet. it's supposed to get a file from the WWW and display its contents as a string inside a JTextArea. the file on the web is a simple .txt containing little text, say one sentence, its irrelevant here. the file is read in inside a different class that the applet calls. however, there seems to be a problem with that - maybe it has something to do with Applet restrictions. anyway. here goes:
    the applet (i removed all irrelevant applet construction objects like buttons etc) -
    public class Applet1 extends JApplet {
    private JTextArea sisestaJutt;
    private String juttVeebist;
    public void init() {
    URLReader veebist = new URLReader();
    try {
    juttVeebist.equals( veebist.reader());
    catch(Exception e) {
    Container sisu = new Container();
    sisestaJutt = new JTextArea(juttVeebist);
    sisu = getContentPane();
    sisu.setLayout( new BorderLayout() );
    sisestaJutt.setBorder(brdr);
    sisu.add(sisestaJutt, BorderLayout.CENTER);
    the called class (& method) -
    public class URLReader {
    public static String reader()
    throws Exception {
    URL jjstreet = new URL("http://www.anydomain.com/file.txt");
    BufferedReader input = new BufferedReader(
    new InputStreamReader(
    jjstreet.openStream()));
    String inputLine = input.readLine();
    input.close();
    return inputLine;

    thank you everyone for information, it's getting clearer to me already. sounds like signing would do the trick.
    however, i first tried this thing on a localhost - thats the server-program and applet at the same place, even writing in the same dir... but the text ment to be inside the textarea is still from a URL, so i guess applet has trouble getting input from the www then...
    anyway, JFrame is working very good + it has the comfortable command line feel in it =)
    ty all.

  • Photomerge problems with CS4 and CS5

    I am having all kinds of sudden problems with Photomerge that I never had before (with CS4).  I do very big files and have multiprocessor MacPro and 16 gigs of RAM and whether I use CS4 interactive or CS5 with the Ul plugin in 32 bit Photoshop is just crashing half way through the operations.  I am very annoyed that the new CS5 does not have interactive in 64 bit as any automatic function almost never does the merge properly.  But at the moment nothing is working with either Photoshop.
    Any ideas and will Adobe implement interactive in photomerge in 64 bit?  I am a professional doing large scale pieced-together murals and need the interactive mode and in 64 bit to utilize all the RAM and the ability of the architecture of the system.

    Some Win7 reading
    Win7 Help http://social.technet.microsoft.com/Forums/en-US/category/w7itpro/
    Win7 Configuration Article http://windowssecrets.com:80/comp/100218
    Win7 Monitor http://windowssecrets.com:80/comp/100304
    Win7 Optimizing http://www.blackviper.com/Windows_7/servicecfg.htm
    Win7 Adobe Notes http://kb2.adobe.com/cps/508/cpsid_50853.html#tech
    Win7 Adobe Update Server Problem http://forums.adobe.com/thread/586346?tstart=0
    Win7 Photoshop http://forums.adobe.com/thread/511916?tstart=0
    Processes http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx
    Also hardware setup
    A link with many ideas about computer setup http://forums.adobe.com/thread/436215?tstart=0

  • Problems with Mpeg2 using CS5

    Hi there
    I am having problems with Mpeg2s.
    The sequence preset is HDV 1080i25 (50i) and exported at 1440x1080i 25 High Quality.
    When I encode my video and play it back on Windows Media Player or Realplayer at certain points the sound crackles and then a couple of frames jump. I have encoded it a few times and it often happens around the same place each time. If I only encode a certain section of it the jump still occurs but at a different point. Sometimes it happens more than at others.
    I encoded enough instances of the video to stitch it back together on a new sequence and encode that without any of the jumps. When I imported all of the mpeg2s on to the sequence to do this the jumping wasn't happening at all when played out on Premiere Pro. Also it doesn't happen as obviously when played in Nero.
    So basically I would like to know why there is only a problem when I play the Mpeg2s in Windows Media Player and Realplayer but not when I play them within a project in Premiere Pro CS5? Is it a problem that can be fixed in Premiere Pro or whether it is a problem with Windows and Realplayer?
    It is all seriously puzzling to me. I will appreciate any help directed my way, I have seen this problem on other forums but no-one seems to have an answer.
    Cheers.

    I agree with Jim. Many experience similar issues in WMP, and I did not know that RealPlayer was still around.
    I use VLC, or MediaPlayer Classic HC (both free), and find them much better than WMP, in almost all respects. There is a similar thread in the CS4 sub-forum, and it seems that WMP is the big culprit there.
    Good luck, and let us know if VLC, GOM or MediaPlayer Classic HC do better jobs, playing the files.
    Hunt

Maybe you are looking for