Vertical axis direction and Javascript (jsx) app.documents.add()

Hello
I read a bit on the confusion that was caused when the coordinate quadrant was switched between CS4 and CS5.  I also found http://forums.adobe.com/message/3859266 and that script does work, also on CC
What however is not influenced by the preferences tweaked through the script is how the jsx document creation works. That seems to insist on the pre CS5 behavior
My question - is there any way I can make app.documents.add() create a document with artboard where the vertical axis directions is behaving as the default CC behavior (4th quadrant)
Many thanks for any pointers or guidance!
Peter

Thanks for your patience.
I have the impression that when first running
app.preferences.setBooleanPreference ("isRulerOriginTopLeft",false);
app.preferences.setBooleanPreference ("isRulerIn4thQuad",false); 
both "File/New" and "app.documents.add();" will create documents with axis in first quadrant
What is weird is that when using
app.preferences.setBooleanPreference ("isRulerOriginTopLeft",true);
app.preferences.setBooleanPreference ("isRulerIn4thQuad",true); 
"File/New" creates documents with axis in the fourt quadrant but "app.documents.add();"  still creates documents in the first quadrant.
Anyway, bottom line is I can get consistent behavior as long as I am happy working in the first quadrant, which at this point is just fine for me
Tx again,
Peter

Similar Messages

  • What's the best driving spoken directions and traffic congestion app?

    What can people recommend for the best app for spoken driving directions and a map with live (or statistical) traffic levels on various routes?
    Mike

    TomTom, Garmin, Navigon, CoPilot.
    http://www.appshopper.com
    Message was edited by: deggie

  • Where does app.documents.add() get its document profile from?

    It has a set of defaults listed in the scripting reference, I understand that much. but a new doc (without specifying anything else) also contains swatches/symbols/brushes etc. that don't seem to match any existing doc profile. Where is it fishing these from?

    I tried various scenarios and documents.add() always matched the Print Profile, which happens to be the first in the list.

  • Multiple Vertical Axis Renderers and auto scaling

    Hi
    I have a problem which has been kicking my rear end for a while now.
    I have a Linechart to which I add (programmatically in AS code) multiple PlotSeries. I let the first series be handled by the default verticalaxisrenderer (on the left side of the graph) and then the next series (if a different type of data) be rendererd by another verticalAxisrenderer (created programmtically) and added to the right side. And it "works", but the problem is this:
    Say I add a series that has a range of 30-80 first. It works fine, BUT when i add a second series with a range of say 1100-1200  the second series is added fine but the first series is 'rescaled' on the axis to go from 30-80 to 0-1200! Which is obviously wrong! I have made other attempts to fix this and it always rescales the axis (sometimes rescaling the data, sometimes not) I have double checked that baseatZero is false and it is--its just the act of adding that second series which causes this redraw and rescale. What am I missing here? Atatched is code snippet and screenshots of behavior.
    On Flex 3.5, btw
    public function addSeriesToChart(acLocal:ArrayCollection, constellation:String, station:String, param:String):void
                var currentSeries:Array = lcGraph1.series;
                var stati:int = util.getStationName(station,currentStations);
                var stat:String = currentStationsLong[stati];
                var s:Object;
                 var ls:PlotSeries = new PlotSeries();
                ls.displayName = y1_axis + " @ "+stat;
                ls.yField = "y1";
                ls.xField = "x1";
                ls.dataProvider = acLocal;
                seriesmin(acLocal);
                var stroke:Stroke = util.getLineStroke2(nSeries);
                ls.setStyle("stroke", stroke);
                ls.setStyle("fill",stroke.color);
                ls.setStyle("radius", 2);
                ls.setStyle("itemRenderer",new ClassFactory(CircleItemRenderer));
                s = ls;
                var renderers:Array=lcGraph1.verticalAxisRenderers;
                Application.application.export.enabled = true;
                //two cases: first series and 2+ series: must handle the default verticalAxisRenderer bug
                if (nSeries > 0)
                    //if second series == first series, dont add a new renderer
                    if (param != currentGraphParam(acParam1))
                          var la2:LinearAxis = new LinearAxis();
                           la2.displayName = y1_axis+" ("+util.getUnits(util.EnglishNametoCBIBSParam(param))+")";
                        la2.title = y1_axis+" ("+util.getUnits(util.EnglishNametoCBIBSParam(param))+")";
                        la2.baseAtZero = false;         
    //                    la2.maximum = seriesmax(acLocal)+1;
    //                    la2.minimum = seriesmin(acLocal)-1;
    //                    lcGraph1.verticalAxisRenderer[0].axis.maximum = cMax;
    //                    lcGraph1.verticalAxisRenderer[0].axis.minimum= cMin;
                        ar2=new AxisRenderer();
                        ar2.axis=la2;      
                        if ((nSeries % 2) == 1)
                            ar2.placement="right"
                        else
                            ar2.placement="left";
                        renderers.push(ar2);           
                         s.verticalAxis = la2;
                        lcGraph1.verticalAxisRenderers=renderers;   
                    currentSeries.push(s);
                    lcGraph1.verticalAxisRenderers=renderers;   
                    lcGraph1.invalidateSeriesStyles();
                    lcGraph1.series = currentSeries;
                else
                    //create new axis
                    var la2:LinearAxis = new LinearAxis();
                       la2.displayName = y1_axis+" ("+util.getUnits(util.EnglishNametoCBIBSParam(param))+")";
                    la2.title = y1_axis+" ("+util.getUnits(util.EnglishNametoCBIBSParam(param))+")";
                    la2.baseAtZero = false;          
                    ar2=new AxisRenderer();
                    //dont show it
                        ar2.visible = false;
                       ar2.placement = "left";
                       la2.maximum = seriesmax(acLocal)+1; 
                    la2.minimum = seriesmin(acLocal)-1;
                    cMax = la2.maximum;
                    cMin = la2.minimum;
    //                Alert.show(cMax);
    //                Alert.show(cMin);
                    ar2.axis=la2;      
                    renderers.push(ar2);           
                    s.verticalAxis = la2;
                    currentSeries.push(s);
                    lcGraph1.series = currentSeries;
                    lcGraph1.verticalAxisRenderers=renderers;   
                    lcGraph1.invalidateSeriesStyles();
                    lcGraph1.verticalAxis.title = y1_axis+" ("+util.getUnits(util.EnglishNametoCBIBSParam(param))+")";   
                    disableDefaultVerticalRenderer();
                 Application.application.arrAc.push(acLocal);
                nSeries++;                                    

    Adobe Flex LiveDocs seemed to indicate "Using multiple series in the same chart works best when the data points are in a similar range (such as a stock price and its moving average). When the data points are in numerically very different ranges, the chart can be difficult to understand because the data is shown on a single axis. The solution to this problem is to use multiple axes, each with its own range. You can plot each data series on its own axis within the same chart using the techniques described in Using multiple axes" and that link is here:
    http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_11.html
    I was going to tae a look at this myself, but the code posted here is quite complex, and I suspect incomplete.
    If you refer to that link and still cannot solve the issue, I would try your best to boil down your code to a more simple example still exhibiting the issue, and then post that, along with any data and the simplified main app.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • HT1848 when i purchase ringtones and they download directly to the music app on iphone, how can I move them to SOUNDS in SETTINGS so I can assign to various functions please?

    when i purchase ringtones and they download directly to the music app on iphone, how can I move them to SOUNDS in SETTINGS so I can assign to various functions please?

    You would have to create the ringtones.
    Google will find several way to do this.
    You cannot buy ready made ringtones from your computer.

  • How to do a clean install go yosemite and then just install certain files, apps, documents, phopt's, etc...from time machine backup?

    How to do a clean install of yosemite (have Mavericks 10.9.5 now) and then just install certain files, apps, documents, phopt's, etc...from time machine backup?

    Do a backup before doing anything.
    If you want to make a clean install of Mountain Lion, boot into the Recovery Volume (command - R) on a restart, use Disk Utility to Verify/Repair  the disk and run Repair Permissions. Then erase the hard drive using Mac OS Extended (Journaled) format using the Options button. Reinstall Yosemite. Restart normally and test. Use Setup Assistant or Migration Assistant to import what you want.
    Clean Install

  • App-V PowerShell: Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results

    Please Vote if you find this to be helpful!
    App-V PowerShell:  Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results
    Just posted this to the wiki:
    http://social.technet.microsoft.com/wiki/contents/articles/25323.app-v-powershell-script-to-query-xenapp-servers-for-app-v-publishing-errors-and-output-an-excel-document-with-the-results.aspx

    Hi petro_jemes,
    Just a little claritification, you need to add the value to the variable "[string]$ou", and also change the language in the variable "$emailbody" in the function "Get-ADUserPasswordExpirationDate".
    I hope this helps.

  • HT5622 Charged when I bought a free app? I bought a free app(Documents by Readdle) for free. In my account I had 6.37 but now I have 3.19!! I don't understand why because it was a free app? What do I do and how do I get my money back?

    I bought a free app(Documents by Readdle) for free. In my account I had $6.37 but now I have $3.19!! I don't understand why because it was a free app? What do I do and how do I get my money back?

    Hi caw52,
    Welcome to the Support Communities!
    The following information should help you with this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933?viewlocale=en_US
    Cheers,
    Judy

  • Charts: Gap between Vertical Axis and the chart area

    Friends,
    I have a really wierd issue and I am sure I am doing
    something wrong.
    I am trying to align 2 charts that are placed vertically. I
    want to align the left vertical axis and the gridlines within them.
    Aligning the left vertical axis is easy and done but aligning the
    grids is becoming challenging and I have already spent a few hours
    on this problem.
    Here is a wrong chart image ...
    Wrong
    chart image
    The line of the LineChart (in the top chart) is touching the
    left and right edges where as the bottom chart bars do not touch
    the left/right edges. Due to this the gridlines are not aligned.
    I had managed to solve this problem but I am not sure what
    part of the code solved the problem. Here is the right chart image:
    Right
    chart image
    In this chart, the line of the linechart (in the top chart)
    is not touching the left and right boundary hence the gridlines are
    alignd with each other.
    I wonder what property of the chart controls the series
    touching the left/right vertical axis or boundary. Your help is
    appreciated.
    Thanks

    here is some more information ...
    I started changing some of the properties of the chart which
    I mentioned is a RIGHT CHART and this is what I learnt ...
    It was a CartesianChart hence it was creating the gap
    between the left/right vertical axis and the actual chart area
    (refer to the right chart image).
    I changed it to a LineChart and it started behaving like the
    chart in the WRONG CHART image.
    Is there a solution to this problem?

  • Vertical text direction / orientation in tables. (RoboHelp 7 and/or 8)

    Hello all,
    I need to squeeze a fairly full table (lots of columns) into a printable page width.
    In order to do this, I need to put text into some of the cells so that they read vertically. I can do this in MS Word tables (menu > Format > Text Direction) and need an equivalent in RH. Preferably RH7, (but can import into RH8 if I must ).
    Any ideas anyone?

    Hi Philip
    My guess is that you can probably fudge it using CSS. But it won't be something RoboHelp will assist with in any way.
    Check the link below for one hit I found. Use Google searching for vertical text in HTML to find others.
    Click here to view
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 moments from now - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcererStone Blog
    RoboHelp eBooks

  • HT201493 I have received 3 friend requests via email but I cannot accept them.  When I select view request, it just gives me directions on downloading the app and there are no requests in my app.    How do I accept the request?

    I have received 3 friend requests via email but I cannot accept them.  When I select view request, it just gives me directions on downloading the app and there are no requests in my app.    How do I accept the request?

    Which "app" are you talking about?

  • Acrobat crashed and i lost all document level javascript

    Hi, while working with acrobat professional 9 i got an error messages and acrobat crashed. I had 300 lines of javascript code on document level and after i reopened the pdf document it wasn't there even though i had been saving the document many time before the error ccurred. Any idea how can i retrieve that javascript back? And why did it all disappear?

    Thank you very much for your reply but I already tried this and it didn't work. I will try to review all the sites visited over several months of which these tabs were accumulated . What a big hassle. I do notice that Firefox has crashed fairly often . Its just in the past I was able to retrieve my open tabs. I may go back to Internet Explorer. Thanks again for you help.

  • Can I package an app using just html and javascript and not flash ?

    Hi :
    Sorry for the question, but I'm a little confused. 
    I know I can use javascript with adobe air, I made some test and works great, but I'm not sure if my app will work in an iphone after I build the package.
    Thanks in advanced.

    No, that's not supported in this version of PFI.  From the Developer Guide: "You cannot write HTML- and JavaScript-based AIR applications for the mobile device profile."

  • I received a link to fill out a document on this site through email. However, when I click the link, it just directs me to my FormsCentral homepage and there are no documents for me to fill out. How do I find this document or stop myself from just being r

    I received a link to fill out a document on this site through email. However, when I click the link, it just directs me to my FormsCentral homepage and there are no documents for me to fill out. How do I find this document or stop myself from just being redirected to my homepage?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • When I make a purchase in the app store via paypal it redirects me to the paypal website to add a credit card. However, my paypal is linked to my account directly and I have no card. What can I do?

    When I make a purchase in the app store via paypal it redirects me to the paypal website to add a credit card. However, my paypal is linked to my account directly and I have no card. What can I do?

    Welcome to the Apple Community.
    Start here (change country if necessary) and navigate to 'Password and Security', reset your security questions using the link provided, you will receive an email to your rescue address, use the link in the email and reset your security questions.
    If that doesn't help, you don't receive a reset email or you don't have a rescue address, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

