EvalScript() not returning in Fireworks with setDocumentImageSize()

I have had an issue with building an extension for Fireworks (CS6).
The issue is that when certain commands are run in the JSX file, evalScript() never gets a return value.
The problematic functions are these:
- setDocumentImageSize()
- setDocumentCanvasSize()
Most functions in Fireworks work as expected (including exportTo(), alert() ) and evalScript() gets a return value with no issues.
The JSX File has the following: (ResizeImage.jsx)
function jsxFunction()
          // Fireworks (JS-only app)
    fw.getDocumentDOM().setDocumentImageSize({left:0, top:0, right:200, bottom:125}, {pixelsPerUnit:72, units:"inch"}, true, -1);
     alert("resize complete");
          var xml = '<object>';
          xml += '<property id="success"><true/></property>';
          xml += '</object>';
          return xml;
The ActionScript file has the following (ResizeImageJSX.as)
package
          import com.adobe.csxs.core.CSInterface;
          public class ResizeImageJSX
                    public static function run():void
                              trace("begin script");
                              var result:String = CSInterface.instance.evalScript("jsxFunction");
                              // This line is never reached because of the function: fw.getDocumentDOM().setDocumentImageSize()
                              // Event nativeApplication_deactivateHandler() appears to run right after jsx function is complete, and evalScript() continues to wait indefinitely.
                              trace("Returned a value:" + result);
Any help would be appreciated.  I'm not sure if there is any workaround, since FW does not appear to support HostObject (jsxInterface object is null) and I can't find any alternative function in FW.
The purpose of the script is that I want to use actionscript to upload the file after it has been resized in Fireworks.
Thanks in advance! 

I have the same problem here.
I'm trying to use the evalScript, but CSInterface.instance,  and CSXSInterface.getInstance(), and CSXSInterface.instance always give me a Error #1009.
This is the line that generates the error:
CSInterface.instance.evalScript("alert('x', 'y', false)");
I'm using the CSXSLibrary-3.0-sdk-4.5-public.swc from http://download.macromedia.com/pub/developer/creativesuite/extension-builder/cssdk-free-2. 0.zip.
My Photoshop is CS6 version: 13.0 x64.
Any help will be appreciated!
Thanks a lot!

