Change stage dimensions with script

Is there a way to change the stage dimesions with a script
please? Relates to another post below which I can't figure
out.

stage width & height properties are read only, you cant
change the stage size by using actionscript.
if you are displaying an swf object on a webpage, you may
consider to change the swf object width & height parameters
using javascript, & make sure your scaleMode is showAll.
good luck

Similar Messages

  • How to change a parameter with script

    Hi to All,
    Is it possible change to TRUE the Parameter "07_DICTIONARY_ACCESSIBILITY" with a script ?
    If Yes, how can perform this ?
    Thank You and Best Regards.
    Gaetano

    About 07_DICTIONARY_ACCESSIBILITY

  • Change Illustrator version with scripting?

    Hello!
    I go through several dozen files a day at work and we have to save down everything to 9 as we go.
    Actions don't seem to delve that deep into the save as promt, so how can I script this so that the default goes to Version Illustrator 9 everytime?
    I'm looking to do a similar script while exporting my format as default jpeg instead of png.
    Help anyone on where to point me?  I'm familiar with the basics of scripting.  It's been a while but I need a starting point on if this is even possible.
    Thanks!

    I found the Applescript from Larry G. Schneider to be a great solution . . . ALMOST.  Seems like Adobe has abandoned the info Finder uses, the "file type." So I added another few lines that ALSO recognize files whose "kind" is "Adobe Illustrator Document."
    Here's the code. (NOTE: This version is suited to my prefs, which is to resave as CS4. For your purposes, you would simple edit the script, changing "compatibility:Illustrator 14" to "compatibility:Illustrator 9" .)
    -- BEGIN CODE:
    set fileTypes to {"EPSF", "PDF ", "ART5", "TEXT"} -- file types available to resave as Illustrator
    -- get a sourceFolder that holds the files to resave as AI
    set sourceFolder to (choose folder with prompt "Choose a folder with files to resave as Illustrator CS4:") as text
    -- get a list of files of the defined type in the sourceFolder
    tell application "Finder" to set workingFiles to (every file of folder sourceFolder whose file type is in fileTypes) as alias list
    -- now you have your fileList argument
    -- look again, getting AI docs whose "file type" is missing (due, presumably, to CS file format changes):
    tell application "Finder" to set moreFiles to (every file of folder sourceFolder whose kind is "Adobe Illustrator Document") as alias list
    set workingFiles to workingFiles & moreFiles
    -- get a destinationFolder to hold the new files
    set destinationFolder to choose folder with prompt "Choose a folder to hold the Illustrator files:"
    SaveFilesAsIllustrator14(workingFiles, destinationFolder)
    on SaveFilesAsIllustrator14(fileList, destinationFolder)
    set destinationPath to destinationFolder as string
    repeat with aFile in fileList
    tell application "Finder"
    set fileName to displayed name of aFile -- get displayed name
    set AppleScript's text item delimiters to "."
    set newFileName to text item 1 of fileName
    set newFilePath to destinationPath & newFileName & ".ai"
    end tell
    tell application "Adobe Illustrator"
    open aFile forcing CMYK with options {update legacy text:true}
    -- amend the "compatibility:" value to your preference (which might be followed up by amending some of the above lines, esp. the prompt in line 4):
    compatibility (Illustrator 10/Illustrator 11/Illustrator 12/Illustrator 13/Illustrator 14/Illustrator 3/Illustrator 8/Illustrator 9/Japanese 3) : what Illustrator file format version to create ( default: Illustrator 14 )
    save current document in file newFilePath as Illustrator with options {class:Illustrator save options, compatibility:Illustrator 14, embed linked files:true, font subset threshold:0.0}
    close current document saving no
    end tell
    end repeat
    end SaveFilesAsIllustrator14
    -- END CODE

  • How can i change brush type with script?

    I can already set the width, size of it, but i cant find out how to change the type. Even script listener dont produce the needed code for it.

    Never mind. I managed to do it, script listener did produce the code, i just didnt find it at first. I meant brush style by type.

  • Need to find a scripts for changing default "Open with" iTunes app to Quick

    Hello all...
    I'm new to scripting but need a script really quickly...
    I was wondering if anyone knew where I could find a script that will change the default "Open with" of audio files placed within a certain folder on my desktop...
    I'm making sound clips with WireTap and dumping them in a folder called WireTapExports as .mp3. I then need to play them without using iTunes (and importing them by default) but going into the "Get Info" and manualy changing the "Open With" settings for each file is taking ages...and it's very irratating...
    Is there a way I can make all audio file put in that folder automaticaly open with Quicktime instead.
    I know this is quite easy to most but I've only just started looking at Applescript (i.e. a few days ago) and but I need this to work now...
    Many thanks in advance...
    PigeonCake...

    Not what you want, but if you hold the control key while getting info it changes to summary info which then lets you change the preferred application on a batch of files in one go.

  • Change Page size with a Script

    I have made artwork in Illustrator that is set up as two page spreads on 1 artboard.
    I need to convert this to single page spreads.
    I.e. So for half the documents, I need to set the anchor point of the document to top left and half the width of the artboard.
    For the other half of the documents, I need to set anchor point to to right and half the width.
    Is this possible with scripting?
    I have look around online to find ways of accessing the document size and anchor point via scripting, but cannot seem to find any resources.
    Thanks for any help that can be offered.
    Edit: Also is it possible to create a new artboard with a script and assign it a name?

    here you go, this script splits the artboard in two
    // carlos canto
    // http://forums.adobe.com/message/5380624#5380624
    var idoc = app.activeDocument;
    var ab = idoc.artboards[0];
    var abBounds = ab.artboardRect;// left, top, right, bottom
    var ableft = abBounds[0]; // 0
    var abtop = abBounds[1]; // 612
    var abright = abBounds[2];
    var abbottom = abBounds[3];
    var abwidth = abright - ableft; // 792 // width
    var abheight = abtop- abbottom; // 0 // height
    var half = ableft + abwidth/2;
    var abright2 = half;
    ab.artboardRect = [ableft, abtop, abright2, abbottom];
    var ableft2 = half;
    var newAB = idoc.artboards.add([ableft2, abtop, abright, abbottom]);

  • How to change player dimension?

    I'm sorry, but I wanna change the dimension of the built-in flash player that we get from installing the FMS.. can i do that?
    I need it to fit my web in the center, and on the left & right side there's bar for ads..
    anyway, I embed my web with the videoPlayer.swf I got from this folder:
    "C:\Program Files\Adobe\Flash Media Server 3.5\samples\videoPlayer\swfs"
    then I checked the source folder and i realized that it's builed with Flex, and I'm not proficient in Flex.
    After that I tried to decompile the .swf file using sothink swf decompiler and recompile it again, but it gives me error message in Adobe Flash CS3 Professional.
    Any idea guys?
    TIA,
    -shenli-

    I'm not sure if this helps - here's the code I've used to resize the player... based upon the src media:
    private function dataHandler(e:MetadataEvent){
                var info:Object = e.info;
                var player:* = this.getChildByName("player");
                player.width = info.width;
                player.height = info.height;
                player.x = (stage.stageWidth - player.width) / 2;
                player.y = (stage.stageHeight - player.height) / 2;

  • Responsive animation with script - not ok in Wordpress

    Hi,
    I ahve been following Adobe Product Manager Sarah Justine's tutorial (http://sarahjustine.com) on how to make an animation responsive. She has created a script that seems to work perfectly when you resize your browser or use a handheld device. Script is inserted into the "Stage" component:
    (choose compositionReady in dropdown and add code below)
    var stageHeight = sym.$('Stage').height(); // Set a variable for the height of the stage
    sym.$("#Stage").css({ // Set the transform origin so we always scale to the top left corner of the stage
    "transform-origin":"0 0",
    "-ms-transform-origin":"0 0",
    "-webkit-transform-origin":"0 0",
    "-moz-transform-origin":"0 0",
    "-o-transform-origin":"0 0"
    function scaleStage() {
        var stage = sym.$('Stage'); // Set a reusable variable to reference the stage
        var parent = sym.$('Stage').parent(); // Set a reusable variable to reference the parent container of the stage
        var parentWidth = stage.parent().width(); // Get the parent of the stage width
        var stageWidth = stage.width(); // Get the stage width
        var desiredWidth = Math.round(parentWidth * 1); // Set the new width of the stage as it scales
        var rescale = (desiredWidth / stageWidth); // Set a variable to calculate the new width of the stage as it scales
    // Rescale the stage!
               stage.css('transform', 'scale(' + rescale + ')');
        stage.css(  '-o-transform', 'scale(' + rescale + ')');
               stage.css('-ms-transform', 'scale(' + rescale + ')');
        stage.css('-webkit-transform', 'scale(' + rescale + ')');
               stage.css('-moz-transform', 'scale(' + rescale + ')');
        stage.css('-o-transform', 'scale(' + rescale + ')');
        parent.height(stageHeight * rescale); // Reset the height of the parent container so the objects below it will reflow as the height adjusts
    // Make it happen when the browser resizes
    $(window).on('resize', function(){
               scaleStage();
    // Make it happen when the page first loads
    $(document).ready(function(){
        scaleStage();
    My problem is that I use Wordpress and the Edge Animate plug-in and when I insert the animation there the script seems to do nothing. I'm not a coder so I have no idea what might be happening. I'm going to post this on the Wordpress plug-in support page and see is the developer has any ideas. I'll report back about that.
    Any help would be greatly appreciated since this script seems very useful!
    Regards
    Johan

    Ok, so the creator of the script, Sarah Justine came up with this solution:
    I was able to get this to work, but not using shortcodes.
    Follow the same method of uploading an OAM as you normally would. We’re going to use HTML instead of shortcodes, and Edge Suite will still populate your page with the necessary files.
    Instead of the shortcode, use this:
    <div style="width:100%; height:auto"><div id="Stage" class="EDGE-78729757"></div></div>
    You can change the width to be whatever % you want and add some more inline CSS. Grab the class name from whatever Edge Suite reports from the composition.
    I can't get this to work sadly. Continuing discssion with Sarah.
    The WP plug-in developer came up with this change to the actual script:
    The fix is actually quiet simple, just remove the # in front of '#Stage' within
    sym.$(&quot;#Stage&quot;).css so it says sym.$(&quot;Stage&quot;).css. That should fix the whole thing and it should also work with shortcodes. Let me know if that solves it for you.
    I couldn't get this to work either! Discussion continues.
    Johan

  • How to pause stage/swf with audio when a new tab is opened/ out of focus in browser

    I have created a container in Flash Professional CS5 for my project’s CBT.  I’ve been able to script many of the features we require using AS3, but there are a couple of things I’m still trying to work out.
    I would like the swf presently playing in one tab to pause and go silent when another swf is opened in a new tab (the sound is inside this externally loaded swf which is loaded inside a movie clip from buttons nested a movie clip down).  I’ve tried :
    var originalFrameRate:uint = stage.frameRate;
    var standbyFrameRate:uint = 0;
    addEventListener(Event.ACTIVATE, onActivate);
    addEventListener(Event.DEACTIVATE, onDeactivate);
    function onActivate(e:Event):void
           stage.frameRate = originalFrameRate;
           trace("in focus");
    function onDeactivate(e:Event):void
           stage.frameRate = standbyFrameRate;
           SoundMixer.stopAll();
           trace("out of focus");
    And
          I’ve looked into the HTML tag “has Priority”
    and coded buttons to:
    function fl_ClickToGoToWebPage(event:MouseEvent):void
           navigateToURL(new URLRequest("http://www.ansaldo-sts.com/AnsaldoSTS/EN/index.sdo"), "_blank");
           MovieClip(this.stage).stop();
    With variations of:
    MovieClip(this.parent.parent)stop();
    MovieClip(this.parent.parent.parent.parent)stop(); because the button is 3 movie clips deep.
    MovieClip(this.root)stop();      MovieClip(root)stop();MovieClip(this.currentTarget.root)stop();
    Could someone please provide me with the code?
    This function is present when I publish the CBT with Captivate, so obviously there must be code available. You can set the Captivate button to open url in new window and pause movie.
    Is there something I can add to the html file that is similar to the “has Priority” for mobile devices or is there javascript that can be added to the flash itself?

    You would send a command to Flash from JavaScript when window.onblur event occurs.

  • Two Cube dimensions with the same name.

    Hi
    If I have a cube dimension that has the same name as another cube dimension, will this be an issue when quering the cube through 1) Excel 2) SSRS or Cognos Reports?
    For instance: The Database dimension DimOrganization exists in cube A as well as
    DimOrganization_Dep. Both dimension has the same attribute names and the same hierarchy names.
    Their database names are different. (object_ID and Object_name differs) 
    In the cube I change the name of DimOrganization_Dep to DimOrganization.
    This seem to work when I query the cube in Excel, the mdx looks like this;
    SELECT NON EMPTY { [Measures].[AntalNotNull] } ON COLUMNS, NON EMPTY { ([Dim Organization].[Yes- No].[ Yes- No].ALLMEMBERS * [Dim Organization].[Yes- No].[Yes- No].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME
    ON ROWS FROM [TEST] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    Anyone knows if this kind of setup will result in problems when quering from SSRS reports or Cognos?
    And/or if even though I get it right in the cube (quering from Excel) it might as well give me the wrong result the next time?
    Cheers
    /Martin

    Hi
    Thanks for the reply.
    I have tried and yes I can change then cube dimension namn to that of another cube dimension.
    For instance if i have Cube Dimension "DimA" and "DimB" to begin with , then  I change the name of the cube dimension "DimB" to "DimA". So now I have two Cube dimensions with the same name.
    It works to deploy and process and Excel somehow understands which one is which.
    Both is present in the same cube as you can see from the MDX above.
    The tricky part is how does the mdx return the correct result when the mdx looks like this (and it dpoes return the correct result).?
    Cheers
    /Martin

  • How to create a new Oracle OSB project automaticaly with script without IDE

    Hello,
    I want to create automatically an "Oracle service bus project" and an "Oracle service bus configuration project" with scripts (ANT or Maven or ...) without using IDE, without using workshop or Eclipse. I want to create automatically (ANT or Maven) just a skeleton of an OSB project witch i can use after in workshop.
    I want to create 1 "Oracle service bus configuration project" with many "Oracle service bus project" automatically (ANT or Maven or scripts) witch i can use after in workshop. How to create a new Oracle OSB project automaticaly with script without IDE ? How can i do this ?
    I'm using Oracle service bus 10.3.1
    Thank you for your help.

    Thank you for your response,
    I do not want to just create the services (proxy services and business services) but I want to create a template for 40 OSB project with the same scripts ANT/Maven.
    Template="Oracle service bus configuration project" + "Oracle service bus project" + services of 40 OSB projects
    The goal is that I have more than 40 projects to create and just the name of the projects that changes (when I say the name of the project ie the name of the OSB project, the name of proxy services and the name of business services ).
    So I want to give my script (ANT/Maven) the name of 40 OSB project and the script must generate the skeleton of the 40 projects at once time and after generation of skeleton of the 40 project, I will import them in the workshop to add manually mapping and routing and other things that differs from one project to another.
    So i want to generate automatically a skeletons of 40 OSB projects using a script (ANT / Maven) and I give to the script juste the names of the 40 projects.
    I want to create a "Oracle service bus configuration project" and "Oracle service bus project" automatically of 40 OSB projects (ANT or Maven or scripts) witch i can use after in workshop.
    I want to create one 'template' of all 40 projects in the same time, with the same directory structure (Transforlation, Business services, proxy services, WSDL .....) and all 40 project have the same transport, just the names of projects and services witch changes and i can give to the script all names of projects and services and i can give also all WSDL.
    Regards,
    Tarik

  • Changing Stage size at runtime

    I have been poking around and not finding any info on this.
    What I want to do is change the height of the STAGE (not a
    MovieClip) based
    on which view I'm showing the customer at a particular time.
    For instance...
    I may have a thumbnail and a detail view for a product. I
    don't need a lot
    of screen real estate to show the thumbnail view, but I'd
    like to make the
    swf taller if the user switches to the detail view.
    I don't simply want to make the swf taller by default because
    I'll have a
    ton of unused whitespace in thumbnail view, which will look
    stupid.
    I shouldn't have a problem with the JavaScript to change the
    height
    properties in the HTML tags for the Flash object, but not
    really sure if/how
    to do the other part in Flash. Everything I've seen so far
    has been
    read-only properties.
    Thanks,
    Chris.

    did you change stage size?
    how can you do this without javascript?
    "Christopher Hayes" <[email protected]> escreveu
    na mensagem
    news:ee4csi$ent$[email protected]..
    >I have been poking around and not finding any info on
    this.
    >
    > What I want to do is change the height of the STAGE (not
    a MovieClip)
    > based on which view I'm showing the customer at a
    particular time.
    >
    > For instance...
    >
    > I may have a thumbnail and a detail view for a product.
    I don't need a lot
    > of screen real estate to show the thumbnail view, but
    I'd like to make the
    > swf taller if the user switches to the detail view.
    >
    > I don't simply want to make the swf taller by default
    because I'll have a
    > ton of unused whitespace in thumbnail view, which will
    look stupid.
    >
    > I shouldn't have a problem with the JavaScript to change
    the height
    > properties in the HTML tags for the Flash object, but
    not really sure
    > if/how to do the other part in Flash. Everything I've
    seen so far has
    > been read-only properties.
    >
    > Thanks,
    >
    > Chris.
    >
    >
    >

  • What are the appropriate document/stage dimensions in Flash for tablet optimized apps?

    What are the appropriate document/stage dimensions in Flash (width x height in pixels) for tablet optimized apps?
    (Dec. 2013)
    Using Flash and AIR for Android/iOS I would like to develop a educational interactive title optimized for tablet PCs, hopefully both the Android but finally also the iOS platforms. With so many tablets on the market today and with different resolutions (and even aspect ratios) I have difficulty deciding what document/stage size to set for my project/app. I have been experimenting with an Android Google Nexus 7 and Samsung Note 10 tablets and discovered that Android automatically resizes the app's stage to fully fit the screen of the tablet BUT this creates the following two issues for me:
    if the stage/document size in Flash is too small and I include bitmaps when the app's stage is enlarged to fit the tablet screen the bitmaps look pixelated.
    If I make the stage dimensions too big so that there is no bitmap pixelation because the bitmaps will be shrank instead of enlarged, I am afraid that on some older tablets with slower processors the app may be too slow to run (but I have to say that I did not experiment with very large stage dimensions yet).
    Until today I had looked at some of the most commonly used tablets on the market and their resolutions Google Nexus 7, Samsung Note, iPads etc and was inclined towards using a stage size of approximately 1280 x 720 pixels which I considered a medium solution, but now the new generation tablets came out (Nexus 7 gen 2, iPad Mini with Retina, iPad AIR etc) with much higher resolutions so I don't know what size to use now. Anybody has any suggestions?
    I would appreciate any ideas and suggestions on this matter.

    You explained your problem well enough that looking at the picture won't matter.  It looks like you found out too late that one of the first things you should do when you create a Flash file is set the movie properties, which include the dimensions and other things like background color, frame rate, publish settings, etc.  While the string that I just listed can pretty much be revised anytime, the dimensions should really be done before anything else, when possible.
    One way to go about resizing is to leave the file as is and specify the larger dimensions in the html page code.  This could end up reducing the quality of any bitmaps you might have in the file(s) since you would essentially be enlarging them, but any Flash drawn elements will resize cleanly.
    If you resize the stage, then you don't have much choice but to resize and relocate everything in it keyframe by keyframe.

  • Change stage size in web browser without scaling

    I need to change the stage's size without auto scaling (i.e.
    cropping is ok) so that the user can scroll up/down the stage
    either with the browser's scrollbars or custom scroll bars I
    create. The height of the swf's contents change and so I need to
    change the stage's size or somehow crop it so that it would match
    the browser's size.

    At Adobe's web site at
    http://www.adobe.com/devnet/flash/samples/
    you'll find a link to the zipped sample files. In there, you'll
    find a folder titled "StageSize". Take a look at this example, it
    may explain how to achieve what you want to do.

  • Spry dataset problem. Image dimensions with css

    Hey guys.
    I'm new to spry, and not an experienced web designer with beginner knowledge in programming.
    I am using a spry data set to make a blog kind of interface. I'm using a master/detail layout from the Dreamweaver presets. I am using html, not xhtml and dreamweaver cs4.
    I want to change the dimensions of the images in the detail container. I would like to use the max-width command. I have tried using an id tag on the image detail column and using the width command on it with little luck.
    How can I do this. Using css is a must, because I'll be using InContext Editing so other users can upload images and posts. So they won't have to worry about the dimensions.
    Thanks alot.
    Helgi

    I forgot to mention one other problem
    The layout that I sketched up is the one I am going for. So a tip on how to get the text and the headings to flow around the image like shown in the picture would be greatly appreciated. Is it recommended to use tables inside div tags or spry for that matter?
    Thanks a million.

Maybe you are looking for

  • Help, I can't read or write DVDs

    I bought a Mac Pro 2.66 2 weeks ago and I just tried burning a DVD. It turns out my Sony D150A can't recognize any of my (ironically) blank Sony DVD-R discs. Not only doesn't it recognize blank media, but it also doesn't recognize any DVDs burned wit

  • 23" Studio Display Directly into Quicksilver DP G4?

    Just got a new 23" Cinema Display in anticipation of getting a new Mac Pro next week -- I'd like to plug it into my Quicksilver 1G DP G4 in the meantime to replace my older 17" Apple TFT Flat Panel Display. The plugs look similar, but I don't want to

  • Removing duplicates in the Internal Table

    Dear friends,   Could any one of you kindly help me with a code to delete the duplicates in the internal table, but each duplicate should be counted, how many times that appeared and should be displayed again as a report with the messages and no of t

  • Auth infoobject both in free char and selection screen

    Hi, Is it possible that I define authorization on, say operating unit, in BW and then provide the operating unit in free characteristic and query selection screen? Are there any restrictions to the above scenario?

  • W520 Base System Device PCI Bus 13 missing driver

    About a month ago I had to do a full restore of my W520 as Windows was totally hosed.  I thought that I had all of the right drivers at that time, but I notice that I have an item in Device Manager that is unrecognized.  Does anyone know what this is