Removing code from a javascript file-i.e. Photoshop Flash Web Gallery

Hi There, I have a question about the Photoshop Flash Gallery, particularly the flashobject.js file and index.html file.  Whenever I try and open the finished Flash Gallery HTML page, I get a message that says "Please upgrade your Flash player" and "Already have Flash player installed? Click Here."  Is there a way that I can remove that and just have it go to the Flash Gallery?  I notice that it says Flash Player 6 but that is an old version.  I am not very knowledgeable in javascript so any help would be appreciated.

This would be the least instrusive hack I can find that may get you around the problem.  In the js fle there is a function...
function detectFlash(ver) {
if (getFlashVersion() >= ver) {
  return true;
} else {
  return false;
Try changing this function to...
function detectFlash(ver) {
if (getFlashVersion() >= ver) {
  return true;
} else {
  return true;
This should eliminate making the text appear.  If not, there's another thing you can try.
A better approach wuld be to use more up to date embedding code, though I cannot say whether the js file is written specifically for this Flash application such that it includes code that talks to the Flash file.

Similar Messages

  • Enable File Save in LR Flash Web Gallery

    Nothing turned up with a search so I am wondering if anyone knows how to enable the ability to save a file with a right click when creating a web gallery with LR built in flash gallery?
    TTG Simple Viewer 1.8 has an option to enable/disable the save feature with a enableRightClickOpen="true" in the gallery.xml file but a search in the files LR Flash exports turned up nothing similar.
    Thanks for any help

    Yes thanks I have the SV plug in but it doesn't offer the flexibility that LR's Flash does for labels links etc. I thought that there'd be a way to edit the code to enable saving images.
    Mike

  • Loading data from a JavaScript file

    I am writing a Java application that will run client-side, and will essentially allow the user to download, update, and then reupload a JavaScript file. The data I'm needing to parse / build to the JS file consists of staticlly-defined string arrays, and one associative array.
    The file looks like this.
    var array1 = new Array();
    array1[0] = "String1";
    array1[1] = "String 2";
    array1[2] = "String 3";I'm wondering if there is a more simple/eleoquent way of loading arrays from a JavaScript file than simply reading them and writing parse code by hand to extract the data I want... I can write the parsing code without any problem, but, I'm wondering if there's something built-in that I just don't know about...
    Thanks

    You can use the ScriptEngine provided in Java 6. Takes a little hacking, but here's how you'd do it:
    a simple javascript file:
    //test.js
    var myArray = [];
    myArray[0] = 'Something';
    myArray[1] = 'To';
    myArray[2] = 'look';
    myArray[3] = 'at';
    //ScriptTest.java
    import javax.script.*;
    import sun.org.mozilla.javascript.internal.NativeArray;
    import java.io.FileReader;
    class ScriptTest {
      public static void main(String[] argv) throws Exception {
        ScriptEngine js = new ScriptEngineManager().getEngineByName("javascript");
        FileReader script = new FileReader("test.js");
        js.eval(script);
        NativeArray array = (NativeArray)js.get("myArray");
        for(int i = 0; i < array.getLength(); i++)
          System.out.printf("Object: %s\n", array.get(i, array));
    }Now, since NativeArray is an internal class, you'll need to add rt.jar to your bootclasspath:
    javac -bootclasspath JAVA_HOME/lib/rt.jar ScriptTest.javaSee. Told you it was a hack. :-)

  • Accessing comapny code from the source file name

    Hi,
    Iam doing FILE –FILE to scenario.
    My source file name is XXXX237061606.txt. (XXXX is company code)
    My requirement is …
    Based on company code from the source file name; I need to send the file to the corresponding receiver.
    How to retrieve the company code from the source file name?
    Thanks,
    Hem.

    hem chand wrote:>
    > Hi Varun,
    >
    > Could u please provide me detailed procedure to get the company code.
    >
    > Reg,
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    This will get you the File name...TRuncate it to extract company code...
    Then have a mapping program with the receivers message type which is persent under SAP BASIS component....
    There map to the required receiver by getting the file name above..
    Create an int mapping for the above mapping and use that in ur enhanced recv determination

  • How do I get the java code from a class file ?

    I want to know how to findout the java code from a .class file . Is there any utility or any way to get the java code from a .class file. If so , please let me know the step by step procedure .
    Thanks
    Shiva

    Check out Mocha (http://www.brouhaha.com/~eric/computers/mocha.html)
    It's free!

  • Use function from external Javascript file

    Hi All,
    Is it possible to use function from other javascript file. If possible then please post some example.
    Shonky

    As Harbs mentioned, you can use doScript().
    Maybe you can do something like this:
    First I created simple function in separate file and exported it JSXBIN
    function myAlert(myString){
        alert(myString);
    Then, I copied contents of that JSXBIN and put it into variable
    var securedFUNCTION = app.doScript("@JSXBIN@ES@[email protected]AffABC40BhAB0AzHjNjZiBjMjFjSjUDAC0EzAEByB");
    or
    var securedFUNC = eval("@JSXBIN@ES@[email protected]AffABC40BhAB0AzHjNjZiBjMjFjSjUDAC0EzAEByB");
    And simply called function
    myAlert('My test String');
    Also, you can use include external script with #include to call JSXBIN, but you need to wrap contents of JSXBIN file into doScript or eval().
    tomaxxi
    http://indisnip.wordpress.com/

  • Understanding compile errors due to copying code from a doc file and not a txt file

    SITUATION:
    My instructor for my micro-controller class refuses to save sample code to a text file and instead saves it to a word document file instead. When I open up the doc file and copy/paste the code into my IDE "CodeWarrior" it causes errors upon compile time.
    I am having to rewrite all the code into a text editor and then copy/paste it into my IDE.
    MY UNDERSTANDING:
    I was told to always save code as a text file because when you save code as a word document file it will bring in unwanted characters when your copy/pasting the code into your IDE for compiling.
    Their are students in my class using the schools computers running "Windows" that copied and pasted the code into CodeWarrior and it compiled fine. This is not only frustrating but confusing. However, I know their are students in class with "PC's" running windows that had the same trouble I did so I know it's not a Mac issue. 
    Also I am running "Parallels" because my IDE for this micro-controller "Code Warrior" is not avaiable for my OS. I realize there are several IDE's out there that require "Windows OS" in general but I know this situation is not a Mac issue or Parallels issue or even a Windows issue. It's purly an issue of formatting that is done between the file being copied and the target program or so I'm understanding.
    Can someone exlain to me in better words or perhaps provide a resource, documentation or article that will enlighten me on this issue. I would like to better state my case next time. I'm tired of being told this is a MAC issue and that Windows is just plain better.

    The problem is (as you suggest) almost certainly a gremlin issue - characters that for one reason or another Code Warrior cannot interpret correctly. Why it happens to you and not others is a different matter. That could mean that the pofessor uses fonts that are not on your machine, or that he is using a different version of word, or it could be in how you access the data. For instance, if the prof posts this word doc on the web you may get different results if you download the file and open it in Word as opposed to opening it directly from a web browser.
    The sure-fire solution is to download TextWrangler and copy the code in there first. TW has a number of tools for finding and removing unpleasant characters. it adds a step, but... you could also try resaving the doc file as a plain text file from within word.

  • Call a javascript function (in ASPX) page from a javascript file

    I have a javascript file (viewer.js) situated in Scripts/viewer.js My
    default.aspx has a javascript functions that calls a c# function in the
    default.aspx.cs ( it sends a http webrequest)
    Now I want to call from the viewer.js the function in default.aspx which calls the c# function.
    How can I handle this in my viewer.js?
    I need to do this because I work with 3D objects and the select event is on the viewer.js
    When I select the 3D object it needs to call the function in default.aspx...
    Scripts/viewer.js
    function ClickPickItem(item) {
    $("#properties").show();
    /*Call function App() */
    Default.aspx
    function App() {
    PageMethods.Connect(callback);
    Default.aspx.cs
    [WebMethod]
    public static string Connect()
    string rsp = DigestAuthFixer.GrabResponse("http://<username>:<password>@nextbus.mxdata.co.uk/nextbuses/1.0/1");
    ... CODE TO MAKE HTTPWEBREQUEST}
    Sorry if I'm not clear enough
    I don't see another option like this
    What I need to do?
    Thanks!

    If my understanding is not wrong, you are trying to call a Javascript function in a separate script block from a linked Javascript page. rite?
    When it comes to Javascript, all scripts will be posted to the client side browser and we can access any method between pages provided those JS files are linked to the page.
    So you can directly call
    App()
    function from your
    ClickPickItem()
    function.
    Please try and let us know your result.

  • Code Hinting in JavaScript Files

    I use the jQuery framework. If I have an HTML page with the jQuery framework included, I can type JavaScript code in a script tag in the HTML document and Dreamweaver will provide code hints from the jQuery framework.
    How can I get these same code hints in a seperate JavaScript file in my site? Is there some way I can add a reference to the jQuery file?
    (I know in Visual Studio 2010 I can add an XML reference tag at the top of a JavaScript file with the path to the jQuery file, and that enables the IntelliSense jQuery code hints in the JavaScript file I am working on...)
    Thanks!
    - J

    Yeah, it would be good.
    Site-specific code hinting doesn't seems to work anywhere, although I tried with adding *.js and with specifically the jquery file too, no luck.

  • How can I create multiple QR Codes from an Excel File?

    Hi there,
    I am currently trying to set up business cards with a QR Code on the back of each card. Therefore I have an excel spreadsheet, which contains all the data necessary for the business card like name, function, e-mail adress,... the data is then filled in automatically by using the standard function with tags for each column (e.g. table column name is filled in as <<name>> in the specific location on the business card and once executed it is matched with the data from the excel file).
    Is there anything which could help me to automate the personalization of the QR Codes?
    All the best

    For free? Not at the moment. CC does have the ability to create QR codes but only one at a time. In CS6 (perhaps earlier versions?), regular poster/advanced scripter Jongware devised a script to prepare a QR code but again, could only do one at a time.
    However, someone did build on Jongware's QR code to do this from an InDesign file that had the necessary information in tagged text boxes and would prepare QR codes accordingly. However, it would leave them in the InDesign file (e.g. not separate EPS/PDFs).
    So, a long workaround would be:
    install the script and read the thread on the adobe forums (jongware's QR code plus the additional improvement): http://forums.adobe.com/message/4787823#4787823
    data merge the current data into the indesign file using the similar structure as the fourth poster in that post had written
    once all the QR codes are written, create a PDF of the file and then use one of various methods to break up the PDF into single page files: http://colecandoo.wordpress.com/2013/07/13/breaking-up-is-hard-to-do-indesign-files-into-i ndividual-pdfs-that-is/
    It's a lot of work to generate multiple QR codes. A paid solution offered by either Meadows DPS or Woodwing (two companies I have no affiliation with whatsoever) or any other plug-in provider for that matter: http://www.adobe.com/products/indesign/indepth.displayTab3.html may be an alternative that is worth pursuing.

  • Removing color from a PDF file

    I am trying to remove the colors from a PDF file.
    To do this I print it to "Adobe pdf" setting the parameter in the Paper/Quality tab, Black & White.
    But in the generated PDF the color is still there !
    How can I remove the color from a PDF file ?
    Tks.

    Try the print production options under the Advanced menu.

  • How to execute code from a text file?

    Hello all!
    How to execute some code lines from a text file? For example my file is:
    String varname = "somecontents";
    JFrame frame = new JFrame();
    frame.setVisible(true);How can I get contents of this file and parse them if I want get new JFrame and access to the variable varname?

    I mean the PHP would generate a readable Java source,
    for example some variables with some data, and I just
    dont know what to do with file if I want generate the
    xls file from my saved data, could You help? :)Some variables, some data, PHP, Java, XLS file??? Al rather vague.
    You need to explain in more detail what it is you're trying to do if you want an answer to your question!

  • Targeting Edge from external javascript file

    Is it possible to target adobe edge build from an external Javascript file? For instance, I click a button outside of the edge animate project and javascript tells Edge animate to "play()". What would that syntax be?

    Yes, it is.  Read this post for some background information and a sample.
    http://forums.adobe.com/message/5289458#5289458
    -Elaine

  • How to avoid disassembling of code from an ipa file?

    Hi,
    I have developed a new version of my app which is already in the appstore. We have released our app for security testing team in my company. They have reported that from the ipa file one can disassemble the code. How can I avoid this disassembling code? Could someone please help me.
    Thanks in advance.

    If folks have the runnable application, they can "disassemble the code", generally this does not mean much because the assembler code that results is an obfuscated mess.
    Did you include debugging information that might include source code?

  • How to generate GUI code from parsed XML file?

    hai,
    I have to generate GUI code after parsing any configuration XML file as input.Now i have parsed my XML file and got its attributed and i want to get some idea of how to map the parsed XML attributes to the java code to build GUI code.

    Hello,
    1. I like to create data type from a XML file structure, which contains the data structure ?
    XML fields will need to be taken note of to see which is repeating or not. You can also load the XML into a third-party tool such as Altova XML Spy and then generate an XSD from there. You will need to import the XSDs into PI under external definitions. However, this does not guarantee business interoperability, as such, it is always best to ask the provider for the XSDs or WSDL. It will also save you a lot of time from guessing which fields are needed or not.
    2. How to create custom node function in graphical mapping editor ?
    In your graphical mapping editor, on the lowest left corner, there is an icon there that says Create New Function. You must take into account their return types:
    1. Single Values = String
    2. Queue/Context (no return type) thus resultList is used.
    Hope this helps,
    Mark

Maybe you are looking for