Similar Messages

  • Filter item limits - search not returning any results with large number of elements otherwise ok

    Hi,
    We are working through a problem we've encountered with Azure Search. We are building a filter string based on an "id eq 'xxx' or id eq 'ccc' or id eq 'vvv' etc. The id's are provided in a collection and we loop through, building the string until it's
    ready to apply.
    We are using 2015-02-28 preview at the moment.
    We are encountering a situation where, after approximately 20 id's Azure Search doesn't return any results, nor does it appear to return any error code. I'm pretty sure that the url length is less than 8K.
    Is there any limit on the number of filter elements in a query?

    We followed up offline.
    The symptom in this case was a 200 response with no body. The underlying cause is a URL parsing bug that tries to interpret colons in the query string as the delimiter of a URL scheme (like https:), but with a hard length limit of 1KB. We will work
    on a fix for both the underlying URL parsing issue and the issue that caused it to surface as a body-less 200.
    In the meantime, the workaround is to put colons as close to the beginning of the URL query string as possible. Specifically, putting $filter and facets first, and putting expressions with colons within those first, will mitigate this in most cases.
    Note that the .NET SDK puts $filter and facets near the beginning of the query string by default, so if you're consuming Azure Search you might want to give it a try:
    http://www.nuget.org/packages/Microsoft.Azure.Search/

  • GetHeaderFields Not Returning Cookies Starting with _

    Hi,
    I have been trying to write a program that can interact with various web pages, and have up till now been using Apache's HttpClient. After encountering some random problems, I realized that the HttpClient wasn't registering cookies starting with an underscore. I have started to write my own "HttpClient", but I can't seem to get the information of any cookies that start with an underscore.
    I am currently using getHeaderFields().toString() and a regex (and I know my regex isn't the problem, it has been tested) to separate the cookies from the rest of the headers.
    Any ideas?
    On second thought, after checking out the data being sent to java with Ethereal, I think firefox may be making cookies up, or is getting different info from the server. Still, any ideas?
    Edited by: 691175002 on Sep 21, 2007 9:04 PM

    Rhea wrote:
    My other JNI code seemlessly work with JRE 1.6 expect for the two GetDirectBufferAddress() and GetDirectBufferCapacity().I suppose you could start by posting some JNI code. What you posted isn't JNI.
    Since JNI works in 1.6 and your code (not JNI) doesn't then the immediate conclusion would be that you have a problem somewhere in your code (nothing to do with JNI.)
    The fact that C/C++ code runs one place really means nothing if it fails to run in another except that the first place never experienced the bug which the second place demonstrates that it does exist.

  • When using rabbitmq-jms for vFabric RabbitMQ javax.jms.Message.getJMSDestination does not return the actual destination when it is received from a consumer listening on a Topic with a wild card

    When using rabbitmq-jms for vFabric RabbitMQ javax.jms.Message.getJMSDestination does not return the actual destination when it is received from a consumer listening on a Topic with a wild card. I have tested with both 1.0.3 and 1.0.5 clients with RabbitMQ 3.1.5.
    I was wondering if the community was aware of this problem and if there are any workarounds? If not what is the proper channel to file a bug report. An example code snippet is below. The test fails because the TextMessageMatcher expects the destination passed in on construction (second parameter) to equal the desination on the message received (aquired from getJMSDestination).
            Mockery context = new Mockery();
            final MessageListener messageListener = context.mock(MessageListener.class);
            final Latch latch = new LatchImpl();
            final String prefix = "test" + System.currentTimeMillis();
            context.checking(new Expectations() {
                    oneOf(messageListener).onMessage(with(new TextMessageMatcher("MSG1", prefix + ".1234")));
                    will(new CustomAction("release latch") {
                        @Override
                        public Object invoke(Invocation invocation) throws Throwable {
                            latch.unlatch();
                            return null;
            final Connection connection = createConnection(null, null);
            Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
            connection.start();
            Topic wildcardTopic = (Topic) getInitialContext().lookup(prefix + "." + "#");
            Topic destination = (Topic) getInitialContext().lookup(prefix + ".1234");
            final MessageConsumer consumer = session.createConsumer(wildcardTopic);
            consumer.setMessageListener(messageListener);
            MessageProducer producer = session.createProducer(null);
            producer.send(destination, session.createTextMessage("MSG1"));
            latch.await(5000);
            connection.close();
            Thread.sleep(5);
            context.assertIsSatisfied();

    Check where your MDB sends the [response] messages to.

  • Pl/sql package for use with workflow will not return a value

    hi all,
    just trying to intercept a requisition being turned into an order if it uses a certain cost code. so i have amended the workflow and created a package to check what cost centre a requisition is using. how over the workflow stops on the function that calls the package witha a status of complete as if the package is not returning any values.
    the package is as below:
    CREATE OR REPLACE PACKAGE APPS.xxhccWFcapitalcheck AS
    procedure XXHCC_CHECK_CAPITAL(itemtype in varchar2,
    itemkey in varchar2,
    actid in number,
    funcmode in varchar2,
    resultout out NOCOPY vARCHAR2);
    END xxhccWFcapitalcheck;
    CREATE OR REPLACE PACKAGE BODY APPS.xxhccWFcapitalcheck AS
    procedure XXHCC_CHECK_CAPITAL(itemtype in varchar2,
    itemkey in varchar2,
    actid in number,
    funcmode in varchar2,
    resultout out NOCOPY varchar2 ) is
    x_progress varchar2(100);
    x_resultout varchar2(30);
    l_doc_mgr_return_val VARCHAR2(1);
    l_doc_string varchar2(200);
    l_preparer_user_name varchar2(100);
    doc_manager_exception exception;
    p_test varchar2(100);
    l_req_id varchar2(30);
    CURSOR p_line_id IS
    SELECT
    codes.segment2 cost_center
    FROM
    po_requisition_headers_all headers,
    po_requisition_lines_all lines,
    po_req_distributions_all dist,
    gl_code_combinations_v codes
    WHERE
    headers.requisition_header_id = lines.requisition_header_id
    AND
    lines.requisition_line_id = dist.requisition_line_id
    AND
    dist.code_combination_id = codes.code_combination_id
    AND
    headers.segment1 = l_req_id;
    line_rec p_line_id%rowtype;
    BEGIN
    -- Do nothing in cancel or timeout mode
    --if (funcmode <> wf_engine.eng_run) then
    -- resultout := wf_engine.eng_null;
    -- return;
    -- end if;
    l_req_id := wf_engine.GetItemAttrNumber (itemtype => itemtype,
    itemkey => itemkey,
    aname => 'DOCUMENT_NUMBER');
    --FOR line_rec in p_line_id
    ---loop
    open p_line_id;
    fetch p_line_id into l_doc_string;
    close p_line_id;
    IF p_line_id= 'Q9DEF'
    dbms_output.put_line p_line_id;
    Then resultout := 'COMPLETE:F';
    return;
    p_test := 'USE DIFFERENT CODE';
    ELSE
    resultout := 'COMPLETE:T';
    return;
    END IF;
    END LOOP;
    end;
    END xxhccWFcapitalcheck;
    any help would be great!

    Hi Community,  first of all, english is not my native language and im not sure to use the correct terms for PowerCenter - so if im wrong please help me correct and make clear what we need. We have a kind of 3-steps ToDo. First step: Load data from an external source into a "local" datastore (its an oracle db on a server in our "hands")Second step: Check data against several verifications, this is done with a PL/SQL Package. The PL/SQL Package shall be called with an Interfacename who is set in the First PowerCenter Mapping. Our current thoghts are to do this via a stored procedure, which runs as "Target Post Load" and gets a variable "Interface Name".Is that possible? Im not quite sure about it. About the last part its even more unclear how we can solve it:Third part should be switch back to PowerCenter now - and the package (or to be correct a function in the package) should return a value for "okay everything fine => workflow continue" or "something happened => workflow is stopped" Im not sure how i can handle this. I hope my explanations are good enough so you can provide some help?!If there are any questions please ask!  Thank you alot, best regards, Christian

  • Problems with EVGET not Returning Correct Results

    We have several reports with EVGETs that are not working.  It seems to be limited to gets on a particular datasrc when getting members at the base level.  Here is an example.
    Application: Budgeting
    Deptid: D_07104
    Account: A_612080
    Product: P_070040
    Project: PJ_NOPROJ
    Time: 2009.APR
    Datasrc; ACTUALS
    Category: INPUT
    At this point, all the members above are base level members.  A standard EVGET will not return results at this intersection even though there is data.  If we change any of the following (Deptid, product, time, or category) to a parent level member, data will be returned.  Another action we can take to get data to return is open a new worksheet and write the same EVGET on the same intersection and it will return results.  If we go back to the original sheet edit each formula and hit enter it will return the correct results.  If we refresh the sheet, the results will disappear.  We have also tried EVGTS and get similar results.
    Another thing we have tried is copying a month of data from datasrc (ACTUALS) and category (INPUT) to datasrc (NEW_ACTUALS) and category (NEW_INPUT) through the BPC delivered copy.  That seems to work.  I don't know if the copy does something to load the data that we are missing.  We also updated our fact table with a SQL update changing the datasrc and category the same way and processed the application and the data would return through some EVGETs and not others.

    This issue can happen when you have for onde dimension multiple hierachies and something is wrong into hierachies.
    Usually you have dimension formula where you are trying to do calculation of a member from H1 using members from H2.
    This it is an example but it can be other possible errors.
    Any way for sure your issue is related to one dimension having multiple hierachies.
    Regards
    Sorin Radulescu

  • Wierd Coherence bug with keySet() / entrySet() not returning all data.

    So I have a cache with 3 key/values in it.
    If I call cache (over extend) with specific keys, i get all values back.
    Object valueA = namedCache.get("A");
    Object valueB = namedCache.get("B");
    Object valueC = namedCache.get("C");
    i.e. valueA/B/C are all not null.
    If I now try to use keySet()/entrySet(), I only get 1 value back.
    eg:
    int cacheSize= namedCache.size(); //cache size is 3
    int keySetSize = namedCache.keySet(); //cache size is 3
    int actualKeySetSize = (new HashSet(namedCache.keySet())).size(); // actual size is 1
    The same happens if I iterate over keyset/entryset, i.e. there is only 1 value in the result.
    I have 2 storage nodes, JMX shows 1 node has 1 unit and other node shows cache has 2 units.
    Are there any known bugs where above can occur, we are using Oracle Coherence GE 3.5.3/465p3.
    i.e. keySet/entrySet not returning full result sets!
    Cheers,
    Neville.

    Apparently a timing issue between the "creation" of a cache, and the processing of requests against that cache. Because of the nature of the cache creation protocol, it is possible for the client creating the cache to return before all storage members have been notified of the cache name. It is therefore possible for cache requests to arrive at a storage member before that member has had a chance to instantiate its backing map.
    Fix is part of 3.6.0 GA, and is now slated to be back ported for 3.5.3p8.
    Have tested against 3.6 and all looks ok now.

  • ITunes needs to fix the problem with there gift cards not being activated this is not up to the retailer and they will not return scratched coded cards! There is thousands of people having this problem please fix it

    iTunes needs to fix the problem with there iTunes cards not activating properly! This is not the retailers fault and they will not return iTunes cards that have had the code area scratched there for apple needs to credit and or activated the cards there is thousands of people having this problem please bite the bullet and fix it already I will not be using iTunes until this is corrected...

    If you haven't received the item then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • IE/ExternalInterface do not return any value if movie added with appendChild

    There is a problem with IE/ExternalInterface if movie is added to DOM f.ex appendChild. JavaScript functions are called but they do not return any value.
    MS first response was that this is 3rd party/Adobe problem.
    Fixing this with innerHTML is not the solution. Using here Any suggestions ?
    Simplified test case has
              var flashMovie = '<OBJECT id="testId" codeBase="http://fpdownload..
              // Works in IE and FF
              document.getElementById("testdiv").innerHTML = flashMovie;
              // ExternalInterface.call calls JS but does not return value in IE. Works in FF
              var tempDiv = document.createElement("div");   
              tempDiv.innerHTML = flashMovie;
              document.body.appendChild(tempDiv);
    Here is complete code
    http://pastebin.com/fbc0aa9a
    Here is AS3 code in for ajax.swf
    http://pastebin.com/d4efd47b
    -H

    You are right about that duplicate id of the movie in this example, but that is not case here.
    I appreciate if you try this and confirm that problem exist or any work-around.
    Here is more explanation to original post:
    In HTML is JavaScipt
    function fromJs()
         return "text from js..";
    that is called from AS3
    var s = ExternalInterface.call("fromJs");
    This "s" value and also ExternalInterface.objectID are null in AS3.
    Here example again only with non-working case without that duplicate id with innerHTML
    http://pastebin.com/f4e33af93
    and also movie with AS3 code is attached.
    Using plain innerHTML this case works
    document.getElementById("testdiv").innerHTML = '<OBJECT..
    and with appendChild does not work
    var tempDiv = document.createElement("div");
    tempDiv.innerHTML = "<OBJECT ..
    document.body.appendChild(tempDiv);

  • I'm having trouble with the purchase of currency in the game Castle Clash locks! In order status says "Back" returns so what? Money at stake so I have not returned!

    I'm having trouble with the purchase of currency in the game Casyle Clash locks! In order status says "Back" returns so what? Money at stake so I have not returned!

    You need to contact the developer of the game, or, the iTunes store support.  iTunes store "MIGHT" issue a 1 time refund.  If you want the credits for the game, talk to the game creator.

  • Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Recently, I can't get any sound from my game applications.  Sound works fine with video, streaming, etc, but not my game applications.  I've tried powering down and re-booting, but the sound does not return.  Can anyone help me?

    Have you got notifications muted ? Only notifications (including games) get muted, so the Music and Videos apps, and headphones, still get sound.
    Depending on what you've got Settings > General > Use Side Switch To set to (mute or rotation lock), then you can mute notifications by the switch on the right hand side of the iPad above the volume switch, or via control centre : swipe up from the bottom edge of the screen and it's the right-most of the 5 icons in the middle of it (if the icon is white then it's 'on', tap it to turn it grey and 'off'). The function that isn't on the side switch is set via control centre instead : http://support.apple.com/kb/HT4085

  • Dimension with one value not returned

    Hi all,
    I have a question related with the dimensions returned by the Endeca search results.
    There is one dimension, which has only one single value for all records, that is not returned with the Endeca search results.
    Do you know why can this happen?
    Many thanks,
    Alejandra

    Alejandra,
    Yes. Guided navigation only returns "valid refinements" for a given navigation state. In other words, after each refinement is made, the Endeca Server recalculates which refinements are now valid. Valid refinements are those that, if selected, will filter the result set further. If every record in a result set carries the same dimension with the same value, the Endeca Server will not return it since it is not valid as a refinement. If every record has it, selecting it would not refine the results further -- rather, it would return the same collection of records that is already displayed effectively accomplishing nothing.
    I suspect that EVERY record in your Endeca Server has the same value for a dimension and, by design, the Endeca Server is not returning it in guided navigation.
    HTH,
    Dan
    http://branchbird.com

  • Can I make a non-flash slide show using Fireworks, with JPEGs not GIFs?

    Can I make a non-flash slide show using Fireworks, with JPEGs not GIFs?

    Look to using jQuery instead of Flash.  There are a variety of redy-made solutions available, just search Google or visit the Dreamweaver forum and ask there.

  • _api/Web/Lists/GetByTitle does not return People or Group lookup value with $expands

    I have a list in SharePoint 2013 with a people picker field. I am trying to retreive the list info on cient side in javascript. URL does not take lookup field display name (as stated in some articles) but it was taking AssignedPAId instead. However further
    expands does not return any thing. I need to return the assigned to user name in this case.
    List columns
    Title
    primaryowner
    AssignedPA (People or Group field)
    REST Query URL:
    _api/Web/Lists/GetByTitle('demolist')/items?$select=Title,primaryowner,AssignedPAId/Name&$expands=AssignedPAId/Name
    It keeps returning me Id only regardless i am asking /Name.
    Any help on query? Please suggest a working query only. i have already googled/binged enough.........................
    Moonis Tahir MVP SharePoint,MCTS SharePoint 2010/2007, MCPD.net, MCSD.net, MCTS BizTalk 2006,SQL 2005

    Hi,
    According to your post, my understanding is that you want to get the user name of the people picker control.
    To get the user name in the people picker control, we can use the SPService to achieve it.
    There is a function called
    SPFindPeoplePicker , we can use this function to get the display name.
    There is an article about this topic, you can refer to it.
    http://sympmarc.com/2012/04/22/working-with-sharepoint-people-pickers-with-jquery-a-new-function-called-findpeoplepicker/
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • I do not remember Security and Privacy. Press the mail was not returned. What is it. Please check with the thanks.

    I do not remember Security and Privacy. Press the mail was not returned. What is it. Please check with the thanks.
    <Email Edited by Host>

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    I have asked the Hosts to edit your email address as it is not a good idea to publish that on a forum.

Maybe you are looking for

  • On-Order Stock is in which table

    Hi, I try to pull out the on-order stock field for my report but i couldn't find which table this field belong. I see this field in MMBE - Stock Overview : Basic List. Please advice Thank you

  • USING CALL METHOD

    Dear Experts,   I am using below piece of code in my program to control color of excel sheet while downloading same way I need to select the rows of R and need to format the cells with currency with 2 decimal places. Can any one please give me code f

  • NqError 38073

    Can anyone assist on this error - what exactly I need to correct? "Dimension *'Dimension name'* has multiple leaf levels which are not identical. Thanks.

  • Error Message in Soundbooth CS5

    Every time I try to download a sound effect from the Resource Center in Soundbooth, I get the following error: "We're sorry, but there was an error communicating with the server.  Please try again and if the problem persists, contact Adobe Technical

  • Can you enable and disable windows task bar

    I there a dynamic way to enable and disable the windows task bar?