Fix the position of the movieClip

Hello all,
yesterday i got solution from murphy that to load the xml value in a duplocate movie clip.
Thanks you murphy... now i have done a math class to make it xml value in best fit in my screen.
1. now  i want o make my moviClip in fixed postion...
please help me
for the referance i have attached the source files 1.fla 2. xml and 3. uiDesign image
Thanks for the advance help

Hi,
Try this
     var h = holder_mc._height;
     var w = holder_mc._width;
    best_fit = Math.round((h > w ? (contheight / h) : (contwidth / w)) * 100);
    holder_mc._xscale = best_fit;
    holder_mc._yscale = best_fit;
    holder_mc._y = 500;
Saransoft

Similar Messages

  • How do you fix the position of an object vertically only ("static" position horizontally)?

    I want to fix a "title" bar of a table vertically, but allow it to scroll with the rest of the page content horizontally. At the moment it's position is "fixed" which fixes the position vertically but horizontally too. I would like to have the coloured cells move horizontally with the rest of the table in the case that the browser window is not wide enough.
    Can this be done? If so, how?
    (this picture shows that the horizontal positions are different - would like them to remain in line with each other)
    Sorry if this is a silly question, I've only started using Dreamweaver yesterday... Thank you in advance for any help and advice.

    If you want to align your item horizontally center, left or right (along with other website content), you can put that item within a fixed position container, then align the item within the container however you see fit.
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <div id="container" style="position:fixed; top:0px; height:100px; width:100%; border:1px solid orange;">
         <div id="item" style="width:300px; margin:auto; border:1px solid black">Some Content</div>
    </div>
    </body>
    </html>
    In the simplified example above, the container div is fixed to the top of the page, the item div is also then fixed at the top, however using css, it is  centered to the browser window. The border properties are there for illustrative purposes

  • How to fix the position of JInternal frames added in JFrame

    Hay Frnds, I am having a problem. I have a JFrame ,in which i have added five JInternalFrames. My problem is that i want to fix the position of thaose Internal frames so that user cant move them from one place to other. Is there any way to fix there position. Plz reply as soon as possible. Its very urgent.
    Thanks.

    In Jframe I added one rootPanelI don't know what a rootPanel is or why you think you need to add one.
    The general code should probably be something like:
    frame.add(userPanel, BorderLayout.CENTER);
    frame.add(buttonPanel, BorderLayout.SOUTH);
    frame.pack();Read the section from the Swing tutorial on [Using Layout Managers|http://java.sun.com/docs/books/tutorial/uiswing/TOC.html] for more information and working examples.
    For more help create a [SSCCE (Short, Self Contained, Compilable and Executable, Example Program)|http://sscce.org], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • How to fix the position of JInternalFrames added in JFrame.

    Hay Frnds, I am having a problem. I have a JFrame ,in which i have added five JInternalFrames. My problem is that i want to fix the position of thaose Internal frames so that user cant move them from one place to other. Is there any way to fix there position. Plz reply as soon as possible. Its very urgent.
    Thanks.

    import javax.swing.plaf.basic.*;
            BasicInternalFrameUI internalframeUI = (BasicInternalFrameUI)frame1.getUI();
            internalframeUI.getNorthPane().addMouseListener(new MouseAdapter() {
                public void mouseReleased(MouseEvent evt) {
                    frame1.setBounds(0, 0, frame1.getWidth(), frame1.getHeight());
            });

  • Fixing the position of TitleWindow component.

    Hello,
    I am trying to create an application which has different pages using Flex. Each page is a Flex Title window.
    When I click on an icon in the main application window, another page should open (which is actually a title window).
    I am trying to fix the position of title window from moving. I should not be able to drag title window in the browser.
    I am trying to find a way but was failing each time
    Can you please help me in resolving this problem?
    Thank you for your cooperation.
    Cheers,
    KK

    Try using a Panel component instead of TitleWindow.
    HTH,
    Kenny Yates

  • Fixing the loupe tool position while making adjustments

    I haven't found a way to do this - maybe it's an enhancement - but just in case ....
    Is there a way to fix the loupe in position while making adjustments (ex. noise and sharpness)? I'd like the loupe to display real-time the results of the adjustments being made.
    I checked the manual but didn't see anything. Is it do-able or is it future?
    Thank you.

    I haven't found a way to do this - maybe it's an
    enhancement - but just in case ....
    Is there a way to fix the loupe in position while
    making adjustments (ex. noise and sharpness)? I'd
    like the loupe to display real-time the results of
    the adjustments being made.
    I checked the manual but didn't see anything. Is it
    do-able or is it future?
    Actually right around the time of 1.0.1 a number of people were asking for this - I also submitted a suggestion to see it as well.
    Currently the closest thing you have is to zoom in on a specific area at 100% and evaluate that region while making changes. That works pretty well, but with larger images 100% is not quite close enough.
    There are two ways to fix that I think, allow the user to define what the "100%' zoom really is, or allow the user to have multiple sticky loupes they could leave on an image.

  • Please help me ! how to fix the position of NSWindow ?

    Hello everybody,
    I have a NSwindowController < NSWindowDelegate > (with windowWillUseStandardFrame implemented) which is supposed to fix the position of my window.
    Except never this method is called ! Nevertheless there is indeed a delegate...
    In fact in the launch of my soft, the system makes little as it wants: it cascades me windows or keeps me the last position of every window.
    I tried to deactivate the cascading, the same problem...
    All the directives concerning the NSWindow seem to be ignored !
    I do not know if it is a pure coincidence, but since I passed of a macBook 13p under 10.6 (XCode 4.0.1) in a mini mac with screen 24p under 10.7 (XCode 4.3), everything seems not to work any more as before ?!
    I wish I can align in the topleft of my screen all my windows (I tried all the concerned methods, the same problem) to loosen me of the resolution of the screen.
    If you have an idea, it will be welcome.
    Thanks you in advance.
    FM.

    OUNAS wrote:
    I find very openly the management of the positioning of a window very complex while it is a basic task !
    Thanks.
    FM
    Bonjour Ounas,
    It is not complex, within Cocoa simple things are easy to implement (and complex are possible). If you find it the other way you made a mistake somewhere.
    In your case I would start by putting a breakpoint in the methods and run the application in Debugg Mode.
    And if :
    - your method is not called
    - your window is 0x0 inside the method
    Closely look in Interface Builder if the connection is correct between your window and its variable in code and if your controller object is well assigned as its delegate. For that just select the window object in the nib and do a right/control click on it to see if it is well connected with controller's objects (alternatively use the Menu -> View -> Utilities -> Show Connections Inspector).
    As for the time to call your "fix" method what about the "- (void)windowDidLoad" call in your window controller subclass ?
    I had lots of troubles to get it called when I started with Cocoa. For it to works you have to be sure the window is well connected in IB to your window variable. And you need to load that f*¿!^ fichue window by any call to it via your controller like
    //After call window is 0x0 in the debugger if you look at it by unfolding the triangles self>controller>NSWindowController
    controller = [[RTWindowController alloc]init];
    //This one will trigger the controller's windowDidLoad method
    [controller showWindow:self];
    //a simple [controller window] is enough to bring it to life
    hth
    laurent

  • How to fix the position of controls, so table expands into whitespace and doesn't push lower controls down (invoice report in SSRS 2005)

    I am designing an invoice report. There are some controls at the top of the report (company logo, date, invoice number etc), followed by a table listing the items in the invoice, followed by some controls at the bottom (subtotals, returns address etc). The report should always print onto a single page.
    I want the controls at the bottom to have a fixed position on the page. There is sufficient whitespace between these controls and the table above for the table to expand to list many items. However whenever it expands it pushes the lower controls down. This results in them spilling onto a second page.
    Is there a way to fix the position of controls and suppress the "gets pushed down when controls above expand" effect?

    Thanks for that. I found a good solution using rectangles here: SQL Server 2005: Report Design Best Practices and Guidelines
    Here's the relevant part (see underlining):
    Using Rectangles to Keep Objects Together
    Rectangles in Reporting Services can be used either as graphical elements or as containers of objects. As object containers, they keep objects together on a page and control how object move and push each other.
    To keep multiple objects together on a page, put the objects within a rectangle. You can then put a page break before or after the rectangle by using the PageBreakAtStart or PageBreakAtEnd properties for the rectangle.
    Using Rectangles to Control Item Growth and Displacement
    Items within a rectangle become peers of each other and are governed by the rules of how peer items are positioned on the page as they move or grow. For example:
    Items will push or displace each other within the rectangle.
    Items will not push or displace items outside the rectangle, because they are not their peers.
    If necessary, a rectangle will grow to accommodate the items it contains.
    You can use this logic to your advantage when dealing with objects that expand. For example:
    If you want to leave a blank space in your report for a table to expand into, group the blank space and the table in the same rectangle. When the table grows, it will push the blank space .
    If you want to prevent a matrix from pushing items off the right edge of the page, put the matrix within a rectangle with blank space to its right. Now, the matrix is no longer a peer to the other item on the page and will not be able to push it until the matrix can no longer be contained within its rectangle.

  • How to fix the position of table columns.

    Hay all,
    Can anybody tell me that how to fix the position of columns in a table.By default the columns can be moved to any position in the table.
    Regards,
    Sharad Agarwal

    table.getTableHeader().setReorderingAllowed(false);this will do...
    Regards,
    Byju

  • I am running MS Office for Mac 2008 on my MacBook Pro.  I do not have the Standard and Formatting toolbar fixed into position, as I would expect and would like.  I can access them via the View menu, where I have to select and de-select them before I can g

    I am running MS Office for Mac 2008 on my MacBook Pro.  I do not have the Standard and Formatting toolbar fixed into position, as I would expect and would like.  I can access them via the View menu, where I have to select and de-select them before I can get them to display, but lose them when I log off. Can anyone help?  I have tried all the usual and supplied help facilities to no avail.  Thanks

    Post the question in Microsoft's own Office for Mac forum.

  • How to fix the position of different component?

    Hay all,
    Can anybody tell how to fix the position of any component so that they cant be moved from there initial positiion
    Regards,
    Sharad Agarwal

    Set layout to null and set bounds of the component to whatever you like.

  • How can I fix the remote control order of the chapters?

    I am using the new 6.0 theme of Reflection Black--submenu Chapters. THis gives you two rows of chapters (which shows the looping movies and title of the chapter). I am importing the .mov slideshows in the order I want them accessed with the remote control of the TV (or DVD Player remote), but this is not the case. Instead, when clicking the right arrow on the remote control, the next chapter is not the one laid down in order, but another chapter. (From the first chapter, it skips to the second row, then back to first row, then back to second row.) Basically, the remote does not forward to the next chapter in the order they were imported.
    Can anyone help? I have been told by Applecare that the map icons cannot be reordered. But starting a new iDVD project and importing in order does not work. I tried other themes and the ones with lists work and can even reorganize the order for you if you drag and change the position of the chapter!
    Thanks

    There seems to be some order in some themes, but this particular one has no order. Hoping also to hear of a solution. Applecare said to reinstall iDVD if I can't fix the problem with creating a new project, but I don't think this is the issue, since other themes work.

  • Are you guys going to fix the memory leak in version 6

    Hi I was wondering if you guys were going to fix the huge memory leak in Firefox 6. As of now I use windows Vista 32bit Ultimate and Firefox is using 164MB of memory to view www.google.com. I'm sorta confused also on how SLOW the browser is. I never seen F.F act this way since F.F 6. I'm hoping that this will be resolved in version 7 cuz this is not cool so slow in all.

    On the "flip-side", I had the smoothest and quickest iTunes upgrade/install ever.  This was on my Windows 7 Professional, 64bit system.
    That you performed an assumedly 'clean' reinstall of your OS, is not a good sign.  Obviously, iTunes doesn't like something within your system.
    Here are the next steps that I would take if in your position:
    -  Are you absolutely positive that you have the 64bit version of iTunes?
    -  Re-download a new copy of the 64bit version of iTunes 10.5
    -  Try downloading iTunes from one of the 'mirror sites' - FileHippo is good
    -  Call your PC's manufacturer and see if they are aware of any conflicts with your specific machine's build with respect to iTunes
    -  Temporarily use another PC (if available) to get your iPhones up and running
    Best of Luck

  • How to fix the above mentioned, *"special Incoming Closed margins"*.

    Valuation runs (TPM1) fails with the error below:
    Unfixed bus. trans. with posting date 02/23/2012 before key date (long text)
    Message no. TPM_TLV1028
    Diagnosis
    The position that is to be valued contains a position-relevant business transaction Close margin listed options and futures in status Scheduled with posting date 02/23/2012 This is earlier than the valuation key date.
    Question is how to fix the above mentioned, "special Incoming Closed margins".
    PLease note that TPM18 or TBB1 does not work....
    Regards,
    Rahul

    Hello Lorenz,
    I get no flows selected but report tpm13 clearly shows there is an OUTGOING CLOSED MARGIN update type in scheduled status ?
    Any ideas. This issue has been reported before but no results.
    Regards,
    Rahul

  • Does Mainstage 2.2 fix the bug when using Ultrabeat as your click track / metronome?

    There was a bug where the Ultrabeat sequencer would run, but no sound would come through the channel strip.  It's pretty annoying to have to pay $30 for a bug fix, but I might do it, if it would indeed fix the bug.
    Does anyone know?   Thanks

    I'm currently using UB as my click track. I created a custom template in UB and imported my click samples. I do not set up UB at concert level but instead set up UB at each one of my SETS level. I set the tempo and time signature under each SET.
    I then map a button to ACTIONS>PLAY/STOP not to CLICK(name of channel strip)>ULTRABEAT (Drum Synth)>SEQUENCER PLAY/STOP. This allows me to stop and start the click track and for the drummer to count the song off whenever he feels like.
    I then use PLAYBACK to play my backing tracks in time with the click. I map a button for PLAYBACK to NAME OF PLAYBACK TRACK>PLAYBACK>TRANSPORT>PLAY/STOP (From Start).
    Under my PLAYBACK options I set SNAP TO>BEAT and PLAY FROM>CURRENT POSITION.
    The only problem I've found with this is that if you start the PLAYBACK before the UB click it will turn on the UB click. Other than that it has been working well for me.
    Also, add a button mapped to PANIC somewhere in your setup so you can cease any/all midi/tracks at anytime.
    Devin

  • Please help me fix the error

    I am not done with the program but I get errors that I am not sure how to fix them. I was wondering if anyone can help me solve the problem.
    This program is a quiz program and has to handle 3 subjects. The user is able to select from these 3 categories. The program presents 3 questions and has to provide 4 option for each question. One would be to exit from the quiz. If the user responds to a question correctly, the program displays a positive feedback message. If the user responds incorrectly to the question, the program displays the correct answer. Exiting the questions menu returns the student to the topics menu. At the end of the quiz, the program displays the total number of correct and incorrect answers for each topic. Have a counter to count the correct answers.
    Plese help me fix the problem with the code
    import java.util.Scanner;
    import java.io.*;
    public class Test
    int correctAnswer = 0;
    String str;
    String q;
    Scanner scan = new Scanner (System.in);
    System.out.println("key in m for Math category, s for Science category, a for Art category, or x to exit the test");
    String str = scan.nextLine();
    while (str != 'x')
    if( str == m)
    System.out.println (" What is the area if Triangle? a) l*W b)S^2 c)1/2 b * h");
    q = scan.nextLine();
    if (q == c)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("What is the premiter? a)The distance of all the sides b)the parallel distance c)The angle of a shape");
    q = scan.nextLine();
    if (q == a)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("What is a right angle? a)100 degree b)180 degree c)90 degree");
    q = scan.nextLine();
    if (q == c)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    if( str == s)
    System.out.println (" What is Diffusion? a)No movement between Molecules b)Movement of molecules high to low c)Movement of molecules high to low");
    q = scan.nextLine();
    if (q == c)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("What is the element sign for carbon dioxide? a)CO2 b)CO c)O2");
    q = scan.nextLine();
    if (q == a)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("What is the normal body temperature? a)98.5 b)99.0 c)102.1");
    q = scan.nextLine();
    if (q == a)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    if( str == a)
    System.out.println ("which artist painted the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
    q = scan.nextLine();
    if (q == a)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("which artist painted the Sister Chapple? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
    q = scan.nextLine();
    if (q == a)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    System.out.println ("which artist paint the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso");
    q = scan.nextLine();
    if (q == b)
    System.out.println(" your answer is correct");
    correctAnswer = correctAnswer+1
    else System.out.println(" your answer is not correct");
    }}

    Here's a better version, fixing what I mentioned above. I haven't test compiled it, but it should work now. As a note, you might want to look into the ++ operator as well. And when you post code, enclose it in the "code" tags (see the code button above your posting). That makes it easier to read.
    Anyway, here it is:
    import java.util.Scanner;
    import java.io.*;
    public class Test {
         int correctAnswer = 0;
         String str;
         String q;
         Scanner scan = new Scanner (System.in);
         static public void main(String [] args) {
              System.out.println("key in m for Math category, s for Science category, a for Art category, or x to exit the test");
              String str = scan.nextLine();
              while (!str.equals("x")) {
                   if( str.equals("m")) {
                        System.out.println (" What is the area if Triangle? a) l*W b)S^2 c)1/2 b * h");
                        q = scan.nextLine();
                        if (q.equals("c")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                              System.out.println(" your answer is not correct");
                        System.out.println ("What is the premiter? a)The distance of all the sides b)the parallel distance c)The angle of a shape");
                        q = scan.nextLine();
                        if (q.equals("a")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                              System.out.println(" your answer is not correct");
                        System.out.println ("What is a right angle? a)100 degree b)180 degree c)90 degree");
                        q = scan.nextLine();
                        if (q.equals("c")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else { System.out.println(" your answer is not correct");
                   if( str.equals("s")) {
                        System.out.println (" What is Diffusion? a)No movement between Molecules b)Movement of molecules high to low c)Movement of molecules high to low");
                        q = scan.nextLine();
                        if (q.equals("c")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                             System.out.println(" your answer is not correct");
                        System.out.println ("What is the element sign for carbon dioxide? a)CO2 b)CO c)O2");
                        q = scan.nextLine();
                        if (q.equals("a") {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                             System.out.println(" your answer is not correct");
                        System.out.println ("What is the normal body temperature? a)98.5 b)99.0 c)102.1");
                        q = scan.nextLine();
                        if (q.equals("a")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                             System.out.println(" your answer is not correct");
                   if( str.equals("a")) {
                        System.out.println ("which artist painted the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
                        q = scan.nextLine();
                        if (q.equals("a")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                             System.out.println(" your answer is not correct");
                        System.out.println ("which artist painted the Sister Chapple? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
                        q = scan.nextLine();
                        if (q.equals("a")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                              System.out.println(" your answer is not correct");
                        System.out.println ("which artist paint the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso");
                        q = scan.nextLine();
                        if (q.equals("b")) {
                             System.out.println(" your answer is correct");
                             correctAnswer = correctAnswer+1;
                        } else {
                             System.out.println(" your answer is not correct");
    }

Maybe you are looking for