Align Stage to center of PasteBoard (or window when exported)

Hi everyone!
I think there's something wrong with my flash =/
I'm doing some tests and I'm trying to create a simple presentation. It's not something I'll be using online. I just want it to present some things at school. Since I don't know the resolution of the monitor at school, I wanted something I could max the window and rest with the content (stage) centered.
At start, everything was working fine but sudenly the stage started to be aligned to top left when exported and windows maximized.
Here's my code:
stop(); //LOADING BACKGROUND var myImage:URLRequest = new URLRequest ("bkg.swf"); var bkgLoader:Loader = new Loader (); var container:MovieClip = new MovieClip(); function imageLoaded (e:Event):void {      container.addChild(bkgLoader);      addChildAt(container,0); } bkgLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, imageLoaded); bkgLoader.load(myImage); //NEXT & PREVIOUS BUTTONS next_btn.addEventListener(MouseEvent.CLICK, goSlide); prev_btn.addEventListener(MouseEvent.CLICK, goSlide); function goSlide (e:MouseEvent):void { } 
The bkg.swf is an external background I'm using... it ajusts it's size to fill all the window automaticaly.
When I first wrote this code, it was working fine. Than I added some objects and MC's to the stage and now whenever I export the file it's aligned to the top left of my window.
If I remove all the code (//LOADING BACKGROUND), it works fine =/
Thanks!

Oh my! You again?
Andrei, I just saw your answer to our other thread, but I really need to solve this before getting back there.
Well, the .swf I'm importing is already doing the "full screen" thing since it will adjust itself to the size of the window.
The problem is that the content on the stage (or the stage itself) is aligned to TopLeft when I do a CTRL+Enter to export the movie from Flash.
Normally, when I create any flash file, when I export it, the content is always at the center on the .swf preview window, no matter the size of this preview window.
I'll take this little presentation to the university next week. I'll just open the .swf and maximize it to start the presentation. The problem is that when I do so, the background (imported swf) is there, filling all the background, but my content (stage) becomes aligned to TopLeft of the window.
ps.: To solve this problem I can simply create a html file to load the background (imported swf) and than load just my presentation over it. But there must be a way to solve this problem inside Flash, without going to html... =/

Similar Messages

  • I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed.

    I've downloaded the Creative Cloud, once completed the creative cloud window pos up with spinning whell in center then the entire window disapears. How do I get it to remain open so that I can download programs needed

    right click the executable > click 'run as administrator'.

  • Lenovo ideapad yoga 13 pci data acqusition and signal processing center for problem for windows 8

    Link to picture
    hi everyone, 
    find original w8 cd and then i installed, when i was installing
    i deleted all recovery and other partition, i did not think what can i do,
    but then i activated windows and installed all driver, but i taking 
    after all drivers it stayed
    2''unknown devices''
    and when i rebooted, it says, usb device not recognized'' and also
    ''pci data acquisition and signal processing center'' devices problem for windows 8. and touchscreen not working.
    i read related for w7 same problem, but what i will do now ?
      thanks.
    Moderator note; picture(s) totalling >50K converted to link(s) Forum Rules

    hi adilsefaersan,
    Welcome to Lenovo Community Forums!
    By opening your Device Manager right click on one unknown device and choose properties,
        >On the properties windows Click on the Details Tab, on the property drop down Choose hadware IDs
         > then copy the value and post back here whats on the Value pane
    Do it for all those unknown Device and Post here the Value of the hardware ids
    also can you share your Windows Version and bit type so we'll knwo the correct download page for you
    Thanks and Regards
    Solid Cruver
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • In Yosemite, pasted objects in Photoshop Elements 12 automatically snap to the center of a new window. How do I stop this from happening?

    I installed Yosemite yesterday. Now, when I paste an image into a new window to combine it with another image, the layer or layers automatically snap back to the center of the new window. How do I stop this from happening?

    Thanks, Barbara. I don't use a trackpad on my iMac, just a mouse. However, I DID discover yesterday that if I press COMMAND-T (the command to Free Transform an image) I can then move the image where I want in the window. I need to use the command every time I move the image, which is annoying--in Mavericks, that Free Transform command was somehow the default.

  • 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();

  • Align type to center of type, not to its bounding box.

    I'm trying to align a line of type to a basic object by clicking on the align to center button. Illustrator aligns the type to its bounding box, wich in many cases depending on the font used, is not the center of the type. Is there a way to tell ai. to align to the center of the type and not to its bounding box?

    Kurt is right, without the effect path >> outline object, would look like this.
    I like kurt's method of doing this better, but another way is:
    Draw a dummy rectangle, exactly the height of the type. Scale this holding down shift so it is larger thatn the bounding box, group this with the type, then align.
    Make the rectangle stroke none when done.

  • Aligning Text in Center of JTextArea

    This is a part of my previous question.
    Is there a way of aligning text, left-center-right in the JTextArea.
    Someone had mentioned JTextPane for aligning Text in the center. What is the code for this?
    Thanks again for your help.

    I'm sorry. I am new at Java so some of these concepts that may be clear to you aren't as obvious to me.
    I inserted the code as you instructed. However, I am not sure if I have to include something else.
    Please advise:
    import javax.swing.*;
    public class HelloClassTwoLine
    public static void main(String args[])
    JTextArea outputTextArea = new JTextArea(); //Create listbox object
    JScrollPane scroll= new JScrollPane(outputTextArea); //create vertical scroll object
    ===> added to original code JTextField textField=new JTextField();
    ===> added to original code textField.setHorizontalAlignment(textField.CENTER);
    outputTextArea.setText("Hello, This is Java 374\n" + //set text in list box
    "This is Java 374 with Ravi");
    JOptionPane.showMessageDialog(null, scroll, //text is argument in JScrollPane object
    "Java Program #2", JOptionPane.INFORMATION_MESSAGE);
    System.exit(0);
    thank you again for your help
    }

  • System Center Management Pack for Windows Server Operating System not available

    Hi,
    i have problems to download the updated version of the System Center Management Pack for Windows Server Operating System.
    Here is a link that says that this MP was updated some days before but the download link is broken:
    http://www.microsoft.com/germany/technet/aktuell/news/show.aspx?id=msdn_de_56942
    http://www.microsoft.com/en-us/download/details.aspx?id=9296&WT.mc_id=rss_alldownloads_all
    If i try download this MP through the SCOM 2012 Console i get also an download error.
    Can you help me?
    Thanks

    Hi,
    Don't import the MP, there is a bug in the MP
    https://nocentdocent.wordpress.com/2015/01/13/scom-os-mp-6-0-7294-0-serious-flaw/
    http://thoughtsonopsmgr.blogspot.dk/2015/01/warning-dont-update-to-latest-windows.html
    http://kevingreeneitblog.blogspot.dk/2015/01/scom-new-windows-server-os-management.html
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How can I implement a comfirmation window when closing javafx application?

    hi,guys
    I'd like to add a confirmation window when user is closing my javafx application,if user click yes, I will close the application,if no ,I wouldn't close it ,how can I implement this function?
    primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>(){
                   @Override
                   public void handle(WindowEvent arg0) {
                        try
                             //todo
                        catch(Exception ex)
                             System.out.print(ex.getMessage()+"\r\n");
            });

    Hi. Here is an example:
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Pos;
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.paint.Color;
    import javafx.scene.layout.*;
    import javafx.scene.control.*;
    public class ModalDialog {
        public ModalDialog(final Stage stg) {
         final Stage stage = new Stage();          
            //Initialize the Stage with type of modal
            stage.initModality(Modality.APPLICATION_MODAL);
            //Set the owner of the Stage
            stage.initOwner(stg);
            Group group =  new Group();
            HBox hb = new HBox();
             hb.setSpacing(20);
            hb.setAlignment(Pos.CENTER);
            Label label = new Label("You are about to close \n your application: ");
            Button no  = new Button("No");
            no.setOnAction(new EventHandler<ActionEvent>() {
                public void handle(ActionEvent event) {
                       stage.hide();
            Button yes  = new Button("Yes");
            yes.setOnAction(new EventHandler<ActionEvent>() {
                public void handle(ActionEvent event) {
                       stg.close();
             hb.getChildren().addAll(yes, no);
             VBox vb =  new VBox();
             vb.setSpacing(20);
             vb.setAlignment(Pos.CENTER);
             vb.getChildren().addAll(label,hb);
            stage.setTitle("Closing ...");
            stage.setScene(new Scene( vb, 260, 110, Color.LIGHTCYAN));       
            stage.show();
    }Test:
       import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.*;
    * @author Shakir
    public class ModalTest extends Application {
         * @param args the command line arguments
        public static void main(String[] args) {
            Application.launch(ModalTest.class, args);
        @Override
        public void start(final Stage primaryStage) {
            primaryStage.setTitle("Hello World");
            Group root = new Group();
            Scene scene = new Scene(root, 300, 250, Color.LIGHTGREEN);
           primaryStage.setOnCloseRequest(new EventHandler<WindowEvent>(){
                   @Override
                   public void handle(WindowEvent arg0) {
                                    arg0.consume();
                        try
                         ModalDialog md = new ModalDialog(primaryStage);
                        catch(Exception ex)
                             System.out.print(ex.getMessage()+"\r\n");
            primaryStage.setScene(scene);
            primaryStage.show();
    }

  • How to keep the image centered in the window when mouse zooming in cc 2014

    I,m not able to keep the image centered in the window when using the mouse scroll wheel for zooming.

    Ctrl + and - keys are meant for "center zoom".  As far as I know, the zoom tool is a "point zoom" tool. If you move the zoom tool with your mouse, it will zoom in on that part of the image.
    Also Ctrl 0 is "fit to screen" and Ctrl 1 is 100% zoom. (Use Cmd if this is a Mac)
    Gene

  • 10.4.8 Client takes long time to get to login window when bound to OD.

    I am working on a system in a school. We have a dual processor g5 xserve with 4 gb of ram, the raid card, and 3 500 gb drives.
    Fresh install of 10.4.8 with all the updates.
    Raid 5 split in 2 volumes, one for server and one for data.
    AFP service running.
    Local dns running.
    Promoted to open directory master.
    This is the following test scenario i have.
    there is a user called studenttest and he belongs to a group called cccarstarmembers and is in a workgroup called student.
    the studenttest users home folder exists in a sharepoint called students that is set up on the data partition.
    there is a sharepoint called cccarstar that holds data for some educational software we use. The owner is administrator with rw access, the group is cccarstarmembers with rw access and others have no access.
    The student workgroup only has a few changes like dock location just for testing purposes to verify that the work group is working properly.
    When i bind a newly built 10.4.8 client with all the updates to the od server it intermittantly takes a long time for the client to get to the login window when it is powered up. Sometimes it will get to the login window in 45 seconds and other times it will take 5 minutes. This is not consistant. if you unbind the client then the computer will behave properly consistantly.
    I have tried binding the client to the od master using the fully qualified domain name and the ip address with the same results.
    the search path on the server is "dc=osx1,dc=erm,dc=sd,dc=bc,dc=ca" and on the client it auto populates at cn=config,dc=osx1,dc=erm,dc=sd,dc=bc,dc=ca".
    I have changed the search path on the client to match the search path on the server with no success as this is what used to work for us on panther setups.
    But this school has a panther client i am working on at the same time with the same applications installed and system preference settings and when i bind it to the same od master with the same search path that is displayed on the server it works fine. all users work, all groups and work groups work.
    Dns appears to be working. lookup provides the correct forward and reverse lookup info on the server, if i use either the panther or tiger client and use lookup with the servers fully qualified domain name and ip address i get the correct answers back.
    I had this problem before where tiger gave me slow to login screen problems but panther wouldnt when bound, and apple told me that it was because i had afp guest access disabled on the server. Enabling it resolved the issue about 6 months ago at another site but this time when building the server i made sure it was on from the start even thoug it is off by default.
    Any suggestions, i am pulling my hair out and about 8 working hours from a deadline.

    I've seen this a lot.
    This Knowledge Base article refers to Active Directory but we've seen this fix login delays with OD-only environments too:
    http://docs.info.apple.com/article.html?artnum=303841
    Another one of the causes is when you have multiple network mounts and your AFP service has guest access disabled. The loginwindow is trying to authenticate to each share with the username given and it is failing when that user account is not authorised for that share.
    Another can be the LDAP timeout value(s). Try adjusting these in the LDAPv3 plug-in.
    Also make sure your network ports have portfast/faststart set on the Mac ports. Sometimes because of STP the port isn't initialised fast enough for the OS when it's ready to start LDAP'ing.
    Let me know if any of this helps.

  • Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when i enter account name and password for one account, i cannot access other accounts, because windows saves username

    Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when I enter account name and password for one account, i cannot access other accounts, because windows saves username. how can i prevent this from happenning. I really need to access all my accounts and dont want it to save automaticlly.

    Why have 5 accounts if you need to access all of them.. just have one account?
    Sorry I cannot follow why you would even use the PC to control the Time Capsule. Apple have not kept the Windows version of the utility up to date.. so they keep making it harder and harder to run windows with apple routers.

  • How to define target window when redirecting within frames using servlet?

    Howdy:
    Is there a way to define target window when redirecting within frames using servlets?
    How to do it in JSP as well?
    T.I.A.
    Oriental Spirit

    Your servlet (or JSP) can't decide where it is going to be displayed. The browser has already decided that when it makes the request to your servlet.

  • PS CS5 Extended on Windows -  When trying to use the clone stamp and/or healing brush as soon as I move the cursor over the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  W

    PS CS5 Extended on Windows
    When trying to use the clone stamp and/or healing brush as soon as I move the cursor from the toolbar over to the image I get an exact copy of the existing layer that moves around the window with the movement of the clone stamp/healing brush.  This just started tonight.  What's causing this weird behaviour?

    What are the settings in Window > Clone Source?

  • When i open safari on my Imac if i also open an additional window, when i then close them down and reopen safari they both paper again.also if i then add additional windows the additional windows keep coming up too

    when i open safari on my Imac if i also open an additional window, when i then close them down and reopen safari they both paper again.also if i then add additional windows the additional windows keep coming up too

    If you are running v10.7 Lion, disable Resume >  How To Disable Lion's 'Resume' Feature - MacRumors.com

Maybe you are looking for

  • Can you use AirPrint to print to hard wired printer via your WiFi network?

    Recently I bought an Officejet 6700 Premium e-All-in-One to serve all my PCs in the house and to use the AirPrint functionality for all the iPhones & iPads. The printer is located in the basement office where there is poor wireless reception, and the

  • Rac node restart

    Hello everyone, I have met an error,that is our RAC node auto restart with below messages. #/u01/app/oracle/diag/rdbms/odsdb/odsdb1/trace/alert_odsdb1.log Fri Jun 07 12:23:42 2013 Thread 1 cannot allocate new log, sequence 58363 Checkpoint not comple

  • Web Service Response with Extra Data

    I am calling a vendor web service, using HTTP adapter, and get a "No data allowed here" error.  When looking at the payload coming back from my vendor (the service response), it looks like they are adding data before and after the xml portion of the

  • [SOLVED] Help to compile qutim 0.2 please!

    Hello everybody, I'm trying to compile a package "qutim 0.2" messenger, the best lightweight linux gui messenger out there. Help needed as I can't compile it from AUR package and from source. here is what I get: [100%] Building CXX object CMakeFiles/

  • What formats does oracle bpm exports to

    Hi, can you please suggest me the formats exported by Oracle BPM for BPMN diagrams? ...does it export to XPDL? Visio? etc.. Thanks for the help kalyan Edited by: 915561 on Feb 19, 2012 8:59 PM Edited by: 915561 on Feb 19, 2012 8:59 PM