Open in same window and clean cache from swf + html file generate with InDesign CS5

Hi,
1)
I have a Indesign web file exported to swf + html.
In my document I have a button that point to url (this url is html file of a second Indesign swf + html).
When I click on button, the url was find an open in another window.
Is it possible to open this second url in the same window?
If yes How.
I think this information is in the swf file and not in html.(How modify the swf code?)
2)
How to clean the cache when you reload the url? (in the html generate file)
I'will very please if somebody of you could help me. it's Important for me.
Regards
Philippe

Okay, I found the code but I can't get it to work locally.  If you have a web server maybe you can upload the files (swf and html) after you Publish them:
import flash.net.URLRequest;
import flash.events.MouseEvent;
var myURL:URLRequest = new URLRequest ("http://www.google.com");
testlink.addEventListener(MouseEvent.CLICK, clickText);
function clickText(myevent:MouseEvent):void {
navigateToURL(myURL, "_self");
you have to have on the stage a link element called "testlink" (see the code above) which would be a Movie Clip with the label testlink.  It can be anything from InDesign:  a button, a rectangle, a circle, a graphic, you get the idea.  Just select that object in Flash and label it testlink or anything you choose but if you change the name from testlink also change the name in the code snippet where the line "addEventListener" is.

Similar Messages

  • Safari 5.1 not loading MOST of the times. like 1 in 100 attempts it works fine, and that too, as long as you work in same window. and what's the webkit2webprocess.exe file?

    safari 5.1 not loading MOST of the times. like 1 in 100 attempts it works fine, and that too, as long as you work in same window. and what's the webkit2webprocess.exe file?

    the webkit2webprocess.exe has something to do with the sound. Safari works fine for me, except for the occasional time when the webkit2webprocess.exe crashes. Sometimes it crashes Safari altogether but sometimes it just reloads all the tabs I have opened. Either way, it's a huge pain. I hope they fix it with an update soon.

  • Getting links and its names from a html file

    Hi everyone
    My problem about the a getting links with name from a html file. For example
    İn a web page in this site ?SUN? when use click SUN the browser open http://java.sun.com
    İ want both of them, so the links and name. I can succeeded the get link but i don t know how to get the link name.
    For example :
    <B>setRightComponent(Component)</B>
    &#304;n this code segment i want to get B tag. But how i don t know. To get A tag i used this code
    List result = new ArrayList();
    try {
    // Create a reader on the HTML content
    URL url = new URI(uriStr).toURL();
    URLConnection conn = url.openConnection();
    Reader rd = new InputStreamReader(conn.getInputStream());
    // Parse the HTML
    EditorKit kit = new HTMLEditorKit();
    HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
    kit.read(rd, doc, 0);
    // Find all the A elements in the HTML document
    HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
    while (it.isValid()) {
    SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
    String link = (String)s.getAttribute(HTML.Attribute.HREF);
    if (link != null) {
    result.add(link);
    it.next();
    &#304; can use B tag but i don t know hot to get its value because it has no prefix such as HREF....
    i am sorry if i use a bad explanation style or incorrect word.

    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    class GetLinks
        public static void main(String[] args)
            throws Exception
            // Create a reader on the HTML content
            Reader reader = getReader( args[0] );
            // Parse the HTML
            EditorKit kit = new HTMLEditorKit();
            HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
            doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
            kit.read(reader, doc, 0);
            // Find all the A elements in the HTML document
            HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
            while (it.isValid())
                SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
                String href = (String)s.getAttribute(HTML.Attribute.HREF);
                int start = it.getStartOffset();
                int end = it.getEndOffset();
                String text = doc.getText(start, end - start);
                System.out.println( href + " : " + text );
                it.next();
        // If 'uri' begins with "http:" treat as a URL,
        // otherwise, treat as a local file.
        static Reader getReader(String uri)
            throws IOException
            // Retrieve from Internet.
            if (uri.startsWith("http:"))
                URLConnection conn = new URL(uri).openConnection();
                return new InputStreamReader(conn.getInputStream());
            // Retrieve from file.
            else
                return new FileReader(uri);
    }

  • Navigatetourl won't open in same window and in infinite refresh

    I have a project that requires a skip button and to go to a specified url in the same window once the animation is complete. The button works, however the navigatetourl in the last frame is not behaving.
    Here is the code I've placed in the last frame:
    addEventListener(Event.ENTER_FRAME, fl_EnterFrameHandler);
    function fl_EnterFrameHandler(event:Event):void
        //Start your custom code
        // This example code displays the words "Entered frame" in the Output panel.
        navigateToURL(new URLRequest("http://www.student.nvcc.edu/home/amlayne/ite170/dreamweaver/graded_assignments/index.html"), "_self");
        stop();   
        // End your custom code
    I've tried moving it to an earlier frame, placing a stop in the earlier frame, moving the stop command to after and so on. No matter what I do, the new url opens in a new window and is in a constant state of refresh. I also have the loop turned off but the animation begins to load the first frame again anyway.  Please help. I've tried many fixed listed in forums that are all about the same with no different results.  You can view my animation here: http://www.student.nvcc.edu/home/amlayne/ite170/flash/graded%20assignments/myintro.html
    NOTE: You will have to close the browser to get the refresh to stop.
    I've been working on this one issue two days and am at a complete loss.

    Any thoughts on why my button now won't open in the same window? I'm getting a sense the built in code snippets don't work as they should, or I'm just making silly mistakes. Here's the code:
    btnSkip1.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
              // Start your custom code
              // This example code displays the words "Mouse clicked" in the Output panel.
    navigateToURL(new URLRequest("http://www.student.nvcc.edu/home/amlayne/ite170/dreamweaver/graded_assignments/index.html"), "_self")
              // End your custom code

  • I have recently bought a MacBook Pro, and have downloaded my PSCS3 for windows on the windows side of mac, and then using Paralells, downloaded my pictures ( or opened directly in windows and downloaded, BUT by RAW CR2 files don't download?

    I have recently bought a MacBook Pro, and downloaded my windows version of PSCS3 in Windows and am accessing it via Windows direscly or via paralells, BUT PS does not download my CR2 files, only the jpegs from my Canon 20D. PLease can someone help.
    Thanks
    W.L.L.

    I don't have a Mac but use this Adobe TechNote to solve problems with RAW files in ACR:-
    http://kb2.adobe.com/cps/407/kb407110.html

  • Open a web page and pass values from a java file

    Hi,
    I need to open a web page and pass values in the text boxes.
    Finally submit needs to be triggered. All this needs to be done from a java file. i.e instead of entering my values in a web page and submit, i need to do it from my java file..
    Any inputs so that I proceed in the right direction..or is there any alternate way to achive this ??
    Thanks in advance..
    Sid

    I hava found a lines of jaa that can open a URL , lets say www.net.java
    You can open it writable or not.
    It is half of the job you need.
    If you are interested.
    I am wrinting a program to print a URL , and have developed this small
    code.
    Angel Portal

  • Opening the Canvas window and the Timeline from the browser

    I am on an Intel 2x2.66 Dual Core using OS 10.4.11 and working in FCP 6.04.
    I know this is a stupid question but having been a composer all my life, I am not up to speed on FCP and I seem to be unable to find the answer in my manual.
    I dragged a QuickTime movie to the browser window. It is 500x375 in dimension and uses a H.264, AAC codecs. (info I got from the Get Info window).
    The video shows up and plays in the Viewer window but I cannot get the Canvas window nor the Timeline to open.
    I have tried selecting the sequence from the list in the browser and then control clicking it and looking at the shortcut menu there. The manual says I should choose Open Timeline from this shortcut menu but that is not even a choice I have. I don't mean it is grayed out, I mean there is no Open Timeline choice on the menu.
    As an alternate, the manual suggests selecting the sequence and then choosing View > Sequence in Editor. I tried this also. There is no Sequence in Editor choice under the View menu. There is a Clip in Editor choice but when I select that it simply opens the movie in Quicktime.
    I am aware that I am probably forgetting something simple or doing something stupid but I cannot figure it out. Help would be much appreciated.
    Thomas

    the simple fact that is being eluded to here is that without an active sequence in the project (shown in the browser) there is no canvas or timeline. If you delete your sequence from the browser, the timeline and canvas will disappear, and you will have to create a new sequence, then open that sequence by double clicking it, to get those windows back. Canvas and Timeline display sequence content. No sequence, no c/t.

  • I used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for this?

    i used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for this

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I have some trouble with Safari!  Everytime i google something, I expect safari to open the link i click in the same window and same tab - as it did before - but now it always opens a new tab! I'm getting really tired of that! So please help me!

    I have some trouble with Safari! 
    Everytime i google something, I expect safari to open the link i click in the same window and same tab - as it did before - but now it always opens a new tab! I'm getting really tired of that! So please help me! I want safari to open the google search link in the same window and tab! How to fix that?
    Please help me!!!
    Thank you!

    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.

  • HTML and XML files open in same window(KM Navigation iView)

    Hi All,
    I have created a KM navigation which is pointing the folder inside the documents repository. This folder contains HTML and XML files. It is rendering fine. But, when I click on the file links in KM Navigation iView, it is opening in new window.Here I need to open in same window. How can I acheive this?. Please help me.
    Thanks & Regards,
    Venkatesh R

    Hi ,
    check the below thread and try options mentioned in it
    https://www.sdn.sap.com/irj/sdn/thread?threadID=72594
    Koti Reddy

  • Menubuilder- Open in Same Window?

    I have the advanced link setting for my links as "Open in
    same window." The links continue to open in new windows. Is this
    feature not desinged to launch the files in the same window as the
    menu. Please help. Thanks.

    Hi MissDona
    I'm going to say "it depends". Normally, this is the default
    behavior. But it likely will depend on the output type you are
    creating. For example (and I'm somewhat assuming you fall into this
    category) if you create .EXE output from MenuBuilder, a new
    instance or window always opens, as MenuBuilder packages up the
    Flash Player inside the .EXE. Thus, this version of the player runs
    from a temporary location and has no clue about other movies and
    whatnot.
    Cheers... Rick

  • When I try open a .pdf file my Adobe Reader 11 only allows the download / save opening the related window and don't show me both options 1) open with ... and 2) save as.... probably someone flagged the choise... always perform this way ....

    When I try open a .pdf file my Adobe Reader 11 only allows the download / save opening the related window and don't show me both options 1) open with ... and 2) save as.... probably someone flagged the choise... always perform this way ....
    Could some one give help and let me know where I can probably find the settings option that allows me to change and switch to previous situation where it was possible to decide time to time how to proceed either opening the file or saving it ??
    Thanks in advance
    David

    What is your operating system?
    Open a PDF from where?  If online, in what browser?

  • How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0, How can I use terminal to make links open in same window the default behaviour, as it was in Safari 5.0

    In Lion, the default of pressing a link on a web page, is to open the page in a new tab. In itself, I do like this because this is what I did for 19 out of any 20 links, which I command+clicked in previous Safari versions.
    However, there is a snag to this behaviour. Most (all?) secure site do not like links to be opened in a new tab. For example, when I am doing Web banking, The the linked page doesn’t open in new tab. Rather I get a page telling me my login session is expired. Probably a security measure instituted by my bank.
    I since found out, that a command-click opens lings in the same window. Theoretically that solves the problem, if I would think about this all the time. I don't. Old habits die slowly.
    Is there a terminal command to make links open in same window the default behaviour, as it was in Safari 5.0.

    Hi Eric,
    I got it figured out today, basically you have to load the Parallel Flash Loader first into FPGA ram. It is a special .sof file (pfl_epXXXX.sof) based on your FPGA. Code is actually pretty straight forward, using the Sys Exec VI. Use the windows based programmer to generate the .cdf file that identifies your FPGA, attached Flash and .pof file .
    Syntax was odd going into Sys Exec. Note the extra "C" in in front of the "quartus_prm.exe" I have no idea why that was needed, but I was getting an error until I just happened to put it in there (Blind Luck :-))
    I used a 2 element array going into a four loop
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG -o P;pfl_epXXXX.sof
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG S_FPGA.cdf
    Defining the working director C:\altera\12.1sp1\qprogrammer\bin
    And added match string with "Successfully performed operation" on the output in the loop to make sure everything loaded correctly then adding the array to give me a overall P/F
    To anyone doing this same thing Altera's documentation is poor to say the least. It took most of a week to figure this out Not allowed to upload code, so anyone wanting details just post here and I will try to help. This was painful, with lots of lessons learned.
    Thanks for the interest though
    Best regards John

  • XML Edit Form should open in Same window (Not a popup).

    Hi all,
    I have requirement to open the Edit form in Same window (Not a popup).
    Assign the NewsExplorer Layout the user has edit and delete button. If the user edit the news it should not open in new window.while edit also should open in same window.
    And while creating the news by using Xml form the EDIT form open in new window but i my requirement to open in same window.
    Its possible? How to achieve this? Helpful replies will be appreciated.
    Thanks and Regards
    Thillai J

    Not solved

  • Multiple drag emails from Mail to a finder window and for it to name the files as the subject heading

    Hi
    I have been using Mac's now for about 10 years and this is my first problem.
    I have recently moved into an office that use PC's with a Windows server.
    I have set up the network to transfer files and view the windows server and it  works fine.
    I have a problem in that my colleagues on PC need to be able to view my emails which I send and receive using Mail. They therefore need to have logical title names and the date sent and ideally who to or from. I view them and archive them using Mail which is fine for me.
    I understand about the archiving and copying of mailboxes but this gives every email the un-fathomable title name 9944847 etc.
    I can get round the problem by dragging and dropping every email I send and receive individually and it will automatically give it a more logical title of the subject heading however the date is when it was dragged not when sent. This is a pain if I am away or forget to save an email for a day or two and then the date is inconsistent.
    Is there a way to batch copy emails from Mail to a finder window and for it to name the files as the subject heading or to archive the files in a similar way so they retain the detailed information my colleagues require.
    And no I can not get to all change to Mac and I don't really fancy using Outlook, Entourage or Parallels.
    Please help.
    Toby

    Quit Mail. Force quit if necessary.
    Back up all data. That means you know you can restore the Mail database, no matter what happens.
    Triple-click the text on the line below to select it:
    ~/Library/Mail/V2/MailData/Envelope Index
    Copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens (command-V), then press return.
    A Finder window will open with a file selected. Move the selected file to the Desktop, leaving the window open. Other files in the folder may have names that begin with "Envelope Index". Move those files, if any, to the Trash. Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is corrupt and that Mail has to quit. Click OK.
    Test. If Mail now works as expected, you can delete the file you moved to the Desktop. If you get a warning that the file is in use when you try to empty the Trash, log out and log back in.

Maybe you are looking for

  • Error creating Credit Memo

    Hi, I am creating a credit memo with respect to credit memo request using transaction VF01. When I save the billing document, the billing document number is displayed. But when I try to see the same billing document, I get the error message - billing

  • My 2012 MACBOOK is acting strange - is it on its last legs?

    I've a number of issues and questions to ask... For a few months I have had a number of problems with my macbook - cut and paste only works erratically, at times the keyboard and screen don't synchronise and the fan gets very hot from time to time. 

  • Uninstall before Reinstall?

    I am new to Java & I have JDeveloper 10.1.2.1 installed. I keep getting strange errors that don't prevent me from doing most tasks, but I hope the new v10.1.3 eliminates some of those error messages. For example, "Cannot find the main class. Program

  • *ERROR* FX-140 No Currency avalaible

    I am getting this error when trying to run the stored procedure for Currency Translation in BPC 7.0 sp 5 for Microsoft: *RUN_STORED_PROCEDURE=SPRUNCONVERSION([%APP%],[%CATEGORY_SET%],[LC],[GLOBAL],[%SCOPETABLE%],[%LOGTABLE%]) I found a list of errors

  • SMTP - Output Formats for RAW Text

    Hi, I am trying to set the output format in transaction SCOT for RAW Text. I want to set the format to HTM. However, HTM does not exist in the dropdown menu. Does anyone know how I can get HTM as an option for RAW Text? Thanks /Elvez