Maybe you are looking for

  • HT1688 I have lost my notes. What to do?

    I have lost my notes. Yesterday. The last note is left that I made on may 28th. It's the first time since I upgreade to iPhone 5. I had the same problem with my 4th iPhone like 3 time. I lost very important notes. that make me angry, because how such

  • FM to Get the Hierachy (subordinated WBS) for a WBS ?

    Hi everybody Does somebody knows a FM to get all the subordinated WBSs for a WBS ? Tha is, i´m doing a recursive routine for get all the WBSs derived from a specified WBS, but i guess it must to exist an standard FM to do this. Thanks in advacced. Fr

  • CS4 - AME is VERY slow (40 mins to encode 3 minutes of video??)

    Hello folks, I usually use Pinnacle Studio to do my home video but since I also own CS4, I thought I would try Premiere for the first time in about 4 years. I had no trouble understanding it and combining 3 short HD clips totalling about 3 minutes. B

  • All reply buttons stopped working in rel. 24.3.0

    this morning all reply buttons stopped working. I can compose emails but cannot reply to anyone. No voluntary update was made in the last days and everything was working properly till Friday, three days ago. May you please urgently help me? Thanks ve

  • Why we have setup tables in LO extraction and why not in CO-PA,Generic

    Hi Friends                Why we have setup tables in LO extraction and why not in CO-PA,Generic Please give me reply                                    ****************Points are assured******************** Thanks&Regards Revathi