How to resize the Director stage

I need my programme to adjust the size of the Director stage
to one of 3 dimensions at startup 1024x768, 768x432 or 1280x720
acording to a variable it reads in from a ini file. How can this
best be achieved within a single Director movie (I don't want to
just have a stub movie that loads a relevantly pre-sized movie
file)?
Many thanks
Kevin

Ok, (the stage).rect and (the stage).drawRect work fine but
if what you want to do is a monitor resolution change, i recomend
to use the Enhancer Xtra is excellent about change monitors
resolutions and others things.

Similar Messages

  • How To Display the directories of a System.

    How To Display the directories of a System.

    Hmm I think you need to be more specific. Do you mean like this:
    File f  = new  File("c:/");
    File[] fs = f.list();That lists all the files in that folder, then you can use the method isDirectory to check it. Mind you, you would have to go though every folder.

  • Guys, i want to ask on how to resize the images into 1200 pixels wide?

    Guys, i want to ask on how to resize the images into 1200 pixels wide, how to do it? and what are the step by steps on doing that? thank you!!!

    See this link: http://forums.adobe.com/docs/DOC-3691

  • How to resize the hard drive

    how to resize the hard drive

    You can usually find your Mac and the instructions to do so by looking it up on this page.
    http://support.apple.com/specs/

  • How to resize the stage from the top instead of the bottom?

    Hi  I am trying to resize the stage in Flash CS4 from the top instead of the bottom, as I left too much space at the top of the stage and don't need the stage to be so big.  By default Flash resizes from the bottom.
    So is there a way of resizing from the top?
    Failing this, is there a way of moving all the symbols/objects in my project so that I don't create a motion tween but just move the objects for all of the frames in the project (i have quite a few tweens in the project)?
    Thanks
    Nick

    the built in Stage class has two handy properties...
    Stage.width and Stage.height

  • How to resize window when stage style is undecorated ?

    Hi,
    I have one undecorated window and I want to make it resizable by using mouse.
    How can I do it ?
    If I use decorated window then it allows me to resize it.
    Thanks.

    Just make a draggable shape and resize the stage depending on the drag action.
    Here is a simple stage illustrating that and moving the window too.
    Note an old bug already seen in 1.1 at least: when dragging such window, on WinXP, sometime it seems to "jump" to one bound of the screen, then it goes back (in a flicker) to current position. Strange and annoying.
    def resizeHandle: Path = Path
        var origX = bind scene.width
        var origY = bind scene.height
        var startW: Number; var startH: Number;
        elements:
            MoveTo { x: bind origX, y: bind origY }
            LineTo { x: bind origX - 50, y: bind origY - 30 }
            LineTo { x: bind origX - 30, y: bind origY - 50 }
        fill: Color.CORAL
        stroke: null
        blocksMouse: true
        // Resize with the arrow
        onMousePressed: function (evt: MouseEvent): Void
            startW = stage.width;
            startH = stage.height;
        onMouseDragged: function (evt: MouseEvent): Void
            stage.width = startW + evt.dragX;
            stage.height = startH + evt.dragY;
    var keyHandler: Rectangle;
    def titleBar: Stack = Stack
        var title: Text;
        content:
            keyHandler = Rectangle
                width: bind title.layoutBounds.width * 1.2
                height: bind title.layoutBounds.height * 1.3
                fill: Color.web('#33FF55')
                blocksMouse: true
                // We can drag the stage by dragging the title bar
                onMouseDragged: function (evt: MouseEvent): Void
                    stage.x += evt.dragX;
                    stage.y += evt.dragY;
                onKeyReleased: function (evt: KeyEvent): Void
                    if (evt.code == KeyCode.VK_ESCAPE)
                        FX.exit();
                    println(evt);
            title = Text
                content: "Resizable and Draggable Window"
                font: Font { name: "Arial Bold", size: 24 }
                fill: Color.web('#331122')
    var scene: Scene;
    def stage: Stage = Stage
        title: "Undecorated Stage"
        style: StageStyle.UNDECORATED
        scene: scene = Scene
            width: 500
            height: 500
            fill: Color.GOLD
            content:
                Ellipse
                    centerX: bind scene.width / 2
                    centerY: bind scene.height / 2
                    radiusX: bind 0.45 * scene.width
                    radiusY: bind 0.45 * scene.height
                    fill: Color.AQUA
                Circle
                    centerX: bind scene.width - 55
                    centerY: bind scene.height - 55
                    radius: 50
                    fill: Color.PURPLE
                titleBar,
                resizeHandle
    keyHandler.requestFocus();

  • How to resize the video in Compressor?

    Hi all, my first post here,
    I just know  we can't optionaly resize the video in Final Cut Pro and
    using the compressor can resovle this problem,
    It's not very convenient to resize the video in FCP.
    i wanna ask how can i  resize the video in compressor
    Thanks a lot

    First, you should carefully think why you'd need to resize. You can export from FCP X to the standard sizes, both HD and SD. Do you really need some nonstandard size?
    Keep in mind that usually you'll get the best quality if you edit in the desired final size, rather than resizing afterwards.
    If you do need to create a video in some nonstandard size, like, say 1080x1920 (i.e. in "portrait" form), there is a way to do it:
    http://library.creativecow.net/articles/payton_t/FCPX_Custom-Resolution-Timeline s/video-tutorial
    With Compressor you have many pre-made defaults for different kinds of devices. Also, you can export to Quicktime and tweak the settings to get a desired size.
    1-Drag one of the existing settings (in the example below, I used SD 480p)
    2-Select it
    3-In the Inspector, select the "Geometry" tab
    4-Choose "Custom" and enter the desired size.
    5-Change the other properties (such as codec, under the "Encoder" tab), as needed
    5-Choose "Save As..." and save it (give a suggestive name, say "Portrait") so that you can later reuse it as needed.

  • How to resize the columns of a table?

    Hi there!
    I want to resize the column of a JTable(constructed via AbstractTableModel) to
    fit the exact width of the word in the header?
    Can anyone tell me how to do this thing?
    Regards,

    import java.awt.*;
    import javax.swing.table.*;
    public class ColumnResizeDemo extends javax.swing.JFrame {
        public ColumnResizeDemo() {
            initComponents();
            TableColumn column = null;
            for (int i = 0; i < jTable1.getColumnModel().getColumnCount(); i++) {
                column = jTable1.getColumnModel().getColumn(i);
                String hv = column.getHeaderValue().toString();
                JTableHeader th = jTable1.getTableHeader();
                FontMetrics fm = th.getFontMetrics(th.getFont());
                column.setPreferredWidth(fm.stringWidth(hv)+5);
        private void initComponents() {
            jLabel1 = new javax.swing.JLabel();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTable1 = new javax.swing.JTable();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Column Resize Demo");
            jLabel1.setText("Sets column width to fit exactly the corresponding header value");
            getContentPane().add(jLabel1, java.awt.BorderLayout.NORTH);
            jTable1.setModel(new javax.swing.table.DefaultTableModel(
                    new Object [][] {
                        {null, null, null, null},
                        {null, null, null, null},
                        {null, null, null, null},
                        {null, null, null, null}
                    new String [] {
                "Title 1", "Title 0002", "Title 0000003", "Title 00000000000004"
            jTable1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
            jScrollPane1.setViewportView(jTable1);
            getContentPane().add(jScrollPane1, java.awt.BorderLayout.CENTER);
            pack();
        public static void main(String args[]) {
            new ColumnResizeDemo().setVisible(true);
        private javax.swing.JLabel jLabel1;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTable jTable1;
    }

  • How  to resize the column header according to row data

    Hi,
    How can i resize the column header according to row date .. means if data is small header should be small and vice versa ,...
    Any help is appreciated .. Snippet will be more helpful .
    Thanks,
    Shekhar

    Oxley (binkley) blogged about this: http://binkley.blogspot.com/2006/01/getting-jtable-columns-widths-to-fit.html
    Christian Ullenboom | tutego

  • How to resize the menu,address and bookmark toolbars. Not the font but the toolbar sizes

    I'm trying to reduce the overall space of the top of the firefox page.
    I have the menu and the the bookmarks tool bars checked and between those 2 and the address and site header it takes up way to much real estate.
    My font size is good but the wasted area is way to much and I can't seem to find the simple answer to looking for addons and themes to just resize the height of the space.
    This is the new 33.1 and up to this point all custom has been a breeze.
    Thanks much.

    Hello,
    Have you considered running Firefox in [[How to make Firefox and websites go full screen|Full Screen mode]]? There is also an extension that hides the toolbars until you hover your mouse over the top of the screen:
    * https://addons.mozilla.org/en-US/firefox/addon/fullscreen-toolbar-hover/
    You can change the size of your toolbars by using the userChrome.css file, or by installing [https://addons.mozilla.org/en-US/firefox/addon/stylish/ Stylish] and using one of these styles:
    * https://userstyles.org/styles/9349/navigation-location-bar-minimal-height
    * https://userstyles.org/styles/9350/menu-and-searchbar-minimal-height-dm
    * You can edit the code of the style to suit your needs better. I don't know how it will affect the current interface, so if you find that Firefox becomes unusable after using this style, load Firefox in [[Troubleshoot Firefox issues using Safe Mode|Safe Mode]] and uninstall Stylish to remove it
    ** Alternatively, if the address bar still works, type in '''about:addons''' in your address bar, and go to the User Styles tab, then disable/remove the style
    For more information on userChrome.css:
    * http://kb.mozillazine.org/index.php?title=UserChrome.css

  • How to resize the Region's width

    Dear all,
    i am using apex 4.2.2 , oracle database 11g R2, internet explorer 9.
    i have created a region in HOME Tab for navigation menu.
    but its width is covering the width of whole page.
    how could i resize the width of the navigation region?
    Thank you so much.

    Hi Maahjoor ,
    you can set height with same code,
    just check with the different style properties
    in Region attributes put the below code.
    style="width:300px;height:200px;"
    Regards,
    Jitendra

  • How to handle the error stag(error DTP)

    Hi Friends, i got some records in the error stag while loading data from Dayta source to Master data target and this is in the production. we didn't created the Error DTP in the production. How to delete the error reocrds from the error stag if we dont want to update it to the target.And the request is showing in yellow due to that iam not able to delete the dtp request from the target.
    any help...to proceed with this error.
    thanks in advance.

    HI
    You are not able to delete the DTP from target?
    Change the request to RED
    Double clicking on theTrafic signal... then manually change the request to RED and Then you will be able to delete it.
    Hope this help...
    Dev

  • How to resize the itunes window in mavericks?

    How can I resize the itunes window in mavericks if the window is larger than the screen?
    Since the window is larger than the screen I cannot use the scroll-bar anymore properly...
    And since resizing is in the lower right corner that leaps out of the screen I can't resize it...
    any clues anyone?

    https://discussions.apple.com/message/16758346#16758346

  • How to resize the front panel to fit different resolutions

    I m using LabVIEW 8.2 on Windows XP SP2
    I've tried both “maintain proportions of window for different monitor resolutions” and “scale all objects on front panel as the window resizes” selected but just messed up everything when i switched to another different resolution. It's annoying since I'm using 22 inch monitor to do the coding but the user supposed to run it on laptop or wince.
    Any solutions to it?
    Thx in advance.

    Thank you all. Following is the reply from NI support.  I think the best way is to edit vi in low resolution.
    One of the easiest ways to tackle varying screen resolutions is to design
    the front panel to the lowest resolution that you expect it to run on. It
    should then look acceptable on any screen larger than that.
    However, you can get a bit more tricky by programmatically determining the
    computer's screen resolution and then dynamically changing the size of your
    front panel objects. Use an Application Property Node and select
    Display>>All Monitors to return the current screen size. Then, according to
    the screen size, you can size the control or indicator programmatically
    using the Size property node for your front panel objects.
    Ultimately, these issues have often been a result of font size issues.
    Specifically, this can be a problem when two machines have different
    desktop theme/font settings. If your objects are coming out in different
    sizes on different computers, you can setup up LabVIEW to use the same font
    on different systems by modifying the .INI file.
    The easiest way is to do this: use Tools->Options->Fonts from the LabVIEW
    GUI. You can then set the system fonts to anything you want. After you
    have done this on one machine, open your INI file (it is in the same
    directory as the LabVIEW executable) with any text editor and copy the
    corresponding entries to another file. Add these entries to the INI files
    on any machines you want to lock to font. You will probably run into
    issues if you are supporting different platforms (Windows and Mac or Mac
    and Linux, for example), since the fonts you want may not be available on
    both platforms. There are Windows fonts available for both Mac and Linux
    platforms, so this can be somewhat ameliorated.
    This is all I can think of, but that's not to say these are the only
    solutions. You might check the Discussion Forums, as many of our LabVIEW
    Champions have tackled similar issues and offer their expertise as well.
    Here's just a few threads that I'd like to refer you to:
    How to make the size of VI and controls unchanged irrespective of the
    resolution?
    http://forums.ni.com/ni/board/message?board.id=170&message.id=273613&requireLogin=False
    How to program the front panel size to fit different monitor resolution?
    http://forums.ni.com/ni/board/message?board.id=170&message.id=87160&requireLogin=False
    I hope this discussion helps you along the way in your application
    development. Please let me know if you have any further questions/comments
    and I would be happy to discuss them with you.
    Otherwise, it was a pleasure assisting you and thank you for choosing
    National Instruments.

  • How to merge the directories of 2 CUCM connected via ICT ?

    Hi out there,
    We have two CUCM 6.1.2 on two different locations connected via an intercluster trunk.
    A nice feature would be that side a can access the corporate directory of side b and vice versa.
    Under CCM 4.1.3 it was possible by modifying the the directory file.
    How can this be done under CUCM 6.1.2?
    I already tried by copiing the content of xmldirectory.jsp from both CUCM into one file and let both access this modified file on a webserver but this doesn't work.
    Either i get a parsing error or nothing happens.
    Would be nice if somebody can help me.
    Kind Regards
    Christian

    If you want two seperate directories, I beleive it as easy as this:
    Create an XML file (i.e "dual_directory.XML") and place it on an accessible web server.
    In the XML file, put the following XML code:
    <?xml version="1.0" ?>
    Select a directory
    Cluster 1 Directory
    http://cluster1_Pub_IP:8080/ccmcip/xmldirectoryinput.jsp
    Cluster 2 Directory
    http://cluster2_Pub_IP:8080/ccmcip/xmldirectoryinput.jsp
    Then go into the phone config from the CCM Admin page and point the Directories URL to the XML file you just created.

Maybe you are looking for

  • Merging multiple libraries

    On my C drive under Music- Itunes, I have multiple Itunes libraries.  There are some duplicates (don't get me started on that !).  There are regular music libraries and xml libraries.  How do I consolidate them all into one, so that when I un-install

  • I just want to make a pie chart

    I've been assigned to make a pie chart in class (with each section a different color), and I've loaded the javax.swing.JApplet and java.awt.* I've only gotten as far as drawing the circle. I know how to create lines, but I can't figure out what I'm s

  • One remote interface vs. lots of interfaces

    Hi, I am now designing an API using RMI. I can do it in 2 ways: One remote interface which has lots of functions, or seperate it to lots of logical interfaces, which the client needs to get a remote interface of all of them. Does anyone face this pro

  • Sound problems after export media in premiere pro cs6

    hello, i recently started usining premiere c6 and after exported my project to mpeg-dvd i noticed that sound quality is reasonably lost,  than exported sound  separatedly without video to wav and result was the same bad. The imported sound source was

  • UNIX calls from a Windows platform thru JSP

    We have a Tomcat Webserver that runs off a Win2000 server. The primary interface is a JSP and the it fetches data out of an Oracle DB (hosted on Unix) and displays the same. Is there any way that I could also make calls to the Unix server to show som